Reproducible: Always Steps to reproduce: emerge gentoo-sources-5.3.0 make distclean make defconfig make relevant part of build output: CC arch/x86/entry/vdso/vclock_gettime.o CC arch/x86/entry/vdso/vgetcpu.o VDSO arch/x86/entry/vdso/vdso64.so.dbg arch/x86/entry/vdso/vdso64.so.dbg: undefined symbols found make[3]: *** [arch/x86/entry/vdso/Makefile:59: arch/x86/entry/vdso/vdso64.so.dbg] Error 1 make[3]: *** Deleting file 'arch/x86/entry/vdso/vdso64.so.dbg' make[2]: *** [scripts/Makefile.build:497: arch/x86/entry/vdso] Error 2 make[1]: *** [scripts/Makefile.build:497: arch/x86/entry] Error 2 make: *** [Makefile:1083: arch/x86] Error 2
Please attach the entire make output and the .config file to this bug report.
Created attachment 590078 [details] kernel config
Created attachment 590080 [details] make output
Same here. using ld.bfd instead of ld.gold works.
Same here switching from gold to bfd fixes the problem
This also seems to happen on the main stable/linux.git linux-5.3.y branch, and has done so for a few minor release versions. Switching to the bfd linker also works around the issue there.
The gold linker is not supported upstream to the point of now having a commit that will fail when attempted. "kbuild: Fail if gold linker is detected" https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=75959d44f9dc8e44410667009724e4e238515502