[mpich-discuss] Error when building MPI with --enbale-shared
Lokman Rahmani
lokman.rahmani at irisa.fr
Fri Nov 8 11:26:09 CST 2013
Hello,
When building MPICH3 with the option --enable-shared the build fails with the error :
/usr/bin/ld: /home/hpc/build/mpich-3.0.4/src/mpl/.libs/libmpl.a(mpltrmem.o): relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/home/hpc/build/mpich-3.0.4/src/mpl/.libs/libmpl.a: could not read symbols: Bad value
About this error message, I found this (old) discussion in the mailing list archive : https://lists.mcs.anl.gov/mailman/htdig/mpich-discuss/2011-January/008727.html
What i understood from this message is that I have to use --disable-rpath (wich become --disable-wrapper-rpath for the newer versions), but i still have the same problem .
(I also set the CXXFLAGS and CFLAGS to -fPIC)
Anyone can give me hints about the reasons of this error and how to overcome it?
Thank you
Lokman
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mpich.org/pipermail/discuss/attachments/20131108/45b9ff99/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: logs-enable-shared
Type: application/octet-stream
Size: 129983 bytes
Desc: not available
URL: <http://lists.mpich.org/pipermail/discuss/attachments/20131108/45b9ff99/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: logs-enable-shared-disable-rpath
Type: application/octet-stream
Size: 130364 bytes
Desc: not available
URL: <http://lists.mpich.org/pipermail/discuss/attachments/20131108/45b9ff99/attachment-0001.obj>
More information about the discuss
mailing list