[Pkg-ofed-devel] ofa-kernel build fails

Nenad Kreculj nkreculj at neuraliq.com
Fri Oct 16 18:31:14 UTC 2009


Hi,

I'm trying to build sdp driver for debian.

My kernel is:
Linux debian 2.6.30-2-686-bigmem #1 SMP Sat Sep 26 02:30:18 UTC 2009 i686
GNU/Linux

I followed this link for instructions:
http://pkg-ofed.alioth.debian.org/howto/infiniband-howto-3.html

Since my kernel is 2.6.30, I used OFED 1.4:
ii  ofa-kernel-source                 1.4.2-2                  Source for
InfiniBand kernel drivers

"module-assistant prepare" followed by "module-assistant clean ofa-kernel"
works, but module-assistant build ofa-kernel fails (all patches were applied
without problems):

 -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs
-fno-strict-aliasing -fno-common -Werror-implicit-function-declaration
-fno-delete-null-pointer-checks -Os -m32 -msoft-float -mregparm=3
-freg-struct-return -mpreferred-stack-boundary=2 -march=i686 -mtune=generic
-Wa,-mtune=generic32 -ffreestanding -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-stack-protector -fomit-frame-pointer -g -Wdeclaration-after-statement
-Wno-pointer-sign -fno-strict-overflow  -DMODULE -D"KBUILD_STR(s)=#s"
-D"KBUILD_BASENAME=KBUILD_STR(cm)"  -D"KBUILD_MODNAME=KBUILD_STR(ib_cm)"  -c
-o /usr/src/modules/ofa-kernel/drivers/infiniband/core/.tmp_cm.o
/usr/src/modules/ofa-kernel/drivers/infiniband/core/cm.c
/usr/src/modules/ofa-kernel/drivers/infiniband/core/cm.c: In function
‘cm_add_one’:
/usr/src/modules/ofa-kernel/drivers/infiniband/core/cm.c:3741: error:
implicit declaration of function ‘device_create_drvdata’
/usr/src/modules/ofa-kernel/drivers/infiniband/core/cm.c:3743: warning:
assignment makes pointer from integer without a cast
make[6]: *** [/usr/src/modules/ofa-kernel/drivers/infiniband/core/cm.o]
Error 1
make[5]: *** [/usr/src/modules/ofa-kernel/drivers/infiniband/core] Error 2
make[4]: *** [/usr/src/modules/ofa-kernel/drivers/infiniband] Error 2
make[3]: *** [_module_/usr/src/modules/ofa-kernel] Error 2
make[3]: Leaving directory `/usr/src/linux-source-2.6.30'
make[2]: *** [kernel] Error 2
make[2]: Leaving directory `/usr/src/modules/ofa-kernel'
make[1]: *** [binary-modules] Error 2
make[1]: Leaving directory `/usr/src/modules/ofa-kernel'
make: *** [kdist_build] Error 2


On the same system, IB with IPoIB works just fine (two machines connected
back-to-back, tested with netperf).

Any suggestion how to fix the problem is most welcomed, or other approaches
to building sdp driver.

Thanks,

Nenad
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/pkg-ofed-devel/attachments/20091016/3b35c782/attachment.htm>


More information about the Pkg-ofed-devel mailing list