Bug 2336443 - bison fails to build with GCC 15 [NEEDINFO]
Summary: bison fails to build with GCC 15
Keywords:
Status: ASSIGNED
Alias: None
Product: Fedora
Classification: Fedora
Component: bison
Version: 42
Hardware: Unspecified
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Arjun Shankar
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 2339930 (view as bug list)
Depends On:
Blocks: F41FTBFS F42FTBFS gcc-15-mass-prebuild
TreeView+ depends on / blocked
 
Reported: 2025-01-08 19:09 UTC by Dave Malcolm
Modified: 2025-04-25 13:28 UTC (History)
7 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Type: ---
Embargoed:
yselkowi: needinfo? (arjun.is)
yselkowi: needinfo? (arjun.is)


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Fedora Package Sources bison pull-request 5 0 None None None 2025-04-22 22:53:12 UTC
Red Hat Issue Tracker FC-1618 0 None None None 2025-04-22 21:08:03 UTC

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#


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