Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 917557 - dev-lisp/sbcl-2.3.10 fails to compile (lto): interrupt.c:1524:13: error: type of 'os_context_flags_addr' does not match original declaration [-Werror=lto-type-mismatch]
Summary: dev-lisp/sbcl-2.3.10 fails to compile (lto): interrupt.c:1524:13: error: type...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Andrey Grozin
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: lto
  Show dependency tree
 
Reported: 2023-11-18 10:02 UTC by Alfred Wingate
Modified: 2024-08-01 03:46 UTC (History)
2 users (show)

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


Attachments
dev-lisp/sbcl-2.3.10 build.log (gzip compressed) (sbcl-2.3.10:20231118-093641.log.gz,15.97 KB, application/gzip)
2023-11-18 10:02 UTC, Alfred Wingate
Details
emerge --info (emerge--info.txt,21.89 KB, text/plain)
2023-11-18 10:03 UTC, Alfred Wingate
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alfred Wingate 2023-11-18 10:02:47 UTC
Created attachment 875122 [details]
dev-lisp/sbcl-2.3.10 build.log (gzip compressed)

x86_64-pc-linux-gnu-gcc -Wl,-O1 -Wl,--as-needed -O3 -march=znver2 -pipe -flto=auto -fuse-linker-plugin -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing -Wl,--export-dynamic -o sbcl alloc.o arena.o backtrace.o breakpoint.o coalesce.o coreparse.o dynbind.o funcall.o gc-common.o globals.o hopscotch.o interr.o interrupt.o largefile.o main.o math.o monitor.o murmur_hash.o os-common.o parse.o print.o regnames.o runtime.o safepoint.o save.o sc-offset.o search.o stringspace.o thread.o time.o validate.o var-io.o vars.o wrap.o run-program.o sprof.o x86-64-arch.o linux-os.o linux-mman.o x86-64-linux-os.o fullcgc.o gencgc.o traceroot.o immobile-space.o elf.o x86-64-assem.o ../../tlsf-bsd/tlsf/tlsf.o -ldl -lpthread -lzstd  -lm
interrupt.c:1524:13: error: type of 'os_context_flags_addr' does not match original declaration [-Werror=lto-type-mismatch]
 1524 | extern int *os_context_flags_addr(os_context_t *context);
      |             ^
x86-64-arch.c:169:1: note: 'os_context_flags_addr' was previously declared here
  169 | os_context_flags_addr(os_context_t *context)
      | ^
lto1: some warnings being treated as errors
lto-wrapper: fatal error: x86_64-pc-linux-gnu-gcc returned 1 exit status
compilation terminated.
Comment 1 Alfred Wingate 2023-11-18 10:03:21 UTC
Created attachment 875123 [details]
emerge --info
Comment 2 Larry the Git Cow gentoo-dev 2024-07-12 05:55:14 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=34841cdadae59fdff3e198192506bfd2fcd1fac5

commit 34841cdadae59fdff3e198192506bfd2fcd1fac5
Author:     Eli Schwartz <eschwartz@gentoo.org>
AuthorDate: 2024-07-11 22:28:34 +0000
Commit:     Eli Schwartz <eschwartz@gentoo.org>
CommitDate: 2024-07-12 05:54:15 +0000

    dev-lisp/sbcl: mark as LTO-unsafe
    
    Closes: https://bugs.gentoo.org/917557
    Signed-off-by: Eli Schwartz <eschwartz@gentoo.org>

 dev-lisp/sbcl/sbcl-2.3.5.ebuild | 5 +++++
 dev-lisp/sbcl/sbcl-2.4.3.ebuild | 5 +++++
 dev-lisp/sbcl/sbcl-2.4.5.ebuild | 5 +++++
 dev-lisp/sbcl/sbcl-2.4.6.ebuild | 5 +++++
 4 files changed, 20 insertions(+)
Comment 3 Larry the Git Cow gentoo-dev 2024-08-01 03:46:29 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=62133ddd7f6165145cff426c326bdf49f6600d46

commit 62133ddd7f6165145cff426c326bdf49f6600d46
Author:     Eli Schwartz <eschwartz@gentoo.org>
AuthorDate: 2024-08-01 03:44:23 +0000
Commit:     Eli Schwartz <eschwartz@gentoo.org>
CommitDate: 2024-08-01 03:45:43 +0000

    dev-lisp/sbcl: remove outdated LTO workaround
    
    We reported the issue upstream, and it was fixed for 2.4.7.
    
    Bug: https://bugs.gentoo.org/917557
    Signed-off-by: Eli Schwartz <eschwartz@gentoo.org>

 dev-lisp/sbcl/sbcl-2.4.7.ebuild | 5 -----
 1 file changed, 5 deletions(-)