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

Luster build is failed with gcov enabled

Details

    • Bug
    • Resolution: Won't Fix
    • Minor
    • None
    • Lustre 2.7.0
    • 3
    • 9223372036854775807

    Description

      ./configure CFLAGS='-O0 -fprofile-arcs -ftest-coverage' LDFLAGS="-fprofile-arcs" --with-linux=

      make

      buid failed with messages
      cc1: warnings being treated as errors
      In file included from /root/build/kernels_cov/linux-2.6.32-431.29.2.el6_lustreb_neo_stable_2.0_coverage/arch/x86/include/asm/alternative.h:43,
      from /root/build/kernels_cov/linux-2.6.32-431.29.2.el6_lustreb_neo_stable_2.0_coverage/arch/x86/include/asm/atomic_64.h:5,
      from /root/build/kernels_cov/linux-2.6.32-431.29.2.el6_lustreb_neo_stable_2.0_coverage/arch/x86/include/asm/atomic.h:4,
      from include/linux/crypto.h:20,
      from include/crypto/algapi.h:15,
      from include/crypto/internal/hash.h:16,
      from /root/build/lustre.clone/libcfs/libcfs/linux/linux-crypto-crc32pclmul.c:32:
      /root/build/kernels_cov/linux-2.6.32-431.29.2.el6_lustreb_neo_stable_2.0_coverage/arch/x86/include/asm/cpufeature.h: In function ‘fpu_clear’:
      /root/build/kernels_cov/linux-2.6.32-431.29.2.el6_lustreb_neo_stable_2.0_coverage/arch/x86/include/asm/cpufeature.h:382: error: asm operand 1 probably doesn’t match constraints
      /root/build/kernels_cov/linux-2.6.32-431.29.2.el6_lustreb_neo_stable_2.0_coverage/arch/x86/include/asm/cpufeature.h: In function ‘fpu_save_init’:
      /root/build/kernels_cov/linux-2.6.32-431.29.2.el6_lustreb_neo_stable_2.0_coverage/arch/x86/include/asm/cpufeature.h:382: error: asm operand 1 probably doesn’t match constraints
      make[6]: *** [/root/build/lustre.clone/libcfs/libcfs/linux/linux-crypto-crc32pclmul.o] Error 1
      make[5]: *** [/root/build/lustre.clone/libcfs/libcfs] Error 2
      make[4]: *** [/root/build/lustre.clone/libcfs] Error 2
      make[3]: *** [_module_/root/build/lustre.clone] Error 2
      make[3]: Leaving directory `/root/build/kernels_cov/linux-2.6.32-431.29.2.el6_lustreb_neo_stable_2.0_coverage'
      make[2]: *** [modules] Error 2
      make[2]: Leaving directory `/root/build/lustre.clone'
      make[1]: *** [all-recursive] Error 1
      make[1]: Leaving directory `/root/build/lustre.clone'
      make: *** [all] Error 2
      [root@localhost lustre.clone]# make
      make all-recursive
      make[1]: Entering directory `/root/build/lustre.clone'
      Making all in ldiskfs
      make[2]: Entering directory `/root/build/lustre.clone/ldiskfs'
      make[2]: Nothing to be done for `all'.
      make[2]: Leaving directory `/root/build/lustre.clone/ldiskfs'
      Making all in .
      make[2]: Entering directory `/root/build/lustre.clone'
      make sources -C ldiskfs || exit $?
      make[3]: Entering directory `/root/build/lustre.clone/ldiskfs'
      make[3]: `sources' is up to date.
      make[3]: Leaving directory `/root/build/lustre.clone/ldiskfs'
      make sources -C lustre || exit $?
      make[3]: Entering directory `/root/build/lustre.clone/lustre'
      perl ../lustre/scripts/version_tag.pl .. .. > tmpver
      fatal: No names found, cannot describe anything.

      Attachments

        Issue Links

          Activity

            [LU-6931] Luster build is failed with gcov enabled
            artem_blagodarenko Artem Blagodarenko (Inactive) made changes -
            Resolution New: Won't Fix [ 2 ]
            Status Original: Open [ 1 ] New: Closed [ 6 ]
            pjones Peter Jones made changes -
            Assignee Original: WC Triage [ wc-triage ] New: Artem Blagodarenko [ artem_blagodarenko ]
            pjones Peter Jones made changes -
            Labels New: patch

            Artem Blagodarenko (artem_blagodarenko@xyratex.com) uploaded a new patch: http://review.whamcloud.com/15821
            Subject: LU-6931 kernel: fix kernel to be compiled with o0
            Project: fs/lustre-release
            Branch: master
            Current Patch Set: 1
            Commit: 8fca2b6b994ec8e9e4b5a352737f2218d0fa938e

            gerrit Gerrit Updater added a comment - Artem Blagodarenko (artem_blagodarenko@xyratex.com) uploaded a new patch: http://review.whamcloud.com/15821 Subject: LU-6931 kernel: fix kernel to be compiled with o0 Project: fs/lustre-release Branch: master Current Patch Set: 1 Commit: 8fca2b6b994ec8e9e4b5a352737f2218d0fa938e
            simmonsja James A Simmons made changes -
            Link New: This issue is related to LU-6264 [ LU-6264 ]
            artem_blagodarenko Artem Blagodarenko (Inactive) created issue -

            People

              artem_blagodarenko Artem Blagodarenko (Inactive)
              artem_blagodarenko Artem Blagodarenko (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: