Dear All, I tried to build lustre rpms to our IBM P5 system which is running Suse linux I got the errors below, Any ideas? looks big endian needs a patch, my plan is to install lustre client only Thanks and best regards H. N. Harake Linux 2.6.5-7.244-pseries64 #1 SMP Mon Dec 12 18:32:25 UTC 2005 ppc64 ppc64 ppc64 GNU/Linux lustre error ------------ In file included from /usr/src/packages/BUILD/lustre-1.6.0.1/lustre/ldiskfs/linux/ ldiskfs_jbd.h:20, from /usr/src/packages/BUILD/lustre-1.6.0.1/lustre/ldiskfs/acl.c:11: /usr/src/packages/BUILD/lustre-1.6.0.1/lustre/ldiskfs/linux/ ldiskfs_fs.h:377:2: #error "mballoc needs a patch for big-endian systems - CFS bug 10634" make[7]: *** [/usr/src/packages/BUILD/lustre-1.6.0.1/lustre/ldiskfs/acl.o] Error 1 make[6]: *** [/usr/src/packages/BUILD/lustre-1.6.0.1/lustre/ldiskfs] Error 2 make[5]: *** [/usr/src/packages/BUILD/lustre-1.6.0.1/lustre] Error 2 make[5]: *** Waiting for unfinished jobs.... make[4]: *** [_module_/usr/src/packages/BUILD/lustre-1.6.0.1] Error 2 make[3]: *** [modules] Error 2 make[2]: *** [all-recursive] Error 1 make[1]: *** [all] Error 2 error: Bad exit status from /var/tmp/rpm-tmp.10652 (%build)
On Jul 20, 2007 14:35 +0200, H. N. HARAKE wrote:> I tried to build lustre rpms to our IBM P5 system which is running > Suse linux I got the errors below, > Any ideas? looks big endian needs a patch, my plan is to install > lustre client onlyThis error is for server code only. If you are only interested in clients you can configure with --disable-server. Just as an FYI - if you are only interested in building the server, you can configure with --disable-client.> Linux 2.6.5-7.244-pseries64 #1 SMP Mon Dec 12 18:32:25 UTC 2005 > ppc64 ppc64 ppc64 GNU/Linux > > lustre error > ------------ > > In file included > from /usr/src/packages/BUILD/lustre-1.6.0.1/lustre/ldiskfs/linux/ > ldiskfs_jbd.h:20, > > from /usr/src/packages/BUILD/lustre-1.6.0.1/lustre/ldiskfs/acl.c:11: > /usr/src/packages/BUILD/lustre-1.6.0.1/lustre/ldiskfs/linux/ > ldiskfs_fs.h:377:2: #error "mballoc needs a patch for big-endian > systems - CFS bug 10634" > make[7]: *** > [/usr/src/packages/BUILD/lustre-1.6.0.1/lustre/ldiskfs/acl.o] Error 1 > make[6]: *** [/usr/src/packages/BUILD/lustre-1.6.0.1/lustre/ldiskfs] > Error 2 > make[5]: *** [/usr/src/packages/BUILD/lustre-1.6.0.1/lustre] Error 2 > make[5]: *** Waiting for unfinished jobs.... > make[4]: *** [_module_/usr/src/packages/BUILD/lustre-1.6.0.1] Error 2 > make[3]: *** [modules] Error 2 > make[2]: *** [all-recursive] Error 1 > make[1]: *** [all] Error 2 > error: Bad exit status from /var/tmp/rpm-tmp.10652 (%build)Cheers, Andreas -- Andreas Dilger Principal Software Engineer Cluster File Systems, Inc.
Dear Andreas,
I tried to add --disable-server but still i am facing problems:
CC: gcc -m64
LD:
CPPFLAGS: -include $(top_builddir)/config.h -I
$(top_builddir)/lnet/include -I$(top_srcdir)/lnet/include -I
$(top_builddir)/lustre/include -I$(top_srcdir)/lustre/include
LLCPPFLAGS: -D__arch_lib__ -D_LARGEFILE64_SOURCE=1
CFLAGS: -g -O2
EXTRA_KCFLAGS: -include /usr/src/packages/BUILD/lustre-1.6.0.1/config.h
-g -I/usr/src/packages/BUILD/lustre-1.6.0.1/lnet/include
-I/usr/src/packages/BUILD/lustre-1.6.0.1/lustre/include
LLCFLAGS: -g -Wall -fPIC
Type ''make'' to build Lustre.
+ make -j 4 -s
Making all in .
/usr/src/packages/BUILD/lustre-1.6.0.1/lustre/lvfs/lvfs_linux.c:466:2:
#error rdonly patchset must be updated [cfs bz11248]
make[7]: ***
[/usr/src/packages/BUILD/lustre-1.6.0.1/lustre/lvfs/lvfs_linux.o] Error
1
make[6]: *** [/usr/src/packages/BUILD/lustre-1.6.0.1/lustre/lvfs] Error
2
make[6]: *** Waiting for unfinished jobs....
make[5]: *** [/usr/src/packages/BUILD/lustre-1.6.0.1/lustre] Error 2
make[4]: *** [_module_/usr/src/packages/BUILD/lustre-1.6.0.1] Error 2
make[3]: *** [modules] Error 2
make[2]: *** [all-recursive] Error 1
make[1]: *** [all] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.12465 (%build)
RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.12465 (%build)
make: *** [rpms] Error 1
Thanks and Best regards
H. N. Harake
On 20-Jul-2007, at 18:39, Andreas Dilger wrote:
> On Jul 20, 2007 14:35 +0200, H. N. HARAKE wrote:
>> I tried to build lustre rpms to our IBM P5 system which is running
>> Suse linux I got the errors below,
>> Any ideas? looks big endian needs a patch, my plan is to install
>> lustre client only
>
> This error is for server code only. If you are only interested in
> clients you can configure with --disable-server.
>
> Just as an FYI - if you are only interested in building the server,
> you can configure with --disable-client.
>
>> Linux 2.6.5-7.244-pseries64 #1 SMP Mon Dec 12 18:32:25 UTC 2005
>> ppc64 ppc64 ppc64 GNU/Linux
>>
>> lustre error
>> ------------
>>
>> In file included
>> from /usr/src/packages/BUILD/lustre-1.6.0.1/lustre/ldiskfs/linux/
>> ldiskfs_jbd.h:20,
>>
>> from /usr/src/packages/BUILD/lustre-1.6.0.1/lustre/ldiskfs/acl.c:11:
>> /usr/src/packages/BUILD/lustre-1.6.0.1/lustre/ldiskfs/linux/
>> ldiskfs_fs.h:377:2: #error "mballoc needs a patch for big-endian
>> systems - CFS bug 10634"
>> make[7]: ***
>> [/usr/src/packages/BUILD/lustre-1.6.0.1/lustre/ldiskfs/acl.o] Error 1
>> make[6]: *** [/usr/src/packages/BUILD/lustre-1.6.0.1/lustre/ldiskfs]
>> Error 2
>> make[5]: *** [/usr/src/packages/BUILD/lustre-1.6.0.1/lustre] Error 2
>> make[5]: *** Waiting for unfinished jobs....
>> make[4]: *** [_module_/usr/src/packages/BUILD/lustre-1.6.0.1] Error 2
>> make[3]: *** [modules] Error 2
>> make[2]: *** [all-recursive] Error 1
>> make[1]: *** [all] Error 2
>> error: Bad exit status from /var/tmp/rpm-tmp.10652 (%build)
>
> Cheers, Andreas
> --
> Andreas Dilger
> Principal Software Engineer
> Cluster File Systems, Inc.
>
On Jul 26, 2007 11:44 +0200, H. N. HARAKE wrote:> Dear Andreas, > > I tried to add --disable-server but still i am facing problems: > > /usr/src/packages/BUILD/lustre-1.6.0.1/lustre/lvfs/lvfs_linux.c:466:2: > #error rdonly patchset must be updated [cfs bz11248] > make[7]: ***Please try changing lvfs_linux.c:465 as below. This should work, though I haven''t tried it myself. This part of the code isn''t used on a client. -#ifdef LUSTRE_KERNEL_VERSION -#ifdef HAVE_CLEAR_RDONLY_ON_PUT -#error rdonly patchset must be updated [cfs bz11248] -#endif +#ifdef HAVE_CLEAR_RDONLY_ON_PUT Cheers, Andreas -- Andreas Dilger Principal Software Engineer Cluster File Systems, Inc.
Andreas,
Ok here what i did, i removed the lines with the - and add the line
with +,
I got a new error.
Thanks
Best Regards
H. N. Harake
Type ''make'' to build Lustre.
+ make -j 4 -s
Making all in .
/usr/src/packages/BUILD/lustre-1.6.0.1/lustre/obdclass/linux/linux-
module.c:447:3: #error Cannot continue: Your Lustre kernel patch is
older than the sources
make[7]: ***
[/usr/src/packages/BUILD/lustre-1.6.0.1/lustre/obdclass/linux/linux-
module.o] Error 1
make[6]: *** [/usr/src/packages/BUILD/lustre-1.6.0.1/lustre/obdclass]
Error 2
make[6]: *** Waiting for unfinished jobs....
make[5]: *** [/usr/src/packages/BUILD/lustre-1.6.0.1/lustre] Error 2
make[4]: *** [_module_/usr/src/packages/BUILD/lustre-1.6.0.1] Error 2
make[3]: *** [modules] Error 2
make[2]: *** [all-recursive] Error 1
make[1]: *** [all] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.30233 (%build)
RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.30233 (%build)
make: *** [rpms] Error 1
On 26-Jul-2007, at 13:42, Andreas Dilger wrote:
> On Jul 26, 2007 11:44 +0200, H. N. HARAKE wrote:
>> Dear Andreas,
>>
>> I tried to add --disable-server but still i am facing problems:
>>
>> /usr/src/packages/BUILD/lustre-1.6.0.1/lustre/lvfs/lvfs_linux.c:
>> 466:2:
>> #error rdonly patchset must be updated [cfs bz11248]
>> make[7]: ***
>
> Please try changing lvfs_linux.c:465 as below. This should work,
> though
> I haven''t tried it myself. This part of the code isn''t
used on a
> client.
>
> -#ifdef LUSTRE_KERNEL_VERSION
> -#ifdef HAVE_CLEAR_RDONLY_ON_PUT
> -#error rdonly patchset must be updated [cfs bz11248]
> -#endif
> +#ifdef HAVE_CLEAR_RDONLY_ON_PUT
>
> Cheers, Andreas
> --
> Andreas Dilger
> Principal Software Engineer
> Cluster File Systems, Inc.
>