janestreet / bin_prot

Binary protocol generator
MIT License
73 stars 21 forks source link

CygWin64 install fails #9

Closed dgtlrift closed 6 years ago

dgtlrift commented 9 years ago
$ opam install bin_prot
The following actions will be performed:
  ∗  install bin_prot 112.35.00
The following variables are set in your environment, it is advised to unset them for OPAM to work correctly.
 - OCAMLFIND_CONF
Do you want to continue ? [Y/n]

=-=- Gathering sources =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
[bin_prot] Archive in cache

=-=- Processing actions -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
[ERROR] The compilation of bin_prot failed at "make".
Processing  1/2: [bin_prot: ocamlfind remove]
#=== ERROR while compiling bin_prot.112.35.00 =================================#
# opam-version 1.3.0~dev (85f84bc9b2aa623d7c7274a59f461ead8465eab0)
# os           cygwin
# command      make
# path         /cygdrive/c/Users/DG/ocamlbrew/ocaml-4.02.2/.opam/system/build/bin_prot.112.35.00
# exit-code    2
# env-file     /cygdrive/c/Users/DG/ocamlbrew/ocaml-4.02.2/.opam/system/build/bin_prot.112.35.00/bin_prot-3080-05296d.env
# stdout-file  /cygdrive/c/Users/DG/ocamlbrew/ocaml-4.02.2/.opam/system/build/bin_prot.112.35.00/bin_prot-3080-05296d.out
# stderr-file  /cygdrive/c/Users/DG/ocamlbrew/ocaml-4.02.2/.opam/system/build/bin_prot.112.35.00/bin_prot-3080-05296d.err
### stdout ###
# ocamlopt.opt -o setup.exe setup.ml || ocamlopt -o setup.exe setup.ml || ocamlc -o setup.exe setup.ml
# rm -f setup.cmx setup.cmi setup.o setup.obj setup.cmo
# ./setup.exe -configure
# Makefile:51: recipe for target 'setup.data' failed
### stderr ###
# 'config' is not recognized as an internal or external command,
# operable program or batch file.
# E: Failure("Command 'config/arch.sh C:\\cygwin64\\opt\\wodi64\\bin\\ocamlc.opt.EXE' terminated with error code 1")
# make: *** [setup.data] Error 1

=-=- Error report -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
The following actions failed
  ∗  build bin_prot 112.35.00
No changes have been performed
dgtlrift commented 9 years ago

The issue seems to be that cygwin bash (or all shells) cannot execute a Dos/Windows path directly.

DG@USATL1NB100 ~
$ C:\\cygwin64\\opt\\wodi64\\bin\\ocamlc.opt.EXE -v
-bash: C:\cygwin64\opt\wodi64\bin\ocamlc.opt.EXE: command not found

DG@USATL1NB100 ~
$ 'C:\\cygwin64\\opt\\wodi64\\bin\\ocamlc.opt.EXE' -v
-bash: C:\\cygwin64\\opt\\wodi64\\bin\\ocamlc.opt.EXE: command not found

DG@USATL1NB100 ~
$ "C:\\cygwin64\\opt\\wodi64\\bin\\ocamlc.opt.EXE" -v
-bash: C:\cygwin64\opt\wodi64\bin\ocamlc.opt.EXE: command not found

DG@USATL1NB100 ~
$ cygpath --unix 'C:\\cygwin64\\opt\\wodi64\\bin\\ocamlc.opt.EXE'
/opt/wodi64/bin/ocamlc.opt.EXE

DG@USATL1NB100 ~
$ `cygpath --unix 'C:\\cygwin64\\opt\\wodi64\\bin\\ocamlc.opt.EXE'` -v
The OCaml compiler, version 4.02.1
Standard library directory: C:/cygwin64/opt/wodi64/lib/ocaml/std-lib

DG@USATL1NB100 ~
hhugo commented 6 years ago

This is possibly fixed since we've switched to jbuilder. Closing this one. Reopen if it still fails with the latest version.