[openfabrics-ewg] OFED1.1-rc7 build failure on 2.6.9-prep (RH4 U3 hand built) system

Or Gerlitz ogerlitz at voltaire.com
Thu Oct 19 08:30:19 PDT 2006


Vlad,

I am trying to build OFED1.1-rc7 on a system where i have built the RH4 U3
kernel manually from its source rpm (that prepared kernel-2.6.9-34.EL.src.rpm
for being built and then did make, make modules_install, make install and reboot)
and get the errors below.

Do you have any idea what i am doing wrong? If i don't build/install/boot
in this kernel but rather only do the initial setting of the kernel sources
(ie make modules_prepare etc), OFED gets built fine.

The configure line i was using is:

./configure --with-mthca-mod --with-core-mod --with-ipoib-mod --with-ipoib_debug-mod

I have created the directory OFED-1.1-rc7/SOURCES/2.6.9 by hand and opened there the tgz file.

Or.

# uname -a
Linux excell01.voltaire.com 2.6.9-prep #1 SMP Thu Oct 19 18:02:31 IST 2006 x86_64 x86_64 x86_64 GNU/Linux

# ls -l /lib/modules/2.6.9-prep/
total 592
lrwxrwxrwx  1 root root     46 Oct 19 18:10 build -> /usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9
drwxr-xr-x  2 root root   4096 Oct 18 16:17 extra
drwxr-xr-x  9 root root   4096 Oct 19 18:10 kernel
-rw-r--r--  1 root root 113700 Oct 19 18:10 modules.alias
-rw-r--r--  1 root root     69 Oct 19 18:10 modules.ccwmap
-rw-r--r--  1 root root 112864 Oct 19 18:10 modules.dep
-rw-r--r--  1 root root     73 Oct 19 18:10 modules.ieee1394map
-rw-r--r--  1 root root    357 Oct 19 18:10 modules.inputmap
-rw-r--r--  1 root root    235 Oct 19 18:10 modules.isapnpmap
-rw-r--r--  1 root root 104476 Oct 19 18:10 modules.pcimap
-rw-r--r--  1 root root  62764 Oct 19 18:10 modules.symbols
-rw-r--r--  1 root root 155849 Oct 19 18:10 modules.usbmap
lrwxrwxrwx  1 root root     46 Oct 19 18:10 source -> /usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9


# make kernel

Building kernel modules
Kernel version: 2.6.9-prep
Modules directory: //lib/modules/2.6.9-prep
Kernel sources: /lib/modules/2.6.9-prep/build
env EXTRA_CFLAGS=" -I/home/ogerlitz/OFED-1.1-rc7/SOURCES/2.6.9/openib-1.1/include -I/home/ogerlitz/OFED-1.1-rc7/SOURCES/2.6.9/openib-1.1/drivers/infiniband/include \
	-I/home/ogerlitz/OFED-1.1-rc7/SOURCES/2.6.9/openib-1.1/drivers/infiniband/ulp/ipoib \
	-I/home/ogerlitz/OFED-1.1-rc7/SOURCES/2.6.9/openib-1.1/drivers/infiniband/debug" \
    	make -C /lib/modules/2.6.9-prep/build SUBDIRS="/home/ogerlitz/OFED-1.1-rc7/SOURCES/2.6.9/openib-1.1/drivers/infiniband" KERNELRELEASE=2.6.9-prep \
	EXTRAVERSION=-prep V=1  \
	CONFIG_INFINIBAND=m \
	CONFIG_INFINIBAND_IPOIB=m \
	CONFIG_INFINIBAND_SDP= \
	CONFIG_INFINIBAND_SRP= \
	CONFIG_INFINIBAND_USER_MAD= \
	CONFIG_INFINIBAND_USER_ACCESS= \
	CONFIG_INFINIBAND_ADDR_TRANS= \
	CONFIG_INFINIBAND_MTHCA=m \
	CONFIG_INFINIBAND_IPOIB_DEBUG=y \
	CONFIG_INFINIBAND_ISER= \
	CONFIG_INFINIBAND_EHCA= \
	CONFIG_INFINIBAND_RDS= \
	CONFIG_INFINIBAND_RDS_DEBUG= \
	CONFIG_INFINIBAND_IPOIB_DEBUG_DATA= \
	CONFIG_INFINIBAND_SDP_SEND_ZCOPY= \
	CONFIG_INFINIBAND_SDP_RECV_ZCOPY= \
	CONFIG_INFINIBAND_SDP_DEBUG= \
	CONFIG_INFINIBAND_SDP_DEBUG_DATA= \
	CONFIG_INFINIBAND_IPATH= \
	CONFIG_INFINIBAND_MTHCA_DEBUG=y \
   		CONFIG_INFINIBAND_MADEYE= \
	LINUXINCLUDE='-I/home/ogerlitz/OFED-1.1-rc7/SOURCES/2.6.9/openib-1.1/include \
	-I/home/ogerlitz/OFED-1.1-rc7/SOURCES/2.6.9/openib-1.1/drivers/infiniband/include \
	-Iinclude \
	$(if $(KBUILD_SRC),-Iinclude2 -I$(srctree)/include) \
	-include include/linux/autoconf.h \
	-include /home/ogerlitz/OFED-1.1-rc7/SOURCES/2.6.9/openib-1.1/include/linux/autoconf.h \
	' \
	modules
