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.
For Cygwin to use the correct (i.e. updated gcc dlls), we need to have usr/local/bin prepended to PATH* - /etc/profile: PATH="/usr/local/bin:/usr/bin:${PATH}" * I believe this is the Cygwin default. However under Netbeans, there's no possible way to prepend /usr/local/bin to the PATH env. It insists on prepending /usr/bin (that's where sh resides) and thus causing all run/debug etc. to fail as the built app needs the new DLLs. The base directory under tools|options for the new gcc version is set correctly (C:\cygwin\usr\local\bin) but this field seems to be completely ignored.
Specifically, WindowsHostInfoProvider class: HostInfoImpl ctor: Remove this: if (this.shell != null) { String path = new File(this.shell).getParent(); env.put("PATH", path + ";" + (String)env.get("PATH")); } Instead, we should alert the user that shell couldn't be found in the search path (either Cygwin is not installed or system search path is missing path to sh).
Need to address this. We need to allow user to control env the build is started in As a workaround I can suggest to create build script and set it as build command (if you use unmanaged projects). In the build script you can prepend "/usr/local/bin" to the PATH env variable
You can control PAT since the bug #222549 had been fixed. See http://wiki.netbeans.org/NewAndNoteworthyNB82#Modifying_a_PATH_var:_prepending_or_appending_a_toolchain_path