Skip to main content
liamneesan
Associate
July 25, 2019
Question

Why does the compiler get stuck building main.cpp?

  • July 25, 2019
  • 4 replies
  • 1607 views

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.

This topic has been closed for replies.

4 replies

Ozone
Principal
July 25, 2019

Probably a question the toolchain dvelopment team needs to answer.

Some issues with include files, perhaps a circular include ?

liamneesan
Associate
July 25, 2019

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
July 25, 2019

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
July 25, 2019

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.

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.