Skip to main content
dachungmao
Associate
September 3, 2022
Question

lost link/path to gcc after uninstall of IDE and reinstall

  • September 3, 2022
  • 1 reply
  • 3410 views

When I run my program I get an error:

##########

16:23:19 **** Incremental Build of configuration Debug for project LoRaWAN_End_Node ****

make all

'Building file: ../Utilities/trace/adv_trace/stm32_adv_trace.c'

'Invoking: Cross GCC Compiler'

gcc -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"Utilities/trace/adv_trace/stm32_adv_trace.d" -MT"Utilities/trace/adv_trace/stm32_adv_trace.o" -o "Utilities/trace/adv_trace/stm32_adv_trace.o" "../Utilities/trace/adv_trace/stm32_adv_trace.c"

Der Befehl "gcc" ist entweder falsch geschrieben oder

konnte nicht gefunden werden.

make: *** [Utilities/trace/adv_trace/stm32_adv_trace.o] Error 1

"make all" terminated with exit code 2. Build might be incomplete.

16:23:21 Build Failed. 1 errors, 0 warnings. (took 1s.809ms)

##########

So my gcc cannot be found anymore. Before the deinstall it worked to run the program without any error.

Where do I have to check if the gcc is right connected. The toolchain manager says gcc would be installed by STM by default.

Can anybody suggest or help?

dachungmao

This topic has been closed for replies.

1 reply

Semer CHERNI
ST Employee
September 5, 2022

Hello @dachungmao​ 

I propose that you check if the gcc exist under the installation folder of CubeIDE.

This is the path where I could find the tool in my PC:

C:\ST\STM32CubeIDE_1.10.1\STM32CubeIDE\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.10.3-2021.10.win32_1.0.0.202111181127\tools\bin

Also if the files exist under that repository try to lunch the GCC via cmd lines.

I suspect that maybe your antivirus system either have deleted the gcc files or have put them in the quarantine.

Kind regards,

Semer.

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
dachungmao
Associate
September 5, 2022

Hi Semer,

thx a lot for your helpful hints concerning the right installation path. I will check.

Because of this GCC-not-found-ERROR I myself installed the GCC-toolchain 10.3.1 manually in the default dir c:\SysGCC and was hoping to be able to redirect under IDE by path-to-dirGCC setup somewhere in eclipse/IDE. But I couldn't find this in the IDE.

Also the gcc.exe in SysGCC has a prefix in the name: arm-none-eabi-gcc.exe an therefore couldn't be found by calling gcc [options], when the compiler is invoked.

May be you know the window in IDE to setup the path to the compiler.

I'LL BE BACK after check up of your hints.

Rgds.

dachungmao

dachungmao
Associate
September 5, 2022

Checked: same path as yours with content of gcc, cpp, c++ etc. on my PC.

So on my PC I have an extra and useless installation of the toolchain in SysGCC.

In my PATH variable your mentioned path is listed, too.

I did search for all ocurrences of gcc, if there would be an exe, com, bat. But no!

I can call arm-none-eabi-gcc.exe [...] from command line, but why is it invoked as gcc[.exe] by IDE? Obviously my STM32CubeIDE-Installation is complete. But with starting MAKE something goes wrong. Now I could analyze the make file, but I am not an expert! So I need help from a guru of ECLIPSE and STM-Tools.

Rgds.

dachungmao