Volumio kernelsource fails on vanilla 3.785 (16-12-2024)

I just installed a recent Volumio 3.785 on a new SD card and plugged it into my Raspberry Pi 5. I completed the setup assistant (device name, wifi connection, …) and did nothing more than volumio kernelsource via SSH terminal.

tldr: gcc: error: unrecognized command line option '-mgeneral-regs-only'

Full output
$ ssh volumio@volumio-player
volumio@volumio-player's password: 
                       ___
                      /\_ \                        __
         __  __    ___\//\ \    __  __    ___ ___ /\_\    ___
        /\ \/\ \  / __`\\ \ \  /\ \/\ \ /' __` __`\/\ \  / __`\
        \ \ \_/ |/\ \L\ \\_\ \_\ \ \_\ \/\ \/\ \/\ \ \ \/\ \L\ \
         \ \___/ \ \____//\____\\ \____/\ \_\ \_\ \_\ \_\ \____/
          \/__/   \/___/ \/____/ \/___/  \/_/\/_/\/_/\/_/\/___/

             Free Audiophile Linux Music Player - Version 3.0

          © 2015-2021 Michelangelo Guarise - Volumio Team - Volumio.org

Volumio Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Welcome to Volumio for Raspberry Pi (6.6.62-v8+ aarch64)
volumio@volumio-player:~$ volumio kernelsource
[sudo] password for volumio: 
 ---- VOLUMIO RASPBERRY PI KERNEL SOURCE DOWNLOADER ----
 
This process might take a long time
 
Checking if build essential is installed
Installing build essential
Hit:1 http://archive.raspberrypi.org/debian buster InRelease
Hit:2 http://raspbian.raspberrypi.org/raspbian buster InRelease                                              
Hit:3 https://deb.nodesource.com/node_14.x buster InRelease                                                  
Reading package lists... Done                       
Reading package lists... Done
Building dependency tree       
Reading state information... Done
bc is already the newest version (1.07.1-2).
The following additional packages will be installed:
  bzip2 dpkg-dev fakeroot g++ g++-8 gcc gcc-8 libalgorithm-diff-perl libalgorithm-diff-xs-perl libalgorithm-merge-perl libasan5 libcc1-0 libfakeroot libgcc-8-dev libstdc++-8-dev libubsan1 make patch
Suggested packages:
  bzip2-doc debian-keyring gcc-8-doc libstdc++6-8-dbg gcc-multilib autoconf automake libtool flex bison gdb gcc-doc gcc-8-locales libgcc1-dbg libgomp1-dbg libitm1-dbg libatomic1-dbg libasan5-dbg liblsan0-dbg libtsan0-dbg libubsan1-dbg
  libmpx2-dbg libquadmath0-dbg libstdc++-8-doc make-doc ed diffutils-doc
The following NEW packages will be installed:
  build-essential bzip2 dpkg-dev fakeroot g++ g++-8 gcc gcc-8 libalgorithm-diff-perl libalgorithm-diff-xs-perl libalgorithm-merge-perl libasan5 libcc1-0 libfakeroot libgcc-8-dev libstdc++-8-dev libubsan1 make patch
