[mpich-discuss] Problem compiling Mpich2 with -fPIC
Matthieu Dorier
matthieu.dorier at irisa.fr
Sun Apr 29 01:55:10 CDT 2012
Actually, I tried again on a clean environment without PVFS2, and it worked fine, so my guess is that PVFS was itself not compiled with -fPIC, making the compilation of mpich2 impossible with --enable-shared. I'll try adding PVFS to my installation (this time with the right options) and get back to this thread if I run into the same problem again.
Matthieu Dorier
PhD student at ENS Cachan Brittany and IRISA
http://people.irisa.fr/Matthieu.Dorier
----- Mail original -----
> De: "Pavan Balaji" <balaji at mcs.anl.gov>
> À: mpich-discuss at mcs.anl.gov
> Cc: "Matthieu Dorier" <matthieu.dorier at irisa.fr>
> Envoyé: Dimanche 29 Avril 2012 06:21:05
> Objet: Re: [mpich-discuss] Problem compiling Mpich2 with -fPIC
> 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