Created attachment 875409 [details] build log Steps to reproduce: 1. be in an x86 (i686) environment (chroot) 2. set clang+lld as the default compiler 3. try to emerge dev-libs/nss-3.91 with the -flto switch in CFLAGS/CXXFLAGS The following error is produced: ``` >>> Compiling source in /var/tmp/portage/dev-libs/nss-3.91/work/nss-3.91/nss ... * abi_x86_32.x86: running multilib-minimal_abi_src_compile * Running compilation test to determine bit'ness * ERROR: dev-libs/nss-3.91::gentoo failed (compile phase): * Failed to detect whether clang builds 64bits or 32bits, disable distcc if you're using it, please * ``` Possibly related to bug 915890. Attaching logs.
Created attachment 875410 [details] emerge --info
We should pass -fno-lto for the bitness check and/or switch to the new thing in toolchain-funcs.eclass.
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c39014fbcff1d16d14556bf750066a99d69c9e68 commit c39014fbcff1d16d14556bf750066a99d69c9e68 Author: Joonas Niilola <juippis@gentoo.org> AuthorDate: 2023-12-16 08:23:52 +0000 Commit: Joonas Niilola <juippis@gentoo.org> CommitDate: 2023-12-16 08:24:48 +0000 dev-libs/nss: disable lto with clang on x86, on 3.96 Bug: https://bugs.gentoo.org/917792 Signed-off-by: Joonas Niilola <juippis@gentoo.org> dev-libs/nss/nss-3.96.ebuild | 9 +++++++++ 1 file changed, 9 insertions(+)
Will backport to nss-esr once it's clear that nss-esr even is a thing anymore.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1387931f892a0eadab06a7f9f6cc2854f1105c24 commit 1387931f892a0eadab06a7f9f6cc2854f1105c24 Author: Sam James <sam@gentoo.org> AuthorDate: 2023-12-16 08:35:46 +0000 Commit: Joonas Niilola <juippis@gentoo.org> CommitDate: 2023-12-16 09:53:24 +0000 dev-libs/nss: fix bitness check for LTO Closes: https://bugs.gentoo.org/917792 Signed-off-by: Sam James <sam@gentoo.org> Signed-off-by: Joonas Niilola <juippis@gentoo.org> dev-libs/nss/nss-3.96.ebuild | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-)
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5342a0ba4686d0d75f7bdbf4e8645fa607748d92 commit 5342a0ba4686d0d75f7bdbf4e8645fa607748d92 Author: Sam James <sam@gentoo.org> AuthorDate: 2024-02-18 04:11:59 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2024-02-18 04:12:32 +0000 dev-libs/nspr: sync bitness check from dev-libs/nss Pass -fno-lto to the compiler and -S to file, as we do in dev-libs/nss. Bug: https://bugs.gentoo.org/915890 Bug: https://bugs.gentoo.org/917792 Signed-off-by: Sam James <sam@gentoo.org> dev-libs/nspr/nspr-4.35-r2.ebuild | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)