As the summary states - trying to compile kernel 5.10.11. Here is a logfile of what I did. Note that I tried this both without AND with the recent patch in the git logs to help thunk_64.S compile with LLVM. That patch, by itself, did not help. Running GCC 10.2.0, GLIBC 2.32, binutils 2.36, kernel 5.10.11. When I tried kernel 5.10.6, which I had successfully compiled a short number of days ago with binutils 2.35.1, it also did not compile. So, the upgrade from binutils 2.35.1 to binutils 2.36 has changed something... j-comm@www:/sources% tar xf archive/linux-5.10.11.tar.xz j-comm@www:/sources% cd linux-5.10.11/ j-comm@www:/sources/linux-5.10.11% make mrproper j-comm@www:/sources/linux-5.10.11% make defconfig 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 *** Default configuration is based on 'x86_64_defconfig' # # configuration written to .config # j-comm@www:/sources/linux-5.10.11% make V=1 ... gcc -Wp,-MMD,arch/x86/entry/.thunk_64.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/include -I./arch/x86/include -I./arch/x86/include/generated -I./include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/kconfig.h -D__KERNEL__ -fmacro-prefix-map=./= -D__ASSEMBLY__ -fno-PIE -m64 -c -o arch/x86/entry/thunk_64.o arch/x86/entry/thunk_64.S ./tools/objtool/objtool orc generate --no-fp --retpoline --uaccess arch/x86/entry/thunk_64.o arch/x86/entry/thunk_64.o: warning: objtool: missing symbol table make[2]: *** [scripts/Makefile.build:360: arch/x86/entry/thunk_64.o] Error 1 make[2]: *** Deleting file 'arch/x86/entry/thunk_64.o' make[1]: *** [scripts/Makefile.build:496: arch/x86/entry] Error 2 make: *** [Makefile:1805: arch/x86] Error 2 j-comm@www:/sources/linux-5.10.11%
Confirmed. Got the same error using the same toolchain as Joel. Building with binutils 2.35.1 immediately eliminated the problem.
See: https://bugzilla.kernel.org/show_bug.cgi?id=211443
The kernel patch is at https://lore.kernel.org/patchwork/patch/1357006/
Applied the patch and built again with the aforementioned toolchain. Build succeeded. Thank you.
The patch worked for me as well. Thank you!
Fixed in v5.10.12 by commit c6fd968f58439398b765300aecd7758d501ee49c Author: Josh Poimboeuf <jpoimboe@redhat.com> Date: Thu Jan 14 16:14:01 2021 -0600 objtool: Don't fail on missing symbol table