Bug 2336443

Summary: bison fails to build with GCC 15
Product: [Fedora] Fedora Reporter: Dave Malcolm <dmalcolm>
Component: bisonAssignee: Arjun Shankar <arjun.is>
Status: ASSIGNED --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 42CC: arjun.is, codonell, me, pfrankli, releng, suraj.ghimire7, yselkowi
Target Milestone: ---Flags: yselkowi: needinfo? (arjun.is)
yselkowi: needinfo? (arjun.is)
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 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: 2260875, 2300528, 2333037    

Description Dave Malcolm 2025-01-08 19:09:35 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:
https://copr.fedorainfracloud.org/coprs/dmalcolm/gcc-15-smoketest-3.failed/build/8476127/

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

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

I see:

(...snippped...)

763: Leaked lookahead after nondeterministic parse syntax error: glr.cc ok
764: Leaked lookahead after nondeterministic parse syntax error: glr2.cc FAILED (glr-regression.at:1862)
765: Uninitialized location when reporting ambiguity: glr.c api.pure ok

(...snippped...)

## ------------- ##
## Test results. ##
## ------------- ##

ERROR: 696 tests were run,
1 failed unexpectedly.

i.e. test 764 is failing for some reason with GCC 15: glr2.cc FAILED (glr-regression.at:1862)

I'm investigating...


Reproducible: Didn't try

Comment 1 Dave Malcolm 2025-01-08 19:18:51 UTC
glr2.cc seems to be here, fwiw:
  https://git.savannah.gnu.org/cgit/bison.git/tree/data/skeletons/glr2.cc

Comment 2 Aoife Moloney 2025-02-26 13:21:50 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 42 development cycle.
Changing version to 42.

Comment 3 Florian Weimer 2025-04-04 13:10:37 UTC
*** Bug 2339930 has been marked as a duplicate of this bug. ***

Comment 4 Yaakov Selkowitz 2025-04-04 17:02:59 UTC
bison has FTBFS in F42+ since January; please fix ASAP.

Comment 5 Fedora Release Engineering 2025-04-20 04:22:20 UTC
Dear Maintainer,

your package has an open Fails To Build From Source bug for Fedora 42.
Action is required from you.

If you can fix your package to build, perform a build in koji, and either create
an update in bodhi, or close this bug without creating an update, if updating is
not appropriate [1]. If you are working on a fix, set the status to ASSIGNED to
acknowledge this. If you have already fixed this issue, please close this Bugzilla report.

Following the policy for such packages [2], your package will be orphaned if
this bug remains in NEW state more than 8 weeks (not sooner than 2025-03-05).

A week before the mass branching of Fedora 43 according to the schedule [3],
any packages not successfully rebuilt at least on Fedora 41 will be
retired regardless of the status of this bug.

[1] https://docs.fedoraproject.org/en-US/fesco/Updates_Policy/
[2] https://docs.fedoraproject.org/en-US/fesco/Fails_to_build_from_source_Fails_to_install/
[3] https://fedorapeople.org/groups/schedule/f-43/f-43-key-tasks.html

Comment 6 Carlos O'Donell 2025-04-25 13:27:30 UTC
Arjun, May you please review Yaakov's MR?
https://src.fedoraproject.org/rpms/bison/pull-request/5#