[ofa-general] ofed kernel config.mk / BACKPORT_INCLUDES

Guy Coates gmpc at sanger.ac.uk
Mon Aug 10 08:35:04 PDT 2009


Hi Brian;

A fresh build of the ofa-kernel package gives the following in the build dir:


cat config.mk
BACKPORT_INCLUDES=-I${CWD}/kernel_addons/backport/2.6.22/include/

That is obviously wrong.


If I run the lustre configure, I get:


./configure --with-o2ib=/usr/src/modules/ofa-kernel
--with-linux=/scratch/linux-2.6.22.19

<snip>
checking whether to enable OpenIB gen2 support... no
configure: error: can't compile with OpenIB gen2 headers under
/usr/src/modules/ofa-kernel


config.log has the following set for LNET_INCLUDES:


EXTRA_LNET_INCLUDE='-I-I/kernel_addons/backport/2.6.22/include/
-I/usr/src/modules/ofa-kernel/include'


which results in:

configure:6885: cp conftest.c build && make -d modules  CC=gcc -f
/tmp/lustre-1.8.1/build/Makefile
LUSTRE_LINUX_CONFIG=/scratch/linux-2.6.22.19/.config
LINUXINCLUDE=-I-I/usr/src/modules/ker
nel_addons/backport/2.6.22/include/ -I/usr/src/modules/ofa-kernel/include
-I/scratch/linux-2.6.22.19/include -I/scratch/linux-2.6.22.19/include
-I/scratch/linux-2.6.22.19/include2 -include
include/linux/autoconf.h -o tmp_include_depends -o scripts -o
include/config/MARKER -C /scratch/linux-2.6.22.19
EXTRA_CFLAGS=-Werror-implicit-function-declaration -g -I/tmp/lustre-1.8.1/lne
t/include -I/tmp/lustre-1.8.1/lnet/include -I/tmp/lustre-1.8.1/lustre/include
-I/usr/src/modules/ofa-kernel/include  M=/tmp/lustre-1.8.1/build
In file included from /usr/src/modules/ofa-kernel/include/rdma/ib_addr.h:41,
                 from /usr/src/modules/ofa-kernel/include/rdma/rdma_cm.h:39,
                 from /tmp/lustre-1.8.1/build/conftest.c:36:
/usr/src/modules/ofa-kernel/include/rdma/ib_verbs.h:1724: warning: 'struct
dma_attrs' declared inside parameter list
/usr/src/modules/ofa-kernel/include/rdma/ib_verbs.h:1724: warning: its scope is
only this definition or declaration, which is probably not what you want



If I fix config.mk so that the correct path is present:


cat config.mk
BACKPORT_INCLUDES=-I/usr/src/modules/kernel_addons/backport/2.6.22/include/

configure still fails with:

checking whether to enable OpenIB gen2 support... no
configure: error: can't compile with OpenIB gen2 headers under
/usr/src/modules/ofa-kernel

config.log has the following incorrect EXTRA_LNET_INCLUDE:

EXTRA_LNET_INCLUDE='-I-I/usr/src/modules/kernel_addons/backport/2.6.22/include/
 -I/usr/src/modules/ofa-kernel/include'


With the two patches previously sent, everything builds (modulo a separate bug
in the OFED 2.6.22 backport includes).

Cheers,

Guy

-- 
Dr. Guy Coates,  Informatics System Group
The Wellcome Trust Sanger Institute, Hinxton, Cambridge, CB10 1HH, UK
Tel: +44 (0)1223 834244 x 6925
Fax: +44 (0)1223 496802


-- 
 The Wellcome Trust Sanger Institute is operated by Genome Research 
 Limited, a charity registered in England with number 1021457 and a 
 company registered in England with number 2742969, whose registered 
 office is 215 Euston Road, London, NW1 2BE. 



More information about the general mailing list