Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 727096 - dev-util/perf-5.12 does not respect CFLAGS/LDFLAGS
Summary: dev-util/perf-5.12 does not respect CFLAGS/LDFLAGS
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Naohiro Aota
Depends on:
Blocks: cflags ldflags
  Show dependency tree
Reported: 2020-06-04 10:28 UTC by Agostino Sarubbo
Modified: 2021-11-10 12:31 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---

build.log (build.log,854.58 KB, text/plain)
2020-06-04 10:28 UTC, Agostino Sarubbo

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2020-06-04 10:28:29 UTC
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.

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.
Comment 1 Agostino Sarubbo gentoo-dev 2020-06-04 10:28:35 UTC
Created attachment 643384 [details]

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2021-10-18 06:54:25 UTC
tinderbox has reproduced this issue with version 5.12 - Updating summary.
Comment 3 Larry the Git Cow gentoo-dev 2021-11-10 12:31:41 UTC
The bug has been closed via the following commit(s):

commit 3a5ad8fb6c6ac1f39b95c936e5824d792e5104df
Author:     Guilherme Amadio <>
AuthorDate: 2021-11-10 12:19:05 +0000
Commit:     Guilherme Amadio <>
CommitDate: 2021-11-10 12:31:05 +0000

    dev-util/perf: fix bugs 727096, 790836, 795147, and 821175
    Package-Manager: Portage-3.0.28, Repoman-3.0.3
    Signed-off-by: Guilherme Amadio <>

 .../perf/{perf-5.12.ebuild => perf-5.12-r1.ebuild} | 28 ++++++++++++++--------
 1 file changed, 18 insertions(+), 10 deletions(-)