project-everest / everest

https://project-everest.github.io/
Apache License 2.0
193 stars 29 forks source link

Various fixes for everest on cygwin #51

Closed wintersteiger closed 6 years ago

wintersteiger commented 6 years ago

I need cygwin to build quic-related things, but the everest script wasn't working right and cygwin as well as opam are just generally a PITA. I added a bunch of fixes that got it working on my end, but there may be more left to fix.

The one really major issue was that opam init ... and opam install ... now require flexdll to be installed, otherwise they will completely disable loading of shared libraries, which many of the packages require. However, on my end the cygwin-flexdll-package works just fine now. Kremlin and FStar build, but hacl-star is confused by some of the Windows-style paths, but that's probably a local issue. (Vale never built for me anywhere and mitls-fstar is known to be broken.)

Along the way I also needed to rebase DLLs including some black magic, which was a major time sink, they really need to sort that out (see https://github.com/ocaml/opam/issues/2276).

I wonder whether we shouldn't simply provide a tarball/zip of all of cygwin + opam + everest, that would save everybody a lot of time (until they upgrade any packages at least). Windows 10 also handles .iso files natively now, which might handle symlinks correctly.

I'm attaching some of my notes: cygwin-notes.txt

wintersteiger commented 6 years ago

Here's a quick summary of my cygwin+ocaml installation attempts:

I wasted a lot of time on this now and I'm afraid I'll have to go do something other than installing OCaml for a few days.

wintersteiger commented 6 years ago

This is not the right way to fix the problem; closing.