[ofa-general] OFED 1.3 GA fails to build ofa_kernel RPM on FC8/ppc64
Daryl W. Grunau
darylgrunau at gmail.com
Sat Mar 1 09:29:42 PST 2008
Anybody else running into RPM build problems of 1.3 GA? All other packages
build fine but when I get to the kernel-ib RPMS the rpmbuild
check-buildroot puts a halt to everything:
+ /usr/lib/rpm/check-buildroot
Binary file /var/tmp/OFED/lib/modules/2.6.23.1-42.7.cell/updates/kernel/drivers/infiniband/hw/mthca/ib_mthca.ko matches
Binary file /var/tmp/OFED/lib/modules/2.6.23.1-42.7.cell/updates/kernel/drivers/infiniband/hw/ipath/ib_ipath.ko matches
Binary file /var/tmp/OFED/lib/modules/2.6.23.1-42.7.cell/updates/kernel/drivers/infiniband/hw/nes/iw_nes.ko matches
.
.
.
/BUILD/ofa_kernel-1.3/drivers/infiniband/core/ib_core EXPORT_SYMBOL
/var/tmp/OFED/opt/ofed/src/ofa_kernel/configure.mk.kernel:CWD=/var/tmp/OFED_topdir/BUILD/ofa_kernel-1.3
/var/tmp/OFED/opt/ofed/src/ofa_kernel/configure.mk.kernel:AUTOCONF_H=/var/tmp/OFED_topdir/BUILD/ofa_kernel-1.3/include/linux/autoconf.h
/var/tmp/OFED/opt/ofed/src/ofa_kernel-1.3/ofed_scripts/ofa_kernel.spec:BuildRoot:
%{?build_root:%{build_root}}%{!?build_root:/var/tmp/OFED}
Found '/var/tmp/OFED' in installed files; aborting
Here's the relevant code in the check-buildroot script:
find "$RPM_BUILD_ROOT" \! \( \
-name '*.pyo' -o -name '*.pyc' -o -name '*.elc' -o -name '.packlist' \
-o -name '*.jar.so.debug' \) -type f -print0 | \
LANG=C xargs -0r grep -F "$RPM_BUILD_ROOT" >$tmp
test -s "$tmp" && {
cat "$tmp"
echo $"Found '$RPM_BUILD_ROOT' in installed files; aborting"
exit 1
} || :
Executing strings on one of the files it calls out shows:
strings
/var/tmp/OFED/lib/modules/2.6.23.1-42.7.cell/updates/kernel/drivers/infiniband/hw/mthca/ib_mthca.ko
| grep /var/tmp/OFED
/var/tmp/OFED_topdir/BUILD/ofa_kernel-1.3/drivers/infiniband/hw/mthca/mthca_cmd.c
/var/tmp/OFED_topdir/BUILD/ofa_kernel-1.3/drivers/infiniband/hw/mthca/mthca_mr.c
/var/tmp/OFED_topdir/BUILD/ofa_kernel-1.3/drivers/infiniband/hw/mthca/mthca_mcg.c
/var/tmp/OFED_topdir/BUILD/ofa_kernel-1.3/drivers/infiniband/hw/mthca/mthca_memfree.c
i.e. the grep is failing since the TOPDIR contains the $RPM_BUILD_ROOT
path (here, "/var/tmp/OFED"). Ensuring that /var/tmp/OFED is not in the
TOPDIR string would work around this problem, however I wouldn't want to
speculate which is the correct solution (fix check-buildroot?).
I opened bug 968 re: this problem. Anyone else seeing this issue?
Daryl
More information about the general
mailing list