Bug 2151104 - bison: Implicit declaration of yydestruct in test case
Summary: bison: Implicit declaration of yydestruct in test case
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: bison
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Arjun Shankar
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: PortingToModernCHelpNeeded
TreeView+ depends on / blocked
 
Reported: 2022-12-06 06:38 UTC by Florian Weimer
Modified: 2023-02-22 13:48 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2023-02-22 13:48:58 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Florian Weimer 2022-12-06 06:38:56 UTC
Instrumentation shows that something contains an implicit function declaration somewhere in the sources:

*** GCC errors begin ***
input.c:1162: implicit function declaration: yydestruct
*** GCC errors end ***

I assume it's in a test case, and apparently the compilation error is ignored for some reason.

Full build logs are here:

<https://gitlab.com/fweimer-rh/fedora-modernc-logs/-/blob/main/logs/b/bison.log>

Links to resources (mock configuration, container image):

https://fedoraproject.org/wiki/Toolchain/PortingToModernC#Discovering_Packages_Which_Need_Fixing

Comment 1 Carlos O'Donell 2022-12-06 14:16:19 UTC
We discussed this today in the Fedora triage for this package and noted that this is likely an issue in the testsuite.

Comment 2 Ben Cotton 2023-02-07 15:00:27 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 38 development cycle.
Changing version to 38.

Comment 3 Arjun Shankar 2023-02-22 13:48:58 UTC
After triaging this, it turned out to be an expected failure. tests/synclines.at contains a "union name syncline" test that uses a reserved word for a union name. That error cascades down to an implicit function declaration (it's due to gcc not knowing one of the types used in the earlier definition of that function). So we will leave bison unchanged and let the implicit function declaration error to exist.

For the fedora-modernc porting initiative where these sorts of errors lead to a package build failure, Florian has checked in an exception so bison can continue to build there.


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