Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 944007

Summary: sys-devel/gcc-15.0.0_pre20241117-r2 die "USE Flag '${u}' not in IUSE for ${CATEGORY}/${PF}"
Product: Gentoo Linux Reporter: David Goudou <david.goudou>
Component: Current packagesAssignee: Gentoo Toolchain Maintainers <toolchain>
Status: RESOLVED FIXED    
Severity: normal CC: david.goudou
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log
emerge --info
full build logs

Description David Goudou 2024-11-19 14:52:06 UTC
Created attachment 910213 [details]
build.log

* Call stack:
 *          ebuild.sh, line  136:  Called src_configure
 *        environment, line 3584:  Called toolchain_src_configure
 *        environment, line 5293:  Called use_enable 'libdiagnostics'
 *   phase-helpers.sh, line  311:  Called use 'libdiagnostics'
 *   phase-helpers.sh, line  256:  Called die
 * The specific snippet of code:
 *   				die "USE Flag '${u}' not in IUSE for ${CATEGORY}/${PF}
Comment 1 David Goudou 2024-11-19 14:52:31 UTC
Created attachment 910215 [details]
emerge --info
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-11-19 14:54:10 UTC
Should be fixed by:

commit f6a974f8f2378c6c6a83345c101afce233fdf1d7 (HEAD -> master, origin/master, origin/HEAD)
Author: Sam James <sam@gentoo.org>
Date:   Tue Nov 19 14:49:04 2024 +0000

    toolchain.eclass: fix libdiagnostics handling

    Reported by ulm. This was introduced by a last-minute simplification I made,
    but USE=libdiagnostics only exists for 9999 and the *next* snapshot, not
    the current one, but even then, the code was wrong for < 15 as the use_enable
    part was run unconditionally w/ USE=jit.

    Fixes: b923a4c0d1a330e40f0a05f3bc94bb4f32ce1cbb
    Signed-off-by: Sam James <sam@gentoo.org>
Comment 3 David Goudou 2024-11-19 14:56:10 UTC
Created attachment 910217 [details]
full build logs
Comment 4 David Goudou 2024-11-19 14:58:09 UTC
Oops, only just saw your comment after refresh. Thanks Sam!
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-11-19 14:58:59 UTC
No worries, and it's actually still broken -- one moment, sorry!
Comment 6 Larry the Git Cow gentoo-dev 2024-11-19 15:01:11 UTC
The bug has been closed via the following commit(s):

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

commit 14b4ce60bae26089b0b80f9f629900bf7721e9f5
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2024-11-19 14:59:53 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-11-19 14:59:53 +0000

    toolchain.eclass: fix libdiagnostics handling (more)
    
    I continue to mix up how tc_version_is_at_least works. One day I'll
    change it...
    
    Closes: https://bugs.gentoo.org/944007
    Fixes: f6a974f8f2378c6c6a83345c101afce233fdf1d7
    Fixes: b923a4c0d1a330e40f0a05f3bc94bb4f32ce1cbb
    Signed-off-by: Sam James <sam@gentoo.org>

 eclass/toolchain.eclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)