[ofa-general] ibutils.src.rpm do not pass compile on PPC64 -SLES 10 SP1

Moshe Kazir moshek at voltaire.com
Tue Oct 23 00:45:31 PDT 2007


The attached patch enable compile of ibutils with no error on SLES 10
SP1 PPC64 JS21
 
Idid not test it on other environments.
 
When I tried to rpmbuild the  new created ibutils...src.rpm 
 
I face a new problem ...
 
make[1]: Leaving directory `/usr/src/packages/BUILD/ibutils-1.2'
+ install -d
/var/tmp/ibutils-1.2-0.4.ofed20070930-root-root/etc/profile.d
+ cat
+ cat
+ touch ibutils-files
+ install -d
/var/tmp/ibutils-1.2-0.4.ofed20070930-root-root/etc/ld.so.conf.d
+ echo /usr/lib64
+ case /usr in
+ /usr/lib/rpm/brp-lib64-linux
sf at suse.de: if you find problems with this script, drop me a note
  RPATH       /usr/lib/gcc/powerpc64-suse-linux/4.1.2/64:/usr/lib
/var/tmp/ibutils-1.2-0.4.ofed20070930-root-root/usr/lib64/libibdm.so:
rpath to 32bit lib
error: Bad exit status from /var/tmp/rpm-tmp.12275 (%install)


 

I'm starting to dig it now.

 
Patch explanation:
 
In the configure files you'll find the line "$CC -print-search-dirs
....."
 
On a non PPC64 that's the right way to find the gcc & g++ library path.
 
But it is not good for PPC64 !
 
The defualt for PPC64 is ELF 32 bit, therefore if one 
When you search libraries for ELF 64 objects the right command is -> 
 
"$CC $CFLAGS $CPPFLAGS $LDFLAGS -print-search-dirs ....."
 
Also the patch include spell mistake that caused link errors -> somewere
"CFLAGS=save_cfalgs" is fixed tobee "CFLAGS=save_cflags"
 
 

Moshe

 
 

Can someone help me to fix this problem in the right way, 

I.e. changing the autoconf input files and not the configure /
aclocal.m4 files

 

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> 

  

 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openfabrics.org/pipermail/general/attachments/20071023/9caba8b4/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ibutils_sles10_sp1_ppc64.patch
Type: application/octet-stream
Size: 28751 bytes
Desc: ibutils_sles10_sp1_ppc64.patch
URL: <http://lists.openfabrics.org/pipermail/general/attachments/20071023/9caba8b4/attachment.obj>


More information about the general mailing list