[openfabrics-ewg] Bug fix for the PPC64 sles10 libopensm.so & ibutils problem
Moshe Kazir
moshek at voltaire.com
Tue Sep 26 04:36:21 PDT 2006
Michael,
The attached patch file for ibutils.spec solve the compilation errors of
ibutils on PPC64 SLES10.
I tested it on OFED-1.1-rc6 .
For those of you that need ibutils working on PPC64 SLES10 ->
Simply copy the attached rpm to OFED-1.1-rc6/SRPMS directory and run
./install.sh
It was compiled and install with no errors.
And :
- Does any one knows why this rpm is installed with "rpm -Uvh --nodeps
" ? I removed the --nodeps and it was installed o.k. !
- Any one have a good script for testing ibutils, as I never used it and
don't want to spent time on learning how to run/use it.
Moshe
____________________________________________________________
Moshe Katzir | +972-9971-8639 (o) | +972-52-860-6042 (m)
Voltaire - The Grid Backbone
www.voltaire.com <http://www.voltaire.com/>
<mailto:g at voltaire.com>
-----Original Message-----
From: Moshe Kazir
Sent: Tuesday, September 26, 2006 11:21 AM
To: 'Michael S. Tsirkin'
Cc: Yiftah Shahar
Subject: Is there a soution to the PPC64 sles10 libopensm.so
problem
Did I miss a message, or the following error message is not
solve yet on OFED-rc6 ?
I started looking at the bug and suspect that the error is
missing " CFLAGS += -m64 " .
Moshe
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include
-I/var/tmp/OFED/usr/local/ofed/include/infiniband
-I/var/tmp/OFED/usr/local/ofed/include -DOSM_VENDOR_INTF_OPENIB
-DOSM_BUILD_OPENIB -D_XOPEN_SOURCE=600 -D_BSD_SOURCE=1 -O2 -Wall
-fno-strict-aliasing -fPIC -O2 -g -fmessage-length=0 -D_FORTIFY_SOURCE=2
-MT ibis_wrap.lo -MD -MP -MF .deps/ibis_wrap.Tpo -c ibis_wrap.c -o
ibis_wrap.o >/dev/null 2>&1
/bin/sh ../libtool --tag=CC --mode=link gcc -I/usr/include
-I/var/tmp/OFED/usr/local/ofed/include/infiniband
-I/var/tmp/OFED/usr/local/ofed/include -DOSM_VENDOR_INTF_OPENIB
-DOSM_BUILD_OPENIB -D_XOPEN_SOURCE=600 -D_BSD_SOURCE=1 -O2 -Wall
-fno-strict-aliasing -fPIC -O2 -g -fmessage-length=0 -D_FORTIFY_SOURCE=2
-o libibis.la -rpath /usr/local/ofed/lib64 -version-info "1:0:0"
-no-undefined -Wl,-rpath -Wl,/var/tmp/OFED/usr/local/ofed/lib64
-L/var/tmp/OFED/usr/local/ofed/lib64 -lopensm -losmvendor -losmcomp
-libumad -libcommon -L/usr/lib64 -ltcl8.4 -ldl -lm ibis_wrap.lo
ibbbm.lo ibcr.lo ibis.lo ibis_gsi_mad_ctrl.lo ibpm.lo ibsac.lo ibsm.lo
ibvs.lo
libtool: link: warning:
`/var/tmp/OFED/usr/local/ofed/lib64/libibcommon.la' seems to be moved
libtool: link: warning:
`/var/tmp/OFED/usr/local/ofed/lib64/libibcommon.la' seems to be moved
libtool: link: warning:
`/var/tmp/OFED/usr/local/ofed/lib64/libibcommon.la' seems to be moved
libtool: link: warning:
`/var/tmp/OFED/usr/local/ofed/lib64/libibcommon.la' seems to be moved
libtool: link: warning: library
`/var/tmp/OFED/usr/local/ofed/lib64/libibcommon.la' was moved.
gcc -shared .libs/ibis_wrap.o .libs/ibbbm.o .libs/ibcr.o
.libs/ibis.o .libs/ibis_gsi_mad_ctrl.o .libs/ibpm.o .libs/ibsac.o
.libs/ibsm.o .libs/ibvs.o -Wl,--rpath
-Wl,/var/tmp/OFED/usr/local/ofed/lib64 -Wl,--rpath
-Wl,/var/tmp/OFED/usr/local/ofed/lib64
-L/var/tmp/OFED/usr/local/ofed/lib64
/var/tmp/OFED/usr/local/ofed/lib64/libopensm.so
-L/var/tmp/OFEDRPM/BUILD/openib-1.1/src/userspace/management/libibcommon
-L/usr/lib64
-L/var/tmp/OFEDRPM/BUILD/openib-1.1/src/userspace/management/libibumad
/var/tmp/OFED/usr/local/ofed/lib64/libosmvendor.so
/var/tmp/OFED/usr/local/ofed/lib64/libosmcomp.so
/var/tmp/OFED/usr/local/ofed/lib64/libibumad.so
/var/tmp/OFED/usr/local/ofed/lib64/libibcommon.so -ltcl8.4 -ldl -lm
-Wl,-rpath -Wl,/var/tmp/OFED/usr/local/ofed/lib64 -Wl,-soname
-Wl,libibis.so.1 -o .libs/libibis.so.1.0.0
/var/tmp/OFED/usr/local/ofed/lib64/libopensm.so: could not read
symbols: File in wrong format
collect2: ld returned 1 exit status
make[3]: *** [libibis.la] Error 1
make[3]: Leaving directory
`/var/tmp/OFEDRPM/BUILD/ibutils-1.0/ibis/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
`/var/tmp/OFEDRPM/BUILD/ibutils-1.0/ibis'
make[1]: *** [all] Error 2
make[1]: Leaving directory
`/var/tmp/OFEDRPM/BUILD/ibutils-1.0/ibis'
make: *** [all-recursive] Error 1
error: Bad exit status from /var/tmp/rpm-tmp.23064 (%install)
____________________________________________________________
Moshe Katzir | +972-9971-8639 (o) | +972-52-860-6042 (m)
Voltaire - The Grid Backbone
www.voltaire.com <http://www.voltaire.com/>
<mailto:g at voltaire.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openfabrics.org/pipermail/ewg/attachments/20060926/e04bba17/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ibutils.spec.patch
Type: application/octet-stream
Size: 900 bytes
Desc: ibutils.spec.patch
URL: <http://lists.openfabrics.org/pipermail/ewg/attachments/20060926/e04bba17/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ibutils-1.0-0.src.rpm
Type: application/octet-stream
Size: 2090355 bytes
Desc: ibutils-1.0-0.src.rpm
URL: <http://lists.openfabrics.org/pipermail/ewg/attachments/20060926/e04bba17/attachment-0001.obj>
More information about the ewg
mailing list