[LU-3179] gcc 4.7.2 produces the errors since LU-2684 landing Created: 16/Apr/13  Updated: 11/Jun/13  Resolved: 11/Jun/13

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

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

Issue Links:
Related
is related to LU-2684 convert ost_id to lu_fid for FID_SEQ_... Resolved
Severity: 3
Rank (Obsolete): 7748

 Description   

In file included from /work/lustre/head1/lustre/ofd/ofd_obd.c:45:0:
/work/lustre/head1/lustre/ofd/ofd_obd.c: In function 'ofd_punch':
/work/lustre/head1/lustre/include/lustre/lustre_idl.h:632:3: error: 'oi.<U3390>.oi.oi_id' may be used uninitialized in this function [-Werror=uninitialized]
In file included from /work/lustre/head1/lustre/ofd/ofd_internal.h:43:0,
from /work/lustre/head1/lustre/ofd/ofd_obd.c:46:
/work/lustre/head1/lustre/include/lustre_fid.h:626:17: note: 'oi.<U3390>.oi.oi_id' was declared here



 Comments   
Comment by Alex Zhuravlev [ 16/Apr/13 ]

yet another issue:

/work/lustre/head1/lustre/ptlrpc/nrs_crr.c: In function 'nrs_crrn_ctl':
/work/lustre/head1/lustre/ptlrpc/nrs_crr.c:299:2: error: case value '33' not in enumerated type 'enum ptlrpc_nrs_ctl' [-Werror=switch]
cc1: all warnings being treated as errors

Comment by Peter Jones [ 22/Apr/13 ]

Bob

Could you please look into this one?

Thanks

Peter

Comment by Bob Glossman (Inactive) [ 23/Apr/13 ]

Can't reproduce the failure. Not seen if I configure and build with --disable-server on RHEL 7 Alpha, which has gcc 4.7.2. Suspect the reported failures are in server only code.

Can't configure and build without using --disable-server as there isn't any ldiskfs patch series for the 3.7.0 kernel in RHEL 7.

Comment by Andreas Dilger [ 23/Apr/13 ]

Alex has posted http://review.whamcloud.com/6064 for this issue.

Comment by Bob Glossman (Inactive) [ 24/Apr/13 ]

http://review.whamcloud.com/6141 for second build problem reported in Alex's comment.

Comment by Andreas Dilger [ 11/Jun/13 ]

The 6141 patch was landed for 2.5.0.

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