https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/ Issue: dev-libs/libsigsegv-2.14 fails to compile (lto). Discovered on: amd64 (internal ref: lto_tinderbox) NOTE: This machine uses lto with CFLAGS=-flto -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing
Created attachment 789641 [details] build.log build log and emerge --info
I'm not 100% sure that it is an lto fault. After if you dig into it, please remove the blocker bug if you think this has nothing to do with lto. Thanks
It's not an LTO bug. The same error occurs when building without LTO flags. libtool: compile: x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I. -I. -march=native -fstack-protector-all -O2 -pipe -fdiagnostics-color=always -frecord-gcc-switches -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -fstack-clash-protection -Wformat -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -Werror=int-conversion -c version.c -fPIC -DPIC -o .libs/version.o In file included from fault-linux-x86_64-old.h:17, from fault.h:36, from handler-unix.c:77, from handler.c:19: /usr/include/asm/sigcontext.h:40:8: error: redefinition of 'struct _fpx_sw_bytes' 40 | struct _fpx_sw_bytes { | ^~~~~~~~~~~~~ In file included from /usr/include/signal.h:301, from sigsegv.h:31, from handler-unix.c:25: /usr/include/bits/sigcontext.h:31:8: note: originally defined here 31 | struct _fpx_sw_bytes | ^~~~~~~~~~~~~ /usr/include/asm/sigcontext.h:85:8: error: redefinition of 'struct _fpreg' 85 | struct _fpreg { | ^~~~~~ /usr/include/bits/sigcontext.h:40:8: note: originally defined here 40 | struct _fpreg | ^~~~~~ /usr/include/asm/sigcontext.h:91:8: error: redefinition of 'struct _fpxreg' 91 | struct _fpxreg { | ^~~~~~~ /usr/include/bits/sigcontext.h:46:8: note: originally defined here 46 | struct _fpxreg | ^~~~~~~ /usr/include/asm/sigcontext.h:98:8: error: redefinition of 'struct _xmmreg' 98 | struct _xmmreg { | ^~~~~~~ /usr/include/bits/sigcontext.h:53:8: note: originally defined here 53 | struct _xmmreg | ^~~~~~~ /usr/include/asm/sigcontext.h:180:8: error: redefinition of 'struct _ymmh_state' 180 | struct _ymmh_state { | ^~~~~~~~~~~ /usr/include/bits/sigcontext.h:184:8: note: originally defined here 184 | struct _ymmh_state | ^~~~~~~~~~~ /usr/include/asm/sigcontext.h:192:8: error: redefinition of 'struct _xstate' 192 | struct _xstate { | ^~~~~~~ /usr/include/bits/sigcontext.h:189:8: note: originally defined here 189 | struct _xstate | ^~~~~~~ /usr/include/asm/sigcontext.h:317:8: error: redefinition of 'struct sigcontext' 317 | struct sigcontext { | ^~~~~~~~~~ /usr/include/bits/sigcontext.h:139:8: note: originally defined here 139 | struct sigcontext
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=831da4211843bab2a3f5c7a54aed9f5c59738b75 commit 831da4211843bab2a3f5c7a54aed9f5c59738b75 Author: Sam James <sam@gentoo.org> AuthorDate: 2024-03-04 05:29:45 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2024-03-04 05:29:45 +0000 dev-libs/libsigsegv: update EAPI 7 -> 8, modern C fixes Closes: https://bugs.gentoo.org/855953 Closes: https://bugs.gentoo.org/893896 Signed-off-by: Sam James <sam@gentoo.org> .../libsigsegv/files/libsigsegv-2.14-c99.patch | 79 ++++++++++++++++++++++ dev-libs/libsigsegv/libsigsegv-2.14-r1.ebuild | 40 +++++++++++ 2 files changed, 119 insertions(+)
A configure test was confused.
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=aa4f238c6a62734582e1b9a8f8c233f6bc6f496c commit aa4f238c6a62734582e1b9a8f8c233f6bc6f496c Author: Andreas K. Hüttel <dilfridge@gentoo.org> AuthorDate: 2024-10-25 20:24:29 +0000 Commit: Andreas K. Hüttel <dilfridge@gentoo.org> CommitDate: 2024-10-25 20:24:41 +0000 dev-libs/libsigsegv: drop 2.13, 2.14 Bug: https://bugs.gentoo.org/855953 Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org> dev-libs/libsigsegv/Manifest | 1 - .../libsigsegv-2.12-skip-stackoverflow-tests.patch | 13 -------- dev-libs/libsigsegv/libsigsegv-2.13.ebuild | 34 -------------------- dev-libs/libsigsegv/libsigsegv-2.14.ebuild | 36 ---------------------- 4 files changed, 84 deletions(-)