[LU-7541] rpm build failed in 2.7.1 Created: 10/Dec/15 Updated: 13/Jan/16 Resolved: 13/Jan/16 |
|
| Status: | Resolved |
| Project: | Lustre |
| Component/s: | None |
| Affects Version/s: | Lustre 2.7.0 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Critical |
| Reporter: | Jay Lan (Inactive) | Assignee: | Jian Yu |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Environment: |
centos 7.1. |
||
| Attachments: |
|
||||||||||||
| Issue Links: |
|
||||||||||||
| Severity: | 3 | ||||||||||||
| Rank (Obsolete): | 9223372036854775807 | ||||||||||||
| Description |
|
When building lustre-2.7.1 rpms in a centos 7.1 chroot environment, the build failed: ... ; else :; fi " \ I did specify Also config.log showed the version.h exists at include/generated/uapi/linux/version.h: I did not have this problem in 2.x.y build up to 2.5.3. Changes made in 2.7 broke my build. I will attach config.log and log-rpms files. |
| Comments |
| Comment by Peter Jones [ 11/Dec/15 ] |
|
Jay Am I correct in assuming that this is not an Sev1 (i.e site down) situation for NASA and you are in fact just exploring for a possible future upgrade? Peter |
| Comment by Jay Lan (Inactive) [ 11/Dec/15 ] |
|
Hi Peter, You were right that this does not affect production systems. Please downgrade the priority. Mahmoud wants to move to 2.7.1 after 2.5.3. There are features in 2.7 that Mahmoud wants and he is breathing on my neck. |
| Comment by Peter Jones [ 11/Dec/15 ] |
|
Jay Mahmoud is not the only one to find 2.7.x interesting Jian Could you please assist Jay? Thanks Peter |
| Comment by Jian Yu [ 11/Dec/15 ] |
|
Hi Jay, Could you please try adding "--with-linux-obj=/usr/src/kernels/3.10.0-229.20.1.el7.20151203.x86_64.lustre271" to run ./configure? |
| Comment by Jay Lan (Inactive) [ 11/Dec/15 ] |
|
$ ./configure --enable-tests --enable-mpitests=yes --with-o2ib=/usr/src/ofa_kernel/lustre271 --with-linux=/usr/src/kernels/3.10.0-229.20.1.el7.20151203.x86_64.lustre271 --with-linux-obj=/usr/src/kernels/3.10.0-229.20.1.el7.20151203.x86_64.lustre271 --with-downstream-release=1nasS_mofed31v1 --with-release=1nasS_mofed31v1_3.10.0-229.20.1.el7.20151203.x86_64.lustre271 I got the same error at building rpm. |
| Comment by Jian Yu [ 11/Dec/15 ] |
|
Hi Jay, Could you please list the steps and commands you used for the building process? Thank you. |
| Comment by Jay Lan (Inactive) [ 11/Dec/15 ] |
|
Attached are two scripts: I ran the two scripts one after another. |
| Comment by Jian Yu [ 11/Dec/15 ] |
|
Thank you, Jay. For /usr/src/kernels/3.10.0-229.20.1.el7.20151203.x86_64.lustre271, did you patch the kernel with Lustre kernel patches and build it from source? |
| Comment by Jay Lan (Inactive) [ 11/Dec/15 ] |
|
Yes I did, Jian. |
| Comment by Jian Yu [ 11/Dec/15 ] |
|
Hi Jay, I just checked the configure logs of passed build against Lustre 2.7.1 and also found: checking for /var/lib/jenkins/workspace/lustre-b2_7_fe/arch/x86_64/build_type/server/distro/el7/ib_stack/inkernel/BUILD/reused/usr/src/kernels/3.10.0-229.14.1.el7_lustre.gc77f399.x86_64/include/linux/version.h... no checking for /var/lib/jenkins/workspace/lustre-b2_7_fe/arch/x86_64/build_type/server/distro/el7/ib_stack/inkernel/BUILD/reused/usr/src/kernels/3.10.0-229.14.1.el7_lustre.gc77f399.x86_64/include/generated/uapi/linux/version.h... yes So, it's no problem that version.h is located under include/generated/uapi/linux/. And the configure command we used was: ./configure --program-prefix= --disable-dependency-tracking --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-linux=/var/lib/jenkins/workspace/lustre-b2_7_fe/arch/x86_64/build_type/server/distro/el7/ib_stack/inkernel/BUILD/reused/usr/src/kernels/3.10.0-229.14.1.el7_lustre.gc77f399.x86_64 --with-linux-obj=/var/lib/jenkins/workspace/lustre-b2_7_fe/arch/x86_64/build_type/server/distro/el7/ib_stack/inkernel/BUILD/reused/usr/src/kernels/3.10.0-229.14.1.el7_lustre.gc77f399.x86_64 --with-release=3.10.0_229.14.1.el7_lustre.gc77f399.x86_64 --enable-tests --enable-utils --enable-modules --with-kmp-moddir=extra |
| Comment by Jay Lan (Inactive) [ 11/Dec/15 ] |
|
Thanks, I will take a look later to get the version.h problem resolved. For now I simply copied the version.h to where the build process looks for and got it moving along. Well, the build failed to find llbackup. Unfortunately, the file, used to be in lustre/utils/llbackup in 2.5.3, does not exist in 2.7.1. If that file is pulled from 2.7.1, the build process should do so accordingly. |
| Comment by Jian Yu [ 11/Dec/15 ] |
|
Hi Jay,
Did you happen to use an old version of lustre.spec.in to build Lustre 2.7.1? In Lustre 2.7.1 source codes: $ grep llbackup * -rn | grep -v tags | grep -v doc $ In Lustre 2.5.3 source codes: $ grep llbackup * -rn | grep -v tags | grep -v doc
lustre/utils/Makefile.am:19:bin_scripts = llstat llobdstat plot-llstat llbackup
lustre.spec.in:353:%attr(-, root, root) %{_bindir}/llbackup
$
So, for Lustre 2.7.1, it would not hit the llbackup issue. |
| Comment by Jay Lan (Inactive) [ 11/Dec/15 ] |
|
Old version of lustre.spec.in would not work for 2.7.1 at all. So far, I hacked around the problems I have encountered. |
| Comment by Minh Diep [ 19/Dec/15 ] |
|
Jay, please apply this http://review.whamcloud.com/#/c/15181/ to see if it fixes |
| Comment by Jay Lan (Inactive) [ 19/Dec/15 ] |
|
Hi Minh, can you create a patch for 2.7.1? |
| Comment by Peter Jones [ 22/Dec/15 ] |
|
Jay Try these two patches that have already been ported to the 2.7 FE branch
Peter |
| Comment by Jay Lan (Inactive) [ 07/Jan/16 ] |
|
Hi Peter, The above two ported patches did solve my problem. Thanks! |
| Comment by Jian Yu [ 13/Jan/16 ] |
|
Patches landed. |