[lustre-discuss] lustre 2.5.41 fails to configure for build

Lydia Heck lydia.heck at durham.ac.uk
Tue Sep 20 09:49:22 PDT 2016


Dear list members,

I am trying to configure lustre 2.5.41 to build. My OS is CentOS 6.8
with Kernel level 2.6.32-642 and I am trying to build for with Mellanox (OFED) 
support.

the configuration fails with

configure: error: can't compile with kernel OpenIB gen2 headers

The actual problem is

In file included from /usr/src/ofa_kernel/default/include/linux/kernel.h:4,
                  from /root/lustre-2.5.41.ddn12.g116c1ce/build/conftest.c:74:
include/linux/kernel.h:441:1: warning: "printk_once" redefined
In file included from include/linux/kernel.h:18,
                  from /usr/src/ofa_kernel/default/include/linux/kernel.h:4,
                  from /root/lustre-2.5.41.ddn12.g116c1ce/build/conftest.c:74:
/usr/src/ofa_kernel/default/include/linux/printk.h:58:1: warning: this is the 
location of the previous definition
In file included from /usr/src/ofa_kernel/default/include/linux/kernel.h:4,
                  from /root/lustre-2.5.41.ddn12.g116c1ce/build/conftest.c:74:
include/linux/kernel.h:670:1: warning: "printk_ratelimited" redefined
In file included from include/linux/kernel.h:18,
                  from /usr/src/ofa_kernel/default/include/linux/kernel.h:4,
                  from /root/lustre-2.5.41.ddn12.g116c1ce/build/conftest.c:74:
/usr/src/ofa_kernel/default/include/linux/printk.h:42:1: warning: this is the 
location of the previous definition
In file included from 
/lib/modules/2.6.32-642.el6.x86_64/source/arch/x86/include/asm/local.h:4,
                  from include/linux/module.h:20,
                  from /usr/src/ofa_kernel/default/include/linux/module.h:4,
                  from /usr/src/ofa_kernel/default/include/linux/compat-2.6.h:22,
                  from /root/lustre-2.5.41.ddn12.g116c1ce/build/conftest.c:83:
include/linux/percpu.h:713: error: ‘printk_func_t’ undeclared here (not in a 
function)
include/linux/percpu.h:713: warning: type defaults to ‘int’ in declaration of 
‘per_cpu__printk_func’
make[1]: *** [/root/lustre-2.5.41.ddn12.g116c1ce/build/conftest.o] Error 1
make: *** [_module_/root/lustre-2.5.41.ddn12.g116c1ce/build] Error

I drawled the web and found that there seems to be a difference from kernel 
level 2.6.32-642 (CentOS 6.8) and level  2.6.32-573 which prevents the config 
part to complete. However what I have not found is a solution for this problem.

Any idea?

Best wishes,
Lydia



More information about the lustre-discuss mailing list