[ofa-general] ipath_kernel.h:1115: error: implicit declaration of function 'writeq' on rhel5

Brian J. Murrell Brian.Murrell at Sun.COM
Wed Apr 9 07:07:46 PDT 2008


I'm trying to build OFED 1.3's kernel-ib for RHEL5 and getting:

  gcc -m32 -Wp,-MD,/cache/build/BUILD/ofa_kernel-1.3/drivers/infiniband/hw/ipath/.ipath_cq.o.d  -nostdinc -isystem /usr/lib/gcc/i386-redhat-linux/4.1.1/include -D__KERNEL__ \
-include include/linux/autoconf.h \
-include /cache/build/BUILD/ofa_kernel-1.3/include/linux/autoconf.h \
-I/cache/build/BUILD/ofa_kernel-1.3/kernel_addons/backport/2.6.18-EL5.1/include/ \
 \
 \
-I/cache/build/BUILD/ofa_kernel-1.3/include \
-I/cache/build/BUILD/ofa_kernel-1.3/drivers/infiniband/debug \
-I/usr/local/include/scst \
-I/cache/build/BUILD/ofa_kernel-1.3/drivers/infiniband/ulp/srpt \
-I/cache/build/BUILD/ofa_kernel-1.3/drivers/net/cxgb3 \
-Iinclude \
 \
  -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Wstrict-prototypes -Wundef -Werror-implicit-function-declaration -Os -pipe -msoft-float -fno-builtin-sprintf -fno-builtin-log2 -fno-builtin-puts  -mpreferred-stack-boundary=2  -march=i686 -mtune=generic -mtune=generic -mregparm=3 -ffreestanding -Iinclude/asm-i386/mach-generic -Iinclude/asm-i386/mach-default -fomit-frame-pointer -g  -fno-stack-protector -Wdeclaration-after-statement -Wno-pointer-sign -DIPATH_IDSTR='"QLogic kernel.org driver"' -DIPATH_KERN_TYPE=0  -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(ipath_cq)"  -D"KBUILD_MODNAME=KBUILD_STR(ib_ipath)" -c -o /cache/build/BUILD/ofa_kernel-1.3/drivers/infiniband/hw/ipath/.tmp_ipath_cq.o /cache/build/BUILD/ofa_kernel-1.3/drivers/infiniband/hw/ipath/ipath_cq.c
In file included from /cache/build/BUILD/ofa_kernel-1.3/drivers/infiniband/hw/ipath/ipath_verbs.h:45,
                 from /cache/build/BUILD/ofa_kernel-1.3/drivers/infiniband/hw/ipath/ipath_cq.c:37:
/cache/build/BUILD/ofa_kernel-1.3/drivers/infiniband/hw/ipath/ipath_kernel.h: In function 'ipath_write_ureg':
/cache/build/BUILD/ofa_kernel-1.3/drivers/infiniband/hw/ipath/ipath_kernel.h:1115: error: implicit declaration of function 'writeq'
/cache/build/BUILD/ofa_kernel-1.3/drivers/infiniband/hw/ipath/ipath_kernel.h: In function 'ipath_read_kreg64':
/cache/build/BUILD/ofa_kernel-1.3/drivers/infiniband/hw/ipath/ipath_kernel.h:1132: error: implicit declaration of function 'readq'
make[4]: *** [/cache/build/BUILD/ofa_kernel-1.3/drivers/infiniband/hw/ipath/ipath_cq.o] Error 1
make[3]: *** [/cache/build/BUILD/ofa_kernel-1.3/drivers/infiniband/hw/ipath] Error 2
make[2]: *** [/cache/build/BUILD/ofa_kernel-1.3/drivers/infiniband] Error 2
make[1]: *** [_module_/cache/build/BUILD/ofa_kernel-1.3] Error 2

The "make kernel" starts out with:

+ make kernel
Building kernel modules
Kernel version: 2.6.18-53.1.14.el5_lustre.1.6.4.55.20080409120349smp
Modules directory: //lib/modules/2.6.18-53.1.14.el5_lustre.1.6.4.55.20080409120349smp
Kernel sources: /cache/build/BUILD/lustre-kernel-2.6.18/lustre/linux
env CWD=/cache/build/BUILD/ofa_kernel-1.3 BACKPORT_INCLUDES=-I/cache/build/BUILD/ofa_kernel-1.3/kernel_addons/backport/2.6.18-EL5.1/include/ \
		make -C /cache/build/BUILD/lustre-kernel-2.6.18/lustre/linux SUBDIRS="/cache/build/BUILD/ofa_kernel-1.3" \
		V=1  \
		CONFIG_MEMTRACK= \
		CONFIG_DEBUG_INFO=y \
		CONFIG_INFINIBAND=m \

So it seems to be correctly identifying the kernel version
"2.6.18-53.1.14.el5" as RHEL5 kernel as it does set
BACKPORT_INCLUDES=-I/cache/build/BUILD/ofa_kernel-1.3/kernel_addons/backport/2.6.18-EL5.1/include/

Any ideas why there is no readq/writeq being found?

Funny enough this same build on x86_64 is successful.

b.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://lists.openfabrics.org/pipermail/general/attachments/20080409/4e8ffc0b/attachment.sig>


More information about the general mailing list