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

Bug 336429

Summary: CDT 8.0 build does not recognize Cygwin toolchain
Product: [Tools] CDT Reporter: Sam <sam_woods83>
Component: cdt-buildAssignee: cdt-build-inbox <cdt-build-inbox>
Status: RESOLVED WORKSFORME QA Contact: Andrew Gvozdev <angvoz.dev>
Severity: critical    
Priority: P3 CC: cdtdoug
Version: 8.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows Vista   
Whiteboard:

Description Sam CLA 2011-02-05 18:02:01 EST
Build Identifier: 20100917-0705

When I try installing CDT version 8.0 latest build, it does not recognize my cygwin toolchain. The problem does not appear with CDT 7.

These are the builds I tried:
http://download.eclipse.org/tools/cdt/builds/8.0.0/I.I201101311025/index.html

AND

http://download.eclipse.org/tools/cdt/builds/8.0.0/I.I201102040806/index.html

I followed the instructions as stated on the above pages for installation.

Here is the index page for the CDT 8.0 builds for your reference:
http://download.eclipse.org/tools/cdt/builds/8.0.0/index.html

I cannot use CDT version 7 because that version has the following bug:
http://download.eclipse.org/tools/cdt/builds/8.0.0/I.I201102040806/index.html
That bug is supposed to have been fixed in CDT 8 so I'm trying to install CDT 8.

Would appreciate your help in the matter...

I've marked the bug as critical, because the build is unusable without the toolchain.

Thanks.



Reproducible: Always

Steps to Reproduce:
1.Install Eclipse 3.7 (with Java or C++ version)
2.Install the CDT 8.0 build I201102040806 (Select C/C++ Development Tools)
3.Restart Eclipse
4.Go to the new C++ project menu
5.Observe that the cygwin toolchain is not detected even though it has been installed and exists in the PATH.
Comment 1 Andrew Gvozdev CLA 2011-02-05 19:57:15 EST
The algorithm of searching for cygwin is described here: http://wiki.eclipse.org/CDT/User/FAQ#I_installed_Cygwin_on_my_PC_but_Eclipse_won.27t_find_it.

