[ofa-general] OFED 1.2.5.4 build fails for kernel 2.6.23
Chuck Hartley
hartlch14 at gmail.com
Tue Dec 11 13:29:53 PST 2007
I tried building OFED 1.2.5.4 on a Fedora 7 system with kernel
2.6.23.1-21.fc7 and got a fatal compile error. Apparently the number of
arguments to kmem_cache_create() changed from 6 to 5 starting with kernel
version 2.6.23. Error output below:
gcc -Wp,-MD,/var/tmp/OFEDRPM/BUILD/ofa_kernel-
1.2.5.4/drivers/infiniband/core/.mad.o.d -nostdinc -isystem
/usr/lib/gcc/x86_64-redhat-linux/4.1.2/include -D__KERNEL__ \
\
-I/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2.5.4/include \
-I/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2.5.4/drivers/infiniband/include \
-Iinclude \
\
-include include/linux/autoconf.h \
-include /var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2.5.4/include/linux/autoconf.h\
-Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing
-fno-common -Werror-implicit-function-declaration -Os -mtune=generic -m64
-mno-red-zone -mcmodel=kernel -pipe -Wno-sign-compare
-fno-asynchronous-unwind-tables -funit-at-a-time -mno-sse -mno-mmx -mno-sse2
-mno-3dnow -maccumulate-outgoing-args -DCONFIG_AS_CFI=1
-DCONFIG_AS_CFI_SIGNAL_FRAME=1 -fstack-protector -fomit-frame-pointer -g
-fno-stack-protector -Wdeclaration-after-statement -Wno-pointer-sign
-DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(mad)"
-D"KBUILD_MODNAME=KBUILD_STR(ib_mad)" -c -o
/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2.5.4/drivers/infiniband/core/mad.o/var/tmp/OFEDRPM/BUILD/ofa_kernel-
1.2.5.4/drivers/infiniband/core/mad.c
/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2.5.4/drivers/infiniband/core/mad.c: In
function 'ib_mad_init_module':
/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2.5.4/drivers/infiniband/core/mad.c:2970:
error: too many arguments to function 'kmem_cache_create'
make[4]: *** [/var/tmp/OFEDRPM/BUILD/ofa_kernel-
1.2.5.4/drivers/infiniband/core/mad.o] Error 1
make[3]: *** [/var/tmp/OFEDRPM/BUILD/ofa_kernel-
1.2.5.4/drivers/infiniband/core] Error 2
make[2]: *** [/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2.5.4/drivers/infiniband]
Error 2
make[1]: *** [_module_/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2.5.4] Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.23.1-21.fc7-x86_64'
make: *** [kernel] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.12849 (%install)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openfabrics.org/pipermail/general/attachments/20071211/04179a90/attachment.html>
More information about the general
mailing list