Bug 2336714

Summary: emacspeak failed to build with GCC 15 (libgccjitcrash? error: in jit_langhook_pushdecl, at jit/dummy-frontend.cc:1375)
Product: [Fedora] Fedora Reporter: Dave Malcolm <dmalcolm>
Component: gccAssignee: Jakub Jelinek <jakub>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: rawhideCC: dmalcolm, fweimer, jakub, jlaw, josmyers, jwakely, mcermak, mpolacek, msebor, nickc, nixuser, petersen, sipoyare
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: gcc-15.0.1-0.5.fc42 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2025-02-01 13:36:14 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2333037    

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