Bug 2339816 - gawk: FTBFS in Fedora rawhide/f42
Summary: gawk: FTBFS in Fedora rawhide/f42
Keywords:
Status: CLOSED DUPLICATE of bug 2340191
Alias: None
Product: Fedora
Classification: Fedora
Component: gawk
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Jakub Martisko
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: F41FTBFS
TreeView+ depends on / blocked
 
Reported: 2025-01-22 18:17 UTC by Fedora Release Engineering
Modified: 2025-01-22 21:11 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2025-01-22 21:11:39 UTC
Type: ---
Embargoed:


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

Description Fedora Release Engineering 2025-01-22 18:17:40 UTC
gawk failed to build from source in Fedora rawhide/f42

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


For details on the mass rebuild see:

https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
Please fix gawk 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,
gawk will be orphaned. Before branching of Fedora 43,
gawk 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 18:17:47 UTC
Created attachment 2068041 [details]
build.log

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

Comment 2 Fedora Release Engineering 2025-01-22 18:17:53 UTC
Created attachment 2068042 [details]
root.log

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

Comment 3 Fedora Release Engineering 2025-01-22 18:17:56 UTC
Created attachment 2068043 [details]
state.log

Comment 4 Andrew Schorr 2025-01-22 19:38:47 UTC
From build.log, the compile is failing in io.c:

gcc -DDEFPATH='".:/usr/share/awk"' -DDEFLIBPATH="\"/usr/lib64/gawk\"" -DSHLIBEXT="\"so"\" -DHAVE_CONFIG_H -DGAWK -DLOCALEDIR='"/usr/share/locale"' -I"./support" -I.    -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  -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer  -DNDEBUG -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  -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer  -DNDEBUG -c -o io.o io.c
make[2]: Leaving directory '/builddir/build/BUILD/gawk-5.3.0-build/gawk-5.3.0'
io.c: In function ‘iop_alloc’:
io.c:3389:31: error: assignment to ‘ssize_t (*)(int,  void *, size_t)’ {aka ‘long int (*)(int,  void *, long unsigned int)’} from incompatible pointer type ‘ssize_t (*)(void)’ {aka ‘long int (*)(void)’} [-Wincompatible-pointer-types]
 3389 |         iop->public.read_func = ( ssize_t(*)() ) read;
      |                               ^
io.c: In function ‘get_read_timeout’:
io.c:4449:36: warning: comparison of distinct pointer types lacks a cast [-Wcompare-distinct-pointer-types]
 4449 |         if ((iop->public.read_func == ( ssize_t(*)() ) read) && tmout > 0)
      |                                    ^~
make[2]: *** [Makefile:767: io.o] Error 1

This issue is fixed in gawk-5.3.1. I think the simplest solution is to upgrade to gawk-5.3.1

Regards,
Andy

Comment 5 Fedora Release Engineering 2025-01-22 21:11:39 UTC

*** This bug has been marked as a duplicate of bug 2340191 ***


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