<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 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 name="x"></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">http://people.irisa.fr/Matthieu.Dorier</a></font><span name="x"></span><br></div></div></div></body></html>