reasonml / reason

Simple, fast & type safe code that leverages the JavaScript & OCaml ecosystems
http://reasonml.github.io
MIT License
10.14k stars 430 forks source link

Windows cygwin build fails #782

Closed OvermindDL1 closed 7 years ago

OvermindDL1 commented 8 years ago

Installing via opam pin add -y reason 'https://github.com/facebook/reason.git#0.0.6' after the prior commands were successful.

Error message:

=-=- Gathering sources =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
[reason] git+https://github.com/facebook/reason.git#0.0.6 already up-to-date

=-=- Processing actions -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
[ERROR] The compilation of reason failed at "ocaml pkg/build.ml native=true native-dynlink=true utop=true".

#=== ERROR while compiling reason.0.0.5 =======================================#
# opam-version 1.3.0~dev (98188f141dbeb429258f2b2c00f6240d0af02b84)
# os           win32
# command      ocaml pkg/build.ml native=true native-dynlink=true utop=true
# path         C:/Users/<user>/.opam/4.02.3+mingw64c/build/reason.0.0.5
# exit-code    1
# env-file     C:/Users/<user>/.opam/4.02.3+mingw64c/build/reason.0.0.5\reason-428-6d07ae.env
# stdout-file  C:/Users/<user>/.opam/4.02.3+mingw64c/build/reason.0.0.5\reason-428-6d07ae.out
# stderr-file  C:/Users/<user>/.opam/4.02.3+mingw64c/build/reason.0.0.5\reason-428-6d07ae.err
### stdout ###
# Usage ocamlbuild [options] <target>
# [...]
#   -ocamldoc <command>         Set the OCaml documentation generator
#   -ocamlyacc <command>        Set the ocamlyacc tool
#   -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
#

=-=- Error report -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
The following actions failed
  λ  build reason 0.0.5
No changes have been performed

An interesting mix of "0.0.5" and "0.0.6" too I must say.

yunxing commented 8 years ago

yep, we screwed up the versioning. https://github.com/facebook/reason/pull/781 is proposed to prevent this from happening again...

In the meanwhlie, do you mind try dogfooding our new installation flow here? https://github.com/reasonml/ExampleProject

also feel free to chat at gitter.im/facebook/reason

OvermindDL1 commented 8 years ago

Already there in the chat, just not always easy to use without a full GUI available. :-)

Tried the ExampleProject, interesting errors I must say. ;-)

