Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 953755 - llvm-r2.eclass: uses multilib.eclass functions without inheriting (was: dev-qt/qt-creator-16.0.1: get_abi_CHOST: command not found)
Summary: llvm-r2.eclass: uses multilib.eclass functions without inheriting (was: dev-q...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal
Assignee: Michał Górny
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-04-13 06:08 UTC by Liu Yujie
Modified: 2025-04-13 09:14 UTC (History)
4 users (show)

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


Attachments
environment (environment,126.46 KB, text/plain)
2025-04-13 06:08 UTC, Liu Yujie
Details
build.log (dev-qt:qt-creator-16.0.1:20250413-055724.log,2.75 KB, text/x-log)
2025-04-13 06:08 UTC, Liu Yujie
Details
emerge --info (emerge--info,20.31 KB, text/plain)
2025-04-13 06:10 UTC, Liu Yujie
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Liu Yujie 2025-04-13 06:08:01 UTC
Created attachment 924495 [details]
environment

>>> Configuring source in /tmp/portage/dev-qt/qt-creator-16.0.1/work/qt-creator-opensource-src-16.0.1 ...
 * Using /usr/lib/llvm/19 for CHOST LLVM 19
/tmp/portage/dev-qt/qt-creator-16.0.1/temp/environment: line 2087: get_all_abis: command not found
/tmp/portage/dev-qt/qt-creator-16.0.1/temp/environment: line 2093: get_abi_CHOST: command not found
ln: invalid option -- 'l'
Try 'ln --help' for more information.
 * ERROR: dev-qt/qt-creator-16.0.1::gentoo failed (configure phase):
 *   (no error message)
 * 
 * Call stack:
 *     ebuild.sh, line  136:  Called src_configure
 *   environment, line 2837:  Called llvm_chost_setup
 *   environment, line 2093:  Called die
 * The specific snippet of code:
 *       ln -s "$(get_abi_CHOST)-llvm-config" "${T}/llvm-bin/llvm-config" || die
 *
Comment 1 Liu Yujie 2025-04-13 06:08:56 UTC
Created attachment 924496 [details]
build.log
Comment 2 Liu Yujie 2025-04-13 06:10:10 UTC
Created attachment 924497 [details]
emerge --info
Comment 3 Ionen Wolkens gentoo-dev 2025-04-13 09:10:16 UTC
Worked by accident before [1] given seems all its ebuild consumers directly or indirectly inherit toolchain-funcs (llvm-r2 itself doesn't).

[1] https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=064d419ded17
Comment 4 Larry the Git Cow gentoo-dev 2025-04-13 09:14:19 UTC
The bug has been closed via the following commit(s):

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

commit ec9bab0bb3d2a800ece37b8144aa97ee6161b4ee
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2025-04-13 09:12:59 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2025-04-13 09:12:59 +0000

    llvm-r2.eclass: inherit multilib
    
    This worked by chance before 064d419ded17cb95eb12aa9478cad52e906dc6d4: llvm-r2
    uses get_all_abis and get_abi_CHOST, so inherit multilib explicitly.
    
    Closes: https://bugs.gentoo.org/953755
    Signed-off-by: Sam James <sam@gentoo.org>

 eclass/llvm-r2.eclass | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)