>>>> "Patrice" == Patrice Hamelin
<patrice.hamelin(a)ssc-spc.gc.ca> writes:
---------------------
Support for networks:
o2iblnd - OFED 1.5.4
---------------------
Red Hat kernel might support newer stock and Mellanox OFED
https://jira.hpdd.intel.com/browse/LU-2975
With the Ubuntu 3.2 kernel you're probably out of luck (without
investing more time). The build process in newer OFED releases has
changed considerably since they are using the compat-rdma framework.
You could try using vanilla 3.12.5 client with mentioned fixes or the
kernel packages from Qlustar.
Roland
--
https://qlustar.com
Patrice> Roland, Forgot to mention those errors in config.log:
Patrice> configure:10511: checking whether to enable OpenIB gen2
Patrice> support configure:10619: cp conftest.c build && make -d
Patrice> modules LD=ld CC=gcc -f
Patrice> /usr/src/lustre-2.4.1/build/Makefile
Patrice> LUSTRE_LINUX_CONFIG=/lib/modules/3.2.0-56-generic/build/.config
Patrice> LINUXINCLUDE= -I/usr/src/mlnx-ofed-kernel-2.0/include
Patrice> -I/lib/modules/3.2.0-56-generic/build/arch/x86/include
Patrice> -I/lib/modules/3.2.0-56-generic/build/arch/x86/include/generated
Patrice> -I/lib/modules/3.2.0-56-generic/build/include
Patrice> -I/lib/modules/3.2.0-56-generic/build/include
Patrice> -I/lib/modules/3.2.0-56-generic/build/include2 -include
Patrice> include/linux/kconfig.h -o tmp_include_depends -o scripts
Patrice> -o include/config/MARKER -C
Patrice> /lib/modules/3.2.0-56-generic/build
Patrice> EXTRA_CFLAGS=-Werror-implicit-function-declaration -g
Patrice> -I/usr/src/lustre-2.4.1/libcfs/include
Patrice> -I/usr/src/lustre-2.4.1/lnet/include
Patrice> -I/usr/src/lustre-2.4.1/lustre/include
Patrice> -I/usr/src/mlnx-ofed-kernel-2.0/include
Patrice> M=/usr/src/lustre-2.4.1/build In file included from
Patrice> /usr/src/mlnx-ofed-kernel-2.0/include/linux/compat-2.6.h:62:0,
Patrice> from
Patrice> /usr/src/lustre-2.4.1/build/conftest.c:63:
Patrice> /usr/src/mlnx-ofed-kernel-2.0/include/linux/compat-3.3.h:30:24:
Patrice> error: 'LINUX_BACKPORT' declared as function returning a
Patrice> function
Patrice> /usr/src/mlnx-ofed-kernel-2.0/include/linux/compat-3.3.h:31:8:
Patrice> warning: parameter names (without types) in function
Patrice> declaration [enabled by default]
Patrice> /usr/src/mlnx-ofed-kernel-2.0/include/linux/compat-3.3.h:77:20:
Patrice> error: 'LINUX_BACKPORT' declared as function returning a
Patrice> function
Patrice> /usr/src/mlnx-ofed-kernel-2.0/include/linux/compat-3.3.h:77:20:
Patrice> warning: function declaration isn't a prototype
Patrice> [-Wstrict-prototypes]
Patrice> /usr/src/mlnx-ofed-kernel-2.0/include/linux/compat-3.3.h:77:20:
Patrice> error: static declaration of 'LINUX_BACKPORT' follows
Patrice> non-static declaration
Patrice> /usr/src/mlnx-ofed-kernel-2.0/include/linux/compat-3.3.h:30:24:
Patrice> note: previous declaration of 'LINUX_BACKPORT' was here
Patrice> /usr/src/mlnx-ofed-kernel-2.0/include/linux/compat-3.3.h:
Patrice> In function 'LINUX_BACKPORT':
Patrice> /usr/src/mlnx-ofed-kernel-2.0/include/linux/compat-3.3.h:80:1:
Patrice> warning: no return statement in function returning non-void
Patrice> [-Wreturn-type]
Patrice> /usr/src/mlnx-ofed-kernel-2.0/include/linux/compat-3.3.h:
Patrice> At top level:
Patrice> /usr/src/mlnx-ofed-kernel-2.0/include/linux/compat-3.3.h:83:20:
Patrice> error: 'LINUX_BACKPORT' declared as function returning a
Patrice> function
Patrice> /usr/src/mlnx-ofed-kernel-2.0/include/linux/compat-3.3.h:83:20:
Patrice> warning: function declaration isn't a prototype
Patrice> [-Wstrict-prototypes]
Patrice> /usr/src/mlnx-ofed-kernel-2.0/include/linux/compat-3.3.h:83:20:
Patrice> error: redefinition of 'LINUX_BACKPORT'
Patrice> /usr/src/mlnx-ofed-kernel-2.0/include/linux/compat-3.3.h:77:20:
Patrice> note: previous definition of 'LINUX_BACKPORT' was here
Patrice> /usr/src/mlnx-ofed-kernel-2.0/include/linux/compat-3.3.h:
Patrice> In function 'LINUX_BACKPORT':
Patrice> /usr/src/mlnx-ofed-kernel-2.0/include/linux/compat-3.3.h:86:1:
Patrice> warning: no return statement in function returning non-void
Patrice> [-Wreturn-type]
Patrice> /usr/src/mlnx-ofed-kernel-2.0/include/linux/compat-3.3.h:
Patrice> At top level:
Patrice> /usr/src/mlnx-ofed-kernel-2.0/include/linux/compat-3.3.h:89:20:
Patrice> error: 'LINUX_BACKPORT' declared as function returning a
Patrice> function
Patrice> /usr/src/mlnx-ofed-kernel-2.0/include/linux/compat-3.3.h:89:20:
Patrice> warning: function declaration isn't a prototype
Patrice> [-Wstrict-prototypes]
Patrice> /usr/src/mlnx-ofed-kernel-2.0/include/linux/compat-3.3.h:89:20:
Patrice> error: redefinition of 'LINUX_BACKPORT'
Patrice> /usr/src/mlnx-ofed-kernel-2.0/include/linux/compat-3.3.h:83:20:
Patrice> note: previous definition of 'LINUX_BACKPORT' was here
Patrice> /usr/src/mlnx-ofed-kernel-2.0/include/linux/compat-3.3.h:
Patrice> In function 'LINUX_BACKPORT':
Patrice> /usr/src/mlnx-ofed-kernel-2.0/include/linux/compat-3.3.h:95:1:
Patrice> warning: no return statement in function returning non-void
Patrice> [-Wreturn-type] In file included from
Patrice> /usr/src/mlnx-ofed-kernel-2.0/include/linux/compat-2.6.h:63:0,
Patrice> from
Patrice> /usr/src/lustre-2.4.1/build/conftest.c:63:
Patrice> 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, 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