This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
I updated cygwin and now NetBeans can't find gcc/g++/gdb automaically From DOS Console: D:\cygwin_dir\bin>dir gcc* Volume in drive D is Disk D Volume Serial Number is CC2B-A833 Directory of D:\cygwin_dir\bin 25.02.2009 13:14 94 741 gcc-3.exe 12.09.2008 04:57 1 218 560 gcc-4.exe 01.03.2009 20:29 135 gcc.exe.lnk 25.02.2009 13:08 16 261 gccbug-3 12.09.2008 04:56 16 447 gccbug-4 12.06.2006 02:31 2 018 gccmakedep 6 File(s) 1 348 162 bytes 0 Dir(s) 32 225 112 064 bytes free From Cygwin console: valera@sova ~ $ ls -la /usr/bin/gcc* -rwxr-x---+ 1 valera Users 94741 Feb 25 13:14 /usr/bin/gcc-3.exe -rwx------+ 1 valera None 1218560 Sep 12 05:57 /usr/bin/gcc-4.exe lrwxrwxrwx 1 valera None 21 Mar 1 20:29 /usr/bin/gcc.exe -> /etc/alterna tives/gcc -rwxr-x---+ 1 valera Users 16261 Feb 25 13:08 /usr/bin/gccbug-3 -rwx------+ 1 valera None 16447 Sep 12 05:56 /usr/bin/gccbug-4 -rwxr-x---+ 1 valera Users 2018 Jun 12 2006 /usr/bin/gccmakedep
Please, provide us information from registry for key (sub keys and values): hklm\software\cygnus solutions\cygwin\mounts v2\/
Key Name: HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2 Class Name: <NO CLASS> Last Write Time: 05.03.2009 - 20:39 Value 0 Name: cygdrive prefix Type: REG_SZ Data: /cygdrive Value 1 Name: cygdrive flags Type: REG_DWORD Data: 0x22 Key Name: HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/ Class Name: <NO CLASS> Last Write Time: 05.03.2009 - 20:39 Value 0 Name: native Type: REG_SZ Data: D:\cygwin_dir Value 1 Name: flags Type: REG_DWORD Data: 0xa Key Name: HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/PalmDev Class Name: <NO CLASS> Last Write Time: 03.01.2009 - 17:25 Value 0 Name: flags Type: REG_DWORD Data: 0x8 Value 1 Name: native Type: REG_SZ Data: D:\PalmOS_Developer_Suite\ Key Name: HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/bin Class Name: <NO CLASS> Last Write Time: 05.03.2009 - 20:39 Value 0 Name: native Type: REG_SZ Data: D:\cygwin_dir/bin Value 1 Name: flags Type: REG_DWORD Data: 0xa Key Name: HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/lib Class Name: <NO CLASS> Last Write Time: 05.03.2009 - 20:39 Value 0 Name: native Type: REG_SZ Data: D:\cygwin_dir/lib Value 1 Name: flags Type: REG_DWORD Data: 0xa
Pleasem provide steps to repeat: >I updated cygwin and now NetBeans can't find gcc/g++/gdb automaically
Steps: - Launch setup.exe file from http://cygwin.com - Press Next button on all questions. Press Finish button. - Launch NetBeans with clean user dir - Open Options window, C/C++ category and Build Tools tab ==> I see wrong settings
Created attachment 77781 [details] screenshot
Created attachment 77803 [details] link from <cygwin_dir>/bin
Created attachment 77804 [details] link from <cygwin_dir>/etc/alternatives
fixed, change set: http://hg.netbeans.org/main/rev/ba0c6a365655
Integrated into 'main-golden', will be available in build *200903090201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/ba0c6a365655 User: alexvsimon@netbeans.org Log: fixed: IZ#159705:Cygwin: IDE can't find gcc/g++
Cygwin is added into PATH Scenario: - Start IDE with clean user dir - Open Options window - Click on C/C++ icon ==> 2 warnings appeared: Could not successfully run the gcc compiler to configure the built-in source file parser. Please make sure gcc is in your PATH and restart the IDE Could not successfully run the g++ compiler to configure the built-in source file parser. Please make sure gcc is in your PATH and restart the IDE From messages.log: IOException java.io.IOException: Cannot run program "gcc": CreateProcess error=2, The system cannot find the file specified IOException java.io.IOException: Cannot run program "g++": CreateProcess error=2, The system cannot find the file specified P.S. Also these warnings appears if I create new C/C++ project (sample).
fixed
Integrated into 'main-golden', will be available in build *200903181604* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/bbbb57717516 User: Alexander Simon <alexvsimon@netbeans.org> Log: fixed: IZ#159705:Cygwin: IDE can't find gcc/g++