Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » Eclipse forgets(?) path to compiler tools
Eclipse forgets(?) path to compiler tools [message #222430] Thu, 21 August 2008 13:48 Go to next message
Eclipse UserFriend
Hi,

Here's a curious one.

I have two CDT projects under Eclipse (running on Ubuntu), one is a
(SVN) branch of the other and they are both built with Blackfin GNU
toolchain (bfin-uclinux-gcc etc) and external makefiles.

When I launch make through an Eclipse make target, the branch project
builds fine and the trunk version cannot find the path to the
bfin-uclinux-* tools.

If I delete my workspace .metadata and import the projects it all works
again... for a while... then the trunk project breaks again with the
branch one still working. I haven't found the pattern but a couple of
restarts of Eclipse seems to get it back into the broken state.

This seemed to start happening when I played around with allowing
parallel make processes but I can't be certain that's related.

If I set the path to the toolchain explicitly in my makefiles then it
works (but that's not a suitable long term solution).

Any ideas? Thanks in advance.

Jon
Re: Eclipse forgets(?) path to compiler tools [message #222817 is a reply to message #222430] Mon, 01 September 2008 07:16 Go to previous message
Eclipse UserFriend
I found the problem. Posting what I found in case it helps anyone else
and it also seems to expose a bug in CDT.

Under project properties, C/C++ Build - Environment I had "Replace
native environment with specified one" on the project that wasn't
working. When I changed it to "Append variables to native environment"
it worked (and this makes sense).

What threw me is that it works for a while with the "Replace..."
setting. Perhaps CDT doesn't properly recognise this flag at times?
Caching issue?

Jon

Jon Wilson wrote:
> Hi,
>
> Here's a curious one.
>
> I have two CDT projects under Eclipse (running on Ubuntu), one is a
> (SVN) branch of the other and they are both built with Blackfin GNU
> toolchain (bfin-uclinux-gcc etc) and external makefiles.
>
> When I launch make through an Eclipse make target, the branch project
> builds fine and the trunk version cannot find the path to the
> bfin-uclinux-* tools.
>
> If I delete my workspace .metadata and import the projects it all works
> again... for a while... then the trunk project breaks again with the
> branch one still working. I haven't found the pattern but a couple of
> restarts of Eclipse seems to get it back into the broken state.
>
> This seemed to start happening when I played around with allowing
> parallel make processes but I can't be certain that's related.
>
> If I set the path to the toolchain explicitly in my makefiles then it
> works (but that's not a suitable long term solution).
>
> Any ideas? Thanks in advance.
>
> Jon
Previous Topic:Eclipse debug configuration automatically runs "make all
Next Topic:Eclipse doesn't find main()
Goto Forum:
  


Current Time: Fri Jun 06 12:28:37 EDT 2025

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

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

Back to the top