octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

MinGW build: "cc1plus.exe: error: unrecognized ... option '-mno-cygwin'"


From: Philip Nienhuis
Subject: MinGW build: "cc1plus.exe: error: unrecognized ... option '-mno-cygwin'"
Date: Mon, 3 Dec 2012 13:19:08 -0800 (PST)

See subject line.

I switched to gcc 4.6.2 last week. So now it turns out that (AFAICS)
configure somehow introduces this flag "-mno-cygwin". When I remove the
flags by hand from the various Makefile-s (and touch the Makefile to its
original timestamp) the build goes a bit further until the next source
subdir. 
(Don't worry I don't plan to build this way by manually fixing things - I
just wanted to try to see what's happening)

:
/bin/sh ../libtool  --tag=CXX   --mode=compile g++ -shared-libgcc
-DHAVE_CONFIG_H -I. -I..
/../octave/libinterp -I..  -I../../octave/liboctave/cruft/misc
-I../../octave/liboctave/ar
ray -I../liboctave/numeric -I../../octave/liboctave/numeric
-I../liboctave/operators -I../
../octave/liboctave/operators -I../../octave/liboctave/system
-I../../octave/liboctave/uti
l -I../../octave/libinterp/octave-value -I../../octave/libinterp/operators
-Iparse-tree -I
../../octave/libinterp/parse-tree -Iinterp-core
-I../../octave/libinterp/interp-core -Iint
erpfcn -I../../octave/libinterp/interpfcn -Icorefcn -I../libgnu
-I../../octave/libgnu -I/x
/Programs/OctaveLibs/include -mwindows -DWIN32 -DUSE_OPENGL32 -O3
-fomit-frame-pointer -mn
o-cygwin -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_THREAD_SAFE
-D_REENTRANT  -I/x/Progr
ams/gplibs/include -I/x/Programs/OctaveLibs/include
-I/x/programs/GnuWin32/include -I/c/Pr
ograms/Java/jdk1.6.0_33/include -mieee-fp
-Ic:/Programs/gplibs/include/freetype2 -Ic:/Prog
rams/gplibs/include -IX:/Programs/gplibs/include   -Wall -W -Wshadow
-Wold-style-cast -Wfo
rmat -Wpointer-arith -Wwrite-strings -Wcast-align -Wcast-qual -g -O2  -MT
dldfcn/dldfcn___
fltk_uigetfile___la-__fltk_uigetfile__.lo -MD -MP -MF
dldfcn/.deps/dldfcn___fltk_uigetfile
___la-__fltk_uigetfile__.Tpo -c -o
dldfcn/dldfcn___fltk_uigetfile___la-__fltk_uigetfile__.
lo `test -f 'dldfcn/__fltk_uigetfile__.cc' || echo
'../../octave/libinterp/'`dldfcn/__fltk
_uigetfile__.cc
libtool: compile:  g++ -shared-libgcc -DHAVE_CONFIG_H -I.
-I../../octave/libinterp -I.. -I
../../octave/liboctave/cruft/misc -I../../octave/liboctave/array
-I../liboctave/numeric -I
../../octave/liboctave/numeric -I../liboctave/operators
-I../../octave/liboctave/operators
 -I../../octave/liboctave/system -I../../octave/liboctave/util
-I../../octave/libinterp/oc
tave-value -I../../octave/libinterp/operators -Iparse-tree
-I../../octave/libinterp/parse-
tree -Iinterp-core -I../../octave/libinterp/interp-core -Iinterpfcn
-I../../octave/libinte
rp/interpfcn -Icorefcn -I../libgnu -I../../octave/libgnu
-I/x/Programs/OctaveLibs/include
-mwindows -DWIN32 -DUSE_OPENGL32 -O3 -fomit-frame-pointer -mno-cygwin
-D_LARGEFILE_SOURCE
-D_LARGEFILE64_SOURCE -D_THREAD_SAFE -D_REENTRANT
-I/x/Programs/gplibs/include -I/x/Progra
ms/OctaveLibs/include -I/x/programs/GnuWin32/include
-I/c/Programs/Java/jdk1.6.0_33/includ
e -mieee-fp -Ic:/Programs/gplibs/include/freetype2
-Ic:/Programs/gplibs/include -IX:/Progr
ams/gplibs/include -Wall -W -Wshadow -Wold-style-cast -Wformat
-Wpointer-arith -Wwrite-str
ings -Wcast-align -Wcast-qual -g -O2 -MT
dldfcn/dldfcn___fltk_uigetfile___la-__fltk_uigetf
ile__.lo -MD -MP -MF
dldfcn/.deps/dldfcn___fltk_uigetfile___la-__fltk_uigetfile__.Tpo -c .
./../octave/libinterp/dldfcn/__fltk_uigetfile__.cc  -DDLL_EXPORT -DPIC -o
dldfcn/.libs/dld
fcn___fltk_uigetfile___la-__fltk_uigetfile__.o
cc1plus.exe: error: unrecognized command line option '-mno-cygwin'
make[3]: *** [dldfcn/dldfcn___fltk_uigetfile___la-__fltk_uigetfile__.lo]
Error 1
make[3]: Leaving directory `/home/Philip/octdev/oct370/libinterp'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/Philip/octdev/oct370/libinterp'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/Philip/octdev/oct370'
make: *** [all] Error 2

(lines wrapped at 90 chars)

==> How can I avoid that this flag is introduced?

Thanks

Philip



--
View this message in context: 
http://octave.1599824.n4.nabble.com/MinGW-build-cc1plus-exe-error-unrecognized-option-mno-cygwin-tp4647516.html
Sent from the Octave - Maintainers mailing list archive at Nabble.com.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]