Eitan,<br> Anything using version 4 of gcc should (could ?) have the same problem. If you google the <span>"relocation R_X86_64_32 against" section of the error you will see a good deal of people with the same/similar issues (not on OFED, but on many other things). I do not belive the issue lies with OFED in this instance. Though I could be wrong.
<br><br>Regards.<br></span><br><div><span class="gmail_quote">On 6/23/06, <b class="gmail_sendername">Eitan Zahavi</b> <<a href="mailto:eitan@mellanox.co.il" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
eitan@mellanox.co.il</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Don,<br><br>Sorry for my late response. ibutils compilation (of libibdmcom) is breaking with the<br>error message:<br><br> > relocation R_X86_64_32 against `__gnu_internal::freelist_key' can not be<br> > used when making a shared object; recompile with -fPIC
<br><br>For the command:<br> > /bin/sh ../libtool --tag=CXX --mode=link g++ -O2<br> > -DIBDM_IBNL_DIR='"/usr/local/ofed/lib64"' -I/usr/include -O2 -g -pipe<br> > -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -m64 -mtune=nocona -o
<br> > <a href="http://libibdmcom.la" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">libibdmcom.la</a> -rpath /usr/local/ofed/lib64 -version-info "2:1:1"<br> > Fabric.lo SubnMgt.lo
TraceRoute.lo CredLoops.lo TopoMatch.lo SysDef.lo<br> > LinkCover.lo
Congestion.lo ibnl_parser.lo ibnl_scanner.lo<br> > g++ -shared -nostdlib<br><br>So obviously one has to figure out why -shared did not cause -fPIC ?<br>Also not clear why this does not break on other machines. Anyways,
<br>reproducing the problem is my first target.<br><br>One obvious thing to try is to set CFLAGS=-fPIC<br><br>As I do not have access to the exact type of your machine : FSM Labs v 2.2.3 with the 2.6.16 kernel<br>(as the weekend started over hear) I guess I will be able to reproduce only Sun/Mon.
<br><br>Eitan<br><br>Don Snedigar wrote:<br>> I just downloaded the OFED-1.0 and the install was going fine until<br>> ibutils. At that point, the install fails with :<br>><br>> Open MPI RPM will be created during the installation process
<br>><br>><br>> Building ibutils RPM. Please wait...<br>><br>> Running rpmbuild --rebuild --define '_topdir /var/tmp/OFEDRPM' --define<br>> 'configure_options --prefix=/usr/local/ofed<br>> --mandir=/usr/local/ofed/share/man
<br>> --cache-file=/var/tmp/OFED/ibutils.cache<br>> --with-osm=/var/tmp/OFED/usr/local/ofed --enable-ibmgtsim' --define<br>> '_prefix /usr/local/ofed' --define '_libdir /usr/local/ofed/lib64'<br>> --define '_mandir %{_prefix}/share/man' --define 'build_root
<br>> /var/tmp/OFED' /home/snedigar/OFED-1.0/SRPMS/ibutils-1.0-0.src.rpm<br>> -<br>> ERROR: Failed executing "rpmbuild --rebuild --define '_topdir<br>> /var/tmp/OFEDRPM' --define 'configure_options --prefix=/usr/local/ofed
<br>> --mandir=/usr/local/ofed/share/man<br>> --cache-file=/var/tmp/OFED/ibutils.cache<br>> --with-osm=/var/tmp/OFED/usr/local/ofed --enable-ibmgtsim' --define<br>> '_prefix /usr/local/ofed' --define '_libdir /usr/local/ofed/lib64'
<br>> --define '_mandir %{_prefix}/share/man' --define 'build_root<br>> /var/tmp/OFED' /home/snedigar/OFED-1.0/SRPMS/ibutils-1.0-0.src.rpm"<br>><br>> See log file: /tmp/OFED.28656.log<br>><br>><br>
> I dug down into the log file it indicates and found :
<br>><br>> g++ -DHAVE_CONFIG_H -I. -I. -I.. -O2<br>> -DIBDM_IBNL_DIR=\"/usr/local/ofed/lib64\" -I/usr/include -O2 -g -pipe<br>> -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -m64 -mtune=nocona -MT<br>> ibnl_scanner.lo -MD -MP -MF .deps/ibnl_scanner.Tpo -c ibnl_scanner.cc
<br>> - -o .libs/ibnl_scanner.o<br>> ibnl_scanner.ll: In function 'int ibnl_lex()':<br>> ibnl_scanner.ll:197: warning: ignoring return value of 'size_t<br>> fwrite(const void*, size_t, size_t, FILE*)', declared with attribute
<br>> warn_unused_result<br>> g++ -DHAVE_CONFIG_H -I. -I. -I.. -O2<br>> -DIBDM_IBNL_DIR=\"/usr/local/ofed/lib64\" -I/usr/include -O2 -g -pipe<br>> -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -m64 -mtune=nocona -MT
<br>> ibnl_scanner.lo -MD -MP -MF .deps/ibnl_scanner.Tpo -c ibnl_scanner.cc -o<br>> ibnl_scanner.o >/dev/null 2>&1<br>> /bin/sh ../libtool --tag=CXX --mode=link g++ -O2<br>> -DIBDM_IBNL_DIR='"/usr/local/ofed/lib64"' -I/usr/include -O2 -g -pipe
<br>> -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -m64 -mtune=nocona -o<br>> <a href="http://libibdmcom.la" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">libibdmcom.la</a> -rpath /usr/local/ofed/lib64 -version-info "2:1:1"
<br>> Fabric.lo SubnMgt.lo TraceRoute.lo
CredLoops.lo TopoMatch.lo SysDef.lo<br>> LinkCover.lo Congestion.lo ibnl_parser.lo ibnl_scanner.lo<br>> g++ -shared -nostdlib<br>> /usr/lib/gcc/x86_64-redhat-linux/4.0.0/../../../../lib64/crti.o<br>> /usr/lib/gcc/x86_64-redhat-linux/4.0.0/crtbeginS.o .libs/Fabric.o
<br>> .libs/SubnMgt.o .libs/TraceRoute.o .libs/CredLoops.o .libs/TopoMatch.o<br>> .libs/SysDef.o .libs/LinkCover.o .libs/Congestion.o .libs/ibnl_parser.o<br>> .libs/ibnl_scanner.o -L/usr/lib/gcc/x86_64-redhat-linux/4.0.0
<br>> -L/usr/lib/gcc/x86_64-redhat-linux/4.0.0/../../../../lib64<br>> -L/usr/lib/gcc/x86_64-redhat-linux/4.0.0/../../.. -L/lib/../lib64<br>> -L/usr/lib/../lib64 -lstdc++ -lm -lc -lgcc_s<br>> /usr/lib/gcc/x86_64-redhat-linux/4.0.0/crtendS.o
<br>> /usr/lib/gcc/x86_64-redhat-linux/4.0.0/../../../../lib64/crtn.o -m64<br>> -mtune=nocona -Wl,-soname -Wl,libibdmcom.so.1 -o<br>> .libs/libibdmcom.so.1.1.1<br>> /usr/bin/ld:<br>> /usr/lib/gcc/x86_64-redhat-linux/4.0.0/libstdc++.a(mt_allocator.o):
<br>> relocation R_X86_64_32 against `__gnu_internal::freelist_key' can not be<br>> used when making a shared object; recompile with -fPIC<br>> /usr/lib/gcc/x86_64-redhat-linux/4.0.0/libstdc++.a: could not read<br>
> symbols: Bad value<br>> collect2: ld returned 1 exit status<br>> make[3]: *** [<a href="http://libibdmcom.la" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">libibdmcom.la</a>] Error 1<br>
> make[3]: Leaving directory<br>> `/var/tmp/OFEDRPM/BUILD/ibutils-
1.0/ibdm/datamodel'<br>> make[2]: *** [all-recursive] Error 1<br>> make[2]: Leaving directory `/var/tmp/OFEDRPM/BUILD/ibutils-1.0/ibdm'<br>> make[1]: *** [all] Error 2<br>> make[1]: Leaving directory `/var/tmp/OFEDRPM/BUILD/ibutils-
1.0/ibdm'<br>> make: *** [all-recursive] Error 1<br>> error: Bad exit status from /var/tmp/rpm-tmp.16738 (%install)<br>><br>><br>> RPM build errors:<br>> Bad exit status from /var/tmp/rpm-tmp.16738 (%install)
<br>> ERROR: Failed executing "rpmbuild --rebuild --define '_topdir<br>> /var/tmp/OFEDRPM' --define 'configure_options --prefix=/usr/local/ofed<br>> --mandir=/usr/local/ofed/share/man<br>> --cache-file=/var/tmp/OFED/ibutils.cache
<br>> --with-osm=/var/tmp/OFED/usr/local/ofed --enable-ibmgtsim' --define<br>> '_prefix /usr/local/ofed' --define '_libdir /usr/local/ofed/lib64'<br>> --define '_mandir %{_prefix}/share/man' --define 'build_root
<br>
> /var/tmp/OFED' /home/snedigar/OFED-1.0/SRPMS/ibutils-1.0-0.src.rpm"<br>><br>> Can anyone shed any light on this ?<br>><br>> Machine is dual Opteron, 2 gig memory, kernel 2.6.16<br>><br>> Don Snedigar
<br>> Calpont Corp.<br>> 214-618-9516<br>><br>><br>><br>><br>> ------------------------------------------------------------------------<br>><br>> _______________________________________________
<br>
> openib-general mailing list<br>> <a href="mailto:openib-general@openib.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">openib-general@openib.org</a><br>> <a href="http://openib.org/mailman/listinfo/openib-general" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://openib.org/mailman/listinfo/openib-general
</a><br>><br>> To unsubscribe, please visit <a href="http://openib.org/mailman/listinfo/openib-general" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://openib.org/mailman/listinfo/openib-general
</a><br><br><br>_______________________________________________
<br>openib-general mailing list<br><a href="mailto:openib-general@openib.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">openib-general@openib.org</a><br><a href="http://openib.org/mailman/listinfo/openib-general" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://openib.org/mailman/listinfo/openib-general</a>
<br><br>To unsubscribe, please visit <a href="http://openib.org/mailman/listinfo/openib-general" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://openib.org/mailman/listinfo/openib-general</a>
<br><br></blockquote></div><br>