make[1]: Entering directory `/usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9'
mkdir -p /home/ogerlitz/OFED-1.1-rc7/SOURCES/2.6.9/openib-1.1/drivers/infiniband/.tmp_versions
make -f scripts/Makefile.build obj=/home/ogerlitz/OFED-1.1-rc7/SOURCES/2.6.9/openib-1.1/drivers/infiniband
make -f scripts/Makefile.build obj=/home/ogerlitz/OFED-1.1-rc7/SOURCES/2.6.9/openib-1.1/drivers/infiniband/core
  gcc -Wp,-MD,/home/ogerlitz/OFED-1.1-rc7/SOURCES/2.6.9/openib-1.1/drivers/infiniband/core/.cm.o.d -nostdinc -iwithprefix include -D__KERNEL__ -I/home/ogerlitz/OFED-1.1-rc7/SOURCES/2.6.9/openib-1.1/include  -I/home/ogerlitz/OFED-1.1-rc7/SOURCES/2.6.9/openib-1.1/drivers/infiniband/include  -Iinclude    -include include/linux/autoconf.h  -include /home/ogerlitz/OFED-1.1-rc7/SOURCES/2.6.9/openib-1.1/include/linux/autoconf.h   -Wall -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Os -fomit-frame-pointer -g -Wdeclaration-after-statement  -mno-red-zone -mcmodel=kernel -pipe -fno-reorder-blocks	 -Wno-sign-compare -funit-at-a-time  -I/home/ogerlitz/OFED-1.1-rc7/SOURCES/2.6.9/openib-1.1/include -I/home/ogerlitz/OFED-1.1-rc7/SOURCES/2.6.9/openib-1.1/drivers/infiniband/include  -I/home/ogerlitz/OFED-1.1-rc7/SOURCES/2.6.9/openib-1.1/drivers/infiniband/ulp/ipoib  -I/home/ogerlitz/OFED-1.1-rc7/SOURCES/2.6.9/openib-1.1/drivers/infiniband/debug -D__nocast=  -DMODULE -DKBUILD_BASENAME=cm -DKBUILD_MODNAME=ib_cm -c -o /home/ogerlitz/OFED-1.1-rc7/SOURCES/2.6.9/openib-1.1/drivers/infiniband/core/.tmp_cm.o /home/ogerlitz/OFED-1.1-rc7/SOURCES/2.6.9/openib-1.1/drivers/infiniband/core/cm.c
In file included from include/linux/slab.h:15,
                 from /home/ogerlitz/OFED-1.1-rc7/SOURCES/2.6.9/openib-1.1/include/linux/slab.h:4,
                 from include/linux/percpu.h:4,
                 from include/linux/sched.h:31,
                 from /home/ogerlitz/OFED-1.1-rc7/SOURCES/2.6.9/openib-1.1/include/linux/sched.h:4,
                 from include/linux/module.h:10,
                 from include/linux/device.h:20,
                 from /home/ogerlitz/OFED-1.1-rc7/SOURCES/2.6.9/openib-1.1/include/linux/device.h:4,
                 from include/linux/dma-mapping.h:4,
                 from /home/ogerlitz/OFED-1.1-rc7/SOURCES/2.6.9/openib-1.1/drivers/infiniband/core/cm.c:39:
include/linux/gfp.h:134: error: conflicting types for 'gfp_t'
/home/ogerlitz/OFED-1.1-rc7/SOURCES/2.6.9/openib-1.1/include/linux/types.h:7: error: previous declaration of 'gfp_t' was here
In file included from include/linux/percpu.h:4,
                 from include/linux/sched.h:31,
                 from /home/ogerlitz/OFED-1.1-rc7/SOURCES/2.6.9/openib-1.1/include/linux/sched.h:4,
                 from include/linux/module.h:10,
                 from include/linux/device.h:20,
                 from /home/ogerlitz/OFED-1.1-rc7/SOURCES/2.6.9/openib-1.1/include/linux/device.h:4,
                 from include/linux/dma-mapping.h:4,
                 from /home/ogerlitz/OFED-1.1-rc7/SOURCES/2.6.9/openib-1.1/drivers/infiniband/core/cm.c:39:
/home/ogerlitz/OFED-1.1-rc7/SOURCES/2.6.9/openib-1.1/include/linux/slab.h:8: warning: static declaration of 'kzalloc' follows non-static declaration
include/linux/slab.h:101: warning: previous declaration of 'kzalloc' was here
In file included from include/linux/module.h:10,
                 from include/linux/device.h:20,
                 from /home/ogerlitz/OFED-1.1-rc7/SOURCES/2.6.9/openib-1.1/include/linux/device.h:4,
                 from include/linux/dma-mapping.h:4,
                 from /home/ogerlitz/OFED-1.1-rc7/SOURCES/2.6.9/openib-1.1/drivers/infiniband/core/cm.c:39:
/home/ogerlitz/OFED-1.1-rc7/SOURCES/2.6.9/openib-1.1/include/linux/sched.h:8: warning: static declaration of 'wait_for_completion_timeout' follows non-static declaration
include/linux/completion.h:32: warning: previous declaration of 'wait_for_completion_timeout' was here
make[3]: *** [/home/ogerlitz/OFED-1.1-rc7/SOURCES/2.6.9/openib-1.1/drivers/infiniband/core/cm.o] Error 1
make[2]: *** [/home/ogerlitz/OFED-1.1-rc7/SOURCES/2.6.9/openib-1.1/drivers/infiniband/core] Error 2
make[1]: *** [_module_/home/ogerlitz/OFED-1.1-rc7/SOURCES/2.6.9/openib-1.1/drivers/infiniband] Error 2
make[1]: Leaving directory `/usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9'
make: *** [kernel] Error 2


More information about the ewg mailing list