Your message dated Sat, 27 Nov 2021 21:26:21 +0100
with message-id <20211127202621.p2bhc56ywlljou35@flow>
and subject line Re: Bug#996419: gcc-11: Fails to compile the linux kernel on 
ARM
has caused the Debian Bug report #996419,
regarding gcc-11: Fails to compile the linux kernel on ARM.
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
996419: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=996419
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: gcc-11
Version: 11.2.0-9
Severity: important

The linux kernel has the following in its ARM Makefile:
        $(call cc-option,-march=armv7-a,-march=armv5t -Wa$(comma)-march=armv7-a)

This means the switch "-march=armv7-a" is tested if supported by the
compiler and if so it is used, otherwise it uses the alternative
"-march=armv5t -Wa,-march=armv7-a".

On gcc-10 it evaluated to "-march=armv7-a".
On gcc-11 it evaluates to "-march=armv5t -Wa,-march=armv7-a" leading to
compile errors:
| cccHPwDp.s:4372: Error: selected processor does not support `cpsid i' in ARM 
mode
| cccHPwDp.s:5145: Error: selected processor does not support `cpsid i' in ARM 
mode
| cccHPwDp.s:5393: Error: selected processor does not support `cpsie i' in ARM 
mode
| cccHPwDp.s:5530: Error: selected processor does not support `dsb ' in ARM mode
| cccHPwDp.s:6088: Error: selected processor does not support `cpsie i' in ARM 
mode
| cccHPwDp.s:7132: Error: architectural extension `mp' is not allowed for the 
current base architecture
| cccHPwDp.s:7133: Error: selected processor does not support `pldw [r4]' in 
ARM mode
| cccHPwDp.s:7136: Error: selected processor does not support `pld [r4]' in ARM 
mode
| cccHPwDp.s:7148: Error: selected processor does not support `ldrex r3,[r4]' 
in ARM mode
| cccHPwDp.s:7150: Error: selected processor does not support `strex 
r1,r2,[r4]' in ARM mode

This has been noticed in the gcc-11-arm-linux-gnueabihf package and
verified on a armhf porter box with the native gcc-11 package.

The test fails due to:
| $ arm-linux-gnueabihf-gcc-10 -o a.o a.c -march=armv7-a
| $ arm-linux-gnueabihf-gcc-11 -o a.o a.c -march=armv7-a
| cc1: error: ‘-mfloat-abi=hard’: selected architecture lacks an FPU

Passing early -msoft-float to the compiler test solves the problem. This
option is passed later to the compile process.
Is this change intended?

Sebastian

--- End Message ---
--- Begin Message ---
On 2021-10-19 11:19:19 [+0200], Matthias Klose wrote:
> 
> CCing Richard. I've been told that the --with-fpu configure option is 
> deprecated
> now, therefore changing the way this is configured.

Arnd's patch for the Linux kernel was merged and backported into the
stable kernels. We good now, I'm closing this bug.

> Matthias

Sebastian

--- End Message ---

Reply via email to