Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Compiler prefix not set correctly in subdir.mk generated file(Problem during cross compilation with gcc prefix)
Compiler prefix not set correctly in subdir.mk generated file [message #1696386] Tue, 26 May 2015 09:14 Go to next message
Bruno Diraison is currently offline Bruno DiraisonFriend
Messages: 1
Registered: May 2015
Junior Member
Hi,

I'm working on a C project for ARM target.
My cross compiler prefix is arm-none-eabi-
My project is structured around several virtual folders that contain link to C source files.

I correctly configured my project and everything work correctly.

The problem is that, sometime, for reason that I don't understand, the prefix is not set for a specific folder. So the compilation is performed with gcc instead of arm-none-eabi-gcc and of course, it failed.
The only solution that I found is to replace, in the properties, the compiler by arm-none-eabi-gcc instead of gcc and in this case it works. This confirm that for this specific folder, the compiler prefix is not used, and I don't know why!!

Two more information:
- I noticed that this issue happen more often at startup of Eclipse
- The directory is not all the time the same. At the beginning, instead of replacing gcc by arm-none-eabi-gcc, I suppressed and create again the virtual directory where the problem happen and it work again but the problem appear again later for another directory.

Do you know how I can log the generation by Eclipse of the subdir.mk files, in order to understand what happen?

I use Eclipse Kepler :
Version: Kepler Service Release 2
Build id: 20140224-0627
But I saw the same problem with Eclipse Luna.

I used the following plugins:
ARM Compiler for MCU (for Linux 64 bits) 1.1.0.201503101252 fr.ac6.feature.mcu.externaltools.armnone.linux64.feature.group Ac6
Eclipse IDE for C/C++ Developers 2.0.2.20140224-0000 epp.package.cpp null
External Tools for Linux (64 bits) 1.1.0.201503121117 fr.ac6.feature.mcu.externaltools.linux64.feature.group Ac6
OpenOCD (for Linux 64 bits) 1.1.0.201503101252 fr.ac6.feature.mcu.externaltools.openocd.linux64.feature.group Ac6
OpenSTM32 IDE 1.1.0.201503101252 fr.ac6.feature.mcu.ide.feature.group Ac6
OpenSTM32 Linker Script editor 1.1.0.201503101252 fr.ac6.feature.mcu.ldscript.feature.group Ac6
OpenSTM32 Remote debugging support 1.1.0.201503121115 fr.ac6.feature.mcu.debug.feature.group Ac6

Thank you
BR
Re: Compiler prefix not set correctly in subdir.mk generated file [message #1708969 is a reply to message #1696386] Wed, 23 September 2015 00:47 Go to previous message
firstname Lastname is currently offline firstname LastnameFriend
Messages: 1
Registered: September 2015
Junior Member
I had the same with Mars 4.5.0. Very annoying. My debug config compiled fine, but release would not without providing prefx. I examined .cproject file and found a second xml tag <folderInfo id="cdt.managedbuild.config.gnu.cross.exe.release.xxxxxxxx." name="/" resourcePath=""> which had less content than the first .release tag. Debug config had only one such tag. I deleted the second release tag and everything went back to normal.
Previous Topic:"Undifined reference to main" Enable to compile a Hello World
Next Topic:Organize include in CDT for multiple file
Goto Forum:
  


Current Time: Fri Sep 13 06:19:48 GMT 2024

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

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

Back to the top