STM32CubeIDE(Ver1.17.0)build link error.(GNU toolchain)
- February 20, 2025
- 2 replies
- 933 views
When building with STM32CubeIDE, an error related to gnu-toolchain occurs.
I am attaching the error log.
Looking at the log, it seems that the error occurs because libc.a and libm.a cannot be found.
However, since the above libraries are eventually found in another folder, the error seems to be avoided, but the following error is output afterwards.
collect2.exe: error: ld returned 5 exit status
Even though this error is displayed, the executable file (*.elf) is generated, so the build itself seems to be successful, but I don't know why the error is displayed.
I am not sure what caused this error, but I think it was probably after I upgraded CubeIDE.
I have tried reinstalling CubeIDE and reverting to older versions (Ver1.14.0, Ver1.16.0, etc.), but it did not improve.
If you have any workarounds for this phenomenon, please let me know.
