[ofa-general] kernel ib build (OFED 1.3) fails on SLES 10
Brian J. Murrell
Brian.Murrell at Sun.COM
Tue Apr 8 07:43:09 PDT 2008
On Tue, 2008-04-08 at 10:13 +0200, Thomas Großmann wrote:
> Hi,
Hi
> kernel ib build (OFED 1.3) fails on SLES 10.
To be fair, it fails on Sun's version of the SLES 10 kernel for Lustre,
and here is why:
> Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.52212
> + umask 022
> + cd /var/tmp/OFED_topdir/BUILD
> + /bin/rm -rf /var/tmp/OFED
> ++ dirname /var/tmp/OFED
> + /bin/mkdir -p /var/tmp
> + /bin/mkdir /var/tmp/OFED
> + cd ofa_kernel-1.3
> + rm -rf /var/tmp/OFED
> + cd /var/tmp/OFED_topdir/BUILD/ofa_kernel-1.3
> + mkdir -p /var/tmp/OFED//usr/local/ofed-1.3/src
> + cp -a /var/tmp/OFED_topdir/BUILD/ofa_kernel-1.3 /var/tmp/OFED//usr/local/ofed-1.3/src
> + ./configure --prefix=/usr/local/ofed-1.3 --kernel-version 2.6.16-54-0.2.5_lustre.1.6.4.3smp --kernel-sources /lib/modules/2.6.16-54-0.2.5_lustre.1.6.4.3smp/build --modules-dir /lib/modules/2.6.16-54-0.2.5_lustre.1.6.4.3smp/updates --with-core-mod --with-user_mad-mod --with-user_access-mod --with-addr_trans-mod --with-mthca-mod --with-mlx4-mod --with-cxgb3-mod --with-nes-mod --with-ipoib-mod --with-sdp-mod --with-srp-mod --with-srp-target-mod --with-rds-mod --with-qlgc_vnic-mod
> ofed_patch.mk does not exist. running ofed_patch.sh
> /var/tmp/OFED_topdir/BUILD/ofa_kernel-1.3/ofed_scripts/ofed_patch.sh --kernel-version 2.6.16-54-0.2.5_lustre.1.6.4.3smp
----------------------------------------------------------------------------------------------------------------------^
This kernel version does match what ofed_patch.sh thinks is a SLES 10
kernel because it is not of the form "2.6.16.*-*-*". Here's the code in
ofed_patch.sh which detects SLES 10 kernels and assigns the right patch
series for it:
2.6.16.*-*-*)
minor=$(echo $KVERSION | cut -d"." -f4 | cut -d"-" -f1)
if [ $minor -lt 37 ]; then
echo 2.6.16_sles10
elif [ $minor -lt 60 ]; then
echo 2.6.16_sles10_sp1
else
echo 2.6.16_sles10_sp2
fi
;;
The lustre kernel version for SLES 10 is
"2.6.16-54-0.2.5_lustre.1.6.4.3smp". In order for it to match the above
code it needs to have a "-" put before the "smp" at the end. I am
working on the Lustre build process to do exactly this right at this
moment as well as build our released RPMs with OFED 1.3 support right in
them. My work is being done in Lustre bugzilla ticket 15316. When I
have something working, I will post an attachment there with a patch for
our current b1_6 that should apply to 1.6.4.3.
In theory you should be able use the "--with-backport*" configure
options to override this detection when building the RPMs however see my
message to this list (inconsistent use of --with-backport[-patches])
last Saturday about how this seems to be broken currently.
Cheers,
b.
-------------- 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/general/attachments/20080408/689a6ae0/attachment.sig>
More information about the general
mailing list