Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 953823 - sys-devel/gcc-15.0.1_pre20250413: multilib-strict check failed
Summary: sys-devel/gcc-15.0.1_pre20250413: multilib-strict check failed
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: gcc-15
  Show dependency tree
 
Reported: 2025-04-14 02:17 UTC by scv
Modified: 2025-04-19 19:16 UTC (History)
3 users (show)

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


Attachments
build log (build.txt.zip,578.29 KB, application/zip)
2025-04-14 02:21 UTC, scv
Details

Note You need to log in before you can comment on or make changes to this bug.
Description scv 2025-04-14 02:17:58 UTC
# emerge --info
Portage 3.0.67 (python 3.12.9-final-0, default/linux/amd64/23.0/no-multilib, gcc-14, glibc-2.40-r8, 6.12.16 x86_64)
=================================================================
System uname: Linux-6.12.16-x86_64-AMD_Ryzen_7_5800X_8-Core_Processor-with-glibc2.40
KiB Mem:    32755952 total,  22182808 free
KiB Swap:          0 total,         0 free
Head commit of repository gentoo: 0202bdf914a35e76ff7ac17850cf5254c5149d28

Timestamp of repository guru: Sun, 13 Apr 2025 18:05:10 +0000
Head commit of repository guru: a03896cbaecd2f987456d6699ed4b83bbe1107ae

Head commit of repository scv: 0fd587d44d135744bd5a92c9b03f975251d7ddd7

sh bash 5.2_p37
ld GNU ld (Gentoo 2.44 p1) 2.44.0
app-misc/pax-utils:        1.3.8::gentoo
app-shells/bash:           5.2_p37::gentoo
dev-build/autoconf:        2.72-r1::gentoo
dev-build/automake:        1.17-r1::gentoo
dev-build/libtool:         2.5.4::gentoo
dev-build/make:            4.4.1-r100::gentoo
dev-build/meson:           1.7.0::gentoo
dev-lang/perl:             5.40.0-r1::gentoo
dev-lang/python:           3.12.9::gentoo, 3.13.2::gentoo
dev-lang/rust-bin:         1.84.1-r2::gentoo
sys-apps/baselayout:       2.17::gentoo
sys-apps/openrc:           0.56::gentoo
sys-apps/sandbox:          2.39::gentoo
sys-devel/binutils:        2.44::gentoo
sys-devel/binutils-config: 5.5.2::gentoo
sys-devel/gcc:             14.2.1_p20241221::gentoo
sys-devel/gcc-config:      2.12.1::gentoo
sys-kernel/linux-headers:  6.12::gentoo (virtual/os-headers)
sys-libs/glibc:            2.40-r8::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: git
    sync-uri: https://github.com/gentoo/gentoo.git
    priority: -1000
    volatile: False

guru
    location: /var/db/repos/guru
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/guru.git
    masters: gentoo
    volatile: False

local
    location: /var/db/repos/local
    masters: gentoo
    volatile: False

scv
    location: /var/db/repos/scv
    sync-type: git
    sync-uri: https://github.com/shortcircuitv/scv.git
    masters: gentoo
    volatile: False

Binary Repositories:

gentoobinhost
    priority: 1
    sync-uri: https://distfiles.gentoo.org/releases/amd64/binpackages/23.0/x86-64

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O3 -flto=16 -pipe -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/sandbox.d"
CXXFLAGS="-march=native -O3 -flto=16 -pipe -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing"
DISTDIR="/var/cache/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME"
FCFLAGS="-march=native -O3 -flto=16 -pipe -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync merge-wait multilib-strict network-sandbox news parallel-fetch pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=native -O3 -flto=16 -pipe -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="C.UTF8"
LDFLAGS="-Wl,-O1,--as-needed,-z,pack-relative-relocs -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing"
LEX="flex"
MAKEOPTS="-j16"
PKGDIR="/var/cache/binpkgs"
PORTAGE_COMPRESS="zstd"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
RUSTFLAGS="-C target-cpu=native"
SHELL="/bin/bash"
USE="acl amd64 bzip2 caps cet crypt dist-kernel gdbm iconv ipv6 libtirpc lto ncurses nls openmp pam pcre pgo pipewire pulseaudio readline seccomp ssl test-rust unicode vaapi xattr zlib zstd" ABI_X86="64" ADA_TARGET="gcc_14" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_anon authn_dbm authn_file authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir env expires ext_filter file_cache filter headers include info log_config logio mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2 aes avx avx2 f16c fma3 pclmul popcnt rdrand sha sse3 sse4_1 sse4_2 sse4a ssse3 vpclmulqdq" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" GUILE_SINGLE_TARGET="3-0" GUILE_TARGETS="3-0" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-4 luajit" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-2" POSTGRES_TARGETS="postgres17" PYTHON_SINGLE_TARGET="python3_12" PYTHON_TARGETS="python3_12" RUBY_TARGETS="ruby32" VIDEO_CARDS="amdgpu radeonsi" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipp2p iface geoip fuzzy condition tarpit sysrq proto logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PYTHONPATH, RANLIB, READELF, SIZE, STRINGS, STRIP, YACC, YFLAGS
Comment 1 scv 2025-04-14 02:21:09 UTC
Created attachment 924729 [details]
build log
Comment 2 tdr 2025-04-14 02:24:52 UTC
From failed build log:


 * Deleting '/var/tmp/portage/sys-devel/gcc-15.0.1_pre20250413/image/usr/share/gcc-data/x86_64-pc-linux-gnu/15/info/dir'
