OpenVZ Forum


Home » General » Support » ofa_kernel-1.5.3.2 compile error 2.6.32-042stab039.11 (ofa_kernel-1.5.3.2 compile error with 2.6.32-042stab039.11)
ofa_kernel-1.5.3.2 compile error 2.6.32-042stab039.11 [message #44326] Wed, 30 November 2011 03:09
ibdan is currently offline  ibdan
Messages: 2
Registered: November 2011
Junior Member
Hi,

I'm trying to figure out why I can't compile OFED infiniband drivers, specifically ofa_kernel-1.5.3.2 when running centos 6 with openvz kernel 2.6.32-042stab039.11 The OFED installs via kernel modules.

Please note this installs without error on centos 5 and 6 and also openvz kernel on centos 5

Any help on the below compile error or how it relates to the openvz kernel would be very helpful

-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 -Wframe-larger-than=2048 -fno-omit-frame-pointer -fno-optimize-sibling-calls -g -pg -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fno-dwarf2-cfi-asm -fconserve-stack  -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(uverbs_main)"  -D"KBUILD_MODNAME=KBUILD_STR(ib_uverbs)" -D"DEBUG_HASH=9" -D"DEBUG_HASH2=27" -c -o /var/tmp/OFED_topdir/BUILD/ofa_kernel-1.5.3.2/drivers/infiniband/core/.tmp_uverbs_main.o /var/tmp/OFED_topdir/BUILD/ofa_kernel-1.5.3.2/drivers/infiniband/core/uverbs_main.c
/var/tmp/OFED_topdir/BUILD/ofa_kernel-1.5.3.2/drivers/infiniband/core/uverbs_main.c: In function 'ib_uverbs_alloc_event_file':
/var/tmp/OFED_topdir/BUILD/ofa_kernel-1.5.3.2/drivers/infiniband/core/uverbs_main.c:561: warning: the address of 'uverbs_event_fops' will always evaluate as 'true'
/var/tmp/OFED_topdir/BUILD/ofa_kernel-1.5.3.2/drivers/infiniband/core/uverbs_main.c:561: warning: passing argument 1 of 'alloc_file' from incompatible pointer type
include/linux/file.h:22: note: expected 'struct path *' but argument is of type 'struct vfsmount *'
/var/tmp/OFED_topdir/BUILD/ofa_kernel-1.5.3.2/drivers/infiniband/core/uverbs_main.c:561: warning: passing argument 2 of 'alloc_file' makes integer from pointer without a cast
include/linux/file.h:22: note: expected 'fmode_t' but argument is of type 'struct dentry *'
/var/tmp/OFED_topdir/BUILD/ofa_kernel-1.5.3.2/drivers/infiniband/core/uverbs_main.c:561: warning: passing argument 3 of 'alloc_file' makes pointer from integer without a cast
include/linux/file.h:22: note: expected 'const struct file_operations *' but argument is of type 'unsigned int'
/var/tmp/OFED_topdir/BUILD/ofa_kernel-1.5.3.2/drivers/infiniband/core/uverbs_main.c:561: error: too many arguments to function 'alloc_file'
make[4]: *** [/var/tmp/OFED_topdir/BUILD/ofa_kernel-1.5.3.2/drivers/infiniband/core/uverbs_main.o] Error 1
make[3]: *** [/var/tmp/OFED_topdir/BUILD/ofa_kernel-1.5.3.2/drivers/infiniband/core] Error 2
make[2]: *** [/var/tmp/OFED_topdir/BUILD/ofa_kernel-1.5.3.2/drivers/infiniband] Error 2
make[1]: *** [_module_/var/tmp/OFED_topdir/BUILD/ofa_kernel-1.5.3.2] 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.nsJVGk (%build)


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

Regards, ibdan
 
Read Message
Previous Topic: using Varnish
Next Topic: backup error
Goto Forum:
  


Current Time: Mon Jul 15 14:19:45 GMT 2024

Total time taken to generate the page: 0.02374 seconds