Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Compiler changing problem(Compiler change)
Compiler changing problem [message #1817889] Mon, 02 December 2019 10:14 Go to next message
Lucian Pop is currently offline Lucian PopFriend
Messages: 4
Registered: November 2019
Junior Member
I would like to change the default compiler used by "Eclipse System Workbench for STM32" to GNU GCC 4.5.3.

Can someone point me to the step-by-step explanations?

Looking forward for your reply!
Re: Compiler changing problem [message #1817913 is a reply to message #1817889] Tue, 03 December 2019 05:37 Go to previous messageGo to next message
David VavraFriend
Messages: 1426
Registered: October 2012
Senior Member
Eclipse System Workbench for STM32 is a third party product.
You really should be asking at their support site.
https://www.st.com/en/development-tools/sw4stm32.html

Assuming it isn't much different than standard CDT,
you should be able to change the toolchain with
Project --> Properties --> C/C++ Build -->Tool Chain Editor

Whether you will get GNU GCC 4.5.3 depends on what is installed in your system.
4.5.3 is a really old version and may be hard to find if you don't already have it.
Is there some particular reason for wanting that version?

You may be better off installing the current Eclipse w/CDT and GCC.
Re: Compiler changing problem [message #1819054 is a reply to message #1817913] Mon, 06 January 2020 13:05 Go to previous messageGo to next message
Lucian Pop is currently offline Lucian PopFriend
Messages: 4
Registered: November 2019
Junior Member
Dear David,

Thank you for your answer and sorry for my late response.

It is mandatory for me to change the compiler version from 5.2.1 (standard one used under default installation) to 4.5.3.
The intention is to certify this project and this specific compiler is requested in order to comply with all the tools that are needed.

I have tried downloading the compiler and manually changing some parameters but, with no success.
I am getting the following error: "arm-none-eabi-gcc: nosys.specs: No such file or directory" which is related to STM32 file structure.
Can you please be more specific with: "Project --> Properties --> C/C++ Build -->Tool Chain Editor"?

Looking forward for your reply!

Re: Compiler changing problem [message #1819060 is a reply to message #1819054] Mon, 06 January 2020 21:45 Go to previous message
David VavraFriend
Messages: 1426
Registered: October 2012
Senior Member
You can do this by:

  • if 4.5.3 is your system default (or is first in your execution path):
    Go to Project --> Properties --> C/C++ Build -->Tool Chain Editor
    and change "Cross GCC" to "Linux GCC" in the Current toolchain box
    index.php/fa/37097/0/
  • OR keep the chain as "Cross GCC" but change the prefix to <path to 4.5.3>/bin/ (note the trailing slash) in
    Project --> Properties --> C/C++ Build --> Settings --> Tool settings tab --> Cross Settings
    When building, the Make recipe will call <path to 4.5.3>/bin/gcc for the compiler
    In the example below it becomes /usr/bin/gcc
    index.php/fa/37099/0/
  • OR keep the chain as "Cross GCC" but change the path to <path to 4.5.3>/bin
    but this would be prepended to the execution path when Make is invoked
    and may not be visible so would be difficult to show it being used.

[Updated on: Fri, 10 January 2020 11:20]

Report message to a moderator

Previous Topic:How to search / replace text in highlighted selection ?
Next Topic:Eclipse for Linux. Build not configured correctly
Goto Forum:
  


Current Time: Thu Apr 25 07:49:25 GMT 2024

Powered by FUDForum. Page generated in 0.02828 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top