It is one of those things that drives one crazy. I bought a new computer and did a fresh install of Linux Mint 22.2. Installed my trusty Netbeans 8.2 (I know a very old version, but I like it) and the gcc-arm-none-eabi toolchain (Version 13.2). So far so good. Was able to compile my projects and upload them to the targets with openocd and a ST-link programmer.
Yesterday I wanted to do some debugging on a blackpill (STM32F411) to see what some reset values are in the USB OTG peripheral, only to find that I had not configured debugging yet. So hooked up my old machine and looked at the setup there. For debugging the arm-none-eabi-gdb program needed to be selected. Damn, this was not on my new machine. Apparently it has been omitted from the package for some reason. That led to part of the fun, not.

Found some advice to install the latest version from the developers download page and a script to make a package for easier install, so I did that. Debugger was there, so back to Netbeans to just discover that a plugin is needed to make use of the debugger. Damn again. Plugins no longer available. After searching I found a page where the public ones are still available. Again damn, the version of gdbserver plugin did not match with the default C/C++ plugin, for which an update seems not findable.
So by by Netbeans 8.2, enter CLion that was recommended in the top 10 I found. Also tried latest version of Netbeans, but the C support needs some special setup that I did not want to go in to for now.
Problems in CLion with getting the toolchain setup. Error report was given, but rather obfuscated to read and get the details on the error. This brings me to today. I tried compiling with my old trusted Netbeans 8.2 again and that showed a nice clear error that CC1 was missing. Well clear, not so much. Took a bit of searching that the install also needs something in the libexec directory. This was not mentioned in the advice I found about installing the toolchain.
https://askubuntu.com/questions/1243252/how-to-install-arm-none-eabi-gdb-on-ubuntu-20-04-lts-focal-fossaAfter fixing that I'm now at the point where I'm in the dark.
TLDNR:
I'm trying to compile my project with the new 14.3 arm-none-eabi toolchain and get the following error:
Assembler messages:
Fatal error: invalid -march= option: `armv7-m'
The compiler call is:
arm-none-eabi-gcc -Wall -Wno-write-strings -Wno-char-subscripts -fno-stack-protector -DNO_STDLIB=1 -mcpu=cortex-m4 -mthumb -O0 -c -g -I../1_stm32f411_peripherals/include -MMD -MP -MF "build/Debug/GNU_ARM-Linux/_ext/4a0934f6/stm32f411_gpio.o.d" -o build/Debug/GNU_ARM-Linux/_ext/4a0934f6/stm32f411_gpio.o ../1_stm32f411_peripherals/source/stm32f411_gpio.c
I only found some old talk about this from 2017.