~/Projects/tmp/ExampleProject
$ npm install
npm ERR! git clone C:\Users\<user>\AppData\Roaming\npm-cache\_git-remotes\git-https-github-com-npm-ml-dependency-env-git-3aee2b1b C:\OCaml64\tmp\npm-25004-8ab4eb69\git-cache-c94506e6\be55b16cb3a80942e596821451e44d9500e5d1a2: Cloning into 'C:\OCaml64\tmp\npm-25004-8ab4eb69\git-cache-c94506e6\be55b16cb3a80942e596821451e44d9500e5d1a2'...
npm ERR! git clone C:\Users\<user>\AppData\Roaming\npm-cache\_git-remotes\git-https-github-com-npm-ml-dependency-env-git-3aee2b1b C:\OCaml64\tmp\npm-25004-8ab4eb69\git-cache-c94506e6\be55b16cb3a80942e596821451e44d9500e5d1a2: fatal: '/cygdrive/c/Users/<user>/AppData/Roaming/npm-cache/_git-remotes/git-https-github-com-npm-ml-dependency-env-git-3aee2b1b/C:\Users\<user>\AppData\Roaming\npm-cache\_git-remotes\git-https-github-com-npm-ml-dependency-env-git-3aee2b1b' does not appear to be a git repository
npm ERR! git clone C:\Users\<user>\AppData\Roaming\npm-cache\_git-remotes\git-https-github-com-npm-ml-dependency-env-git-3aee2b1b C:\OCaml64\tmp\npm-25004-8ab4eb69\git-cache-c94506e6\be55b16cb3a80942e596821451e44d9500e5d1a2: fatal: Could not read from remote repository.
npm ERR! git clone C:\Users\<user>\AppData\Roaming\npm-cache\_git-remotes\git-https-github-com-npm-ml-dependency-env-git-3aee2b1b C:\OCaml64\tmp\npm-25004-8ab4eb69\git-cache-c94506e6\be55b16cb3a80942e596821451e44d9500e5d1a2:
npm ERR! git clone C:\Users\<user>\AppData\Roaming\npm-cache\_git-remotes\git-https-github-com-npm-ml-dependency-env-git-3aee2b1b C:\OCaml64\tmp\npm-25004-8ab4eb69\git-cache-c94506e6\be55b16cb3a80942e596821451e44d9500e5d1a2: Please make sure you have the correct access rights
npm ERR! git clone C:\Users\<user>\AppData\Roaming\npm-cache\_git-remotes\git-https-github-com-npm-ml-dependency-env-git-3aee2b1b C:\OCaml64\tmp\npm-25004-8ab4eb69\git-cache-c94506e6\be55b16cb3a80942e596821451e44d9500e5d1a2: and the repository exists.
npm ERR! git clone C:\Users\<user>\AppData\Roaming\npm-cache\_git-remotes\git-https-github-com-npm-ml-dependency-env-git-3aee2b1b C:\OCaml64\tmp\npm-25004-8ab4eb69\git-cache-c94506e6\be55b16cb3a80942e596821451e44d9500e5d1a2:
npm ERR! git clone C:\Users\<user>\AppData\Roaming\npm-cache\_git-remotes\git-https-github-com-yunxing-nopam-git-54296e8d C:\OCaml64\tmp\npm-25004-8ab4eb69\git-cache-6db82d40\6a4fa5431c86b8a000b2055b5ce5de50e76ae6a0: Cloning into 'C:\OCaml64\tmp\npm-25004-8ab4eb69\git-cache-6db82d40\6a4fa5431c86b8a000b2055b5ce5de50e76ae6a0'...
npm ERR! git clone C:\Users\<user>\AppData\Roaming\npm-cache\_git-remotes\git-https-github-com-yunxing-nopam-git-54296e8d C:\OCaml64\tmp\npm-25004-8ab4eb69\git-cache-6db82d40\6a4fa5431c86b8a000b2055b5ce5de50e76ae6a0: fatal: '/cygdrive/c/Users/<user>/AppData/Roaming/npm-cache/_git-remotes/git-https-github-com-yunxing-nopam-git-54296e8d/C:\Users\<user>\AppData\Roaming\npm-cache\_git-remotes\git-https-github-com-yunxing-nopam-git-54296e8d' does not appear to be a git repository
npm ERR! git clone C:\Users\<user>\AppData\Roaming\npm-cache\_git-remotes\git-https-github-com-yunxing-nopam-git-54296e8d C:\OCaml64\tmp\npm-25004-8ab4eb69\git-cache-6db82d40\6a4fa5431c86b8a000b2055b5ce5de50e76ae6a0: fatal: Could not read from remote repository.
npm ERR! git clone C:\Users\<user>\AppData\Roaming\npm-cache\_git-remotes\git-https-github-com-yunxing-nopam-git-54296e8d C:\OCaml64\tmp\npm-25004-8ab4eb69\git-cache-6db82d40\6a4fa5431c86b8a000b2055b5ce5de50e76ae6a0:
npm ERR! git clone C:\Users\<user>\AppData\Roaming\npm-cache\_git-remotes\git-https-github-com-yunxing-nopam-git-54296e8d C:\OCaml64\tmp\npm-25004-8ab4eb69\git-cache-6db82d40\6a4fa5431c86b8a000b2055b5ce5de50e76ae6a0: Please make sure you have the correct access rights
npm ERR! git clone C:\Users\<user>\AppData\Roaming\npm-cache\_git-remotes\git-https-github-com-yunxing-nopam-git-54296e8d C:\OCaml64\tmp\npm-25004-8ab4eb69\git-cache-6db82d40\6a4fa5431c86b8a000b2055b5ce5de50e76ae6a0: and the repository exists.
npm ERR! git clone C:\Users\<user>\AppData\Roaming\npm-cache\_git-remotes\git-https-github-com-yunxing-nopam-git-54296e8d C:\OCaml64\tmp\npm-25004-8ab4eb69\git-cache-6db82d40\6a4fa5431c86b8a000b2055b5ce5de50e76ae6a0:
npm ERR! git clone C:\Users\<user>\AppData\Roaming\npm-cache\_git-remotes\git-https-github-com-facebook-reason-git-2d5bbb66 C:\OCaml64\tmp\npm-25004-8ab4eb69\git-cache-a7a39989\18095b12721ed1a62767fd72026d6ca6f3263397: Cloning into 'C:\OCaml64\tmp\npm-25004-8ab4eb69\git-cache-a7a39989\18095b12721ed1a62767fd72026d6ca6f3263397'...
npm ERR! git clone C:\Users\<user>\AppData\Roaming\npm-cache\_git-remotes\git-https-github-com-facebook-reason-git-2d5bbb66 C:\OCaml64\tmp\npm-25004-8ab4eb69\git-cache-a7a39989\18095b12721ed1a62767fd72026d6ca6f3263397: fatal: '/cygdrive/c/Users/<user>/AppData/Roaming/npm-cache/_git-remotes/git-https-github-com-facebook-reason-git-2d5bbb66/C:\Users\<user>\AppData\Roaming\npm-cache\_git-remotes\git-https-github-com-facebook-reason-git-2d5bbb66' does not appear to be a git repository
npm ERR! git clone C:\Users\<user>\AppData\Roaming\npm-cache\_git-remotes\git-https-github-com-facebook-reason-git-2d5bbb66 C:\OCaml64\tmp\npm-25004-8ab4eb69\git-cache-a7a39989\18095b12721ed1a62767fd72026d6ca6f3263397: fatal: Could not read from remote repository.
npm ERR! git clone C:\Users\<user>\AppData\Roaming\npm-cache\_git-remotes\git-https-github-com-facebook-reason-git-2d5bbb66 C:\OCaml64\tmp\npm-25004-8ab4eb69\git-cache-a7a39989\18095b12721ed1a62767fd72026d6ca6f3263397:
npm ERR! git clone C:\Users\<user>\AppData\Roaming\npm-cache\_git-remotes\git-https-github-com-facebook-reason-git-2d5bbb66 C:\OCaml64\tmp\npm-25004-8ab4eb69\git-cache-a7a39989\18095b12721ed1a62767fd72026d6ca6f3263397: Please make sure you have the correct access rights
npm ERR! git clone C:\Users\<user>\AppData\Roaming\npm-cache\_git-remotes\git-https-github-com-facebook-reason-git-2d5bbb66 C:\OCaml64\tmp\npm-25004-8ab4eb69\git-cache-a7a39989\18095b12721ed1a62767fd72026d6ca6f3263397: and the repository exists.
npm ERR! git clone C:\Users\<user>\AppData\Roaming\npm-cache\_git-remotes\git-https-github-com-facebook-reason-git-2d5bbb66 C:\OCaml64\tmp\npm-25004-8ab4eb69\git-cache-a7a39989\18095b12721ed1a62767fd72026d6ca6f3263397:
npm ERR! Windows_NT 10.0.10586
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install"
npm ERR! node v6.2.0
npm ERR! npm  v3.8.9
npm ERR! code 128