Do you have cygwin1.dll in one of the folders of the PATH?
Comment 2 Sam CLA 2011-02-06 00:28:53 EST
(In reply to comment #1)
> The algorithm of searching for cygwin is described here:
> http://wiki.eclipse.org/CDT/User/FAQ#I_installed_Cygwin_on_my_PC_but_Eclipse_won.27t_find_it.
> 
> Do you have cygwin1.dll in one of the folders of the PATH?

Yes. And CDT 7 does recognize cygwin and everything works ok...
Comment 3 Andrew Gvozdev CLA 2011-02-06 14:18:25 EST
(In reply to comment #2)
> > Do you have cygwin1.dll in one of the folders of the PATH?
> Yes. And CDT 7 does recognize cygwin and everything works ok...
It works for me on Windows 7 and Windows XP. I don't have access to Windows Vista.

If you go to Windows "cmd" shell in project folder and run "make all" from command line - what happens? You need to run from the folder where makefile is located, i.e. from project root if unmanaged project or from "Debug" folder where CDT generates makefile for managed build.

If the above builds your project from command line you can untick "Show project types and toolchains only if they are supported on the platform" in the New C/C++ Project wizard - then all toolchains will appear in the list including cygwin.
Comment 4 Sam CLA 2011-02-06 18:32:08 EST
(In reply to comment #3)
> (In reply to comment #2)
> > > Do you have cygwin1.dll in one of the folders of the PATH?
> > Yes. And CDT 7 does recognize cygwin and everything works ok...
> It works for me on Windows 7 and Windows XP. I don't have access to Windows
> Vista.
> 
> If you go to Windows "cmd" shell in project folder and run "make all" from
> command line - what happens? You need to run from the folder where makefile is
> located, i.e. from project root if unmanaged project or from "Debug" folder
> where CDT generates makefile for managed build.
> 
> If the above builds your project from command line you can untick "Show project
> types and toolchains only if they are supported on the platform" in the New
> C/C++ Project wizard - then all toolchains will appear in the list including
> cygwin.

I tried the same thing on a WinXP machine but that did not work either. Can you please send me the link to the exact Eclipse build and cygwin version that you tried? And can you provide other specific details that may be relevant?
Thanks.
Comment 5 Andrew Gvozdev CLA 2011-02-06 19:49:31 EST
(In reply to comment #4)
> I tried the same thing on a WinXP machine but that did not work either. Can you
> please send me the link to the exact Eclipse build and cygwin version that you
> tried? And can you provide other specific details that may be relevant?
> Thanks.
I debugged the version from today's CDT HEAD (corresponding roughly to the latest build) and made sure it picked cygwin1.dll from the PATH. It did. My cygwin version as shown by "cygcheck -c cygwin" is 1.7.7-1. But my CDT or cygwin version is not the point. 
Many users are using CDT with cygwin and they don't have this problem. Your system must be different somehow. My main interest in this bug (and btw the whole point of entering bugs in bugzilla) is to identify the problem and fix it if possible in CDT so others won't have this problem anymore. That's why I am asking to run make command from cmd shell. Can you do that?
Comment 6 Sam CLA 2011-02-06 19:55:59 EST
(In reply to comment #5)
> (In reply to comment #4)
> > I tried the same thing on a WinXP machine but that did not work either. Can you
> > please send me the link to the exact Eclipse build and cygwin version that you
> > tried? And can you provide other specific details that may be relevant?
> > Thanks.
> I debugged the version from today's CDT HEAD (corresponding roughly to the
> latest build) and made sure it picked cygwin1.dll from the PATH. It did. My
> cygwin version as shown by "cygcheck -c cygwin" is 1.7.7-1. But my CDT or
> cygwin version is not the point. 
> Many users are using CDT with cygwin and they don't have this problem. Your
> system must be different somehow. My main interest in this bug (and btw the
> whole point of entering bugs in bugzilla) is to identify the problem and fix it
> if possible in CDT so others won't have this problem anymore. That's why I am
> asking to run make command from cmd shell. Can you do that?

Yes I did try that. Make worked but when I uncheck the "Show project
types and toolchains only if they are supported on the platform", Cygwin still does not appear under the Toolchains section.

Btw everything worked fine when I installed Eclipse SDK and used the indigo link (Indigo - http://download.eclipse.org/releases/indigo) for installing C++ development tools version 8...
Thanks.
Comment 7 Andrew Gvozdev CLA 2011-02-06 20:04:48 EST
(In reply to comment #6)
> > asking to run make command from cmd shell. Can you do that?
> Yes I did try that. Make worked but when I uncheck the "Show project
> types and toolchains only if they are supported on the platform", Cygwin still
> does not appear under the Toolchains section.
That's weird. It should be there as long as managedbuild plugin is installed. Perhaps broken/incomplete installation?

> Btw everything worked fine when I installed Eclipse SDK and used the indigo link
> (Indigo - http://download.eclipse.org/releases/indigo) for installing C++
> development tools version 8...
> Thanks.
Thanks for letting us know. Closing the bug then.
Comment 8 Sam CLA 2011-02-06 20:34:33 EST
(In reply to comment #7)
> (In reply to comment #6)
> > > asking to run make command from cmd shell. Can you do that?
> > Yes I did try that. Make worked but when I uncheck the "Show project
> > types and toolchains only if they are supported on the platform", Cygwin still
> > does not appear under the Toolchains section.
> That's weird. It should be there as long as managedbuild plugin is installed.
> Perhaps broken/incomplete installation?
> 
> > Btw everything worked fine when I installed Eclipse SDK and used the indigo link
> > (Indigo - http://download.eclipse.org/releases/indigo) for installing C++
> > development tools version 8...
> > Thanks.
> Thanks for letting us know. Closing the bug then.

Ok, thanks for your help!
Comment 9 Sam CLA 2011-02-06 20:35:26 EST
Oops reopened the bug by mistake...