From: Mike Spivey <mike@comlab.ox.ac.uk>
To: caml-list@yquem.inria.fr
Subject: Funny problem with ocamlc -custom under Cygwin
Date: Fri, 25 Dec 2009 00:24:42 +0000 [thread overview]
Message-ID: <1261700682.19386.0.camel@staysail> (raw)
I'm using the MinGW version of OCaml 3.11.0 under Cygwin to build a
custom-linked executable. The command
ocamlc -custom -o foo.exe foo.ml
produces the rather cryptic error message
Access is denied.
** Fatal error: hd
File "_none_", line 1, characters 0-1:
Error: Error while building custom runtime system
This problem has a simple solution: Cygwin allows multiple versions of
gcc to coexist by making /usr/bin/gcc.exe a symlink
to /etc/alternatives/gcc, and making another symlink from there
to /usr/bin/gcc-3.exe. The flexdll tool that's used to link OCaml
programs won't tolerate this. So you need to remove the
symlink /usr/bin/gcc.exe and copy /usr/bin/gcc-3.exe in its place. Then
everything works as it should.
Seasonal best wishes to all!
-- Mike Spivey
reply other threads:[~2009-12-25 0:24 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=1261700682.19386.0.camel@staysail \
--to=mike@comlab.ox.ac.uk \
--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