cancel
Showing results for 
Search instead for 
Did you mean: 

Why does the compiler get stuck building main.cpp?

liamneesan
Associate

Anyone experience this at all? arm-none-eabi-g++ gets stuck in a permanent loop trying to build main.cpp but works for other .cpp files. There are no errors or any information on what is going on.

4 REPLIES 4
Ozone
Lead

Probably a question the toolchain dvelopment team needs to answer.

Some issues with include files, perhaps a circular include ?

liamneesan
Associate

Can't be because Keil compiles the same code just fine. Also if I empty the main.cpp to just a simple main function with no includes it still gets stuck on it. I manually updated the toolchain by overriding the one that comes with the IDE with the q3 ARM toolchain and still nothing.

David Ledger
Associate III

If possible you can try armclang, it usually provides more detailed error messaging.

Otherwise, add the verbose output flag to the compile command.

Julien D
ST Employee

There was a known issue on this point when installation is done into a location containing spaces, such as C:\Program Files.

Anyway it is marked as solved with 1.0.2, make sure you well updated to this version.