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

Unable to build opam (2.07 and master branch) on cygwin due to cudf build error #4271

Closed
iBoost21 opened this issue Jul 10, 2020 · 6 comments
Assignees

Comments

@iBoost21
Copy link

iBoost21 commented Jul 10, 2020

cd ~/opam-full-2.0.7 && ./configure
checking for OCaml findlib package cudf... not found
checking for OCaml findlib package dose3.common... not found
checking for OCaml findlib package dose3.algo... not found
checking for OCaml findlib package mccs... not found

opam install cudf

#=== ERROR while compiling cudf.0.9-1 =========================================#
# context     2.0.7 | win32/x86_64 | ocaml-variants.4.10.0+mingw64 | git+https://github.com/fdopen/opam-repository-mingw.git#opam2
# path        ~/.opam/ocaml-variants.4.10.0+mingw64/.opam-switch/build/cudf.0.9-1
# command     D:\Cygwin\bin\make.exe all opt
# exit-code   2
### output ###
/ocamlbuildlib.cmxa' myocamlbuild.ml 'D:/Cygwin/home/Kevin/.opam/ocaml-variants.4.10.0+mingw64/lib/ocaml\ocamlbuild/o[...]
# D:\Cygwin\home\Kevin\.opam\ocaml-variants.4.10.0+mingw64\.opam-switch\build\cudf.0.9-1\_build\myocamlbuild.exe: "open_process_shell" failed on "\"\"D:\\Cygwin\\bin\\dash.exe\" -ec \" ocamlfind list\"\"": Exec format error
# make: *** [Makefile:61: _build/cudf.cma] Error 100

dose3 & mccs are dependent on cudf so they also cannot be built.
@dra27
Copy link
Member

dra27 commented Jul 10, 2020

Can you give some more detail on your setup?

@iBoost21
Copy link
Author

I'm trying to compile opam under a "fresh" latest version 64-bit Cygwin installation on Windows 10, with only those Cygwin packages installed: rsync, patch, diffutils, curl, wget, make, unzip, git, m4, perl, mingw64-x86_64-gcc-core

I followed the opam & ocaml manual installation guide on this page:
https://fdopen.github.io/opam-repository-mingw/installation/

wget https://github.com/fdopen/opam-repository-mingw/releases/download/0.0.0.2/opam64.tar.xz
tar -xf opam64.tar.xz
bash opam64/install.sh
opam init default "https://github.com/fdopen/opam-repository-mingw.git#opam2" -c "ocaml-variants.4.10.0+mingw64" --disable-sandboxing

@dra27
Copy link
Member

dra27 commented Jul 11, 2020

What’s the result of echo $HOME?

@dra27
Copy link
Member

dra27 commented Jul 11, 2020

Oh, never mind - it’s in one of the logs!

@dra27 dra27 self-assigned this Jul 8, 2021
@dra27
Copy link
Member

dra27 commented Jul 8, 2021

Putting the 2.2.0 spike as part of dealing with depext for native Windows (which indirectly benefits the Cygwin port of opam)

@kit-ty-kate
Copy link
Member

Fixed since the 2.2.0~alpha release. If you're still having an issue, please feel free to reopen.

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

3 participants