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.
Hi again, this type I will enter a defect issue. It has to do with Cygwin. My previous enhancement request also holds for cygwin besides mingw-msys (eclipse does well in this respect). Now about the defect.. Cygwin linking uses by default flag -mno-cygwin. Moreover when I try to put directories for the linker /usr/lib can be set but the physical folder (in my case c:\winoss\cygwin\lib) cannot be selected but it is defaulted to (in my case c:\winoss\cygwin\libexec) . I suspect the implementor has hardcoded folders containing -mno-cyging .a files, but it is just a guess. This makes cygwin an unsupported platform. Eclipse has no such problem. I beleieve the resolution is much simpler than what it is implemented right now.
I'm having difficulty understanding what the bugs is. Can you be a bit more specific: what does CND do now and what do you think it should do instead? Do you have a testcase, or can you provide step-by-step instructions for how to reproduce?
I want to reminder -mno-cygwin options is deprecated in Cygwin's GCC4 (http://www.cygwin.com/ml/cygwin/2009-03/msg00766.html)
soldatov, do you understand what the problem is?
No
Cygwin.xml compiler collection has the flag for dynamic library: <linker> <library_prefix stringvalue="cyg"/> <dynamic_library_basic flags="-mno-cygwin -shared "/> </linker>
Is it wrong to use even it is deprecated? Shouldn't we use -mno-cygwin at all? For some versions or all versions? And should it be replaced with something else? Please, state what the issue is!
I created new issue for my problem (issue 163074)
*** Issue 163074 has been marked as a duplicate of this issue. ***
New toolcain Cygwin_4.x was added in change set: http://hg.netbeans.org/cnd-main/rev/e16c65922b95
Integrated into 'main-golden', will be available in build *200905080201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/e16c65922b95 User: Andrew Krasny <akrasny@netbeans.org> Log: IZ#153888 Hardcoded -mno-cygwin in linker (introduce cygwin compiler set for gcc 4.x)
fixed
Integrated into 'main-golden', will be available in build *200905100201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/88007e73066b User: alexvsimon@netbeans.org Log: fixing IZ#153888 Hardcoded -mno-cygwin in linker - do not detect cygwin compiler set for gcc 4.x if gcc have version 3.x
Hi vanag, can you please test this fix for us? We create a new Cygwin version 4 tool chain that doesn't produce the -mno-cygwin linker flag and it should fix the problem.
In 6.9 RC1 (win7 64-bit) this has raised its head again. In my C project using MinGW tools, this flag is hard-coded, and I cannot make my DLL. AND i CANNOT FIND A PLACE TO ELIMINATE THE FLAG. mkdir -p dist/Debug_MinGW/Cygwin-Windows gcc.exe -mno-cygwin -shared -o dist/Debug_MinGW/Cygwin-Windows/_ext/1360937237/logplt.o build/Debug_MinGW/Cygwin-Windows/_ext/1360937237/tkfPush.o build/Debug_MinGW/Cygwin-Windows/_ext/1360937237/pclp.o build/Debug_MinGW/Cygwin-Windows/_ext/1360937237/conmatr.o make[2]: Leaving directory `/cygdrive/c/Users/jar/GraphiC2/GraphiC2dll' make[1]: Leaving directory `/cygdrive/c/Users/jar/GraphiC2/GraphiC2dll' gcc: The -mno-cygwin flag has been removed; use a mingw-targeted cross-compiler. make[2]: *** [dist/Debug_MinGW/Cygwin-Windows/libGraphiC2dll.dll] Error 1 make[1]: *** [.build-conf] Error 2 make: *** [.build-impl] Error 2 BUILD FAILED (exit value 2, total time: 35s) And I have set MinGW as my default, and picked it in my project configuration manager, but the build says Cygwin-Windows
From previous comment: We create a new Cygwin version 4 tool chain that doesn't produce the -mno-cygwin Cygwin - GCC3 (with -mno-cygwin) Cygwin_4.X - GCC4 (without -mno-cygwin)
It's still an issue with automatic recognition of Cygwin4.x but it's not a P3 any more.
supporting of Cygwin 3.x was removed.