>>> Completed installing sys-devel/gcc-15.0.1_pre20250413 into /var/tmp/portage/sys-devel/gcc-15.0.1_pre20250413/image

 * Final size of build directory: 3097056 KiB (  2.9 GiB)
 * Final size of installed tree:   588616 KiB (574.8 MiB)

 * QA Notice: Installing libtool files (.la) without corresponding static libraries!
 *   /usr/libexec/gcc/x86_64-pc-linux-gnu/15/liblto_plugin.la
Files matching a file type that is not allowed:
   usr/lib/libgdiagnostics.so.0.0.1
 * ERROR: sys-devel/gcc-15.0.1_pre20250413::gentoo failed:
 *   multilib-strict check failed!
 *
Comment 3 scv 2025-04-14 02:38:09 UTC
Steps to reproduce
----------------------
a) fresh stage3-amd64-nomultilib-openrc-20250406T165023Z.tar.xz

b) default/linux/amd64/23.0/no-multilib

c) echo "<sys-devel/gcc-15.0.9999:15 **" > /etc/portage/package.accept_keywords

d) USE: abi_x86_64 amd64 cet cxx default-stack-clash-protection default-znow elibc_glibc graphite jit kernel_linux libgdiagnostics lto nls openmp pie sanitize ssp zstd

e) emerge -av1 gcc
Comment 4 Larry the Git Cow gentoo-dev 2025-04-16 02:42:03 UTC
The bug has been referenced in the following commit(s):

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

commit 44dbc63d9c4778fb098cde0b4c99efd6fe7c2759
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2025-04-16 02:41:06 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2025-04-16 02:41:48 +0000

    toolchain.eclass: fix libgdiagnostics path without USE=-jit
    
    We would configure but not build & install with USE="libgdiagnostics -jit".
    
    This doesn't fix bug #953823 yet though.
    
    Bug: https://bugs.gentoo.org/953823
    Signed-off-by: Sam James <sam@gentoo.org>

 eclass/toolchain.eclass | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)
Comment 5 Larry the Git Cow gentoo-dev 2025-04-17 01:27:16 UTC
The bug has been closed via the following commit(s):

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

commit 6335bd10dfd41fa1f1a508c9e4d3458b6ae39a91
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2025-04-17 01:25:50 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2025-04-17 01:26:19 +0000

    toolchain.eclass: extend JIT location hack to libgdiagnostics too
    
    libgccjit is strange in that it's a non-internal library installed
    by GCC and isn't intended to be interacted with via some magic options
    like -fopenmp or whatever, but just linked like a regular library.
    
    libgdiagnostics is the same, so extend the same treatment to it.
    
    Thanks to tdr for testing.
    
    Closes: https://bugs.gentoo.org/953823
    Signed-off-by: Sam James <sam@gentoo.org>

 eclass/toolchain.eclass | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)
Comment 6 Larry the Git Cow gentoo-dev 2025-04-19 19:16:26 UTC
The bug has been referenced in the following commit(s):

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

commit 73fda26842575668580ad90e98ef93cdb73cd329
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2025-04-19 19:12:39 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2025-04-19 19:14:36 +0000

    toolchain.eclass: only enable JIT with USE=jit
    
    My fix in 6335bd10dfd41fa1f1a508c9e4d3458b6ae39a91 exposed another
    issue with USE="-jit libgdiagnostics" that was being obscured by the
    issue I fixed in that commit: with USE=-jit, as long as we were still
    doing the separate host-shared build (with USE=libgdiagnostics), we were
    still passing --enable-languages=jit.
    
    Bug: https://bugs.gentoo.org/953823
    Closes: https://bugs.gentoo.org/954077
    Signed-off-by: Sam James <sam@gentoo.org>

 eclass/toolchain.eclass | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)