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

4.08 compilation errors #658

Closed
anmonteiro opened this issue Feb 11, 2019 · 8 comments
Closed

4.08 compilation errors #658

anmonteiro opened this issue Feb 11, 2019 · 8 comments
Milestone

Comments

@anmonteiro
Copy link
Contributor

I was trying out the 4.08+beta1 release today and ran into the following errors trying to compile Lwt:

#=== ERROR while compiling lwt.4.1.0 ==========================================#    
# context     2.0.2 | macos/x86_64 | ocaml-variants.4.08.0+beta1 | https://opam.ocaml.org#dc8e74d5
# path        ~/.opam/ocaml-variants.4.08.0+beta1/.opam-switch/build/lwt.4.1.0
# command     ~/.opam/opam-init/hooks/sandbox.sh build jbuilder build -p lwt -j 7                       
# exit-code   1                                              # env-file    ~/.opam/log/lwt-34015-1872ec.env                           # output-file ~/.opam/log/lwt-34015-1872ec.out
### output ###                          
# [...]                                                           
# 208 |   Array1.map_file fd ?pos char c_layout shared size       
#         ^^^^^^^^^^^^^^^                                  
# Error: Unbound value Array1.map_file  
#     ocamlopt src/unix/.lwt_unix.objs/lwt_throttle.{cmx,o}
# File "src/unix/lwt_throttle.ml", line 85, characters 38-55:
# 85 |              Printexc.print_backtrace Pervasives.stderr;
#                                            ^^^^^^^^^^^^^^^^^                   
# Alert deprecated: module Stdlib.Pervasives  
# Use Stdlib instead.                                                            
#                                                                       
# If you need to stay compatible with OCaml < 4.07, you can use the
# stdlib-shims library: https://github.com/ocaml/stdlib-shims           
@anmonteiro
Copy link
Contributor Author

anmonteiro commented Feb 11, 2019

This failure is related to ocaml/ocaml#1685, so it might just be a matter of depending on the bigarray lib to keep compat with OCaml < 4.06.

aantron added a commit that referenced this issue Feb 14, 2019
@aantron
Copy link
Collaborator

aantron commented Feb 14, 2019

The current status is:

@aantron
Copy link
Collaborator

aantron commented Feb 18, 2019

The Bigarray issue is now tracked in ocaml/ocaml#2256.

@aantron
Copy link
Collaborator

aantron commented Feb 25, 2019

We'll fix the Bigarray issue using conditional compilation. Still waiting on OMP.

@aantron
Copy link
Collaborator

aantron commented Mar 3, 2019

The fix for the Bigarray issue now depends on a release of mirage/mmap.

aantron added a commit that referenced this issue Mar 18, 2019
aantron added a commit that referenced this issue Mar 18, 2019
@aantron aantron added this to the 4.2.0 milestone Mar 19, 2019
@aantron
Copy link
Collaborator

aantron commented Mar 19, 2019

The Bigarray issue is now resolved by the new mmap compatibility package. See the commit linked above.

At this point, it's possible to release the main package lwt, which I will do soon (#675). It's the only package that needs to be updated for 4.08, anyway.

lwt_ppx is still not working on 4.08 due to ocaml-migrate-parsetree not being available.

Lwt development on 4.08 is also still annoying, due to Makefile targets automatically testing lwt_ppx, and due to Lwt's dune files depending on bisect_ppx. We can untangle all this, but I prefer to keep waiting for an ocaml-migrate-parsetree release for now.

@aantron
Copy link
Collaborator

aantron commented Mar 26, 2019

Lwt 4.2.0 is compatible with 4.08 and is now installable from opam, so I'm closing this issue. Thanks for reporting!

The PPX and Lwt development still don't work on 4.08, but this is tracked in ocaml-ppx/ocaml-migrate-parsetree#50.

@aantron aantron closed this as completed Mar 26, 2019
@aantron
Copy link
Collaborator

aantron commented Apr 3, 2019

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

2 participants