From: Gerd Stolpmann <gerd@gerd-stolpmann.de>
To: Alain Frisch <alain@frisch.fr>
Cc: Andre Tampubolon <andre@lc.vlsm.org>, caml-list@yquem.inria.fr
Subject: Re: [Caml-list] Cannot build OCaml using Cygwin
Date: Mon, 21 Dec 2009 00:46:50 +0100 [thread overview]
Message-ID: <1261352810.6545.50.camel@flake.lan.gerd-stolpmann.de> (raw)
In-Reply-To: <4B290418.5030901@frisch.fr>
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
------------------------------------------------------------
prev parent reply other threads:[~2009-12-20 23:41 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-12-16 15:48 Andre Tampubolon
2009-12-16 16:00 ` [Caml-list] " Alain Frisch
2009-12-20 23:46 ` Gerd Stolpmann [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1261352810.6545.50.camel@flake.lan.gerd-stolpmann.de \
--to=gerd@gerd-stolpmann.de \
--cc=alain@frisch.fr \
--cc=andre@lc.vlsm.org \
--cc=caml-list@yquem.inria.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox