Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 855953 - dev-libs/libsigsegv-2.14 fails to compile: sigcontext.h:40:8: error: redefinition of struct _fpx_sw_bytes
Summary: dev-libs/libsigsegv-2.14 fails to compile: sigcontext.h:40:8: error: redefini...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Common Lisp Bugs
URL:
Whiteboard:
Keywords:
Depends on: 927756
Blocks: c99-porting
  Show dependency tree
 
Reported: 2022-07-02 16:55 UTC by Agostino Sarubbo
Modified: 2024-03-24 21:28 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,53.73 KB, text/plain)
2022-07-02 16:55 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2022-07-02 16:55:13 UTC
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
Comment 1 Agostino Sarubbo gentoo-dev 2022-07-02 16:55:15 UTC
Created attachment 789641 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2022-07-02 17:26:41 UTC
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
Comment 3 Eli Schwartz 2024-03-03 22:58:20 UTC
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
Comment 4 Larry the Git Cow gentoo-dev 2024-03-04 05:30:26 UTC
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(+)
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-03-04 05:31:37 UTC
A configure test was confused.