0 upgraded, 19 newly installed, 0 to remove and 2 not upgraded.
Need to get 19.8 MB of archives.
After this operation, 71.0 MB of additional disk space will be used.
Get:1 http://mirror1.hs-esslingen.de/pub/Mirrors/archive.raspbian.org/raspbian buster/main armhf bzip2 armhf 1.0.6-9.2~deb10u2 [46.3 kB]
Get:2 http://mirror1.hs-esslingen.de/pub/Mirrors/archive.raspbian.org/raspbian buster/main armhf libcc1-0 armhf 8.3.0-6+rpi1 [37.9 kB]
Get:3 http://mirror1.hs-esslingen.de/pub/Mirrors/archive.raspbian.org/raspbian buster/main armhf libasan5 armhf 8.3.0-6+rpi1 [317 kB]
Get:4 http://mirror1.hs-esslingen.de/pub/Mirrors/archive.raspbian.org/raspbian buster/main armhf libubsan1 armhf 8.3.0-6+rpi1 [103 kB]
Get:5 http://mirror1.hs-esslingen.de/pub/Mirrors/archive.raspbian.org/raspbian buster/main armhf libgcc-8-dev armhf 8.3.0-6+rpi1 [595 kB]
Get:6 http://mirror1.hs-esslingen.de/pub/Mirrors/archive.raspbian.org/raspbian buster/main armhf gcc-8 armhf 8.3.0-6+rpi1 [7223 kB]
Get:7 http://mirror1.hs-esslingen.de/pub/Mirrors/archive.raspbian.org/raspbian buster/main armhf gcc armhf 4:8.3.0-1+rpi2 [5200 B]
Get:8 http://mirror1.hs-esslingen.de/pub/Mirrors/archive.raspbian.org/raspbian buster/main armhf libstdc++-8-dev armhf 8.3.0-6+rpi1 [1545 kB]
Get:10 http://raspbian.raspberrypi.org/raspbian buster/main armhf g++ armhf 4:8.3.0-1+rpi2 [1632 B]
Get:9 http://mirror1.hs-esslingen.de/pub/Mirrors/archive.raspbian.org/raspbian buster/main armhf g++-8 armhf 8.3.0-6+rpi1 [7464 kB]
Get:11 http://mirror1.hs-esslingen.de/pub/Mirrors/archive.raspbian.org/raspbian buster/main armhf make armhf 4.2.1-1.2 [321 kB]
Get:12 http://mirror1.hs-esslingen.de/pub/Mirrors/archive.raspbian.org/raspbian buster/main armhf patch armhf 2.7.6-3+deb10u1 [115 kB]
Get:13 http://mirror1.hs-esslingen.de/pub/Mirrors/archive.raspbian.org/raspbian buster/main armhf dpkg-dev all 1.19.8 [1776 kB]
Get:14 http://mirror1.hs-esslingen.de/pub/Mirrors/archive.raspbian.org/raspbian buster/main armhf build-essential armhf 12.6 [7568 B]
Get:15 http://mirror1.hs-esslingen.de/pub/Mirrors/archive.raspbian.org/raspbian buster/main armhf libfakeroot armhf 1.23-1 [43.3 kB]
Get:16 http://mirror1.hs-esslingen.de/pub/Mirrors/archive.raspbian.org/raspbian buster/main armhf fakeroot armhf 1.23-1 [85.2 kB]
Get:17 http://mirror1.hs-esslingen.de/pub/Mirrors/archive.raspbian.org/raspbian buster/main armhf libalgorithm-diff-perl all 1.19.03-2 [47.9 kB]
Get:18 http://mirror1.hs-esslingen.de/pub/Mirrors/archive.raspbian.org/raspbian buster/main armhf libalgorithm-diff-xs-perl armhf 0.04-5+b1 [11.4 kB]
Get:19 http://mirror1.hs-esslingen.de/pub/Mirrors/archive.raspbian.org/raspbian buster/main armhf libalgorithm-merge-perl all 0.08-3 [12.7 kB]
Fetched 19.8 MB in 3s (6216 kB/s)                    
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
	LANGUAGE = (unset),
	LC_ALL = (unset),
	LANG = "de_DE.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
