ocaml-re icon indicating copy to clipboard operation
ocaml-re copied to clipboard

Compilation broken on Windows

Open murmour opened this issue 8 years ago • 6 comments

This is what I get when doing opam install re with the official installer:

#=== ERROR while installing re.1.7.1 ==========================================#
# opam-version 1.2.2
# os           cygwin
# command      ocaml setup.ml -build
# path         /home/mrm/.opam/system/build/re.1.7.1
# compiler     system (4.02.3)
# exit-code    1
# env-file     /home/mrm/.opam/system/build/re.1.7.1/re-2312-c61e7b.env
# stdout-file  /home/mrm/.opam/system/build/re.1.7.1/re-2312-c61e7b.out
# stderr-file  /home/mrm/.opam/system/build/re.1.7.1/re-2312-c61e7b.err
### stdout ###
# Usage C:\OCaml\bin\ocamlbuild.EXE [options] <target>
# [...]
#   -menhir <command>           Set the menhir tool (use it after -use-menhir)
#   -ocamllex <command>         Set the ocamllex tool
#   -ocamlmklib <command>       Set the ocamlmklib tool
#   -ocamlmktop <command>       Set the ocamlmktop tool
#   -ocamlrun <command>         Set the ocamlrun tool
#   --                          Stop argument processing, remaining arguments are given to the user program
#   -help                       Display this list of options
#   --help                      Display this list of options
#
### stderr ###
# E: Failure("Command 'C:\\OCaml\\bin\\ocamlbuild.EXE -classic-display -no-log -no-links -byte-plugin lib/re.cma lib/re.cmxa lib/re.a lib/re.cmxs lib/re_emacs.cma lib/re_emacs.cmxa lib/re_emacs.a lib/re_emacs.cmxs lib/re_str.cma lib/re_str.cmxa lib/re_str.a lib/re_str.cmxs lib/re_posix.cma lib/re_posix.cmxa lib/re_posix.a lib/re_posix.cmxs lib/re_glob.cma lib/re_glob.cmxa lib/re_glob.a lib/re_glob.cmxs lib/re_perl.cma lib/re_perl.cmxa lib/re_perl.a lib/re_perl.cmxs lib/re_pcre.cma lib/re_pcre.cmxa lib/re_pcre.a lib/re_pcre.cmxs -cflags '-w +a-40-42-44-3-4-48 -warn-error +1..49' -tag debug' terminated with error code 1")

I had to pin re.1.5.0, which has no build issues.

murmour avatar Dec 22 '16 18:12 murmour

Hmm, this seems like an oasis issue. We probably upgraded oasis between 1.5.0 and the current version.

rgrinberg avatar Dec 22 '16 19:12 rgrinberg

Then a hotfix would be to regenerate the build system using an earlier version of OASIS. I can't suggest a particular version though. Um, the one that was used in 1.5.0?

murmour avatar Dec 22 '16 19:12 murmour

re.1.6.1 doesn't compile either -- same error.

murmour avatar Dec 22 '16 19:12 murmour

Hi !

I got this problem when installing re.1.7.1 :

[ERROR] The compilation of re failed at "ocaml setup.ml -configure --prefix C:/cygwin64/home/ME/.opam/4.03.0+mingw64".

I didn't install it directly but through the installation of user-setup 0.6

# opam-version 1.3.0~dev (fb90257639e7abafad504a79cd571a2f838e0a07)
# os           win32
# command      ocaml setup.ml -configure --prefix C:/cygwin64/home/ME/.opam/4.03.0+mingw64
# path         C:/cygwin64/home/ME/.opam/4.03.0+mingw64/build/re.1.7.1
# exit-code    2
# env-file     C:/cygwin64/home/ME/.opam/4.03.0+mingw64/build/re.1.7.1\re-468-a71bb4.env
# stdout-file  C:/cygwin64/home/ME/.opam/4.03.0+mingw64/build/re.1.7.1\re-468-a71bb4.out
# stderr-file  C:/cygwin64/home/ME/.opam/4.03.0+mingw64/build/re.1.7.1\re-468-a71bb4.err
### stderr ###
# Fatal error: exception Cmi_format.Error(_)

ghost avatar Apr 12 '17 12:04 ghost

@TheHaricover Your setup is wrong, you probably have several incompatible version of OCaml installed.

Drup avatar Apr 12 '17 12:04 Drup

How do I found out if this is true ? I just need to uninstall OCaml and reinstall it ?

ghost avatar Apr 12 '17 13:04 ghost