Bug 2336027

Summary: abcMIDI fails to build with GCC 15 ("error: too many arguments to function")
Product: [Fedora] Fedora Reporter: Dave Malcolm <dmalcolm>
Component: abcMIDIAssignee: Stuart D Gathman <stuart>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 42CC: stuart
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: abcMIDI-2025.02.16-2.fc40 abcMIDI-2025.02.16-2.fc41 abcMIDI-2025.02.16-2.fc42 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2025-05-03 01:11:13 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-06 22:34:43 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/8476058/

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

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

I see:

parseabc.c:3381:11: error: too many arguments to function 'event_temperament'
 3381 |           event_temperament(line);
      |           ^~~~~~~~~~~~~~~~~
In file included from parseabc.c:34:
parseabc.h:174:13: note: declared here
  174 | extern void event_temperament();
      |             ^~~~~~~~~~~~~~~~~


This is probably due to GCC 15 now defaulting to -std=gnu23, whereas GCC 14 defaulted to -std=gnu17, and C23 is stricter about function prototypes than C17.  It's probably fixable by fixing the function prototypes (or by manually adding -std=gnu17 to the C build flags)


Reproducible: Always

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

Comment 2 Fedora Update System 2025-04-24 02:29:40 UTC
FEDORA-2025-a2374a26b8 (abcMIDI-2025.02.16-1.fc40) has been submitted as an update to Fedora 40.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-a2374a26b8

Comment 3 Fedora Update System 2025-04-24 02:29:40 UTC
FEDORA-2025-365abb926f (abcMIDI-2025.02.16-1.fc41) has been submitted as an update to Fedora 41.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-365abb926f

Comment 4 Fedora Update System 2025-04-24 15:13:18 UTC
FEDORA-2025-f0db3c473f (abcMIDI-2025.02.16-2.fc41) has been submitted as an update to Fedora 41.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-f0db3c473f

Comment 5 Fedora Update System 2025-04-24 15:13:19 UTC
FEDORA-2025-1e7429ac9e (abcMIDI-2025.02.16-2.fc40) has been submitted as an update to Fedora 40.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-1e7429ac9e

Comment 6 Fedora Update System 2025-04-25 03:18:04 UTC
FEDORA-2025-1e7429ac9e has been pushed to the Fedora 40 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2025-1e7429ac9e`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2025-1e7429ac9e

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 7 Fedora Update System 2025-04-25 03:45:36 UTC
FEDORA-2025-f0db3c473f has been pushed to the Fedora 41 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2025-f0db3c473f`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2025-f0db3c473f

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 8 Fedora Update System 2025-04-25 04:12:04 UTC
FEDORA-2025-46d9d8c025 has been pushed to the Fedora 42 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2025-46d9d8c025`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2025-46d9d8c025

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 9 Fedora Update System 2025-05-03 01:11:13 UTC
FEDORA-2025-1e7429ac9e (abcMIDI-2025.02.16-2.fc40) has been pushed to the Fedora 40 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 10 Fedora Update System 2025-05-03 01:11:18 UTC
FEDORA-2025-f0db3c473f (abcMIDI-2025.02.16-2.fc41) has been pushed to the Fedora 41 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 11 Fedora Update System 2025-05-03 02:08:44 UTC
FEDORA-2025-46d9d8c025 (abcMIDI-2025.02.16-2.fc42) has been pushed to the Fedora 42 stable repository.
If problem still persists, please make note of it in this bug report.