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 163074 - Problems with Cygwin's GCC: The -mno-cygwin flag has been removed; use a mingw-targeted cross-compiler.
Summary: Problems with Cygwin's GCC: The -mno-cygwin flag has been removed; use a ming...
Status: RESOLVED DUPLICATE of bug 153888
Alias: None
Product: cnd
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 6.x
Hardware: All Windows XP
: P3 blocker (vote)
Assignee: Thomas Preisler
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-20 08:15 UTC by soldatov
Modified: 2009-04-23 21:17 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description soldatov 2009-04-20 08:15:37 UTC
Now Cygwin contains 2 compilers GCC3 and GCC4. GCC3 works correctly in NetBeans. But I can't build any dynamic library
in NetBeans by GCC4, because -mno-cygwin flag is removed.

/usr/bin/make -f nbproject/Makefile-Debug.mk SUBPROJECTS= .build-conf
make[1]: Entering directory `/cygdrive/c/Documents and Settings/tester/My Documents/NetBeansProjects/SubProjects_1/main'
cd ../hello1lib && /usr/bin/make -f Makefile CONF=Debug
make[2]: Entering directory `/cygdrive/c/Documents and Settings/tester/My
Documents/NetBeansProjects/SubProjects_1/hello1lib'
/usr/bin/make -f nbproject/Makefile-Debug.mk SUBPROJECTS= .build-conf
make[3]: Entering directory `/cygdrive/c/Documents and Settings/tester/My
Documents/NetBeansProjects/SubProjects_1/hello1lib'
/usr/bin/make  -f nbproject/Makefile-Debug.mk dist/Debug/Cygwin-Windows/libhello1lib.a
make[4]: Entering directory `/cygdrive/c/Documents and Settings/tester/My
Documents/NetBeansProjects/SubProjects_1/hello1lib'
mkdir -p build/Debug/Cygwin-Windows
rm -f build/Debug/Cygwin-Windows/hello1.o.d
g++-4.exe    -c -g -MMD -MP -MF build/Debug/Cygwin-Windows/hello1.o.d -o build/Debug/Cygwin-Windows/hello1.o hello1.cc
mkdir -p dist/Debug/Cygwin-Windows
rm -f dist/Debug/Cygwin-Windows/libhello1lib.a
ar rv dist/Debug/Cygwin-Windows/libhello1lib.a build/Debug/Cygwin-Windows/hello1.o 
ar: создается dist/Debug/Cygwin-Windows/libhello1lib.a
a - build/Debug/Cygwin-Windows/hello1.o
ranlib dist/Debug/Cygwin-Windows/libhello1lib.a
make[4]: Leaving directory `/cygdrive/c/Documents and Settings/tester/My Documents/NetBeansProjects/SubProjects_1/hello1lib'
make[3]: Leaving directory `/cygdrive/c/Documents and Settings/tester/My Documents/NetBeansProjects/SubProjects_1/hello1lib'
make[2]: Leaving directory `/cygdrive/c/Documents and Settings/tester/My Documents/NetBeansProjects/SubProjects_1/hello1lib'
cd ../hello2lib && /usr/bin/make -f Makefile CONF=Debug
make[2]: Entering directory `/cygdrive/c/Documents and Settings/tester/My
Documents/NetBeansProjects/SubProjects_1/hello2lib'
/usr/bin/make -f nbproject/Makefile-Debug.mk SUBPROJECTS= .build-conf
make[3]: Entering directory `/cygdrive/c/Documents and Settings/tester/My
Documents/NetBeansProjects/SubProjects_1/hello2lib'
/usr/bin/make  -f nbproject/Makefile-Debug.mk dist/Debug/Cygwin-Windows/libhello2lib.a
make[4]: Entering directory `/cygdrive/c/Documents and Settings/tester/My
Documents/NetBeansProjects/SubProjects_1/hello2lib'
mkdir -p build/Debug/Cygwin-Windows
rm -f build/Debug/Cygwin-Windows/hello2.o.d
g++-4.exe    -c -g -MMD -MP -MF build/Debug/Cygwin-Windows/hello2.o.d -o build/Debug/Cygwin-Windows/hello2.o hello2.cc
mkdir -p dist/Debug/Cygwin-Windows
rm -f dist/Debug/Cygwin-Windows/libhello2lib.a
ar rv dist/Debug/Cygwin-Windows/libhello2lib.a build/Debug/Cygwin-Windows/hello2.o 
ar: создается dist/Debug/Cygwin-Windows/libhello2lib.a
a - build/Debug/Cygwin-Windows/hello2.o
ranlib dist/Debug/Cygwin-Windows/libhello2lib.a
make[4]: Leaving directory `/cygdrive/c/Documents and Settings/tester/My Documents/NetBeansProjects/SubProjects_1/hello2lib'
make[3]: Leaving directory `/cygdrive/c/Documents and Settings/tester/My Documents/NetBeansProjects/SubProjects_1/hello2lib'
make[2]: Leaving directory `/cygdrive/c/Documents and Settings/tester/My Documents/NetBeansProjects/SubProjects_1/hello2lib'
cd ../hello3lib && /usr/bin/make  -f Makefile CONF=Debug
make[2]: Entering directory `/cygdrive/c/Documents and Settings/tester/My
Documents/NetBeansProjects/SubProjects_1/hello3lib'
/usr/bin/make -f nbproject/Makefile-Debug.mk SUBPROJECTS= .build-conf
make[3]: Entering directory `/cygdrive/c/Documents and Settings/tester/My
Documents/NetBeansProjects/SubProjects_1/hello3lib'
/usr/bin/make  -f nbproject/Makefile-Debug.mk dist/Debug/Cygwin-Windows/libhello3lib.dll
make[4]: Entering directory `/cygdrive/c/Documents and Settings/tester/My
Documents/NetBeansProjects/SubProjects_1/hello3lib'
mkdir -p build/Debug/Cygwin-Windows
rm -f build/Debug/Cygwin-Windows/hello3.o.d
g++-4.exe    -c -g -fPIC  -MMD -MP -MF build/Debug/Cygwin-Windows/hello3.o.d -o build/Debug/Cygwin-Windows/hello3.o
hello3.cc
hello3.cc:1: предупреждение: ключ -fPIC проигнорирован для целевой машины (весь код позиционно-независимый)
mkdir -p dist/Debug/Cygwin-Windows
g++-4.exe     -mno-cygwin -shared -o dist/Debug/Cygwin-Windows/libhello3lib.dll -fPIC build/Debug/Cygwin-Windows/hello3.o  
g++-4: The -mno-cygwin flag has been removed; use a mingw-targeted cross-compiler.

make[4]: *** [dist/Debug/Cygwin-Windows/libhello3lib.dll] Ошибка 1
make[4]: Leaving directory `/cygdrive/c/Documents and Settings/tester/My Documents/NetBeansProjects/SubProjects_1/hello3lib'
make[3]: *** [.build-conf] Ошибка 2
make[3]: Leaving directory `/cygdrive/c/Documents and Settings/tester/My Documents/NetBeansProjects/SubProjects_1/hello3lib'
make[2]: *** [.build-impl] Ошибка 2
make[2]: Leaving directory `/cygdrive/c/Documents and Settings/tester/My Documents/NetBeansProjects/SubProjects_1/hello3lib'
make[1]: *** [.build-subprojects] Ошибка 2
make[1]: Leaving directory `/cygdrive/c/Documents and Settings/tester/My Documents/NetBeansProjects/SubProjects_1/main'
make: *** [.build-impl] Ошибка 2
BUILD FAILED (exit value 2, total time: 2s)
Comment 1 Thomas Preisler 2009-04-23 21:17:29 UTC

*** This issue has been marked as a duplicate of 153888 ***