Hello!
Newbie with IB here - I'm trying to install OFED on RHEL based systems and it's not quite working out. I've tried it on RHEL 6.4, 6.2 as well as a proprietary kernel based on RHEL 6.4 (compiling for this kernel is my ultimate goal). I get similar errors on all kernels. It builds most of the RPMs but then fails with:
Failed to build compat-rdma RPM
See /tmp/OFED.1401.logs/compat-rdma.rpmbuild.log
This log doesn't give me anything useful, pasted below. When I run install.pl I'm choosing:
2) Install OFED
1) Basic (OFED modules and basic user level libraries)
The log below is for RHEL 6.2 kernel:
[root@localhost OFED-3.5-2]# uname -r
2.6.32-431.3.1.el6.x86_64
[root@localhost OFED-3.5-2]# tail -n 40 /tmp/OFED.5115.logs/compat-rdma.rpmbuild.log
/var/tmp/OFED_topdir/BUILD/compat-rdma-3.5/include/linux/compat-2.6.34.h:180: error: redefinition of 'device_lock'
include/linux/device.h:475: note: previous definition of 'device_lock' was here
/var/tmp/OFED_topdir/BUILD/compat-rdma-3.5/include/linux/compat-2.6.34.h:189: error: redefinition of 'device_trylock'
include/linux/device.h:480: note: previous definition of 'device_trylock' was here
/var/tmp/OFED_topdir/BUILD/compat-rdma-3.5/include/linux/compat-2.6.34.h:198: error: redefinition of 'device_unlock'
include/linux/device.h:485: note: previous definition of 'device_unlock' was here
In file included from /var/tmp/OFED_topdir/BUILD/compat-rdma-3.5/include/linux/compat-2.6.h:57,
from <command-line>:0:
/var/tmp/OFED_topdir/BUILD/compat-rdma-3.5/include/linux/compat-2.6.36.h:181: error: redeclaration of enumerator 'WORK_BUSY_PENDING'
include/linux/workqueue.h:27: note: previous definition of 'WORK_BUSY_PENDING' was here
/var/tmp/OFED_topdir/BUILD/compat-rdma-3.5/include/linux/compat-2.6.36.h:182: error: redeclaration of enumerator 'WORK_BUSY_RUNNING'
include/linux/workqueue.h:28: note: previous definition of 'WORK_BUSY_RUNNING' was here
In file included from /var/tmp/OFED_topdir/BUILD/compat-rdma-3.5/include/linux/compat-2.6.h:58,
from <command-line>:0:
/var/tmp/OFED_topdir/BUILD/compat-rdma-3.5/include/linux/compat-2.6.37.h:177: error: redefinition of 'skb_has_frag_list'
include/linux/skbuff.h:1997: note: previous definition of 'skb_has_frag_list' was here
In file included from /var/tmp/OFED_topdir/BUILD/compat-rdma-3.5/include/linux/compat-2.6.h:59,
from <command-line>:0:
/var/tmp/OFED_topdir/BUILD/compat-rdma-3.5/include/linux/compat-2.6.38.h:123: error: redefinition of 'is_unicast_ether_addr'
include/linux/etherdevice.h:128: note: previous definition of 'is_unicast_ether_addr' was here
In file included from /var/tmp/OFED_topdir/BUILD/compat-rdma-3.5/include/linux/compat-2.6.h:60,
from <command-line>:0:
/var/tmp/OFED_topdir/BUILD/compat-rdma-3.5/include/linux/compat-2.6.39.h:20: error: conflicting types for 'netif_is_bond_slave'
include/linux/netdevice.h:1953: note: previous definition of 'netif_is_bond_slave' was here
In file included from /var/tmp/OFED_topdir/BUILD/compat-rdma-3.5/include/linux/compat-2.6.h:64,
from <command-line>:0:
/var/tmp/OFED_topdir/BUILD/compat-rdma-3.5/include/linux/compat-3.3.h:42: error: conflicting types for 'netdev_features_t'
include/linux/netdevice.h:854: note: previous declaration of 'netdev_features_t' was here
make[3]: *** [/var/tmp/OFED_topdir/BUILD/compat-rdma-3.5/compat/main.o] Error 1
make[2]: *** [/var/tmp/OFED_topdir/BUILD/compat-rdma-3.5/compat] Error 2
make[1]: *** [_module_/var/tmp/OFED_topdir/BUILD/compat-rdma-3.5] Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.32-431.3.1.el6.x86_64'
make: *** [kernel] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.ScRqWn (%build)
RPM build errors:
user rupertd does not exist - using root
user rupertd does not exist - using root
Bad exit status from /var/tmp/rpm-tmp.ScRqWn (%build)
Thanks for any help!
Pablo