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

Bug 367340

Summary: Cannot run cygwin gcc due to symlink
Product: [Tools] CDT Reporter: tim.froidcoeur+eclipse
Component: cdt-buildAssignee: cdt-build-inbox <cdt-build-inbox>
Status: RESOLVED DUPLICATE QA Contact: Andrew Gvozdev <angvoz.dev>
Severity: normal    
Priority: P3 CC: cdtdoug
Version: 8.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description tim.froidcoeur+eclipse CLA 2011-12-21 10:34:38 EST
build with Cygwin GCC and CDT internal builder fails
Error: Cannot run program "gcc": Launching failed

The gcc in cygwin in my case is a symlink (because I have installed both gcc3 and gcc4, so cygwin works via /etc/alternatives with symlinks).
I suspect this prevents eclipse from running gcc. If I explicitly set gcc-4 in the build settings as the C compiler command and linker it works.
Comment 1 Andrew Gvozdev CLA 2011-12-21 10:56:34 EST
You can try External Builder as workaround.

*** This bug has been marked as a duplicate of bug 364733 ***