On 2021-10-18 16:07:12 [+0200], Arnd Bergmann wrote: …
Passing e.g. -march=armv6k+fp in place of -march=armv6k would avoid this issue, but the fallback logic is already broken because all supported compilers (gcc-5 and higher) are much more recent than these options, and building with -march=armv5t as a fallback no longer works.
The best way forward that I see is to just remove all the checks, which also has the nice side-effect of slightly improving the startup time for 'make'.
…
This should be safe to apply on all stable kernels, and will be required in order to keep building them with gcc-11 and higher.
Yes, please.
Reported-by: Antonio Terceiro antonio.terceiro@linaro.org Reported-by: Naresh Kamboju naresh.kamboju@linaro.org Reported-by: Sebastian Andrzej Siewior sebastian@breakpoint.cc Link: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=996419 Cc: Matthias Klose doko@debian.org Cc: stable@vger.kernel.org Signed-off-by: Arnd Bergmann arnd@arndb.de
Reviewed-by: Sebastian Andrzej Siewior sebastian@breakpoint.cc
Just booted Debian 9/ Stretch which ships gcc version 6.3.0 20170516 (Debian 6.3.0-18)
to confirm that it fails to compile with the armv5t fallback.
Sebastian