Bug 2336714 - emacspeak failed to build with GCC 15 (libgccjitcrash? error: in jit_langhook_pushdecl, at jit/dummy-frontend.cc:1375)
Summary: emacspeak failed to build with GCC 15 (libgccjitcrash? error: in jit_langhook...
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: gcc
Version: rawhide
Hardware: Unspecified
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Jakub Jelinek
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: gcc-15-mass-prebuild
TreeView+ depends on / blocked
 
Reported: 2025-01-09 19:46 UTC by Dave Malcolm
Modified: 2025-02-01 13:36 UTC (History)
13 users (show)

Fixed In Version: gcc-15.0.1-0.5.fc42
Clone Of:
Environment:
Last Closed: 2025-02-01 13:36:14 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Dave Malcolm 2025-01-09 19:46:19 UTC
I'm experimentally rebuilding rawhide with the not-yet-released GCC 15 to see if anything breaks, and to help write the porting guide.  See https://fedoraproject.org/wiki/User:Dmalcolm/gcc-15

My test build with GCC 15 failed on aarch64, ppc64le and s390x (though it worked on x86_64):
https://copr.fedorainfracloud.org/coprs/dmalcolm/gcc-15-smoketest-3.failed/build/8476306/

whereas my test build with GCC 14 succeeded:
https://copr.fedorainfracloud.org/coprs/dmalcolm/gcc-15-smoketest-3.failed.checker/build/8478504/

Looking at the failure logs e.g.
https://download.copr.fedorainfracloud.org/results/dmalcolm/gcc-15-smoketest-3.failed/fedora-rawhide-s390x/08476306-emacspeak/builder-live.log.gz

I see:

Unknown type:
 <integer_type 0x3ff8f2909d8 TI
    size <integer_cst 0x3ff8f282990 type <integer_type 0x3ff8f2900a8 bitsizetype> constant 128>
    unit-size <integer_cst 0x3ff8f2829a8 type <integer_type 0x3ff8f290000 sizetype> constant 16>
    align:64 warn_if_not_align:0 symtab:0 alias-set -1 canonical-type 0x3ff8f2909d8 precision:128 min <integer_cst 0x3ff8f283540 -170141183460469231731687303715884105728> max <integer_cst 0x3ff8f283560 170141183460469231731687303715884105727>>
libgccjit.so: <built-in>:0:0: error: in tree_type_to_jit_type, at jit/dummy-frontend.cc:1305
Please submit a full bug report, with preprocessed source (by using -freport-bug).
See <http://bugzilla.redhat.com/bugzilla> for instructions.

Looks like it's hitting this code in libgccjit:

    fprintf (stderr, "Unknown type:\n");
    debug_tree (type);
    abort ();

and this is presumably a regression in GCC 15.

Reproducible: Didn't try

Comment 1 Jakub Jelinek 2025-01-10 12:30:41 UTC
Perhaps related to https://gcc.gnu.org/PR117886 ?

Comment 2 Jens Petersen 2025-01-14 07:08:22 UTC
(Just noting that I updated emacspeak to v60.0, though I doubt it makes any difference here)

Comment 3 Jens Petersen 2025-01-16 04:34:13 UTC
So maybe this is already fixed now?  I think this can probably be closed.

Comment 4 Siddhesh Poyarekar 2025-01-16 14:34:55 UTC
Still an issue, assigning to gcc since it looks more likely to be a compiler issue.

Comment 5 Dave Malcolm 2025-01-22 21:08:04 UTC
See https://bugzilla.redhat.com/show_bug.cgi?id=2338605#c5


Note You need to log in before you can comment on or make changes to this bug.