Summary: | app-editors/xemacs-21.5.35-r3 - [gcc-15] econf failed | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Toralf Förster <toralf> |
Component: | Current packages | Assignee: | XEmacs team <xemacs> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | matsl |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
emerge-info.txt
app-editors:xemacs-21.5.35-r3:20240927-014006.log emerge-history.txt environment etc.clang.tar.xz etc.portage.tar.xz logs.tar.xz qlist-info.txt temp.tar.xz |
Description
Toralf Förster
2024-09-27 07:16:30 UTC
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(+) |