Roland,
Forgot to mention those errors in config.log:
configure:10511: checking whether to enable OpenIB gen2 support
configure:10619: cp conftest.c build && make -d modules LD=ld CC=gcc -f
/usr/src/lustre-2.4.1/build/Makefile
LUSTRE_LINUX_CONFIG=/lib/modules/3.2.0-56-generic/build/.config
LINUXINCLUDE= -I/usr/src/mlnx-ofed-kernel-2.0/include
-I/lib/modules/3.2.0-56-generic/build/arch/x86/include
-I/lib/modules/3.2.0-56-generic/build/arch/x86/include/generated
-I/lib/modules/3.2.0-56-generic/build/include
-I/lib/modules/3.2.0-56-generic/build/include
-I/lib/modules/3.2.0-56-generic/build/include2 -include
include/linux/kconfig.h -o tmp_include_depends -o scripts -o
include/config/MARKER -C /lib/modules/3.2.0-56-generic/build
EXTRA_CFLAGS=-Werror-implicit-function-declaration -g
-I/usr/src/lustre-2.4.1/libcfs/include
-I/usr/src/lustre-2.4.1/lnet/include
-I/usr/src/lustre-2.4.1/lustre/include
-I/usr/src/mlnx-ofed-kernel-2.0/include M=/usr/src/lustre-2.4.1/build
In file included from
/usr/src/mlnx-ofed-kernel-2.0/include/linux/compat-2.6.h:62:0,
from /usr/src/lustre-2.4.1/build/conftest.c:63:
/usr/src/mlnx-ofed-kernel-2.0/include/linux/compat-3.3.h:30:24: error:
'LINUX_BACKPORT' declared as function returning a function
/usr/src/mlnx-ofed-kernel-2.0/include/linux/compat-3.3.h:31:8: warning:
parameter names (without types) in function declaration [enabled by default]
/usr/src/mlnx-ofed-kernel-2.0/include/linux/compat-3.3.h:77:20: error:
'LINUX_BACKPORT' declared as function returning a function
/usr/src/mlnx-ofed-kernel-2.0/include/linux/compat-3.3.h:77:20: warning:
function declaration isn't a prototype [-Wstrict-prototypes]
/usr/src/mlnx-ofed-kernel-2.0/include/linux/compat-3.3.h:77:20: error:
static declaration of 'LINUX_BACKPORT' follows non-static declaration
/usr/src/mlnx-ofed-kernel-2.0/include/linux/compat-3.3.h:30:24: note:
previous declaration of 'LINUX_BACKPORT' was here
/usr/src/mlnx-ofed-kernel-2.0/include/linux/compat-3.3.h: In function
'LINUX_BACKPORT':
/usr/src/mlnx-ofed-kernel-2.0/include/linux/compat-3.3.h:80:1: warning:
no return statement in function returning non-void [-Wreturn-type]
/usr/src/mlnx-ofed-kernel-2.0/include/linux/compat-3.3.h: At top level:
/usr/src/mlnx-ofed-kernel-2.0/include/linux/compat-3.3.h:83:20: error:
'LINUX_BACKPORT' declared as function returning a function
/usr/src/mlnx-ofed-kernel-2.0/include/linux/compat-3.3.h:83:20: warning:
function declaration isn't a prototype [-Wstrict-prototypes]
/usr/src/mlnx-ofed-kernel-2.0/include/linux/compat-3.3.h:83:20: error:
redefinition of 'LINUX_BACKPORT'
/usr/src/mlnx-ofed-kernel-2.0/include/linux/compat-3.3.h:77:20: note:
previous definition of 'LINUX_BACKPORT' was here
/usr/src/mlnx-ofed-kernel-2.0/include/linux/compat-3.3.h: In function
'LINUX_BACKPORT':
/usr/src/mlnx-ofed-kernel-2.0/include/linux/compat-3.3.h:86:1: warning:
no return statement in function returning non-void [-Wreturn-type]
/usr/src/mlnx-ofed-kernel-2.0/include/linux/compat-3.3.h: At top level:
/usr/src/mlnx-ofed-kernel-2.0/include/linux/compat-3.3.h:89:20: error:
'LINUX_BACKPORT' declared as function returning a function
/usr/src/mlnx-ofed-kernel-2.0/include/linux/compat-3.3.h:89:20: warning:
function declaration isn't a prototype [-Wstrict-prototypes]
/usr/src/mlnx-ofed-kernel-2.0/include/linux/compat-3.3.h:89:20: error:
redefinition of 'LINUX_BACKPORT'
/usr/src/mlnx-ofed-kernel-2.0/include/linux/compat-3.3.h:83:20: note:
previous definition of 'LINUX_BACKPORT' was here
/usr/src/mlnx-ofed-kernel-2.0/include/linux/compat-3.3.h: In function
'LINUX_BACKPORT':
/usr/src/mlnx-ofed-kernel-2.0/include/linux/compat-3.3.h:95:1: warning:
no return statement in function returning non-void [-Wreturn-type]
In file included from
/usr/src/mlnx-ofed-kernel-2.0/include/linux/compat-2.6.h:63:0,
from /usr/src/lustre-2.4.1/build/conftest.c:63:
On 12/16/13 13:40, rf(a)q-leap.de wrote:
>>>>> "Patrice" == Patrice
Hamelin<patrice.hamelin(a)ssc-spc.gc.ca> writes:
Hi Patrice,
Patrice> Hi,
Patrice> Somebody has ever successfully compiled Lustre Client
Patrice> 2.4.1 on Ubuntu
Patrice> Precise 12.04 with Mellanox OFED 2.0.3?
we have built (and support) it (server + client) under Ubuntu 12.04.x for
Qlustar. However, we use kernel 2.6.32.x for the server and kernel
3.12.x (in-kernel client with some fixes see Lustre jira) for the
client and build against the stock OFED sources (for 2.6.32.x). I'm not
sure whether the stock 12.04 kernels (3.2 or higher) will support a
2.4.1 compile without major modifications (a client only compile
obviously has a lot better chances though).
Patrice> I am stucked with this error:
Patrice> mel-bc1e41-be14:/usr/src/lustre-2.4.1# ./configure
Patrice> --with-o2ib=/usr/src/mlnx-ofed-kernel-2.0 --disable-server
Patrice> checking build system type... x86_64-unknown-linux-gnu . .
Patrice> . checking whether to enable OpenIB gen2 support... no
Patrice> configure: error: can't compile with OpenIB gen2 headers
Patrice> under /usr/src/mlnx-ofed-kernel-2.0
There are two things here that make me wonder though:
a) You don't have an option like --with-linux=${KSRC}
b) What's underneath /usr/src/mlnx-ofed-kernel-2.0? For stock OFED I
have:
Documentation/ configure.mk.kernel kernel-build/ makefile@ patches/
Makefile@ drivers/ kernel_addons/ net/
config.mk include/ kernel_patches/ ofa_kernel.spec@
configure@ kernel/ lib/ ofed_scripts/
Does Mellanox OFED have the same layout? If not, it's possible the headers
can't be found.
Patrice> I tried a couple of patches/hacks found on Google but
Patrice> without success.
Patrice> Thanks.
Good luck,
Roland
--
https://qlustar.com
--
Patrice Hamelin
Specialiste sénior en systèmes d'exploitation | Senior OS specialist
Environnement Canada | Environment Canada
2121, route Transcanadienne | 2121 Transcanada Highway
Dorval, QC H9P 1J3
Téléphone | Telephone 514-421-5303
Télécopieur | Facsimile 514-421-7231
Gouvernement du Canada | Government of Canada