debconf: delaying package configuration, since apt-utils is not installed
Selecting previously unselected package bzip2.
(Reading database ... 52613 files and directories currently installed.)
Preparing to unpack .../00-bzip2_1.0.6-9.2~deb10u2_armhf.deb ...
Unpacking bzip2 (1.0.6-9.2~deb10u2) ...
Selecting previously unselected package libcc1-0:armhf.
Preparing to unpack .../01-libcc1-0_8.3.0-6+rpi1_armhf.deb ...
Unpacking libcc1-0:armhf (8.3.0-6+rpi1) ...
Selecting previously unselected package libasan5:armhf.
Preparing to unpack .../02-libasan5_8.3.0-6+rpi1_armhf.deb ...
Unpacking libasan5:armhf (8.3.0-6+rpi1) ...
Selecting previously unselected package libubsan1:armhf.
Preparing to unpack .../03-libubsan1_8.3.0-6+rpi1_armhf.deb ...
Unpacking libubsan1:armhf (8.3.0-6+rpi1) ...
Selecting previously unselected package libgcc-8-dev:armhf.
Preparing to unpack .../04-libgcc-8-dev_8.3.0-6+rpi1_armhf.deb ...
Unpacking libgcc-8-dev:armhf (8.3.0-6+rpi1) ...
Selecting previously unselected package gcc-8.
Preparing to unpack .../05-gcc-8_8.3.0-6+rpi1_armhf.deb ...
Unpacking gcc-8 (8.3.0-6+rpi1) ...
Selecting previously unselected package gcc.
Preparing to unpack .../06-gcc_4%3a8.3.0-1+rpi2_armhf.deb ...
Unpacking gcc (4:8.3.0-1+rpi2) ...
Selecting previously unselected package libstdc++-8-dev:armhf.
Preparing to unpack .../07-libstdc++-8-dev_8.3.0-6+rpi1_armhf.deb ...
Unpacking libstdc++-8-dev:armhf (8.3.0-6+rpi1) ...
Selecting previously unselected package g++-8.
Preparing to unpack .../08-g++-8_8.3.0-6+rpi1_armhf.deb ...
Unpacking g++-8 (8.3.0-6+rpi1) ...
Selecting previously unselected package g++.
Preparing to unpack .../09-g++_4%3a8.3.0-1+rpi2_armhf.deb ...
Unpacking g++ (4:8.3.0-1+rpi2) ...
Selecting previously unselected package make.
Preparing to unpack .../10-make_4.2.1-1.2_armhf.deb ...
Unpacking make (4.2.1-1.2) ...
Selecting previously unselected package patch.
Preparing to unpack .../11-patch_2.7.6-3+deb10u1_armhf.deb ...
Unpacking patch (2.7.6-3+deb10u1) ...
Selecting previously unselected package dpkg-dev.
Preparing to unpack .../12-dpkg-dev_1.19.8_all.deb ...
Unpacking dpkg-dev (1.19.8) ...
Selecting previously unselected package build-essential.
Preparing to unpack .../13-build-essential_12.6_armhf.deb ...
Unpacking build-essential (12.6) ...
Selecting previously unselected package libfakeroot:armhf.
Preparing to unpack .../14-libfakeroot_1.23-1_armhf.deb ...
Unpacking libfakeroot:armhf (1.23-1) ...
Selecting previously unselected package fakeroot.
Preparing to unpack .../15-fakeroot_1.23-1_armhf.deb ...
Unpacking fakeroot (1.23-1) ...
Selecting previously unselected package libalgorithm-diff-perl.
Preparing to unpack .../16-libalgorithm-diff-perl_1.19.03-2_all.deb ...
Unpacking libalgorithm-diff-perl (1.19.03-2) ...
Selecting previously unselected package libalgorithm-diff-xs-perl.
Preparing to unpack .../17-libalgorithm-diff-xs-perl_0.04-5+b1_armhf.deb ...
Unpacking libalgorithm-diff-xs-perl (0.04-5+b1) ...
Selecting previously unselected package libalgorithm-merge-perl.
Preparing to unpack .../18-libalgorithm-merge-perl_0.08-3_all.deb ...
Unpacking libalgorithm-merge-perl (0.08-3) ...
Setting up libalgorithm-diff-perl (1.19.03-2) ...
Setting up bzip2 (1.0.6-9.2~deb10u2) ...
Setting up libfakeroot:armhf (1.23-1) ...
Setting up fakeroot (1.23-1) ...
update-alternatives: using /usr/bin/fakeroot-sysv to provide /usr/bin/fakeroot (fakeroot) in auto mode
update-alternatives: warning: skip creation of /usr/share/man/es/man1/fakeroot.1.gz because associated file /usr/share/man/es/man1/fakeroot-sysv.1.gz (of link group fakeroot) doesn't exist
update-alternatives: warning: skip creation of /usr/share/man/es/man1/faked.1.gz because associated file /usr/share/man/es/man1/faked-sysv.1.gz (of link group fakeroot) doesn't exist
update-alternatives: warning: skip creation of /usr/share/man/fr/man1/fakeroot.1.gz because associated file /usr/share/man/fr/man1/fakeroot-sysv.1.gz (of link group fakeroot) doesn't exist
update-alternatives: warning: skip creation of /usr/share/man/fr/man1/faked.1.gz because associated file /usr/share/man/fr/man1/faked-sysv.1.gz (of link group fakeroot) doesn't exist
update-alternatives: warning: skip creation of /usr/share/man/sv/man1/fakeroot.1.gz because associated file /usr/share/man/sv/man1/fakeroot-sysv.1.gz (of link group fakeroot) doesn't exist
update-alternatives: warning: skip creation of /usr/share/man/sv/man1/faked.1.gz because associated file /usr/share/man/sv/man1/faked-sysv.1.gz (of link group fakeroot) doesn't exist
Setting up libasan5:armhf (8.3.0-6+rpi1) ...
Setting up make (4.2.1-1.2) ...
Setting up patch (2.7.6-3+deb10u1) ...
Setting up libubsan1:armhf (8.3.0-6+rpi1) ...
Setting up libalgorithm-diff-xs-perl (0.04-5+b1) ...
Setting up libcc1-0:armhf (8.3.0-6+rpi1) ...
Setting up libalgorithm-merge-perl (0.08-3) ...
Setting up dpkg-dev (1.19.8) ...
Setting up libgcc-8-dev:armhf (8.3.0-6+rpi1) ...
Setting up libstdc++-8-dev:armhf (8.3.0-6+rpi1) ...
Setting up gcc-8 (8.3.0-6+rpi1) ...
Setting up gcc (4:8.3.0-1+rpi2) ...
Setting up g++-8 (8.3.0-6+rpi1) ...
Setting up g++ (4:8.3.0-1+rpi2) ...
update-alternatives: using /usr/bin/g++ to provide /usr/bin/c++ (c++) in auto mode
Setting up build-essential (12.6) ...
Processing triggers for man-db (2.8.5-2+deb10u1) ...
Processing triggers for libc-bin (2.28-10+rpt2+rpi1+deb10u2) ...
Checking if other dependencies are installed
Installing other dependencies essential
Hit:1 http://raspbian.raspberrypi.org/raspbian buster InRelease
Hit:2 http://archive.raspberrypi.org/debian buster InRelease
Hit:3 https://deb.nodesource.com/node_14.x buster InRelease
Reading package lists... Done
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  libbison-dev libfl-dev libsigsegv2 m4
Suggested packages:
  bison-doc flex-doc libssl-doc m4-doc
