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

Tommi Tervo tommi.tervo at csc.fi
Tue Sep 20 14:21:19 PDT 2016


Hi,

One needs to apply patches from LU-7042 and LU-8241. Here is untested 
patch for the b2_5 branch.

BR,
Tommi

On 09/20/2016 07:49 PM, Lydia Heck wrote:
>
> 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
>
>
>
> _______________________________________________
> lustre-discuss mailing list
> lustre-discuss at lists.lustre.org
> http://lists.lustre.org/listinfo.cgi/lustre-discuss-lustre.org
>

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 2.5-mofed.patch
Type: text/x-patch
Size: 8426 bytes
Desc: not available
URL: <http://lists.lustre.org/pipermail/lustre-discuss-lustre.org/attachments/20160921/73b89f4b/attachment.bin>


More information about the lustre-discuss mailing list