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