[LU-1076] rpmbuild fails Created: 07/Feb/12  Updated: 29/May/17  Resolved: 29/May/17

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: Lustre 2.1.0
Fix Version/s: None

Type: Bug Priority: Critical
Reporter: Richard Henwood (Inactive) Assignee: WC Triage
Resolution: Cannot Reproduce Votes: 0
Labels: None

Severity: 3
Rank (Obsolete): 4021

 Description   

The instructions provided in the wiki page: http://wiki.whamcloud.com/display/PUB/Rebuilding+the+Lustre-client+rpms+for+a+new+kernel

do not work. They fail with the error:

$ rpmbuild --define 'kversion 2.6.32-220.4.1.el6.x86_64' --define 'kdir /usr/src/kernels/2.6.32-220.4.1.el6.x86_64/' --rebuild lustre-client-2.1.0-2.6.32_131.6.1.el6.x86_64_g9d71fe8.src.rpm
...
...
...
/lustre-2.1.0/libcfs/include -I/home/build/rpmbuild/BUILD/lustre-2.1.0/lnet/include -I/home/build/rpmbuild/BUILD/lustre-2.1.0/lustre/include
LLCFLAGS:      -g -Wall -fPIC -D_GNU_SOURCE

Type 'make' to build Lustre.
+ make -j 1 -s
Making all in .
cc1: warnings being treated as errors
/home/build/rpmbuild/BUILD/lustre-2.1.0/lustre/llite/super25.c:98: error: initialization from incompatible pointer type
make[6]: *** [/home/build/rpmbuild/BUILD/lustre-2.1.0/lustre/llite/super25.o] Error 1
make[5]: *** [/home/build/rpmbuild/BUILD/lustre-2.1.0/lustre/llite] Error 2
make[4]: *** [/home/build/rpmbuild/BUILD/lustre-2.1.0/lustre] Error 2
make[3]: *** [_module_/home/build/rpmbuild/BUILD/lustre-2.1.0] Error 2
make[2]: *** [modules] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.iupwCW (%build)


 Comments   
Comment by Richard Henwood (Inactive) [ 07/Feb/12 ]

I got this result when trying to rebuild:

http://downloads.whamcloud.com/public/lustre/lustre-2.1.0/el6/client/SRPMS/lustre-client-2.1.0-2.6.32_131.6.1.el6.x86_64_g9d71fe8.src.rpm

Comment by Andreas Dilger [ 29/May/17 ]

Close old ticket.

Generated at Sat Feb 10 01:13:16 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.