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

OCaml for Windows Discontinuation and BinTray 403 Errors #548

Open
cassie-nahar opened this issue Oct 5, 2021 · 3 comments
Open

OCaml for Windows Discontinuation and BinTray 403 Errors #548

cassie-nahar opened this issue Oct 5, 2021 · 3 comments

Comments

@cassie-nahar
Copy link

The current build procedure for Windows uses the discontinued (as of August 2021) opam-repository-mingw.

Further, the mingw64c compiler from that repository is currently unavailable with a 403 (forbidden) error. I'm not sure whether this is due to BinTray rate-limiting or due to the repository being discontinued. Thankfully the WayBackMachine does have a previous copy of the file.

It seems necessary to find an alternative long-term solution for building on Windows.


As a temporary work-around, you can manually download and install the compiler by downloading the archived file from your browser, then change repo/win32/compilers/4.07.0+mingw64c.comp as follows:

opam-version: "1"
version: "4.07.0"
-src: "https://dl.bintray.com/fdopen/prebuild-win32-ocaml-packages/4.07.0+mingw64c.tar.xz"
+archive: "file:///home/krak/Downloads/4.07.0+mingw64c.tar.xz"

build: [
  [ "sed" "-i" "s#@PREFIX@#%{prefix}%#g" "lib/ocaml/ld.conf" ]
  [ "sed" "-i" "s#@PREFIX@#%{prefix}%#g" "lib/ocaml/Makefile.config" ]
  [ "dash.exe" "install.sh" prefix ]
]

packages: [
  "base-unix"
  "base-bigarray"
  "base-threads"
]
env: [
  [OCAMLLIB = "%{prefix}%/lib/ocaml"]
  [CAML_LD_LIBRARY_PATH = "%{lib}%/stublibs"]
  [CC = "x86_64-w64-mingw32-gcc.exe"]
  [CPP = "x86_64-w64-mingw32-cpp.exe"]
]
@djs55
Copy link
Collaborator

djs55 commented Oct 5, 2021

Thanks for the reminder! After a general package update #543 and switching to the "luv" library #539 it should be possible to (for example) build in a Windows container containing ocaml and opam. Now that the old build tools have gone, we should accelerate this work.

@junquero
Copy link

I can't downolad the package from WayBackMachine. The download is always interrupted at around 3 or 6 MB. Any other public location to download the package from?

@sakai135
Copy link

@junquero You can download the package from https://github.com/fdopen/ocaml/releases/4.07.0-1

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