Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't build CAML Light 0.75 under Cygwin #8373

Closed
vicuna opened this issue Nov 19, 2003 · 0 comments
Closed

Can't build CAML Light 0.75 under Cygwin #8373

vicuna opened this issue Nov 19, 2003 · 0 comments

Comments

@vicuna
Copy link

vicuna commented Nov 19, 2003

Original bug ID: 1932
Reporter: administrator
Status: closed
Resolution: fixed
Priority: normal
Severity: minor
Category: -for Caml light use https://github.com/camllight/camllight/issues

Bug description

Full_Name: John Harrison
Version: Caml Light 0.75
OS: Windows XP + Cygwin
Submission from: jffwpr01.jf.intel.com (134.134.136.1)

Has anyone built Caml Light under Cygwin? OCaml compiles without problems but I
have severe problems with Caml Light 0.75. This is the latest Cygwin under
Windows
XP.

  1. A relatively minor first problem in "src/runtime", a type inconsistency
    between "sys_errlist" in sys.c and standard header errno.h. But it was only the
    addition of "const" qualifiers so I modified sys.c accordingly.

  2. After building inside "src/runtime", the subsequent copy of "camlrun" fails:

cp: runtime/camlrun' and ./camlrun' are the same file

This may be something to do with Cygwin's weird phantom "exe" extensions.
Anyway
I just copied runtime/camlrun.exe to camlrun instead, and dealt with an
identical
problem in the following "yacc" build in the same way.

  1. Stranger still, the build inside "lib" fails early:

../camlrun ../camlcomp -stdlib . -O none -g -W arg.mli
Fatal error: the file ../camlcomp is not a bytecode executable file

As far as I can see from the source, this means an unexpected magic number, but
the file (according to "od") does end with "CL07" as expected. I didn't delve
deeper. Any suggestions?

John.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant