<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div style='font-family: times new roman,new york,times,serif; font-size: 12pt; color: #000000'><font size="3">I forgot the log. Here it goes</font><br><br><hr id="zwchr" style="font-size: 12pt; "><blockquote style="font-size: 12pt; border-left-width: 2px; border-left-style: solid; border-left-color: rgb(16, 16, 255); margin-left: 5px; padding-left: 5px; "><b>De: </b>"Matthieu Dorier" <matthieu.dorier@irisa.fr><br><b>À: </b>mpich-discuss@mcs.anl.gov<br><b>Envoyé: </b>Vendredi 20 Avril 2012 16:50:46<br><b>Objet: </b>[mpich-discuss] Problem compiling Mpich2 with -fPIC<br><br><style>p { margin: 0; }</style><div style="font-family: times new roman,new york,times,serif; font-size: 12pt; color: #000000"><font face="'times new roman', 'new york', times, serif" size="3">Hello,</font><div style="color: rgb(0, 0, 0); font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "><br></div><div style="color: rgb(0, 0, 0); font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; ">I'm having a problem trying to compile an application that requires the shared version of mpich2, the compiler was printing the following:</div><div><font face="'times new roman', 'new york', times, serif">./libmpich.a(setbotf.o): relocation R_X86_64_32 against `mpifcmb2_' can not be used when making a shared object; recompile with -fPIC</font></div><div><font face="'times new roman', 'new york', times, serif">among other errors that look the same.</font></div><div><font face="'times new roman', 'new york', times, serif"><br></font></div><div><font face="'times new roman', 'new york', times, serif">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.</font></div><div><font face="'times new roman', 'new york', times, serif"><br></font></div><div><font face="'times new roman', 'new york', times, serif">I attach the log of the "make" command.</font></div><div><font face="'times new roman', 'new york', times, serif">The configure command was the following:</font></div><div><font face="'times new roman', 'new york', times, serif"><br></font></div><div><font face="'times new roman', 'new york', times, serif">./configure --prefix=/usr --enable-fc --enable-romio --with-pvfs2=/usr --enable-shared</font></div><div><font face="'times new roman', 'new york', times, serif"><br></font></div><div><font face="'times new roman', 'new york', times, serif">I tried everything : putting CFLAGS="-fPIC", or CC="gcc -fPIC", etc. it doesn't solve the problem.</font></div><div><font face="'times new roman', 'new york', times, serif">I'm working on Debian squeeze with gcc 4.4.5.</font></div><div><font face="'times new roman', 'new york', times, serif">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.</font></div><div><font face="'times new roman', 'new york', times, serif"><br></font></div><div><font face="'times new roman', 'new york', times, serif">Thanks,</font></div><div><br><div style="color: rgb(0, 0, 0); font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "><span></span><font size="2"><font size="3">Matthieu Dorier<br>
</font>PhD student at ENS Cachan Brittany and IRISA<br><a href="http://people.irisa.fr/Matthieu.Dorier" target="_blank">http://people.irisa.fr/Matthieu.Dorier</a></font><span></span><br></div></div></div><br>_______________________________________________<br>mpich-discuss mailing list mpich-discuss@mcs.anl.gov<br>To manage subscription options or unsubscribe:<br>https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss<br></blockquote><br></div></body></html>