Fedora Account System
Red Hat Associate
Red Hat Customer
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/
Created attachment 2068041 [details] build.log file build.log too big, will only attach last 32768 bytes
Created attachment 2068042 [details] root.log file root.log too big, will only attach last 32768 bytes
Created attachment 2068043 [details] state.log
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
*** This bug has been marked as a duplicate of bug 2340191 ***