The following NEW packages will be installed:
  bison flex libbison-dev libfl-dev libsigsegv2 libssl-dev m4
0 upgraded, 7 newly installed, 0 to remove and 2 not upgraded.
Need to get 3656 kB of archives.
After this operation, 10.3 MB of additional disk space will be used.
Get:1 http://mirror1.hs-esslingen.de/pub/Mirrors/archive.raspbian.org/raspbian buster/main armhf libsigsegv2 armhf 2.12-2 [32.3 kB]
Get:2 http://mirror1.hs-esslingen.de/pub/Mirrors/archive.raspbian.org/raspbian buster/main armhf m4 armhf 1.4.18-2 [185 kB]
Get:3 http://mirror1.hs-esslingen.de/pub/Mirrors/archive.raspbian.org/raspbian buster/main armhf flex armhf 2.6.4-6.2 [427 kB]
Get:4 http://mirror1.hs-esslingen.de/pub/Mirrors/archive.raspbian.org/raspbian buster/main armhf libbison-dev armhf 2:3.3.2.dfsg-1 [500 kB]
Get:5 http://mirror1.hs-esslingen.de/pub/Mirrors/archive.raspbian.org/raspbian buster/main armhf bison armhf 2:3.3.2.dfsg-1 [829 kB]
Get:6 http://mirror1.hs-esslingen.de/pub/Mirrors/archive.raspbian.org/raspbian buster/main armhf libfl-dev armhf 2.6.4-6.2 [104 kB]
Get:7 http://mirror.netcologne.de/raspbian/raspbian buster/main armhf libssl-dev armhf 1.1.1n-0+deb10u6 [1579 kB]
Fetched 3656 kB in 1s (2731 kB/s)
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
	LANGUAGE = (unset),
	LC_ALL = (unset),
	LANG = "de_DE.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
