STM32CubeIDE Linker Error on changing from GCC 9 to GCC 10
Hello,
when i select the newer Toolchain "GNU Tools for STM32 (10.3-2021.10)" instead of the one that worked until now "GNU Tools for STM32 (9-2020-q2-update) i get some Linker Errors. The exact same Code builds fine on the older Toolchain but throws those Errors on the newer one.
Console Output:
23:30:06 **** Incremental Build of configuration Debug for project STM32F030F4P6 ****
make -j24 all
arm-none-eabi-g++ -o "STM32F030F4P6.elf" @"objects.list" -lstm32f030f4p6 -lcmos0 -mcpu=cortex-m0 -T"C:\Users\Admin\Desktop\Projekte\Embedded\Dev Board STM32F030F4P6\Software\STM32F030F4P6\STM32F030F4P6 Dev Board Linker Script.ld" --specs=nosys.specs -Wl,-Map="STM32F030F4P6.map" -Wl,--gc-sections -nostartfiles -nodefaultlibs -nostdlib -static -L"C:\Users\Admin\Desktop\Projekte\Embedded\DeviceDriver\STM32F030F4P6\API\Lib" -L"C:\Users\Admin\Desktop\Projekte\Embedded\CMOS\API\Lib" --specs=nano.specs -mfloat-abi=soft -mthumb -Wl,--start-group -lc -lm -lstdc++ -lsupc++ -Wl,--end-group
c:\st\stm32cubeide_1.9.0\stm32cubeide\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.10.3-2021.10.win32_1.0.0.202111181127\tools\arm-none-eabi\bin\ld.exe: c:/st/stm32cubeide_1.9.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.10.3-2021.10.win32_1.0.0.202111181127/tools/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/nofp\libc_nano.a(lib_a-abort.o): in function `abort':
abort.c:(.text.abort+0xa): undefined reference to `_exit'
c:\st\stm32cubeide_1.9.0\stm32cubeide\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.10.3-2021.10.win32_1.0.0.202111181127\tools\arm-none-eabi\bin\ld.exe: c:/st/stm32cubeide_1.9.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.10.3-2021.10.win32_1.0.0.202111181127/tools/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/nofp\libc_nano.a(lib_a-signalr.o): in function `_kill_r':
signalr.c:(.text._kill_r+0xe): undefined reference to `_kill'
c:\st\stm32cubeide_1.9.0\stm32cubeide\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.10.3-2021.10.win32_1.0.0.202111181127\tools\arm-none-eabi\bin\ld.exe: c:/st/stm32cubeide_1.9.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.10.3-2021.10.win32_1.0.0.202111181127/tools/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/nofp\libc_nano.a(lib_a-signalr.o): in function `_getpid_r':
signalr.c:(.text._getpid_r+0x2): undefined reference to `_getpid'
collect2.exe: error: ld returned 1 exit status
make: *** [makefile:77: STM32F030F4P6.elf] Error 1
"make -j24 all" terminated with exit code 2. Build might be incomplete.
23:30:06 Build Failed. 7 errors, 0 warnings. (took 213ms)
I dont want to use Standard Libraries for linking or Startup Code because the Code is baremetal. How can i fix this?
