OpenVZ Forum


Home » Mailing lists » Users » openvz kernel 2.6.32 OFED Compile error
openvz kernel 2.6.32 OFED Compile error [message #44327] Wed, 30 November 2011 04:55
ibdan is currently offline  ibdan
Messages: 2
Registered: November 2011
Junior Member
From: *parallels.com
Hi All,

I'm trying to install the latest MLNX OFED infiniband drivers for
centos 6. Where I'm having problems is I'm running OpenVZ kernel
2.6.32-042stab039.11. This means that I'm installing from src with the
mlnx_add_kernel_support.sh script which worked great for openvz2.6.18
(el5 based) kernel but gives a compile error for 2.6.32 (el6) based.
Just to make sure this wasn't something specific to mlnx the driver I
downloaded the lasted OFED 1.5.3.2 src from OFA website and when
running the install.pl the compile is breaking at the same place.

Note without the openvz kernel the driver software installs without
error

Any help on this would be great as I don't have the programming skills
to troubleshoot the code, see error below:

-I/usr/src/kernels/2.6.32-042stab039.11/arch/x86/include \
-D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-
strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-
format-security -fno-delete-null-pointer-checks -O2 -m64 -
mtune=generic -mno-red-zone -mcmodel=kernel -funit-at-a-time -
maccumulate-outgoing-args -fstack-protector -DCONFIG_AS_CFI=1 -
DCONFIG_AS_CFI_SIGNAL_FRAME=1 -pipe -Wno-sign-compare -fno-
asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -fno-
omit-frame-pointer -fno-optimize-sibling-calls -g -pg -Wdeclaration-
after-statement -Wno-pointer-sign -DMODULE -D"KBUILD_STR(s)=#s" -
D"KBUILD_BASENAME=KBUILD_STR(uverbs_main)" -
D"KBUILD_MODNAME=KBUILD_STR(ib_uverbs)" -D"DEBUG_HASH=59" -
D"DEBUG_HASH2=16" -c -
o /tmp/mlnx_iso.21773/OFED_topdir/BUILD/ofa_kernel-
1.5.3/drivers/infiniband/core/.tmp_uverbs_main.o /tmp/mlnx_iso.21773/OF
ED_topdir/BUILD/ofa_kernel-1.5.3/drivers/infiniband/core/uve rbs_main.c
/tmp/mlnx_iso.21773/OFED_topdir/BUILD/ofa_kernel-
1.5.3/drivers/infiniband/core/uverbs_main.c: In
function 'ib_uverbs_alloc_event_file':
/tmp/mlnx_iso.21773/OFED_topdir/BUILD/ofa_kernel-
1.5.3/drivers/infiniband/core/uverbs_main.c:561: warning: passing
argument 1 of 'alloc_file' from incompatible pointer type
/tmp/mlnx_iso.21773/OFED_topdir/BUILD/ofa_kernel-
1.5.3/drivers/infiniband/core/uverbs_main.c:561: warning: passing
argument 2 of 'alloc_file' makes integer from pointer without a cast
/tmp/mlnx_iso.21773/OFED_topdir/BUILD/ofa_kernel-
1.5.3/drivers/infiniband/core/uverbs_main.c:561: warning: passing
argument 3 of 'alloc_file' makes pointer from integer without a cast
/tmp/mlnx_iso.21773/OFED_topdir/BUILD/ofa_kernel-
1.5.3/drivers/infiniband/core/uverbs_main.c:561: error: too many
arguments to function 'alloc_file'
make[4]: *** [/tmp/mlnx_iso.21773/OFED_topdir/BUILD/ofa_kernel-
1.5.3/drivers/infiniband/core/uverbs_main.o] Error 1
make[3]: *** [/tmp/mlnx_iso.21773/OFED_topdir/BUILD/ofa_kernel-
1.5.3/drivers/infiniband/core] Error 2
make[2]: *** [/tmp/mlnx_iso.21773/OFED_topdir/BUILD/ofa_kernel-
1.5.3/drivers/infiniband] Error 2
make[1]: *** [_module_/tmp/mlnx_iso.21773/OFED_topdir/BUILD/ofa_kernel-
1.5.3] Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.32-042stab039.11'
make: *** [kernel] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.wc64zh (%build)


RPM build errors:
user vlad does not exist - using root
group libuuid does not exist - using root
user vlad does not exist - using root
group libuuid does not exist - using root
line 117: prereq is deprecated: PreReq: coreutils
line 118: prereq is deprecated: PreReq: kernel
line 119: prereq is deprecated: Prereq: pciutils
line 120: prereq is deprecated: Prereq: grep
line 121: prereq is deprecated: Prereq: perl
line 122: prereq is deprecated: Prereq: procps
line 123: prereq is deprecated: Prereq: module-init-tools
line 132: prereq is deprecated: PreReq: coreutils
line 133: prereq is deprecated: PreReq: kernel
line 134: prereq is deprecated: Prereq: pciutils
Bad exit status from /var/tmp/rpm-tmp.wc64zh (%build)

regards ibdan
Previous Topic: rhel6 ve on rhel5 host
Next Topic: openvz CT migration filesystem on share storage
Goto Forum:
  


Current Time: Sat Dec 15 15:50:42 GMT 2018