This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

GCC 11.2 arm-none-eabi, internal compiler error: Illegal instruction

Hello.

I am trying to use GCC 11.2 on Ubuntu 21.04 (x86_64 Linux hosted cross toolchains, gcc-arm-11.2-2022.02-x86_64-arm-none-eabi.tar.xz) to compile a program for STM32 (Cortex-M).

If I use float in the program, the build fails with an error "internal compiler error: Illegal instruction". If I do not use float, the build succeeds. If I change the toolchain path in Makefile to 10.3, the build succeeds with and without float.

Here is an example of the code I am trying to build:

And here is my Makefile:

If I try to build with GCC 11.2, I get an error:

If I just change GCC_PATH in Makefile to 10.3, the build succeeds.

0