<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
p, li { white-space: pre-wrap; }
</style></head><body style=" font-family:'Sans Serif'; font-size:9pt; font-weight:400; font-style:normal;">
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; "> </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">A quick test I may suggest is trying our latest release (rc1). --enable-shared is the default, and we fixed a few things there.</p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; "> </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">  Antonio</p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; "> </p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; "> </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">On Friday, November 08, 2013 06:26:09 PM Lokman Rahmani wrote:<br /></p>
<p style=" margin-top:12px; margin-bottom:0px; margin-left:40px; margin-right:40px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><span style=" font-family:'times new roman,new york,times,serif'; font-size:12pt; color:#000000;">Hello,<br /><br />When building MPICH3 with the option --enable-shared the build fails with the error :<br /><br />/usr/bin/ld: /home/hpc/build/mpich-3.0.4/src/mpl/.libs/libmpl.a(mpltrmem.o): relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC<br />/home/hpc/build/mpich-3.0.4/src/mpl/.libs/libmpl.a: could not read symbols: Bad value<br /><br />About this error message, I found this (old) discussion in the mailing list archive : https://lists.mcs.anl.gov/mailman/htdig/mpich-discuss/2011-January/008727.html<br /><br />What i understood from this message is that I have to use --disable-rpath (wich become --disable-wrapper-rpath for the newer versions), but i still have the same problem.<br />(I also set the CXXFLAGS and CFLAGS to -fPIC)<br /><br />Anyone can give me hints about the reasons of this error and how to  overcome it?<br /><br />Thank you<br />Lokman<br /></span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br /></p></body></html>