[LU-3572] build failure seen in SLES SP2 server build Created: 10/Jul/13  Updated: 15/Jul/13  Resolved: 15/Jul/13

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

Type: Bug Priority: Minor
Reporter: Bob Glossman (Inactive) Assignee: Bob Glossman (Inactive)
Resolution: Fixed Votes: 0
Labels: None

Severity: 3
Rank (Obsolete): 9018

 Description   

The recent large flood of landings in master have introduced a build failure in SLES11 SP2 server builds. errors look like:

CC [M] /home/bogl/lustre-release/lustre/mgs/mgs_handler.o
cc1: warnings being treated as errors
/home/bogl/lustre-release/lustre/mgs/mgs_handler.c: In function ‘mgs_init0’:
/home/bogl/lustre-release/lustre/mgs/mgs_handler.c:1066: error: ‘obd’ may be used uninitialized in this function
make[6]: *** [/home/bogl/lustre-release/lustre/mgs/mgs_handler.o] Error 1
make[5]: *** [/home/bogl/lustre-release/lustre/mgs] Error 2
make[4]: *** [/home/bogl/lustre-release/lustre] Error 2
make[3]: *** [_module_/home/bogl/lustre-release] Error 2
make[3]: Leaving directory `/home/bogl/rpmbuild/usr/src/linux-3.0.80-0.7.1'
make[2]: *** [modules] Error 2
make[2]: Leaving directory `/home/bogl/lustre-release'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/bogl/lustre-release'
make: *** [all] Error 2

Strongly suspect the only reason this hasn't been seen in regular review and master builds is that only client builds are done there for SLES, not server builds.

I believe this would hit any server builds done with newer gcc and kernel versions.

Rather then spend the time to precisely identify and back out a specific commit, I plan to submit a tiny fixup patch.



 Comments   
Comment by Bob Glossman (Inactive) [ 10/Jul/13 ]

http://review.whamcloud.com/6937

Comment by Bob Glossman (Inactive) [ 11/Jul/13 ]

Just for reference I believe the commit that introduced this compiler error was 10b256a65b8fd746ca7952b40d9026a957b171bc, LU-3101 mgs: deregister the mount for failed case

Comment by Andreas Dilger [ 15/Jul/13 ]

Patch is landed - we should enable this building automatically ASAP.

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