debconf: delaying package configuration, since apt-utils is not installed
Selecting previously unselected package libsigsegv2:armhf.
(Reading database ... 53973 files and directories currently installed.)
Preparing to unpack .../0-libsigsegv2_2.12-2_armhf.deb ...
Unpacking libsigsegv2:armhf (2.12-2) ...
Selecting previously unselected package m4.
Preparing to unpack .../1-m4_1.4.18-2_armhf.deb ...
Unpacking m4 (1.4.18-2) ...
Selecting previously unselected package flex.
Preparing to unpack .../2-flex_2.6.4-6.2_armhf.deb ...
Unpacking flex (2.6.4-6.2) ...
Selecting previously unselected package libbison-dev:armhf.
Preparing to unpack .../3-libbison-dev_2%3a3.3.2.dfsg-1_armhf.deb ...
Unpacking libbison-dev:armhf (2:3.3.2.dfsg-1) ...
Selecting previously unselected package bison.
Preparing to unpack .../4-bison_2%3a3.3.2.dfsg-1_armhf.deb ...
Unpacking bison (2:3.3.2.dfsg-1) ...
Selecting previously unselected package libfl-dev:armhf.
Preparing to unpack .../5-libfl-dev_2.6.4-6.2_armhf.deb ...
Unpacking libfl-dev:armhf (2.6.4-6.2) ...
Selecting previously unselected package libssl-dev:armhf.
Preparing to unpack .../6-libssl-dev_1.1.1n-0+deb10u6_armhf.deb ...
Unpacking libssl-dev:armhf (1.1.1n-0+deb10u6) ...
Setting up libbison-dev:armhf (2:3.3.2.dfsg-1) ...
Setting up libsigsegv2:armhf (2.12-2) ...
Setting up libssl-dev:armhf (1.1.1n-0+deb10u6) ...
Setting up m4 (1.4.18-2) ...
Setting up bison (2:3.3.2.dfsg-1) ...
update-alternatives: using /usr/bin/bison.yacc to provide /usr/bin/yacc (yacc) in auto mode
Setting up flex (2.6.4-6.2) ...
Setting up libfl-dev:armhf (2.6.4-6.2) ...
Processing triggers for man-db (2.8.5-2+deb10u1) ...
Processing triggers for libc-bin (2.28-10+rpt2+rpi1+deb10u2) ...
Firmware revision is 9a9bda382acec723c901e5ae7c7f415d9afbf635
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100    41  100    41    0     0     82      0 --:--:-- --:--:-- --:--:--    82
Kernel revision is 0e4968617aad7d0f88e0a630499202eaae407a19
Getting modules symvers for V6 kernel
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100 1050k  100 1050k    0     0  1563k      0 --:--:-- --:--:-- --:--:-- 12.9M
Downloading Kernel source tarball from  https://github.com/raspberrypi/linux/archive/0e4968617aad7d0f88e0a630499202eaae407a19.tar.gz
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100  220M    0  220M    0     0  6923k      0 --:--:--  0:00:32 --:--:-- 7490k
creating /usr/src/rpi-linux folder
Extracting Kernel
Cloning current config
Copying modules symverse
  SYNC    include/config/auto.conf.cmd
  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
  HOSTCC  scripts/dtc/dtc.o
  HOSTCC  scripts/dtc/flattree.o
  HOSTCC  scripts/dtc/fstree.o
  HOSTCC  scripts/dtc/data.o
  HOSTCC  scripts/dtc/livetree.o
  HOSTCC  scripts/dtc/treesource.o
  HOSTCC  scripts/dtc/srcpos.o
  HOSTCC  scripts/dtc/checks.o
  HOSTCC  scripts/dtc/util.o
  LEX     scripts/dtc/dtc-lexer.lex.c
  YACC    scripts/dtc/dtc-parser.tab.[ch]
  HOSTCC  scripts/dtc/dtc-lexer.lex.o
  HOSTCC  scripts/dtc/dtc-parser.tab.o
  HOSTLD  scripts/dtc/dtc
  HOSTCC  scripts/dtc/libfdt/fdt.o
  HOSTCC  scripts/dtc/libfdt/fdt_ro.o
  HOSTCC  scripts/dtc/libfdt/fdt_wip.o
  HOSTCC  scripts/dtc/libfdt/fdt_sw.o
  HOSTCC  scripts/dtc/libfdt/fdt_rw.o
  HOSTCC  scripts/dtc/libfdt/fdt_strerror.o
  HOSTCC  scripts/dtc/libfdt/fdt_empty_tree.o
  HOSTCC  scripts/dtc/libfdt/fdt_addresses.o
  HOSTCC  scripts/dtc/libfdt/fdt_overlay.o
  HOSTCC  scripts/dtc/fdtoverlay.o
  HOSTLD  scripts/dtc/fdtoverlay
  HOSTCC  scripts/genksyms/genksyms.o
  YACC    scripts/genksyms/parse.tab.[ch]
  HOSTCC  scripts/genksyms/parse.tab.o
  LEX     scripts/genksyms/lex.lex.c
  HOSTCC  scripts/genksyms/lex.lex.o
  HOSTLD  scripts/genksyms/genksyms
  HOSTCC  scripts/kallsyms
  HOSTCC  scripts/sorttable
  HOSTCC  scripts/asn1_compiler
  WRAP    arch/arm64/include/generated/uapi/asm/kvm_para.h
  WRAP    arch/arm64/include/generated/uapi/asm/errno.h
  WRAP    arch/arm64/include/generated/uapi/asm/ioctl.h
  WRAP    arch/arm64/include/generated/uapi/asm/ioctls.h
  WRAP    arch/arm64/include/generated/uapi/asm/ipcbuf.h
  WRAP    arch/arm64/include/generated/uapi/asm/msgbuf.h
  WRAP    arch/arm64/include/generated/uapi/asm/poll.h
  WRAP    arch/arm64/include/generated/uapi/asm/resource.h
  WRAP    arch/arm64/include/generated/uapi/asm/sembuf.h
  WRAP    arch/arm64/include/generated/uapi/asm/shmbuf.h
  WRAP    arch/arm64/include/generated/uapi/asm/siginfo.h
  WRAP    arch/arm64/include/generated/uapi/asm/socket.h
  WRAP    arch/arm64/include/generated/uapi/asm/sockios.h
  WRAP    arch/arm64/include/generated/uapi/asm/stat.h
  WRAP    arch/arm64/include/generated/uapi/asm/swab.h
  WRAP    arch/arm64/include/generated/uapi/asm/termbits.h
  WRAP    arch/arm64/include/generated/uapi/asm/termios.h
  WRAP    arch/arm64/include/generated/uapi/asm/types.h
  WRAP    arch/arm64/include/generated/asm/early_ioremap.h
  WRAP    arch/arm64/include/generated/asm/mcs_spinlock.h
  WRAP    arch/arm64/include/generated/asm/qrwlock.h
  WRAP    arch/arm64/include/generated/asm/qspinlock.h
  WRAP    arch/arm64/include/generated/asm/parport.h
  WRAP    arch/arm64/include/generated/asm/user.h
  WRAP    arch/arm64/include/generated/asm/bugs.h
  WRAP    arch/arm64/include/generated/asm/delay.h
  WRAP    arch/arm64/include/generated/asm/div64.h
  WRAP    arch/arm64/include/generated/asm/dma-mapping.h
  WRAP    arch/arm64/include/generated/asm/dma.h
  WRAP    arch/arm64/include/generated/asm/emergency-restart.h
  WRAP    arch/arm64/include/generated/asm/hw_irq.h
  WRAP    arch/arm64/include/generated/asm/irq_regs.h
  WRAP    arch/arm64/include/generated/asm/kdebug.h
  WRAP    arch/arm64/include/generated/asm/kmap_size.h
  WRAP    arch/arm64/include/generated/asm/local.h
  WRAP    arch/arm64/include/generated/asm/local64.h
  WRAP    arch/arm64/include/generated/asm/mmiowb.h
  WRAP    arch/arm64/include/generated/asm/msi.h
  WRAP    arch/arm64/include/generated/asm/serial.h
  WRAP    arch/arm64/include/generated/asm/softirq_stack.h
  WRAP    arch/arm64/include/generated/asm/switch_to.h
  WRAP    arch/arm64/include/generated/asm/trace_clock.h
  WRAP    arch/arm64/include/generated/asm/unaligned.h
  WRAP    arch/arm64/include/generated/asm/vga.h
  UPD     include/config/kernel.release
  UPD     include/generated/uapi/linux/version.h
  UPD     include/generated/utsrelease.h
  UPD     include/generated/compile.h
  GEN     arch/arm64/include/generated/asm/cpucaps.h
  GEN     arch/arm64/include/generated/asm/sysreg-defs.h
warning: ld does not support --fix-cortex-a53-843419; kernel may be susceptible to erratum
warning: LSE atomics not supported by binutils
  CC      scripts/mod/empty.o
gcc: error: unrecognized command line option '-mgeneral-regs-only'
make[2]: *** [scripts/Makefile.build:243: scripts/mod/empty.o] Error 1
make[1]: *** [/usr/src/rpi-linux/Makefile:1200: prepare0] Error 2
make: *** [Makefile:234: __sub-make] Error 2
Linking Modules
'/lib/modules/6.6.62-v8+/build' -> '/usr/src/rpi-linux'
 
Done, you can now build and install out of kernel modules

Is this a bug in the recent version or am I missing something?

Hey @Cologne_Muc,

This is interesting to see compiler complaining about cross-compiler on arm building for… arm.

Will check how to get around it.

Kind Regards,