Downgrading
sys-apps/gawk to 5.1.1-r2 fixed the issue for me, thanks for the heads up. I didn't try
sys-apps/gawk-5.2.0 with
pma USE flag enabled, maybe that works too.
Edit: I managed to compile 5.15.65 and 5.19.7 kernels but compiling 5.10.141 still fails and now gives the following errors:
Code: Select all
cd /usr/src/linux/
% sudo make oldconfig
% sudo make -j$(nproc)
% sudo make -j$(nproc) modules_install
% sudo make -j$(nproc) install
Code: Select all
HOSTCC scripts/basic/fixdep
HOSTCC scripts/kconfig/conf.o
HOSTCC scripts/kconfig/confdata.o
HOSTCC scripts/kconfig/expr.o
LEX scripts/kconfig/lexer.lex.c
YACC scripts/kconfig/parser.tab.[ch]
HOSTCC scripts/kconfig/lexer.lex.o
HOSTCC scripts/kconfig/parser.tab.o
HOSTCC scripts/kconfig/preprocess.o
HOSTCC scripts/kconfig/symbol.o
HOSTCC scripts/kconfig/util.o
HOSTLD scripts/kconfig/conf
#
# configuration written to .config
#
SYSTBL arch/x86/include/generated/asm/syscalls_32.h
SYSHDR arch/x86/include/generated/asm/unistd_32_ia32.h
SYSHDR arch/x86/include/generated/asm/unistd_64_x32.h
SYSHDR arch/x86/include/generated/uapi/asm/unistd_32.h
SYSTBL arch/x86/include/generated/asm/syscalls_64.h
SYSHDR arch/x86/include/generated/uapi/asm/unistd_64.h
SYSHDR arch/x86/include/generated/uapi/asm/unistd_x32.h
WRAP arch/x86/include/generated/uapi/asm/bpf_perf_event.h
WRAP arch/x86/include/generated/uapi/asm/errno.h
WRAP arch/x86/include/generated/uapi/asm/fcntl.h
WRAP arch/x86/include/generated/uapi/asm/ioctl.h
WRAP arch/x86/include/generated/uapi/asm/ioctls.h
WRAP arch/x86/include/generated/uapi/asm/ipcbuf.h
WRAP arch/x86/include/generated/uapi/asm/poll.h
WRAP arch/x86/include/generated/uapi/asm/param.h
WRAP arch/x86/include/generated/uapi/asm/resource.h
WRAP arch/x86/include/generated/uapi/asm/socket.h
WRAP arch/x86/include/generated/uapi/asm/sockios.h
WRAP arch/x86/include/generated/uapi/asm/termbits.h
WRAP arch/x86/include/generated/uapi/asm/types.h
WRAP arch/x86/include/generated/uapi/asm/termios.h
HOSTCC arch/x86/tools/relocs_32.o
HOSTCC arch/x86/tools/relocs_64.o
HOSTCC arch/x86/tools/relocs_common.o
WRAP arch/x86/include/generated/asm/early_ioremap.h
WRAP arch/x86/include/generated/asm/mcs_spinlock.h
WRAP arch/x86/include/generated/asm/irq_regs.h
WRAP arch/x86/include/generated/asm/export.h
WRAP arch/x86/include/generated/asm/mm-arch-hooks.h
WRAP arch/x86/include/generated/asm/local64.h
WRAP arch/x86/include/generated/asm/mmiowb.h
WRAP arch/x86/include/generated/asm/module.lds.h
WRAP arch/x86/include/generated/asm/rwonce.h
UPD include/generated/uapi/linux/version.h
UPD include/config/kernel.release
HOSTCC scripts/bin2c
HOSTCC scripts/kallsyms
HOSTCC scripts/recordmcount
HOSTCC scripts/sorttable
HOSTCC scripts/asn1_compiler
UPD include/generated/utsrelease.h
HOSTCC scripts/extract-cert
DESCEND objtool
HOSTCC /usr/src/linux-5.10.141-gentoo/tools/objtool/fixdep.o
HOSTLD /usr/src/linux-5.10.141-gentoo/tools/objtool/fixdep-in.o
LINK /usr/src/linux-5.10.141-gentoo/tools/objtool/fixdep
CC /usr/src/linux-5.10.141-gentoo/tools/objtool/weak.o
CC /usr/src/linux-5.10.141-gentoo/tools/objtool/exec-cmd.o
CC /usr/src/linux-5.10.141-gentoo/tools/objtool/arch/x86/special.o
CC /usr/src/linux-5.10.141-gentoo/tools/objtool/help.o
CC /usr/src/linux-5.10.141-gentoo/tools/objtool/pager.o
HOSTLD arch/x86/tools/relocs
CC /usr/src/linux-5.10.141-gentoo/tools/objtool/parse-options.o
CC /usr/src/linux-5.10.141-gentoo/tools/objtool/run-command.o
CC /usr/src/linux-5.10.141-gentoo/tools/objtool/sigchain.o
CC /usr/src/linux-5.10.141-gentoo/tools/objtool/arch/x86/decode.o
In file included from arch/x86/decode.c:11:
arch/x86/../../../arch/x86/lib/inat.c: In function ‘inat_get_opcode_attribute’:
arch/x86/../../../arch/x86/lib/inat.c:15:16: error: ‘inat_primary_table’ undeclared (first use in this function)
15 | return inat_primary_table[opcode];
| ^~~~~~~~~~~~~~~~~~
arch/x86/../../../arch/x86/lib/inat.c:15:16: note: each undeclared identifier is reported only once for each function it appears in
arch/x86/../../../arch/x86/lib/inat.c: In function ‘inat_get_escape_attribute’:
arch/x86/../../../arch/x86/lib/inat.c:34:17: error: ‘inat_escape_tables’ undeclared (first use in this function); did you mean ‘inat_escape_id’?
34 | table = inat_escape_tables[n][0];
| ^~~~~~~~~~~~~~~~~~
| inat_escape_id
arch/x86/../../../arch/x86/lib/inat.c:30:13: error: variable ‘n’ set but not used [-Werror=unused-but-set-variable]
30 | int n;
| ^
arch/x86/../../../arch/x86/lib/inat.c: In function ‘inat_get_group_attribute’:
arch/x86/../../../arch/x86/lib/inat.c:53:17: error: ‘inat_group_tables’ undeclared (first use in this function); did you mean ‘inat_group_id’?
53 | table = inat_group_tables[n][0];
| ^~~~~~~~~~~~~~~~~
| inat_group_id
arch/x86/../../../arch/x86/lib/inat.c:49:13: error: variable ‘n’ set but not used [-Werror=unused-but-set-variable]
49 | int n;
| ^
arch/x86/../../../arch/x86/lib/inat.c: In function ‘inat_get_avx_attribute’:
arch/x86/../../../arch/x86/lib/inat.c:72:17: error: ‘inat_avx_tables’ undeclared (first use in this function)
72 | table = inat_avx_tables[vex_m][0];
| ^~~~~~~~~~~~~~~
CC /usr/src/linux-5.10.141-gentoo/tools/objtool/subcmd-config.o
CC /usr/src/linux-5.10.141-gentoo/tools/objtool/check.o
arch/x86/../../../arch/x86/lib/inat.c: In function ‘inat_get_opcode_attribute’:
arch/x86/../../../arch/x86/lib/inat.c:16:1: error: control reaches end of non-void function [-Werror=return-type]
16 | }
| ^
CC /usr/src/linux-5.10.141-gentoo/tools/objtool/special.o
cc1: all warnings being treated as errors
make[4]: *** [/usr/src/linux-5.10.141-gentoo/tools/build/Makefile.build:96: /usr/src/linux-5.10.141-gentoo/tools/objtool/arch/x86/decode.o] Error 1
make[3]: *** [/usr/src/linux-5.10.141-gentoo/tools/build/Makefile.build:139: arch/x86] Error 2
make[3]: *** Waiting for unfinished jobs....
CC scripts/mod/empty.o
HOSTCC scripts/mod/mk_elfconfig
CC scripts/mod/devicetable-offsets.s
UPD scripts/mod/devicetable-offsets.h
MKELF scripts/mod/elfconfig.h
HOSTCC scripts/mod/modpost.o
HOSTCC scripts/mod/file2alias.o
HOSTCC scripts/mod/sumversion.o
LD /usr/src/linux-5.10.141-gentoo/tools/objtool/libsubcmd-in.o
AR /usr/src/linux-5.10.141-gentoo/tools/objtool/libsubcmd.a
HOSTLD scripts/mod/modpost
CC kernel/bounds.s
CALL scripts/atomic/check-atomics.sh
UPD include/generated/timeconst.h
UPD include/generated/bounds.h
CC arch/x86/kernel/asm-offsets.s
make[2]: *** [Makefile:55: /usr/src/linux-5.10.141-gentoo/tools/objtool/objtool-in.o] Error 2
make[1]: *** [Makefile:68: objtool] Error 2
make: *** [Makefile:1958: tools/objtool] Error 2
make: *** Waiting for unfinished jobs....
UPD include/generated/asm-offsets.h
CALL scripts/checksyscalls.sh
That's with
sys-apps/gawk-5.1.1-r2. I'm not sure if that's related but I didn't get these errors before with 5.2.0.