*** PANIC *** Configure tests are not working - compiler is broken. *** PANIC *** Please examine config.log for compilation errors. !!! Please attach the following file when seeking support: !!! /var/tmp/portage/app-editors/xemacs-21.5.35-r3/work/xemacs-21.5.35/config.log * ERROR: app-editors/xemacs-21.5.35-r3::gentoo failed (configure phase): * econf failed * * Call stack: ------------------------------------------------------------------- This is an unstable amd64 chroot image at a tinderbox (==build bot) name: 23.0_no_multilib_hardened_systemd-20240925-080506 UNMASKED: /etc/portage/package.unmask/60gcc:<sys-devel/gcc-15.0.9999:15 The attached etc.portage.tar.xz has all details. ------------------------------------------------------------------- gcc-config -l: [1] x86_64-pc-linux-gnu-15 * clang/llvm (if any): clang version 19.1.0 Target: x86_64-pc-linux-gnu Thread model: posix InstalledDir: /usr/lib/llvm/19/bin Configuration file: /etc/clang/x86_64-pc-linux-gnu-clang.cfg /usr/lib/llvm/19 19.1.0 Python 3.12.6 Available Ruby profiles: [1] ruby31 (with Rubygems) [2] ruby32 (with Rubygems) [3] ruby33 (with Rubygems) * Available Rust versions: [1] rust-bin-1.81.0 * The following VMs are available for generation-2: 1) Eclipse Temurin JDK 17.0.12_p7 [openjdk-bin-17] *) Eclipse Temurin JDK 21.0.4_p7 [openjdk-bin-21] Available Java Virtual Machines: [1] openjdk-bin-17 [2] openjdk-bin-21 system-vm The Glorious Glasgow Haskell Compilation System, version 9.2.8 php cli (if any): [1] php8.3 * go version go1.23.1 linux/amd64 HEAD of ::gentoo commit d39e83bfc5f6f711a5a36130e14a114f09584fc8 Author: Repository mirror & CI <repomirrorci@gentoo.org> Date: Fri Sep 27 00:06:30 2024 +0000 2024-09-27 00:06:29 UTC emerge -qpvO =app-editors/xemacs-21.5.35-r3 [ebuild N ] app-editors/xemacs-21.5.35-r3 USE="berkdb bignum gdbm gif -X -Xaw3d -alsa -athena -debug -dnd -gpm -jpeg -ldap -motif -nas -neXt -png -pop -postgres -tiff -xface -xft -xim"
Created attachment 903961 [details] emerge-info.txt
Created attachment 903962 [details] app-editors:xemacs-21.5.35-r3:20240927-014006.log
Created attachment 903963 [details] emerge-history.txt
Created attachment 903964 [details] environment
Created attachment 903965 [details] etc.clang.tar.xz
Created attachment 903966 [details] etc.portage.tar.xz
Created attachment 903967 [details] logs.tar.xz
Created attachment 903968 [details] qlist-info.txt
Created attachment 903969 [details] temp.tar.xz
I'm confused here. LDFLAGS seems to contain "-Werror=lto-type-mismatch" which the linker does not recognize so the configure check fails!? What am I missing, or can it be that the tinderbox build is not configured properly?
``` configure:12694: checking size of short configure:12700: x86_64-pc-linux-gnu-gcc -o conftest -Wall -Wno-switch -Wundef -Wsign-compare -Wno-char-subscripts -Wpacked -Wshadow -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wdeclaration-after-statement -O3 -fno-strict-aliasing -O2 -pipe -march=native -fno-diagnostics-color -Werror=lto-type-mismatch -Werror=strict-aliasing -Werror=odr -flto -no-pie -Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,--defsym=__gentoo_check_ldflags__=0 -Xlinker -Werror=lto-type-mismatch -Xlinker -Werror=strict-aliasing -Xlinker -Werror=odr -flto conftest.c >&5 /usr/lib/gcc/x86_64-pc-linux-gnu/15/../../../../x86_64-pc-linux-gnu/bin/ld: unrecognized option '-Werror=lto-type-mismatch' /usr/lib/gcc/x86_64-pc-linux-gnu/15/../../../../x86_64-pc-linux-gnu/bin/ld: use the --help option for usage information ``` It's getting passed after -Xlinker so it gets interpreted as an actual linker option, not an option for the compiler driver (where it's fine and correct, even). In general, LDFLAGS these days should be taken as args to the driver. But you could workaround it by filtering LDFLAGS for -W* if the build system is too hard to fix.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c390fa2cb398038e30190e64d6ed41e88db5d5ea commit c390fa2cb398038e30190e64d6ed41e88db5d5ea Author: Mats Lidell <matsl@gentoo.org> AuthorDate: 2024-10-18 20:29:31 +0000 Commit: Mats Lidell <matsl@gentoo.org> CommitDate: 2024-10-18 20:37:48 +0000 app-editors/xemacs: Let compiler driver handle LDFLAGS Add upstream patch to no longer use XE_PROTECT_LINKER_FLAGS on LDFLAGS. Closes: https://bugs.gentoo.org/940327 Signed-off-by: Mats Lidell <matsl@gentoo.org> .../xemacs/files/xemacs-21.5.35-linker-flags.patch | 24 ++++++++++++++++++++++ app-editors/xemacs/xemacs-21.5.35-r4.ebuild | 1 + 2 files changed, 25 insertions(+)