[mpich-discuss] Problem compiling Mpich2 with -fPIC
Matthieu Dorier
matthieu.dorier at irisa.fr
Fri Apr 20 09:50:46 CDT 2012
Hello,
I'm having a problem trying to compile an application that requires the shared version of mpich2, the compiler was printing the following:
./libmpich.a(setbotf.o): relocation R_X86_64_32 against `mpifcmb2_' can not be used when making a shared object; recompile with -fPIC
among other errors that look the same.
By googling a bit, I found that I should recompile mpich2 with --enable-shared, however when I do, I get the same error than in my application, this time during the building phase of mpich! This error does not abort the compilation process but seems to not produce everything.
I attach the log of the "make" command.
The configure command was the following:
./configure --prefix=/usr --enable-fc --enable-romio --with-pvfs2=/usr --enable-shared
I tried everything : putting CFLAGS="-fPIC", or CC="gcc -fPIC", etc. it doesn't solve the problem.
I'm working on Debian squeeze with gcc 4.4.5.
I saw that someone else on this mailing list had a similar problem ( http://lists.mcs.anl.gov/pipermail/mpich-discuss/2011-January/008727.html) but it didn't help.
Thanks,
Matthieu Dorier
PhD student at ENS Cachan Brittany and IRISA
http://people.irisa.fr/Matthieu.Dorier
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/mpich-discuss/attachments/20120420/70a3ca29/attachment-0001.htm>
More information about the mpich-discuss
mailing list