[ewg] RFC: OFED-1.3-20070823-1130 - first build
Doug Ledford
dledford at redhat.com
Fri Aug 24 23:18:26 PDT 2007
On Fri, 2007-08-24 at 13:47 +0200, Stefan Roscher wrote:
> Hi Vladimir,
>
> I tested the new build environment with some different configurations. From my
> point of view it is a good solution. Very easy to use and to understand.
>
> During the tests I found 2 little issues.
>
> The first one hits the libibverbs. On ppc64 I built OFED-1.2 with following
> command:
> ./install.pl --basic
>
> Now the libibverbs is installed in /usr/lib64, but it is a 32bit libary:
>
> systemx # file /usr/lib64/libibverbs.so.1.0.0
> /usr/lib64/libibverbs.so.1.0.0: ELF 32-bit MSB shared object,
> PowerPC or cisco 4500, version 1 (SYSV), not stripped
I would guess this is because you are trying to set the libdir and
compile mode flags yourselves? The rpmbuild environment has the ability
to set these things for you. For example, if you build using this
command on a ppc64 machine:
rpmbuild --ba --target=ppc libibverbs.spec
and inside the libibverbs.spec file simply use %{_libdir} and CFLAGS=
$RPM_OPT_FLAGS, then you get the right result.
Likewise, rpmbuild --ba --target=ppc64 libibverbs.spec *also* does the
right thing if you use %{_libdir} during configure and in %files and
also set CFLAGS=$RPM_OPT_FLAGS.
The only requirement for this to work is that you need to have installed
rpm-devel.ppc and rpm-devel.ppc64 (you get the correct macros from those
different packages).
At least this is how it works under RHEL. I would hope that SuSE is
sane in this regard too.
Trying to outsmart rpm instead of working with rpm on stuff like this is
a big part of why I want tarballs, not a distribution. It breaks in all
sorts of subtle ways.
> So the following libaries like libmthca and libehca can not configure because
> the libibverbs check fails. After I exported LDFLAGS and CFLAGS explicit with
> -m64 option it was working fine.
The ppc64 RPM_OPT_FLAGS include -m64 because we know that -m32 is the
default setting in the compiler and you need it to force 64bit apps.
> I think we should set these flags within the install.pl like it is already
> done with openmpi in case of ppc64. What do you think?
Just perpetuating the real problem.
> The second issue I hit during the following installation:
>
> ./install.pl --basic --build32
>
> Install libibverbs RPM:
>
> Running rpm -iv /home/roscher/OFED-1.3-20070823-1130/RPMS/sles-release-10-15.2/libibverbs-1.1.1-0.1.ofed20070823.ppc64.rpm
> Running rpm -iv /home/roscher/OFED-1.3-20070823-1130/RPMS/sles-release-10-15.2/libibverbs-1.1.1-0.1.ofed20070823.ppc.rpm
>
> Failed to install libibverbs RPM
> See /tmp/OFED.27008.logs/libibverbs.rpminstall.log
>
> Within the log I found following error:
>
> package libibverbs-1.1.1-0.1.ofed20070823 is already installed
>
> I did not install the rpms before.
> Seems to me that we have to change the package name in rpm package database to
> libibverbs64.1.x.x.. instead of libibverbs...ppc64.rpm.
No, you need to file a bug with SuSE. This is absolutely broken RPM
behavior. Two packages by the same name but different arch are *not*
the same package and any recent version of rpm knows that.
> regards Stefan
>
> On Thursday 23 August 2007 21:24, Vladimir Sokolovsky wrote:
> > Hi.
> > The first build of OFED-1.3 is available for download:
> >
> > http://www.openfabrics.org/builds/ofed-1.3/OFED-1.3-20070823-1130.tgz
> >
> > Installation:
> > # cd OFED-1.3-20070823-1130
> > # ./install.pl
> >
> > Usage: ./install.pl [-c <packages config_file>|--all|--hpc|--basic] [-n|--net <network config_file>]
> >
> > -c|--config <packages config_file>. Example of the config file can be found under docs.
> > -p|--print-available Print available packages for current platform.
> > And create corresponding ofed.conf file.
> > -k|--kernel <kernel version>. Default on this system: 2.6.9-42.ELsmp
> > -s|--kernel-sources <path to the kernel sources>. Default on this system: /lib/modules/2.6.9-42.ELsmp/build
> > --build32 Build 32-bit libraries. Relevant for x86_64 and ppc64 platforms
> > -v|-vv|-vvv. Set verbosity level
> > -q. Set quiet - no messages will be printed
> >
> > --all|--hpc|--basic Install all,hpc or basic packages correspondently
> >
> >
> > Known Issues:
> > IPoIB configuration is not supported yet.
> >
> > Please comment.
> >
> > Regards,
> > Vladimir
> > _______________________________________________
> > ewg mailing list
> > ewg at lists.openfabrics.org
> > http://lists.openfabrics.org/cgi-bin/mailman/listinfo/ewg
> >
>
>
> _______________________________________________
> ewg mailing list
> ewg at lists.openfabrics.org
> http://lists.openfabrics.org/cgi-bin/mailman/listinfo/ewg
--
Doug Ledford <dledford at redhat.com>
GPG KeyID: CFBFF194
http://people.redhat.com/dledford
Infiniband specific RPMs available at
http://people.redhat.com/dledford/Infiniband
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://lists.openfabrics.org/pipermail/ewg/attachments/20070825/c7c85137/attachment.sig>
More information about the ewg
mailing list