[LU-6931] Luster build is failed with gcov enabled Created: 31/Jul/15  Updated: 09/Nov/18  Resolved: 09/Nov/18

Status: Closed
Project: Lustre
Component/s: None
Affects Version/s: Lustre 2.7.0
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: Artem Blagodarenko (Inactive) Assignee: Artem Blagodarenko (Inactive)
Resolution: Won't Fix Votes: 1
Labels: patch
Environment:

used kernel
linux-2.6.32-431.29.2.el6_lustreb_neo_stable

]# gcc --version
gcc (GCC) 4.4.4 20100726 (Red Hat 4.4.4-13)
Copyright (C) 2010 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


Issue Links:
Related
is related to LU-6264 Enable strict compiler defence modes Resolved
Severity: 3
Rank (Obsolete): 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.



 Comments   
Comment by Gerrit Updater [ 31/Jul/15 ]

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

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