[mvapich-discuss] Undefined references to inline functions

Sourav Chakraborty chakraborty.52 at buckeyemail.osu.edu
Fri Sep 23 12:59:07 EDT 2016


Hello Maksym,

Thanks for reporting the issue and the suggestion. The fix will be
available with the next release.

Thanks,
Sourav


On Thu, Sep 22, 2016 at 4:16 AM, Maksym Planeta <
mplaneta at os.inf.tu-dresden.de> wrote:

> 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
>
>
>
> _______________________________________________
> mvapich-discuss mailing list
> mvapich-discuss at cse.ohio-state.edu
> http://mailman.cse.ohio-state.edu/mailman/listinfo/mvapich-discuss
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.cse.ohio-state.edu/pipermail/mvapich-discuss/attachments/20160923/e0ccea4f/attachment.html>


More information about the mvapich-discuss mailing list