* Cannot build OCaml using Cygwin
@ 2009-12-16 15:48 Andre Tampubolon
2009-12-16 16:00 ` [Caml-list] " Alain Frisch
0 siblings, 1 reply; 3+ messages in thread
From: Andre Tampubolon @ 2009-12-16 15:48 UTC (permalink / raw)
To: caml-list
[-- Attachment #1: Type: text/plain, Size: 651 bytes --]
Hi,
I'm trying to build OCaml 3.11.1 using Cygwin.
It's still unsuccessful.
$ make -f Makefile.nt world
cd byterun ; make -f Makefile.nt all
make[1]: Entering directory `/cygdrive/c/cygwin/home/ocaml-3.11.1/byterun'
gcc -mno-cygwin -DOCAML_STDLIB_DIR='"C:/ocamlmgw/lib"' -I"C:\cygwin\bin" -O
-mms
-bitfields -Wall -Wno-unused -c interp.c
gcc: The -mno-cygwin flag has been removed; use a mingw-targeted
cross-compiler.
make[1]: *** [interp.o] Error 1
make[1]: Leaving directory `/cygdrive/c/cygwin/home/ocaml-3.11.1/byterun'
make: *** [coldstart] Error 2
I don't understand. I already installed the mingw package. What's wrong
here?
--
--Andre
[-- Attachment #2: Type: text/html, Size: 783 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Caml-list] Cannot build OCaml using Cygwin
2009-12-16 15:48 Cannot build OCaml using Cygwin Andre Tampubolon
@ 2009-12-16 16:00 ` Alain Frisch
2009-12-20 23:46 ` Gerd Stolpmann
0 siblings, 1 reply; 3+ messages in thread
From: Alain Frisch @ 2009-12-16 16:00 UTC (permalink / raw)
To: Andre Tampubolon; +Cc: caml-list
On 16/12/2009 16:48, Andre Tampubolon wrote:
> I'm trying to build OCaml 3.11.1 using Cygwin.
> It's still unsuccessful.
>
> $ make -f Makefile.nt world
> cd byterun ; make -f Makefile.nt all
> make[1]: Entering directory `/cygdrive/c/cygwin/home/ocaml-3.11.1/byterun'
> gcc -mno-cygwin -DOCAML_STDLIB_DIR='"C:/ocamlmgw/lib"' -I"C:\cygwin\bin"
> -O -mms
> -bitfields -Wall -Wno-unused -c interp.c
> gcc: The -mno-cygwin flag has been removed; use a mingw-targeted
> cross-compiler.
Recent versions of gcc under Cygwin don't support the -mno-cygwin flag.
You can still install and use the gcc-3 packages. What I usually do is
to copy /bin/gcc-3.exe into $HOME/bin/gcc.exe (and to this directory in
front of your PATH).
-- Alain
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Caml-list] Cannot build OCaml using Cygwin
2009-12-16 16:00 ` [Caml-list] " Alain Frisch
@ 2009-12-20 23:46 ` Gerd Stolpmann
0 siblings, 0 replies; 3+ messages in thread
From: Gerd Stolpmann @ 2009-12-20 23:46 UTC (permalink / raw)
To: Alain Frisch; +Cc: Andre Tampubolon, caml-list
Am Mittwoch, den 16.12.2009, 17:00 +0100 schrieb Alain Frisch:
> On 16/12/2009 16:48, Andre Tampubolon wrote:
> > I'm trying to build OCaml 3.11.1 using Cygwin.
> > It's still unsuccessful.
> >
> > $ make -f Makefile.nt world
> > cd byterun ; make -f Makefile.nt all
> > make[1]: Entering directory `/cygdrive/c/cygwin/home/ocaml-3.11.1/byterun'
> > gcc -mno-cygwin -DOCAML_STDLIB_DIR='"C:/ocamlmgw/lib"' -I"C:\cygwin\bin"
> > -O -mms
> > -bitfields -Wall -Wno-unused -c interp.c
> > gcc: The -mno-cygwin flag has been removed; use a mingw-targeted
> > cross-compiler.
>
> Recent versions of gcc under Cygwin don't support the -mno-cygwin flag.
> You can still install and use the gcc-3 packages. What I usually do is
> to copy /bin/gcc-3.exe into $HOME/bin/gcc.exe (and to this directory in
> front of your PATH).
Another way would be
gcc -V 3 -mno-cygwin
Of course, only for those who don't hardcode gcc arguments...
There is also the /etc/alternatives/gcc symlink which can be set
to /usr/bin/gcc-3.exe to select the default gcc version.
Gerd
--
------------------------------------------------------------
Gerd Stolpmann, Bad Nauheimer Str.3, 64289 Darmstadt,Germany
gerd@gerd-stolpmann.de http://www.gerd-stolpmann.de
Phone: +49-6151-153855 Fax: +49-6151-997714
------------------------------------------------------------
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-12-20 23:41 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-12-16 15:48 Cannot build OCaml using Cygwin Andre Tampubolon
2009-12-16 16:00 ` [Caml-list] " Alain Frisch
2009-12-20 23:46 ` Gerd Stolpmann
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox