This is an auto-filed bug because dev-util/perf does not respect CFLAGS/LDFLAGS. The issue was originally discovered on amd64, but it may be reproducible on other arches as well. If you think that a different summary clarifies the issue better, feel free to change it. Attached build log and emerge --info. NOTE: To reproduce this issue you may want to add "-frecord-gcc-switches" to CFLAGS/CXXFLAGS/FFLAGS/FCFLAGS and LDFLAGS="${LDFLAGS} -Wl,--defsym=__gentoo_check_ldflags__=0". If this is not something about c/c++ see this bug as an hint to hide the QA warning (with QA_FLAGS_IGNORED) where is not possible to respect CFLAGS/LDFLAGS.
Created attachment 643384 [details] build.log build log and emerge --info
tinderbox has reproduced this issue with version 5.12 - Updating summary.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3a5ad8fb6c6ac1f39b95c936e5824d792e5104df commit 3a5ad8fb6c6ac1f39b95c936e5824d792e5104df Author: Guilherme Amadio <amadio@gentoo.org> AuthorDate: 2021-11-10 12:19:05 +0000 Commit: Guilherme Amadio <amadio@gentoo.org> CommitDate: 2021-11-10 12:31:05 +0000 dev-util/perf: fix bugs 727096, 790836, 795147, and 821175 Closes: https://bugs.gentoo.org/727096 Closes: https://bugs.gentoo.org/790836 Closes: https://bugs.gentoo.org/795147 Closes: https://bugs.gentoo.org/821175 Package-Manager: Portage-3.0.28, Repoman-3.0.3 Signed-off-by: Guilherme Amadio <amadio@gentoo.org> .../perf/{perf-5.12.ebuild => perf-5.12-r1.ebuild} | 28 ++++++++++++++-------- 1 file changed, 18 insertions(+), 10 deletions(-)