[ewg] Re: [ofa-general] OFED-1.2 compiles 32b apps on SLES 10 for IBM PPC

Al Chu chu11 at llnl.gov
Tue Apr 10 11:25:27 PDT 2007


On Tue, 2007-04-10 at 12:14 -0500, Steve Wise wrote:
> I just built the ofed-1.2-rc1 kit on an IBM P5 PPC with SLES 10 and some
> the apps got built as 32b. Seems like gcc on this distro defaults to
> 32b:
> 
> # file /usr/bin/rping
> /usr/bin/rping: ELF 32-bit MSB executable, PowerPC or cisco 4500,
> version 1 (SYSV), for GNU/Linux 2.6.4, dynamically linked (uses shared
> libs), for GNU/Linux 2.6.4, not stripped
> # file /usr/bin/ibv_devices
> /usr/bin/ibv_devices: ELF 32-bit MSB executable, PowerPC or cisco 4500,
> version 1 (SYSV), for GNU/Linux 2.6.4, dynamically linked (uses shared
> libs), for GNU/Linux 2.6.4, not stripped
> # file /usr/bin/ibv_rc_pingpong
> /usr/bin/ibv_rc_pingpong: ELF 32-bit MSB executable, PowerPC or cisco
> 4500, version 1 (SYSV), for GNU/Linux 2.6.4, dynamically linked (uses
> shared libs), for GNU/Linux 2.6.4, not stripped
> 
> Should I open a bug for this?

Hi Steve,

I don't know how you're building/installing, but I bet it's the same
thing we've hit in the past.  Apparently rpmbuild defaults to naming
packages based on the output of 'uname -r', but gcc defaults to to
building 32bit.  So you end up with a 32bit binary inside a 'ppc64' rpm.
One way to solve this was to rpmbuild w/ --target=ppc so the rpm matches
the contents built. (Note: this wasn't done for OFED, it was for other
packages.)  I believe some configure options and compile options can get
it to build 64bit, but I can't remember what those are.

My opinion is this bug is with Suse.  Perhaps workarounds could be added
into the OFED build to build ppc/ppc64 rpms properly??

Al

> 
> Steve.
> 
> _______________________________________________
> general mailing list
> general at lists.openfabrics.org
> http://lists.openfabrics.org/cgi-bin/mailman/listinfo/general
> 
> To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general
-- 
Albert Chu
chu11 at llnl.gov
925-422-5311
Computer Scientist
High Performance Systems Division
Lawrence Livermore National Laboratory



More information about the ewg mailing list