[Mvapich-discuss] Build failure with NVHPC compilers
Martin Cuma
martin.cuma at utah.edu
Fri Apr 8 13:37:45 EDT 2022
We're building MVAPICH2 2.3.6, either with Spack or separately, but we get the following error:
libtool: link: nvc -DNDEBUG -DNVALGRIND -O2 -rdynamic -o src/pm/mpirun/mpirun_rsh src/pm/mpirun/mpirun_rsh.o src/pm/mpirun/mpirun_util.o src/pm/mpirun/mpmd.o src/pm/mpirun/mpirun_dbg.o src/pm/mpirun/mpirun_ckpt.o src/pm/mpirun/mpirun_params.o src/pm/mpirun/param.o src/pm/mpirun/signal_processor.o src/pm/mpirun/wfe_mpirun.o src/pm/mpirun/m_state.o src/pm/mpirun/read_specfile.o src/pm/mpirun/gethostip.o src/pm/mpirun/environ.o src/mpid/ch3/channels/common/src/util/mv2_config.o src/mpid/ch3/channels/common/src/util/crc32h.o src/mpid/ch3/channels/common/src/util/error_handling.o src/mpid/ch3/channels/common/src/util/debug_utils.o -lm src/pm/mpirun/src/hostfile/libhostfile.a src/pm/mpirun/src/db/libdb.a src/pm/mpirun/src/slurm/libslurm.a src/pm/mpirun/src/slurm/libnodelist.a src/pm/mpirun/src/slurm/libtasklist.a src/pm/mpirun/src/pbs/libpbs.a -lrt -lpthread
libtool: compile: nvfortran -Isrc/binding/fortran/use_mpi -module src/binding/fortran/use_mpi -c src/binding/fortran/use_mpi/mpi_base.f90 -o src/binding/fortran/use_mpi/mpi_base.o >/dev/null 2>&1
nvc-Error-Unknown switch: -rdynamic
nvc-Error-Unknown switch: -rdynamic
It looks like the configure injects the -rdynamic flag, which is not present in NVHPC (=PGI) compilers, into the LDFLAGS for the mpirun builds:
$ grep rdynamic *
Makefile:src_pm_mpirun_mpirun_rsh_LDFLAGS = -rdynamic
Makefile:src_pm_mpirun_mpiexec_mpirun_rsh_LDFLAGS = -rdynamic
Makefile:src_pm_mpirun_mpispawn_LDFLAGS = -rdynamic
Is there anything we can do about this to enable this build to succeed, or will it be necessary to edit the configure script?
Thanks,
Martin Cuma
Center for High Performance Computing
University of Utah
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osu.edu/pipermail/mvapich-discuss/attachments/20220408/addb3474/attachment-0018.html>
More information about the Mvapich-discuss
mailing list