npm ERR! Command failed: git -c core.longpaths=true clone C:\Users\<user>\AppData\Roaming\npm-cache\_git-remotes\git-https-github-com-npm-ml-dependency-env-git-3aee2b1b C:\OCaml64\tmp\npm-25004-8ab4eb69\git-cache-c94506e6\be55b16cb3a80942e596821451e44d9500e5d1a2
npm ERR! Cloning into 'C:\OCaml64\tmp\npm-25004-8ab4eb69\git-cache-c94506e6\be55b16cb3a80942e596821451e44d9500e5d1a2'...
npm ERR! fatal: '/cygdrive/c/Users/<user>/AppData/Roaming/npm-cache/_git-remotes/git-https-github-com-npm-ml-dependency-env-git-3aee2b1b/C:\Users\<user>\AppData\Roaming\npm-cache\_git-remotes\git-https-github-com-npm-ml-dependency-env-git-3aee2b1b' does not appear to be a git repository
npm ERR! fatal: Could not read from remote repository.
npm ERR!

You want that reported to the ExampleProject repo?

jordwalke commented 8 years ago

You can leave the report right here. Thanks for testing

OvermindDL1 commented 8 years ago

I have Windows 10 for development at work (Linux at home) so if you need something tested on Windows just ping me here again and I'll be happy to test. :-)

jordwalke commented 8 years ago

What version of NPM are you using in Cygwin and is it a Cygwin build or the Windows one. Also same question for git. Is it ms-sys?

OvermindDL1 commented 8 years ago

Sure, information:

Versions:

$ ocamlc -v
The OCaml compiler, version 4.02.3
Standard library directory: C:/Users/<user>/.opam/4.02.3+mingw64c/lib/ocaml

$ node -v
v6.2.0

$ npm -v
3.8.9

$ git --version
git version 2.8.3

# Edit:  A bsc version to show it is operational from a node_modules directory install:
$ node_modules/bs-platform/bin/bsc -v
The OCaml compiler, version BuckleScript 1.0.3 (Using OCaml4.02.3 )
Standard library directory: C:\Users\<user>\Projects\upstream\bucklescript-brunch\node_modules\bs-platform\lib\ocaml
yunxing commented 8 years ago

hmm, looks to me it is an issue related npm/git on Cygwin when the dependency has a git url. I will get a windows machine to try to reproduce this.

chenglou commented 7 years ago

@OvermindDL1 you might have seen https://github.com/reasonml/reasonml.github.io/issues/195 already. That one's a centralized discussion & solution for Windows. Sorry for all the trouble.

jordwalke commented 7 years ago

Fwiw i spent some time a couple weeks ago to test on Cygwin and things were working for me (though I bypassed opam).

OvermindDL1 commented 7 years ago

@OvermindDL1 you might have seen reasonml/reasonml.github.io#195 already. That one's a centralized discussion & solution for Windows. Sorry for all the trouble.

Yep already saw and been following it, I managed to convince my work to let me switch my desktop to linux (finally!) and even started converting others now, so less of an issue. ^.^