Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 936558 - dev-util/perf-6.10: should use fully qualified compiler path in CLANG
Summary: dev-util/perf-6.10: should use fully qualified compiler path in CLANG
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal minor (vote)
Assignee: Guilherme Amadio
URL: https://github.com/gentoo/gentoo/pull...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-07-23 15:38 UTC by Andrej Shadura
Modified: 2024-08-06 10:16 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrej Shadura 2024-07-23 15:38:45 UTC
The build system of perf checks the clang version in order to set correct compilation flags. However, it defaults to the non-prefixed clang invocation, which fails during cross-compilation.

The ebuild should set CLANG to point to the fully qualified host clang.


Reproducible: Sometimes
Comment 1 Larry the Git Cow gentoo-dev 2024-08-06 10:16:56 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e0a308d54529e7cf11df4c9839024fe8187f82ee

commit e0a308d54529e7cf11df4c9839024fe8187f82ee
Author:     Andrej Shadura <andrew.shadura@collabora.co.uk>
AuthorDate: 2024-07-23 15:21:07 +0000
Commit:     Guilherme Amadio <amadio@gentoo.org>
CommitDate: 2024-08-06 10:15:43 +0000

    dev-util/perf: Use cross CLANG for compiler feature verification
    
    The build system of perf checks the clang version in order to set
    correct compilation flags. However, it defaults to the non-prefixed
    clang invocation, which fails during cross-compilation.
    
    Set CLANG to point to the fully qualified host clang.
    The build system will only use it if it’s actually available.
    
    Closes: https://bugs.gentoo.org/936558
    Closes: https://github.com/gentoo/gentoo/pull/37688
    Signed-off-by: Andrej Shadura <andrew.shadura@collabora.co.uk>
    Signed-off-by: Guilherme Amadio <amadio@gentoo.org>

 dev-util/perf/perf-6.10.ebuild | 1 +
 dev-util/perf/perf-6.3.ebuild  | 1 +
 dev-util/perf/perf-6.7.ebuild  | 1 +
 dev-util/perf/perf-6.8.ebuild  | 1 +
 dev-util/perf/perf-6.9.ebuild  | 1 +
 5 files changed, 5 insertions(+)