Uploaded image for project: 'Lustre'
  1. Lustre
  2. LU-3179

gcc 4.7.2 produces the errors since LU-2684 landing

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • Lustre 2.4.0, Lustre 2.5.0
    • Lustre 2.4.0
    • None
    • 3
    • 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

      Attachments

        Issue Links

          Activity

            [LU-3179] gcc 4.7.2 produces the errors since LU-2684 landing

            The 6141 patch was landed for 2.5.0.

            adilger Andreas Dilger added a comment - The 6141 patch was landed for 2.5.0.

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

            bogl Bob Glossman (Inactive) added a comment - http://review.whamcloud.com/6141 for second build problem reported in Alex's comment.

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

            adilger Andreas Dilger added a comment - Alex has posted http://review.whamcloud.com/6064 for this issue.

            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.

            bogl Bob Glossman (Inactive) added a comment - 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.
            pjones Peter Jones added a comment -

            Bob

            Could you please look into this one?

            Thanks

            Peter

            pjones Peter Jones added a comment - Bob Could you please look into this one? Thanks Peter

            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

            bzzz Alex Zhuravlev added a comment - 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

            People

              bogl Bob Glossman (Inactive)
              bzzz Alex Zhuravlev
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: