[Lustre-discuss] Lustre 2.3 for Kernel 2.6.34

Alfonso Pardo alfonso.pardo at ciemat.es
Wed Feb 13 00:48:10 PST 2013


Thanks Andreas,

I am compiling lustre without path the kernel source code. But I got other errors:

1) make the vanilla kernel 2.6.34 without lustre patch from my .config configurator kernel file
2) In lustre directory:
#> sh ./autogen.sh
#> ./configure --disable-server --enable-client --with-linux=/root/linux-2.6.34
#> make

In file included from /root/lustre-release/libcfs/include/libcfs/linux/libcfs.h:51,
                 from /root/lustre-release/libcfs/include/libcfs/libcfs.h:49,
                 from /root/lustre-release/libcfs/libcfs/linux/linux-tracefile.c:40:
/root/lustre-release/libcfs/include/libcfs/linux/linux-mem.h:144: error: expected â=â, â,â, â;â, âasmâ or â__attribute     __â before âcfs_mem_cache_tâ
/root/lustre-release/libcfs/include/libcfs/linux/linux-mem.h:146: error: expected â=â, â,â, â;â, âasmâ or â__attribute     __â before â*â token
/root/lustre-release/libcfs/include/libcfs/linux/linux-mem.h:147: error: expected â)â before â*â token
/root/lustre-release/libcfs/include/libcfs/linux/linux-mem.h:148: error: expected â)â before â*â token
/root/lustre-release/libcfs/include/libcfs/linux/linux-mem.h:149: error: expected â)â before â*â token
cc1: warnings being treated as errors
/root/lustre-release/libcfs/include/libcfs/linux/linux-mem.h:150: error: type defaults to âintâ in declaration of âcfs     _mem_cache_tâ
/root/lustre-release/libcfs/include/libcfs/linux/linux-mem.h:150: error: expected â;â, â,â or â)â before â*â token
make[6]: *** [/root/lustre-release/libcfs/libcfs/linux/linux-tracefile.o] Error 1
make[5]: *** [/root/lustre-release/libcfs/libcfs] Error 2
make[4]: *** [/root/lustre-release/libcfs] Error 2
make[3]: *** [_module_/root/lustre-release] Error 2
make[3]: Leaving directory `/root/linux-2.6.34.14'
make[2]: *** [modules] Error 2
make[2]: Leaving directory `/root/lustre-release'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/lustre-release'
make: *** [all] Error 2



-----Mensaje original----- 
From: Dilger, Andreas 
Sent: Wednesday, February 13, 2013 2:13 AM 
To: Alfonso Pardo ; lustre-discuss at lists.lustre.org ; WC-Discuss 
Subject: Re: [Lustre-discuss] Lustre 2.3 for Kernel 2.6.34 

On 2013/12/02 7:16 AM, "Alfonso Pardo" <alfonso.pardo at ciemat.es> wrote:

>Hello,
> 
>I am trying to compile lustre client 2.3 (2.2 same problem) for kernel
>2.6.34. I need to use this kernel, got from
>www.kernel.org <http://www.kernel.org>, because my clients need ACPI
>modules, and only this kernel version is compatible with my servers
>(ACPI).

If you only need 2.6.34 clients, then you don't need to patch the kernel
at all.
If you need ACPI support for your hardware, then I suspect that the RHEL6
2.6.32
kernel will have back-ported the support required for your hardware, and
you
should just use the RHEL6 server kernel.

Cheers, Andreas

>I got erros when I apply patches to the kernel with ³quilt push ­av²
> 
>Brief:
> 
>0) Machine Centos 6.2
>1) Kernel version 2.6.34
>2) Lustre software from git repository:
>[root at bc linux-2.6.34.14]# git clone
>git://git.whamcloud.com/fs/lustre-release.git
>[root at bc linux-2.6.34.14]# cd lustre-release
>[root at bc linux-2.6.34.14]# sh ./autogen.sh
>3) And from my kernel soruce code directory:
>[root at bc linux-2.6.34.14]# ln -s
>~/lustre-release/lustre/kernel_patches/series/2.6-rhel6.series series
>[root at bc linux-2.6.34.14]# ln -s
>~/lustre-release/lustre/kernel_patches/patches patches
>[root at bc linux-2.6.34.14]# quilt push -av
>Applying patch patches/lustre_version.patch
>patching file include/linux/lustre_version.h
> 
>Applying patch patches/mpt-fusion-max-sge-rhel6.patch
>patching file drivers/message/fusion/Kconfig
>patching file drivers/message/fusion/mptbase.h
> 
>Applying patch patches/raid5-mmp-unplug-dev-rhel6.patch
>patching file drivers/md/raid5.c
>Hunk #1 FAILED at 2177.
>Hunk #2 succeeded at 2394 with fuzz 1 (offset -1738 lines).
>1 out of 2 hunks FAILED -- rejects in file drivers/md/raid5.c
>Restoring drivers/md/raid5.c
>Patch patches/raid5-mmp-unplug-dev-rhel6.patch does not apply (enforce
>with -f)
>Restoring drivers/md/raid5.c
> 
>Any idea?
> 
> 
>Thanks in advance!!!!!
> 
> 
> 
>


Cheers, Andreas
-- 
Andreas Dilger

Lustre Software Architect
Intel High Performance Data Division

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lustre.org/pipermail/lustre-discuss-lustre.org/attachments/20130213/73f2da9e/attachment.htm>


More information about the lustre-discuss mailing list