<font size=2 face="sans-serif">Hi Vladimir,</font>
<br>
<br><font size=2 face="sans-serif">I have installed OFED-3.5-20120716-0723.tgz
on RHEL 6.2 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">Building kernel modules</font>
<br><font size=2 face="sans-serif">Kernel version: 2.6.32-220.el6.ppc64</font>
<br><font size=2 face="sans-serif">Modules directory: //lib/modules/2.6.32-220.el6.ppc64/updates</font>
<br><font size=2 face="sans-serif">Kernel sources: /lib/modules/2.6.32-220.el6.ppc64/build</font>
<br><font size=2 face="sans-serif">env CWD=/var/tmp/OFED_topdir/BUILD/compat-rdma-3.5
BACKPORT_INCLUDES= \</font>
<br><font size=2 face="sans-serif">
make -C /lib/modules/2.6.32-220.el6.ppc64/build SUBDIRS="/var/tmp/OFED_topdir/BUILD/compat-rdma-3.5"
\</font>
<br><font size=2 face="sans-serif">
V=1 \</font>
<br><font size=2 face="sans-serif">
CONFIG_MEMTRACK= \</font>
<br><font size=2 face="sans-serif">
CONFIG_DEBUG_INFO=y \</font>
<br><font size=2 face="sans-serif">
CONFIG_INFINIBAND=m \</font>
<br><font size=2 face="sans-serif">
CONFIG_INFINIBAND_IPOIB=m \</font>
<br><font size=2 face="sans-serif">
CONFIG_INFINIBAND_IPOIB_CM=y \</font>
<br><font size=2 face="sans-serif">
CONFIG_INFINIBAND_SDP= \</font>
<br><font size=2 face="sans-serif">
CONFIG_INFINIBAND_SRP=m \</font>
<br><font size=2 face="sans-serif">
CONFIG_INFINIBAND_SRPT=m \</font>
<br><font size=2 face="sans-serif">
CONFIG_INFINIBAND_USER_MAD=m \</font>
<br><font size=2 face="sans-serif">
CONFIG_INFINIBAND_USER_ACCESS=m \</font>
<br><font size=2 face="sans-serif">
CONFIG_INFINIBAND_USER_MEM=y \</font>
<br><font size=2 face="sans-serif">
CONFIG_INFINIBAND_ADDR_TRANS=y \</font>
<br><font size=2 face="sans-serif">
CONFIG_INFINIBAND_MTHCA=m \</font>
<br><font size=2 face="sans-serif">
CONFIG_INFINIBAND_IPOIB_DEBUG=y \</font>
<br><font size=2 face="sans-serif">
CONFIG_INFINIBAND_ISER= \</font>
<br><font size=2 face="sans-serif">
CONFIG_SCSI_ISCSI_ATTRS= \</font>
<br><font size=2 face="sans-serif">
CONFIG_ISCSI_TCP= \</font>
<br><font size=2 face="sans-serif">
CONFIG_INFINIBAND_EHCA=m \</font>
<br><font size=2 face="sans-serif">
CONFIG_INFINIBAND_EHCA_SCALING=y \</font>
<br><font size=2 face="sans-serif">
CONFIG_RDS=m \</font>
<br><font size=2 face="sans-serif">
CONFIG_RDS_RDMA=m \</font>
<br><font size=2 face="sans-serif">
CONFIG_RDS_TCP=m \</font>
<br><font size=2 face="sans-serif">
CONFIG_RDS_DEBUG= \</font>
<br><font size=2 face="sans-serif">
CONFIG_INFINIBAND_IPOIB_DEBUG_DATA= \</font>
<br><font size=2 face="sans-serif">
CONFIG_INFINIBAND_SDP_SEND_ZCOPY= \</font>
<br><font size=2 face="sans-serif">
CONFIG_INFINIBAND_SDP_RECV_ZCOPY= \</font>
<br><font size=2 face="sans-serif">
CONFIG_INFINIBAND_SDP_DEBUG= \</font>
<br><font size=2 face="sans-serif">
CONFIG_INFINIBAND_SDP_DEBUG_DATA= \</font>
<br><font size=2 face="sans-serif">
CONFIG_INFINIBAND_IPATH= \</font>
<br><font size=2 face="sans-serif">
CONFIG_INFINIBAND_QIB= \</font>
<br><font size=2 face="sans-serif">
CONFIG_INFINIBAND_MTHCA_DEBUG=y \</font>
<br><font size=2 face="sans-serif">
CONFIG_INFINIBAND_MADEYE= \</font>
<br><font size=2 face="sans-serif">
CONFIG_INFINIBAND_QLGC_VNIC= \</font>
<br><font size=2 face="sans-serif">
CONFIG_INFINIBAND_QLGC_VNIC_DEBUG= \</font>
<br><font size=2 face="sans-serif">
CONFIG_INFINIBAND_QLGC_VNIC_STATS= \</font>
<br><font size=2 face="sans-serif">
CONFIG_CHELSIO_T3=m \</font>
<br><font size=2 face="sans-serif">
CONFIG_INFINIBAND_CXGB3=m \</font>
<br><font size=2 face="sans-serif">
CONFIG_INFINIBAND_CXGB3_DEBUG= \</font>
<br><font size=2 face="sans-serif">
CONFIG_CHELSIO_T4=m \</font>
<br><font size=2 face="sans-serif">
CONFIG_INFINIBAND_CXGB4=m \</font>
<br><font size=2 face="sans-serif">
CONFIG_INFINIBAND_NES=m \</font>
<br><font size=2 face="sans-serif">
CONFIG_INFINIBAND_NES_DEBUG= \</font>
<br><font size=2 face="sans-serif">
CONFIG_MLX4_CORE=m \</font>
<br><font size=2 face="sans-serif">
CONFIG_MLX4_EN=m \</font>
<br><font size=2 face="sans-serif">
CONFIG_MLX4_INFINIBAND=m \</font>
<br><font size=2 face="sans-serif">
CONFIG_MLX4_ETHERNET= \</font>
<br><font size=2 face="sans-serif">
CONFIG_MLX4_DEBUG=y \</font>
<br><font size=2 face="sans-serif">
CONFIG_INFINIBAND_AMSO1100= \</font>
<br><font size=2 face="sans-serif">
CONFIG_SUNRPC_XPRT_RDMA= \</font>
<br><font size=2 face="sans-serif">
CONFIG_NFSD_RDMA= \</font>
<br><font size=2 face="sans-serif">
LINUXINCLUDE=' \</font>
<br><font size=2 face="sans-serif">
-D__OFED_BUILD__ \</font>
<br><font size=2 face="sans-serif">
-DCOMPAT_BASE="\"compat-2012-07-02-6-gaf528a2\""
-DCOMPAT_BASE_TREE="\"unknown\"" -DCOMPAT_BASE_TREE_VERSION="\"rc3\""
-DCOMPAT_PROJECT="\"Compat-rdma\"" -DCOMPAT_VERSION="\"d418e0e-n\""
\</font>
<br><font size=2 face="sans-serif">
-include /lib/modules/2.6.32-220.el6.ppc64/build/include/linux/autoconf.h
\</font>
<br><font size=2 face="sans-serif">
-include /var/tmp/OFED_topdir/BUILD/compat-rdma-3.5/include/linux/autoconf.h
\</font>
<br><font size=2 face="sans-serif">
\</font>
<br><font size=2 face="sans-serif">
-include /var/tmp/OFED_topdir/BUILD/compat-rdma-3.5/include/linux/compat-2.6.h
\</font>
<br><font size=2 face="sans-serif">
\</font>
<br><font size=2 face="sans-serif">
\</font>
<br><font size=2 face="sans-serif">
\</font>
<br><font size=2 face="sans-serif">
\</font>
<br><font size=2 face="sans-serif">
-I/var/tmp/OFED_topdir/BUILD/compat-rdma-3.5/include \</font>
<br><font size=2 face="sans-serif">
-I/var/tmp/OFED_topdir/BUILD/compat-rdma-3.5/drivers/infiniband/debug
\</font>
<br><font size=2 face="sans-serif">
-I/usr/local/include/scst \</font>
<br><font size=2 face="sans-serif">
-I/var/tmp/OFED_topdir/BUILD/compat-rdma-3.5/drivers/infiniband/ulp/srpt
\</font>
<br><font size=2 face="sans-serif">
$(if $(CONFIG_XEN),-D__XEN_INTERFACE_VERSION__=$(CONFIG_XEN_INTERFACE_VERSION))
\</font>
<br><font size=2 face="sans-serif">
$(if $(CONFIG_XEN),-I$(srctree)/arch/x86/include/mach-xen)
\</font>
<br><font size=2 face="sans-serif">
-I$(srctree)/arch/$(SRCARCH)/include \</font>
<br><font size=2 face="sans-serif">
-Iarch/$(SRCARCH)/include/generated -Iinclude \</font>
<br><font size=2 face="sans-serif">
$(if $(KBUILD_SRC),-Iinclude2 -I$(srctree)/include) \</font>
<br><font size=2 face="sans-serif">
-I$(srctree)/arch/$(SRCARCH)/include \</font>
<br><font size=2 face="sans-serif">
' \</font>
<br><font size=2 face="sans-serif">
modules</font>
<br><font size=2 face="sans-serif">make[1]: Entering directory `/usr/src/kernels/2.6.32-220.el6.ppc64'</font>
<br><font size=2 face="sans-serif">Makefile:558: /usr/src/kernels/2.6.32-220.el6.ppc64/arch/ppc64/Makefile:
No such file or directory</font>
<br><font size=2 face="sans-serif">make[1]: *** No rule to make target
`/usr/src/kernels/2.6.32-220.el6.ppc64/arch/ppc64/Makefile'. Stop.</font>
<br><font size=2 face="sans-serif">make[1]: Leaving directory `/usr/src/kernels/2.6.32-220.el6.ppc64'</font>
<br><font size=2 face="sans-serif">make: *** [kernel] Error 2</font>
<br><font size=2 face="sans-serif">error: Bad exit status from /var/tmp/rpm-tmp.Hi7krm
(%build)</font>
<br>
<br>
<br><font size=2 face="sans-serif">RPM build errors:</font>
<br><font size=2 face="sans-serif"> Bad exit status from /var/tmp/rpm-tmp.Hi7krm
(%build)</font>
<br>
<br><font size=2 face="sans-serif">=====================================================================================</font>
<br>
<br><font size=2 face="sans-serif">There is /usr/src/kernels/2.6.32-220.el6.ppc64/arch/powerpc
directory and not /usr/src/kernels/2.6.32-220.el6.ppc64/arch/ppc64
as being looked for building compat-rdma.</font>
<br><font size=2 face="sans-serif">Similar issue was reported for building
OFED-3.2 on SLES11SP2 GMC for ppc64.</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>