Cannot build Linux 5.17 on Fedora 36

From: Artem S. Tashkinov
Date: Wed May 18 2022 - 03:59:59 EST


Hi,

I cannot build vanilla Linux 5.17:

# 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/menu.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'
gold linker is not supported as it is not capable of linking the kernel
proper.
scripts/Kconfig.include:56: Sorry, this linker is not supported.
make[1]: *** [scripts/kconfig/Makefile:87: defconfig] Error 1
make: *** [Makefile:619: defconfig] Error 2

No idea what's going on. I've recently updated gcc and binutils packages.

# dnf update
Dependencies resolved.
Nothing to do.
Complete!

binutils-2.37-27.fc36.x86_64
gcc-12.1.1-1.fc36.x86_64

ls -la /etc/alternatives/ld
lrwxrwxrwx. 1 root root 15 Oct 7 2020 /etc/alternatives/ld ->
/usr/bin/ld.bfd

So, the symbolic link hasn't been changed in more than a year.

No idea what's going on. What am I missing?

Best regards,
Artem