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.

Bug 159705 - Cygwin: IDE can't find gcc/g++
Summary: Cygwin: IDE can't find gcc/g++
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Alexander Simon
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-05 17:32 UTC by soldatov
Modified: 2009-03-18 22:44 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
screenshot (38.60 KB, image/png)
2009-03-05 19:38 UTC, soldatov
Details
link from <cygwin_dir>/bin (136 bytes, text/plain)
2009-03-06 10:12 UTC, soldatov
Details
link from <cygwin_dir>/etc/alternatives (399 bytes, text/plain)
2009-03-06 10:13 UTC, soldatov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description soldatov 2009-03-05 17:32:49 UTC
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
Comment 1 Alexander Simon 2009-03-05 17:57:03 UTC
Please, provide us information from registry for key (sub keys and values):
hklm\software\cygnus solutions\cygwin\mounts v2\/
Comment 2 soldatov 2009-03-05 18:34:08 UTC
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
Comment 3 Alexander Simon 2009-03-05 19:16:28 UTC
Pleasem provide steps to repeat:
>I updated cygwin and now NetBeans can't find gcc/g++/gdb automaically
Comment 4 soldatov 2009-03-05 19:34:39 UTC
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
Comment 5 soldatov 2009-03-05 19:38:11 UTC
Created attachment 77781 [details]
screenshot
Comment 6 soldatov 2009-03-06 10:12:05 UTC
Created attachment 77803 [details]
link from <cygwin_dir>/bin
Comment 7 soldatov 2009-03-06 10:13:40 UTC
Created attachment 77804 [details]
link from <cygwin_dir>/etc/alternatives
Comment 8 Alexander Simon 2009-03-08 11:33:38 UTC
fixed, change set:
http://hg.netbeans.org/main/rev/ba0c6a365655
Comment 9 Quality Engineering 2009-03-09 09:09:27 UTC
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++
Comment 10 soldatov 2009-03-11 10:35:53 UTC
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).
Comment 11 Alexander Simon 2009-03-13 15:02:03 UTC
fixed
Comment 12 Quality Engineering 2009-03-18 22:44:59 UTC
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++