[mvapich-discuss] Undefined references to inline functions

Maksym Planeta mplaneta at os.inf.tu-dresden.de
Thu Sep 22 04:16:19 EDT 2016


Hello,

when I compile mvapich2-2.2 library I get following errors:

lib/.libs/libmpi.a(lib_libmpi_la-ch3_smp_progress.o): In function `check_cma_usability':
/tmp/user/mvapich2-build/../mvapich2-2.2/src/mpid/ch3/channels/mrail/src/rdma/ch3_smp_progress.c:1607: undefined reference to `process_vm_writev'
lib/.libs/libmpi.a(lib_libmpi_la-ch3_smp_progress.o): In function `MPIDI_CH3I_SMP_readv_rndv_cont':
/tmp/user/mvapich2-build/../mvapich2-2.2/src/mpid/ch3/channels/mrail/src/rdma/ch3_smp_progress.c:4191: undefined reference to `process_vm_readv'
/tmp/user/mvapich2-build/../mvapich2-2.2/src/mpid/ch3/channels/mrail/src/rdma/ch3_smp_progress.c:4208: undefined reference to `process_vm_readv'
/tmp/user/mvapich2-build/../mvapich2-2.2/src/mpid/ch3/channels/mrail/src/rdma/ch3_smp_progress.c:4221: undefined reference to `process_vm_readv'
/tmp/user/mvapich2-build/../mvapich2-2.2/src/mpid/ch3/channels/mrail/src/rdma/ch3_smp_progress.c:4241: undefined reference to `process_vm_readv'
lib/.libs/libmpi.a(lib_libmpi_la-ch3_smp_progress.o): In function `MPIDI_CH3I_SMP_readv_rndv':
/tmp/user/mvapich2-build/../mvapich2-2.2/src/mpid/ch3/channels/mrail/src/rdma/ch3_smp_progress.c:4662: undefined reference to `process_vm_readv'
lib/.libs/libmpi.a(lib_libmpi_la-ch3_smp_progress.o):/tmp/user/mvapich2-build/../mvapich2-2.2/src/mpid/ch3/channels/mrail/src/rdma/ch3_smp_progress.c:4680: more undefined references to `process_vm_readv' follow
collect2: error: ld returned 1 exit status
make[2]: *** [src/env/mpichversion] Error 1
make[2]: *** Waiting for unfinished jobs....
lib/.libs/libmpi.a(lib_libmpi_la-ch3_smp_progress.o): In function `check_cma_usability':
/tmp/user/mvapich2-build/../mvapich2-2.2/src/mpid/ch3/channels/mrail/src/rdma/ch3_smp_progress.c:1607: undefined reference to `process_vm_writev'
lib/.libs/libmpi.a(lib_libmpi_la-ch3_smp_progress.o): In function `MPIDI_CH3I_SMP_readv_rndv_cont':
/tmp/user/mvapich2-build/../mvapich2-2.2/src/mpid/ch3/channels/mrail/src/rdma/ch3_smp_progress.c:4191: undefined reference to `process_vm_readv'
/tmp/user/mvapich2-build/../mvapich2-2.2/src/mpid/ch3/channels/mrail/src/rdma/ch3_smp_progress.c:4208: undefined reference to `process_vm_readv'
/tmp/user/mvapich2-build/../mvapich2-2.2/src/mpid/ch3/channels/mrail/src/rdma/ch3_smp_progress.c:4221: undefined reference to `process_vm_readv'
/tmp/user/mvapich2-build/../mvapich2-2.2/src/mpid/ch3/channels/mrail/src/rdma/ch3_smp_progress.c:4241: undefined reference to `process_vm_readv'
lib/.libs/libmpi.a(lib_libmpi_la-ch3_smp_progress.o): In function `MPIDI_CH3I_SMP_readv_rndv':
/tmp/user/mvapich2-build/../mvapich2-2.2/src/mpid/ch3/channels/mrail/src/rdma/ch3_smp_progress.c:4662: undefined reference to `process_vm_readv'
lib/.libs/libmpi.a(lib_libmpi_la-ch3_smp_progress.o):/tmp/user/mvapich2-build/../mvapich2-2.2/src/mpid/ch3/channels/mrail/src/rdma/ch3_smp_progress.c:4680: more undefined references to `process_vm_readv' follow

If I add "static" before declarations of functions
process_vm_readv and process_vm_readv, the library compiles.

I compile the library with following configure flags:

--enable-fortran=all --enable-cxx --enable-error-checking=all
--enable-error-messages=none --enable-timing=none 
--enable-check-compiler-flags --enable-threads=multiple 
--enable-weak-symbols --disable-dependency-tracking --enable-fast-install
--disable-rdma-cm --with-pm=mpirun:hydra --with-rdma=gen2
--with-device=ch3:mrail --enable-alloca --enable-hwloc --disable-fast
--enable-g=dbg --enable-error-messages=all --enable-error-checking=all
--prefix=<...>

-- 
Regards,
Maksym Planeta


-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5174 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://mailman.cse.ohio-state.edu/pipermail/mvapich-discuss/attachments/20160922/8208e5ba/attachment.p7s>


More information about the mvapich-discuss mailing list