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

Windows cygwin build fails #782

Closed
OvermindDL1 opened this issue Sep 22, 2016 · 10 comments
Closed

Windows cygwin build fails #782

OvermindDL1 opened this issue Sep 22, 2016 · 10 comments

Comments

@OvermindDL1
Copy link

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
Copy link
Contributor

yunxing commented Sep 22, 2016

yep, we screwed up the versioning. #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
Copy link
Author

OvermindDL1 commented Sep 22, 2016

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
Copy link
Member

You can leave the report right here. Thanks for testing

@OvermindDL1
Copy link
Author

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
Copy link
Member

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
Copy link
Author

OvermindDL1 commented Sep 22, 2016

Sure, information:

  • Git is cygwin's: C:\OCaml64\bin\git.exe
  • I've also tried mingw's git in the path first at: C:\Program Files\Git\mingw64\bin\git.exe
  • Node is the system node (there is no node in cygwin and compiling it sounds painful): c:\Program Files\nodejs\node.exe
  • The Cygwin is the one built for OCaml, I'm using the output ocaml system-wide.
  • The above error happens both within the OCaml cygwin as well as in the global terminal outside of cygwin.
  • I also have and use Bucklescript straight, it works perfectly, able to install it via cloning and manually building it or via just npm install bs-platform successfully.

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
Copy link
Contributor

yunxing commented Sep 22, 2016

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
Copy link
Member

@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.

@jordwalke
Copy link
Member

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

@OvermindDL1
Copy link
Author

@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. ^.^

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

No branches or pull requests

4 participants