[mpich-discuss] Problem compiling Mpich2 with -fPIC

Pavan Balaji balaji at mcs.anl.gov
Sat Apr 28 23:21:05 CDT 2012


Can you try the recently released 1.5b1?  That release has moved to 
completely using libtool for shared library support, and might fix your 
problem.

  -- Pavan

On 04/20/2012 09:54 AM, Matthieu Dorier wrote:
> I forgot the log. Here it goes
>
> ------------------------------------------------------------------------
>
>     *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
>
>
>
>
> _______________________________________________
> 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

-- 
Pavan Balaji
http://www.mcs.anl.gov/~balaji


More information about the mpich-discuss mailing list