[LU-788] 'make rpm' fails unless 'make' is performed first Created: 24/Oct/11  Updated: 10/Oct/12  Resolved: 10/Oct/12

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

Type: Bug Priority: Major
Reporter: Richard Henwood (Inactive) Assignee: Richard Henwood (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Environment:

I've seen this on RHEL6.0, suspect that it also affects RHEL6.1


Severity: 3
Rank (Obsolete): 6537

 Description   

If you execute a make rpm with first doing a make you will observe the following error:

...
+ /bin/rm -rf /home/build/kernel/rpmbuild/BUILDROOT/lustre-iokit-1.2-201110211941.x86_64
+ exit 0
make[1]: Leaving directory `/home/build/lustre-release/lustre-iokit'
Finished rpms in lustre-iokit
make[1]: Entering directory `/home/build/lustre-release'
make[1]: *** No rule to make target `/home/build/lustre-release/ldiskfs/Module.symvers', needed by `Module.symvers'.  Stop.
make[1]: Leaving directory `/home/build/lustre-release'
make: *** [rpms] Error 2


 Comments   
Comment by Jay Lan (Inactive) [ 06/Nov/11 ]

Yes, it affects RHEL6.1 on me.

Comment by Jay Lan (Inactive) [ 07/Nov/11 ]

Hmmm, the title line suggested if you do a make first before 'make rpm', you will be fine. But then the description section seems imply otherwise?

I ran into the error yesterday trying to build 2.1 on rhel6.1 by doing 'make rpm'
first without doing a 'make'. So, I did a 'make' followed by a 'make rpm' and it
worked for me! My experience confirmed what the title of this bug suggested.

Comment by James A Simmons [ 07/Nov/11 ]

I have seen this on CentOS 5.X as well

Comment by Andreas Dilger [ 30/Nov/11 ]

I believe that there was some patch landed on the orion branch which solved this problem with Module.symvers.

Brian, is there a patch pending landing on master as well?

Comment by Jon Zhu [ 30/Nov/11 ]

I saw the same issue happened when I was trying to build Lustre 2.1 client on Ubuntu 10.04.

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

I have updated the walk-thru:
http://wiki.whamcloud.com/display/PUB/Walk-thru-+Build+Lustre+MASTER+on+RHEL+6.1+from+Whamcloud+git

The workaround (issue a make before make rpm) is now included.

Comment by Richard Henwood (Inactive) [ 10/Oct/12 ]

At some point in the past, this bug got fixed and is no-longer present.

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