Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 341063

Summary: Can't define PATH recursively in CDT preferences to locate make and other tools
Product: [Tools] CDT Reporter: Sven Köhler <sven.koehler>
Component: cdt-buildAssignee: cdt-build-inbox <cdt-build-inbox>
Status: NEW --- QA Contact: Jonah Graham <jonah>
Severity: enhancement    
Priority: P3 CC: cdtdoug, yevshif
Version: 7.0.2   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Sven Köhler CLA 2011-03-27 18:54:22 EDT
Build Identifier: M20110210-1200

I'm using cygwin with CDT. If c:\cygwin\bin is not in the PATH before I start Eclipse, then Eclipse will fail to find it, even though I have defined

PATH = C:\cygwin\bin;${PATH}

in the preferences under C/C++->Build->Environment.

It would be nice, if Eclipse would use the path that is specified there to locate binaries like make, gcc, etc.

I think it makes sense. (I don't want to pollute by global PATH variable with cygwin's bin directory.)

Reproducible: Always
Comment 1 Andrew Gvozdev CLA 2011-03-27 22:31:48 EDT
(In reply to comment #0)
> Build Identifier: M20110210-1200
> I'm using cygwin with CDT. If c:\cygwin\bin is not in the PATH before I start
> Eclipse, then Eclipse will fail to find it, even though I have defined
> PATH = C:\cygwin\bin;${PATH}
It looks like the problem is in recursive definition which does not work properly. Try ${env_var:PATH} to get hold of path. I also would suggest CDT 8.0 which could make troubleshooting easier. CDT 8.0 prints value of $PATH in the console if "make" is not found.

> in the preferences under C/C++->Build->Environment.