<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.2912" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=109574914-23062006><FONT face=Arial
color=#0000ff size=2>Agreed Paul. Google turns up hundreds, if not
thousands, of hits about this. Its not an OFED problem...</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=109574914-23062006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=109574914-23062006><FONT face=Arial
color=#0000ff size=2>I was able to resolve the problem late last night by
upgrading the compiler to gcc-4.0.2. </FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=109574914-23062006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=109574914-23062006><FONT face=Arial
color=#0000ff size=2>Thanks for all the help though!</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=109574914-23062006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=109574914-23062006><FONT face=Arial
color=#0000ff size=2>Don</FONT></SPAN></DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> Paul [mailto:paul.lundin@gmail.com]
<BR><B>Sent:</B> Friday, June 23, 2006 9:45 AM<BR><B>To:</B> Eitan
Zahavi<BR><B>Cc:</B> Don Snedigar; openib-general@openib.org<BR><B>Subject:</B>
Re: [openib-general] OFED-1.0 fails install on AMD64<BR></FONT><BR></DIV>
<DIV></DIV>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 onclick="return top.js.OpenExtLink(window,event,this)"
href="mailto:eitan@mellanox.co.il" target=_blank> eitan@mellanox.co.il</A>>
wrote:</SPAN>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">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 onclick="return top.js.OpenExtLink(window,event,this)"
href="http://libibdmcom.la" target=_blank>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 onclick="return top.js.OpenExtLink(window,event,this)"
href="http://libibdmcom.la" target=_blank>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 onclick="return top.js.OpenExtLink(window,event,this)"
href="http://libibdmcom.la" target=_blank>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 onclick="return top.js.OpenExtLink(window,event,this)"
href="mailto:openib-general@openib.org"
target=_blank>openib-general@openib.org</A><BR>> <A
onclick="return top.js.OpenExtLink(window,event,this)"
href="http://openib.org/mailman/listinfo/openib-general"
target=_blank>http://openib.org/mailman/listinfo/openib-general
</A><BR>><BR>> To unsubscribe, please visit <A
onclick="return top.js.OpenExtLink(window,event,this)"
href="http://openib.org/mailman/listinfo/openib-general"
target=_blank>http://openib.org/mailman/listinfo/openib-general
</A><BR><BR><BR>_______________________________________________
<BR>openib-general mailing list<BR><A
onclick="return top.js.OpenExtLink(window,event,this)"
href="mailto:openib-general@openib.org"
target=_blank>openib-general@openib.org</A><BR><A
onclick="return top.js.OpenExtLink(window,event,this)"
href="http://openib.org/mailman/listinfo/openib-general"
target=_blank>http://openib.org/mailman/listinfo/openib-general</A> <BR><BR>To
unsubscribe, please visit <A
onclick="return top.js.OpenExtLink(window,event,this)"
href="http://openib.org/mailman/listinfo/openib-general"
target=_blank>http://openib.org/mailman/listinfo/openib-general</A>
<BR><BR></BLOCKQUOTE></DIV><BR></BODY></HTML>