`build_visit` failed to build mpich
build visit invocation (building using 3.4RC branch):
./build_visit --makeflags -j24 --mesagl --mpich --required --optional --uintah --parallel
results:
Building MPICH (~2 minutes)
Unzipping/Untarring mpich-3.3.1.tar.gz . . .
Configuring MPICH . . .
Invoking command to configure MPICH
Building MPICH . . . (~5 minutes)
MPICH build failed. Giving up
Unable to build or install MPICH. Bailing out.
Error in build process.
...
logs:
...
make[4]: Leaving directory '/usr/WS2/justin/visit_builds/3.4RC-w-tpls-06_11_24/mpich-3.3.1/src/pm/hydra/tools/topo/hwloc/hwloc'
make[3]: Leaving directory '/usr/WS2/justin/visit_builds/3.4RC-w-tpls-06_11_24/mpich-3.3.1/src/pm/hydra/tools/topo/hwloc/hwloc'
Making all in .
make[3]: Entering directory '/usr/WS2/justin/visit_builds/3.4RC-w-tpls-06_11_24/mpich-3.3.1/src/pm/hydra'
CC tools/bootstrap/persist/hydra_persist-persist_server.o
CC utils/alloc/alloc.lo
CC utils/args/args.lo
CC utils/dbg/dbg.lo
CC utils/launch/launch.lo
CC utils/env/env.lo
CC utils/signals/signals.lo
CC utils/others/others.lo
CC utils/sock/sock.lo
CC utils/string/string.lo
CC tools/topo/hwloc/topo_hwloc.lo
CC tools/topo/topo.lo
CC tools/bootstrap/src/bsci_init.lo
CC tools/bootstrap/src/bsci_finalize.lo
CC tools/bootstrap/src/bsci_launch.lo
CC tools/bootstrap/src/bsci_query_node_list.lo
CC tools/bootstrap/src/bsci_query_proxy_id.lo
CC tools/bootstrap/src/bsci_query_native_int.lo
CC tools/bootstrap/src/bsci_wait.lo
CC tools/bootstrap/utils/bscu_wait.lo
CC tools/bootstrap/src/bsci_env.lo
CC tools/bootstrap/utils/bscu_cb.lo
CC tools/bootstrap/external/external_common.lo
CC tools/bootstrap/external/external_common_launch.lo
CC tools/bootstrap/external/fork_init.lo
CC tools/bootstrap/external/user_init.lo
CC tools/bootstrap/external/manual_init.lo
CC tools/bootstrap/external/rsh_init.lo
CC tools/bootstrap/external/rsh_env.lo
CC tools/bootstrap/external/ssh_init.lo
CC tools/bootstrap/external/ssh.lo
CC tools/bootstrap/external/ssh_env.lo
CC tools/bootstrap/external/ssh_finalize.lo
CC tools/bootstrap/external/slurm_init.lo
CC tools/bootstrap/external/slurm_launch.lo
CC tools/bootstrap/external/slurm_env.lo
CC tools/bootstrap/external/slurm_query_native_int.lo
CC tools/bootstrap/external/slurm_query_node_list.lo
CC tools/bootstrap/external/slurm_query_proxy_id.lo
CC tools/bootstrap/external/ll_init.lo
CC tools/bootstrap/external/ll_launch.lo
CC tools/bootstrap/external/ll_query_native_int.lo
CC tools/bootstrap/external/ll_query_node_list.lo
CC tools/bootstrap/external/ll_query_proxy_id.lo
CC tools/bootstrap/external/ll_env.lo
CC tools/bootstrap/external/lsf_init.lo
CC tools/bootstrap/external/lsf_query_native_int.lo
CC tools/bootstrap/external/lsf_query_node_list.lo
tools/bootstrap/external/slurm_query_node_list.c: In function ‘list_to_nodes’:
tools/bootstrap/external/slurm_query_node_list.c:29:16: error: storage size of ‘hostlist’ isn’t known
29 | hostlist_t hostlist;
| ^~~~~~~~
make[3]: *** [Makefile:1597: tools/bootstrap/external/slurm_query_node_list.lo] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory '/usr/WS2/justin/visit_builds/3.4RC-w-tpls-06_11_24/mpich-3.3.1/src/pm/hydra'
make[2]: *** [Makefile:1767: all-recursive] Error 1
make[2]: Leaving directory '/usr/WS2/justin/visit_builds/3.4RC-w-tpls-06_11_24/mpich-3.3.1/src/pm/hydra'
make[1]: *** [Makefile:40517: all-recursive] Error 1
make[1]: Leaving directory '/usr/WS2/justin/visit_builds/3.4RC-w-tpls-06_11_24/mpich-3.3.1'
make: *** [Makefile:10583: all] Error 2
MPICH build failed. Giving up
Unable to build or install MPICH. Bailing out.
This worked for me as recently as 03_05_24
We can use LC MPI, so closing this guy. Sorry Justin
how to solve this problem
@JustinPrivitera Excuse me,how to solve this problem
@Ma-JiaQ do you have mpich or some kind of system MPI already installed on your system?
Make the following change to solve the issue
Change hostlist_t hostlist; to hostlist_t *hostlist;
Reopening this issue since I ran into this issue and developed a patch for MPICH in build_visit using the suggestion from @aruhela.