Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 931082 - dev-lisp/gcl-2.6.15_pre3 fails to compile with sys-devel/gcc and LTO (block.c:123:1: internal compiler error: verify_type failed)
Summary: dev-lisp/gcl-2.6.15_pre3 fails to compile with sys-devel/gcc and LTO (block.c...
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: lto
  Show dependency tree
 
Reported: 2024-05-02 07:18 UTC by Agostino Sarubbo
Modified: 2024-06-29 10:56 UTC (History)
1 user (show)

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


Attachments
build.log (build.log,123.40 KB, text/plain)
2024-05-02 07:18 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 2024-05-02 07:18:03 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: dev-lisp/gcl-2.6.15_pre3 fails to compile.
Discovered on: amd64 (internal ref: lto_tinderbox)
System: LTO-SYSTEM (https://wiki.gentoo.org/wiki/Project:Tinderbox/Common_Issues_Helper#LTO)

Info about the issue:
https://wiki.gentoo.org/wiki/Project:Tinderbox/Common_Issues_Helper#CF0014
Comment 1 Agostino Sarubbo gentoo-dev 2024-05-02 07:18:03 UTC
CC'ing also toolchain@ because it is an ICE
Comment 2 Agostino Sarubbo gentoo-dev 2024-05-02 07:18:05 UTC
Created attachment 892125 [details]
build.log

build log and emerge --info
Comment 3 Agostino Sarubbo gentoo-dev 2024-05-02 07:18:05 UTC
Error(s) that match a know pattern in addition to what has been reported in the summary:


./configure: line 7577:  1466 Segmentation fault      ( $CC $LDFLAGS -Wl,-T gcl.script foo.c -o foo && ./foo ) > /dev/null 2>&1
./configure: line 7577:  1478 Segmentation fault      ( $CC $LDFLAGS -Wl,-T gcl.script foo.c -o foo && ./foo ) > /dev/null 2>&1
./configure: line 7577:  1490 Segmentation fault      ( $CC $LDFLAGS -Wl,-T gcl.script foo.c -o foo && ./foo ) > /dev/null 2>&1
./configure: line 7577:  1502 Segmentation fault      ( $CC $LDFLAGS -Wl,-T gcl.script foo.c -o foo && ./foo ) > /dev/null 2>&1
./configure: line 7577:  1514 Segmentation fault      ( $CC $LDFLAGS -Wl,-T gcl.script foo.c -o foo && ./foo ) > /dev/null 2>&1
./configure: line 7577:  1526 Segmentation fault      ( $CC $LDFLAGS -Wl,-T gcl.script foo.c -o foo && ./foo ) > /dev/null 2>&1
./configure: line 7577:  1538 Segmentation fault      ( $CC $LDFLAGS -Wl,-T gcl.script foo.c -o foo && ./foo ) > /dev/null 2>&1
./configure: line 7577:  1550 Segmentation fault      ( $CC $LDFLAGS -Wl,-T gcl.script foo.c -o foo && ./foo ) > /dev/null 2>&1
./configure: line 7577:  1562 Segmentation fault      ( $CC $LDFLAGS -Wl,-T gcl.script foo.c -o foo && ./foo ) > /dev/null 2>&1
./configure: line 7577:  1574 Segmentation fault      ( $CC $LDFLAGS -Wl,-T gcl.script foo.c -o foo && ./foo ) > /dev/null 2>&1
./configure: line 7577:  1586 Segmentation fault      ( $CC $LDFLAGS -Wl,-T gcl.script foo.c -o foo && ./foo ) > /dev/null 2>&1
./configure: line 7577:  1598 Segmentation fault      ( $CC $LDFLAGS -Wl,-T gcl.script foo.c -o foo && ./foo ) > /dev/null 2>&1
./configure: line 7577:  1610 Segmentation fault      ( $CC $LDFLAGS -Wl,-T gcl.script foo.c -o foo && ./foo ) > /dev/null 2>&1
./configure: line 7577:  1622 Segmentation fault      ( $CC $LDFLAGS -Wl,-T gcl.script foo.c -o foo && ./foo ) > /dev/null 2>&1
./configure: line 7577:  1634 Segmentation fault      ( $CC $LDFLAGS -Wl,-T gcl.script foo.c -o foo && ./foo ) > /dev/null 2>&1
./configure: line 7577:  1646 Segmentation fault      ( $CC $LDFLAGS -Wl,-T gcl.script foo.c -o foo && ./foo ) > /dev/null 2>&1
block.c:123:1: internal compiler error: ‘verify_type’ failed
block.c:123:1: error: type variant has different ‘TREE_TYPE’
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-05-02 07:28:56 UTC
Reported upstream - thanks!

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114918
Comment 5 Larry the Git Cow gentoo-dev 2024-06-29 10:55:12 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=438bbadd0f8ab32907dfd3a3f650f91c35196c76

commit 438bbadd0f8ab32907dfd3a3f650f91c35196c76
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2024-06-29 10:51:56 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-06-29 10:52:23 +0000

    dev-lisp/gcl: filter LTO for GCC bug
    
    The code is pretty brittle anyway and we already do strip-flags.
    
    Bug: https://gcc.gnu.org/PR114918
    Bug: https://bugs.gentoo.org/931082
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-lisp/gcl/gcl-2.6.13_pre99.ebuild | 1 +
 dev-lisp/gcl/gcl-2.6.14.ebuild       | 1 +
 dev-lisp/gcl/gcl-2.6.15_pre3.ebuild  | 1 +
 3 files changed, 3 insertions(+)
Comment 6 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-06-29 10:56:15 UTC
Workaround applied and reported to GCC.