[ewg] Build issues with OFED-3.2-rc1 on ppc64
Pavaman Subramaniyam
pavsubra at in.ibm.com
Mon Jun 11 05:25:19 PDT 2012
Hi Vladimir,
I have installed OFED-3.2-rc1.tgz on SLES11 SP2 machine and tried
./install.sh script with options 2 and 3.
The compat-rdma RPM build fails as follows:
Build compat-rdma RPM
Running rpmbuild --rebuild --define '_topdir /var/tmp//OFED_topdir'
--define
'_suse_os_install_post %{nil}' --nodeps --define '_dist .sles11sp2'
--define
'configure_options --with-core-mod --with-user_mad-mod
--with-user_access-mod
--with-addr_trans-mod --with-mthca-mod --with-mlx4-mod --with-mlx4_en-mod
--with-cxgb3-mod --with-cxgb4-mod --with-nes-mod --with-ipoib-mod
--with-srp-mod --with-srp-target-mod --with-rds-mod' --define
'build_kernel_ib
1' --define 'build_kernel_ib_devel 1' --define 'KVERSION
3.0.13-0.27-default'
--define 'K_SRC /lib/modules/3.0.13-0.27-default/build' --define '_release
3.0.13_0.27_default' --define 'network_dir /etc/sysconfig/network'
--define
'_prefix /usr' --define '__arch_install_post %{nil}'
/root/ofed/OFED-3.2-rc1/SRPMS/compat-rdma-3.2-OFED.3.2.rc1.src.rpm
Failed to build compat-rdma RPM
See /tmp/OFED.13846.logs/compat-rdma.rpmbuild.log
Upon seeing the log file, we come across that cxgb4/device.c is failing to
compile.
\
-I/var/tmp/OFED_topdir/BUILD/compat-rdma-3.2/include \
-I/var/tmp/OFED_topdir/BUILD/compat-rdma-3.2/drivers/infiniband/debug \
-I/usr/local/include/scst \
-I/var/tmp/OFED_topdir/BUILD/compat-rdma-3.2/drivers/infiniband/ulp/srpt \
\
\
-I/usr/src/linux-3.0.13-0.27/arch/ppc64/include \
-Iarch/ppc64/include/generated -Iinclude \
-Iinclude2 -I/usr/src/linux-3.0.13-0.27/include \
-I/usr/src/linux-3.0.13-0.27/arch/ppc64/include \
-I/var/tmp/OFED_topdir/BUILD/compat-rdma-3.2/drivers/infiniband/hw/cxgb4
-D__KERNEL__ -I/usr/src/linux-3.0.13-0.27/arch/ppc64 -Iarch/ppc64 -Wall
-Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing
-fno-common
-Werror-implicit-function-declaration -Wno-format-security
-fno-delete-null-pointer-checks -O2 -msoft-float -pipe
-I/usr/src/linux-3.0.13-0.27/arch/ppc64 -Iarch/ppc64 -mminimal-toc
-mtraceback=none -mcall-aixdesc -mcpu=power4 -mtune=cell -mno-altivec
-mno-spe
-mspe=no -funit-at-a-time -mno-string -Wa,-maltivec -fno-stack-protector
-fomit-frame-pointer -g -fno-inline-functions-called-once
-Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow
-I/var/tmp/OFED_topdir/BUILD/compat-rdma-3.2/drivers/net/ethernet/chelsio/cxgb4
-DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(device)"
-D"KBUILD_MODNAME=KBUILD_STR(iw_cxgb4)" -c -o
/var/tmp/OFED_topdir/BUILD/compat-rdma-3.2/drivers/infiniband/hw/cxgb4/.tmp_device.o
/var/tmp/OFED_topdir/BUILD/compat-rdma-3.2/drivers/infiniband/hw/cxgb4/device.c
/var/tmp/OFED_topdir/BUILD/compat-rdma-3.2/drivers/infiniband/hw/cxgb4/device.c:
In function âqp_releaseâ:
/var/tmp/OFED_topdir/BUILD/compat-rdma-3.2/drivers/infiniband/hw/cxgb4/device.c:124:
error: implicit declaration of function âvfreeâ
/var/tmp/OFED_topdir/BUILD/compat-rdma-3.2/drivers/infiniband/hw/cxgb4/device.c:
In function âqp_openâ:
/var/tmp/OFED_topdir/BUILD/compat-rdma-3.2/drivers/infiniband/hw/cxgb4/device.c:148:
error: implicit declaration of function âvmallocâ
/var/tmp/OFED_topdir/BUILD/compat-rdma-3.2/drivers/infiniband/hw/cxgb4/device.c:148:
warning: assignment makes pointer from integer without a cast
make[6]: ***
[/var/tmp/OFED_topdir/BUILD/compat-rdma-3.2/drivers/infiniband/hw/cxgb4/device.o]
Error 1
make[5]: ***
[/var/tmp/OFED_topdir/BUILD/compat-rdma-3.2/drivers/infiniband/hw/cxgb4]
Error
2
make[4]: ***
[/var/tmp/OFED_topdir/BUILD/compat-rdma-3.2/drivers/infiniband]
Error 2
make[3]: *** [_module_/var/tmp/OFED_topdir/BUILD/compat-rdma-3.2] Error 2
make[2]: *** [sub-make] Error 2
make[1]: *** [all] Error 2
make[1]: Leaving directory `/usr/src/linux-3.0.13-0.27-obj/ppc64/default'
make: *** [kernel] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.57940 (%build)
Reported the same issue in opefabrics bugzilla 2360.
As a work around we need to ignore building and installing libcxgb4 and
cxgb4 modules by selecting 4) Customize option of ./install.pl script and
not selecting these modules.
Thanks and Regards,
**********************************************************
IBM India, Systems and Technology Labs,
ISL -Linux On Power,
"D2" Block , Ground FLoor,
Embassy Manyata Tech Park,
Outer ring road, Nagawara Villages,
Bengalooru , Karnataka India 560045
Landline No: (080) 40255125
Mobile No: 9901333220
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openfabrics.org/pipermail/ewg/attachments/20120611/4d0ef96e/attachment.html>
More information about the ewg
mailing list