Created attachment 871989 [details] build log (xz) (...) make[2]: Entering directory '/var/tmp/portage/sys-devel/gcc-13.2.1_p20230826/work/build' Configuring stage 2 in ./libcody configure: creating cache ./config.cache checking build system type... powerpc64le-unknown-linux-gnu checking host system type... powerpc64le-unknown-linux-gnu checking maintainer-mode... checking whether the C++ compiler works... no configure: error: in `/var/tmp/portage/sys-devel/gcc-13.2.1_p20230826/work/build/libcody': configure: error: C++ compiler cannot create executables See `config.log' for more details make[2]: *** [Makefile:10088: configure-stage2-libcody] Error 77 (and many more errors following)
Created attachment 871991 [details] build log (xz) outside catalyst
Created attachment 871992 [details] emerge --info
Created attachment 871993 [details] gcc build logs
the build passes -Wl,-m -Wl,elf64ppc. the correct emulation is elf64lppc. I'm trying to figure it out with vanilla.
I guess it's caused by the toolchain.eclass changes then, but it's unclear to me why yet. Are we missing some override for that variable in profiles?
(In reply to Sam James from comment #5) > I guess it's caused by the toolchain.eclass changes then, but it's unclear > to me why yet. Are we missing some override for that variable in profiles? $ rg elf64ppc sys-devel/libtool/files/libtool-2.4.6-ppc64le.patch:77: LD="${LD-ld} -m elf64ppc" sys-devel/libtool/files/libtool-2.4.6-ppc64le.patch:81:seems linked to $LD='$LD-ld -m elf64ppc' and failed to compile packages. sys-devel/libtool/files/libtool-2.4.6-ppc64le.patch:106: LD="${LD-ld} -m elf64ppc" sys-devel/binutils/files/binutils-2.35.2-powerpc-tests.patch:27:-#ld: -melf64ppc -Ttext=0x1000 -shared sys-devel/binutils/files/binutils-2.35.2-powerpc-tests.patch:28:+#ld: -melf64ppc -Ttext=0x1000 -shared -z notext sys-devel/binutils/files/binutils-2.35.2-powerpc-tests.patch:40:-#ld: -melf64ppc -Ttext=0x1000 -shared sys-devel/binutils/files/binutils-2.35.2-powerpc-tests.patch:41:+#ld: -melf64ppc -Ttext=0x1000 -shared -z notext sys-devel/binutils/files/binutils-2.35.2-powerpc-tests.patch:71:- {"TLS shared" "-shared -melf64ppc --no-plt-align --no-ld-generated-unwind-info --hash-style=sysv tmpdir/tls.o" "" "" {} sys-devel/binutils/files/binutils-2.35.2-powerpc-tests.patch:72:+ {"TLS shared" "-shared -melf64ppc --no-plt-align --no-ld-generated-unwind-info --hash-style=sysv -z notext tmpdir/tls.o" "" "" {} sys-devel/binutils/files/binutils-2.35.2-powerpc-tests.patch:80:- {"TLSTOC shared" "-shared -melf64ppc --no-plt-align --no-ld-generated-unwind-info --hash-style=sysv tmpdir/tlstoc.o" "" "" {} sys-devel/binutils/files/binutils-2.35.2-powerpc-tests.patch:81:+ {"TLSTOC shared" "-shared -melf64ppc --no-plt-align --no-ld-generated-unwind-info --hash-style=sysv -z notext tmpdir/tlstoc.o" "" "" {} profiles/arch/powerpc/ppc64/make.defaults:25:LDFLAGS_ppc64="-m elf64ppc" vs $ rg elf64lppc sys-devel/libtool/files/libtool-2.4.6-ppc64le.patch:49: elf64lppc sys-devel/libtool/files/libtool-2.4.6-ppc64le.patch:74: LD="${LD-ld} -m elf64lppc" sys-devel/libtool/files/libtool-2.4.6-ppc64le.patch:102: LD="${LD-ld} -m elf64lppc" Looks like we're indeed missing a definition for that variable in profiles (maybe LDFLAGS_ppc64le instead of LDFLAGS_ppc64, not sure yet)?
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e974ac78c7eba3c5dd115e88bd2276dd1e4ecb4c commit e974ac78c7eba3c5dd115e88bd2276dd1e4ecb4c Author: Sam James <sam@gentoo.org> AuthorDate: 2023-10-02 15:04:21 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2023-10-02 15:05:41 +0000 profiles/arch/powerpc/ppc64/64le: set LDFLAGS_ppc64 A recent change to toolchain.eclass (bb2d045c02a6ca647ef3280f4987cbc0d14e5a7e) starts to use LDFLAGS_${ABI}. It turns out in the 64le profiles, we weren't overridding LDLFLAGS_ppc64 so we were picking up the big-endian version (elf64ppc). Fix that - which is in line with what we do for CFLAGS & CHOST in that file anyway. Closes: https://bugs.gentoo.org/915057 Signed-off-by: Sam James <sam@gentoo.org> profiles/arch/powerpc/ppc64/64le/make.defaults | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)