Bug 2341343 - sharutils-4.15.2-28.fc43 FTBFS with GCC 15
Summary: sharutils-4.15.2-28.fc43 FTBFS with GCC 15
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: sharutils
Version: 42
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Petr Pisar
QA Contact: Fedora Extras Quality Assurance
URL: https://lists.gnu.org/archive/html/bu...
Whiteboard:
Depends On:
Blocks: F42FTBFS
TreeView+ depends on / blocked
 
Reported: 2025-01-22 21:56 UTC by Fedora Release Engineering
Modified: 2025-03-15 00:41 UTC (History)
4 users (show)

Fixed In Version: sharutils-4.15.2-29.fc42
Clone Of:
Environment:
Last Closed: 2025-03-15 00:41:08 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
build.log (32.00 KB, text/plain)
2025-01-22 21:56 UTC, Fedora Release Engineering
no flags Details
root.log (32.00 KB, text/plain)
2025-01-22 21:56 UTC, Fedora Release Engineering
no flags Details
state.log (1.65 KB, text/plain)
2025-01-22 21:56 UTC, Fedora Release Engineering
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Fedora Package Sources sharutils pull-request 2 0 None None None 2025-02-26 03:38:35 UTC

Description Fedora Release Engineering 2025-01-22 21:56:44 UTC
sharutils failed to build from source in Fedora rawhide/f42

https://koji.fedoraproject.org/koji/taskinfo?taskID=128146835


For details on the mass rebuild see:

https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
Please fix sharutils at your earliest convenience and set the bug's status to
ASSIGNED when you start fixing it. If the bug remains in NEW state for 8 weeks,
sharutils will be orphaned. Before branching of Fedora 43,
sharutils will be retired, if it still fails to build.

For more details on the FTBFS policy, please visit:
https://docs.fedoraproject.org/en-US/fesco/Fails_to_build_from_source_Fails_to_install/

Comment 1 Fedora Release Engineering 2025-01-22 21:56:47 UTC
Created attachment 2072549 [details]
build.log

file build.log too big, will only attach last 32768 bytes

Comment 2 Fedora Release Engineering 2025-01-22 21:56:49 UTC
Created attachment 2072550 [details]
root.log

file root.log too big, will only attach last 32768 bytes

Comment 3 Fedora Release Engineering 2025-01-22 21:56:50 UTC
Created attachment 2072551 [details]
state.log

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

Comment 5 Petr Pisar 2025-03-03 15:58:14 UTC
From the build log:

gcc -DHAVE_CONFIG_H -I. -I..  -I.  -Wno-format-contains-nul -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer  -Wno-format-contains-nul -c -o libopts_a-libopts.o `test -f 'libopts.c' || echo './'`libopts.c
In file included from autoopts/project.h:30,
                 from libopts.c:2:
./compat/compat.h:188:19: error: cannot use keyword ‘false’ as enumeration constant
  188 |    typedef enum { false = 0, true = 1 } _Bool;
      |                   ^~~~~
./compat/compat.h:188:19: note: ‘false’ is a keyword with ‘-std=c23’ onwards
./compat/compat.h:188:41: error: expected ‘;’, identifier or ‘(’ before ‘_Bool’
  188 |    typedef enum { false = 0, true = 1 } _Bool;
      |                                         ^~~~~

This is triggered by a move to GCC 15 which defaults to ISO C23 which added false as keyword. Keywords cannot be used in enumeration definitions.

Comment 6 Fedora Update System 2025-03-05 11:19:43 UTC
FEDORA-2025-3a8c1bc840 (sharutils-4.15.2-29.fc42) has been submitted as an update to Fedora 42.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-3a8c1bc840

Comment 7 Fedora Update System 2025-03-06 01:50:06 UTC
FEDORA-2025-3a8c1bc840 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-3a8c1bc840`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2025-3a8c1bc840

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

Comment 8 Fedora Update System 2025-03-15 00:41:08 UTC
FEDORA-2025-3a8c1bc840 (sharutils-4.15.2-29.fc42) has been pushed to the Fedora 42 stable repository.
If problem still persists, please make note of it in this bug report.


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