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

gcc configure warnings cause build failures on RHEL6.1

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • Lustre 2.3.0
    • Lustre 2.0.0, Lustre 2.1.0
    • None
    • RHEL 6.1
    • 3
    • 4625

      Our latest CHAOS kernel builds are based on RHEL 6.1 pre-release kernels. The kernel build system has enabled -Werror so warnings are treated as errors. Also, gcc is detecting and warning about things like unused variables and use of unitialized values. This causes several autoconf tests to fail and give false results. To fix these we can annotate unused variables with _attribute_ ((unused)) and initialize variables as needed.

      I will upload a patch to gerrit to clean up the warnings. This patch may be needed to build Lustre on hyperion.

            ys Yang Sheng
            nedbass Ned Bass (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: