[mpich-discuss] Problem compiling Mpich2 with -fPIC
Matthieu Dorier
matthieu.dorier at irisa.fr
Fri Apr 20 09:54:20 CDT 2012
I forgot the log. Here it goes ----- Mail original -----
> De: "Matthieu Dorier" <matthieu.dorier at irisa.fr>
> À: mpich-discuss at mcs.anl.gov
> Envoyé: Vendredi 20 Avril 2012 16:50:46
> Objet: [mpich-discuss] Problem compiling Mpich2 with -fPIC
> 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
> _______________________________________________
> mpich-discuss mailing list mpich-discuss at mcs.anl.gov
> To manage subscription options or unsubscribe:
> https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/mpich-discuss/attachments/20120420/13a8be63/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: make.log
Type: text/x-log
Size: 217475 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/mpich-discuss/attachments/20120420/13a8be63/attachment-0001.bin>
More information about the mpich-discuss
mailing list