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

melange is not compatible with OCaml 5.1.1 #24872

Merged
merged 1 commit into from
Nov 29, 2023
Merged

Conversation

kit-ty-kate
Copy link
Member

required Marshal.compression_supported

#=== ERROR while compiling melange.2.1.0 ======================================#
# context              2.2.0~alpha3 | linux/x86_64 | ocaml-variants.5.1.1+trunk | file:///home/opam/opam-repository
# path                 ~/.opam/5.1.1/.opam-switch/build/melange.2.1.0
# command              ~/.opam/5.1.1/bin/dune build -p melange -j 1 @install
# exit-code            1
# env-file             ~/.opam/log/melange-274-532001.env
# output-file          ~/.opam/log/melange-274-532001.out
### output ###
# (cd _build/default && /home/opam/.opam/5.1.1/bin/ocamlopt.opt -w -9 -g -O3 -unbox-closures -I vendor/melange-compiler-libs/lib/.melange_compiler_libs.objs/byte -I vendor/melange-compiler-libs/lib/.melange_compiler_libs.objs/native -I /home/opam/.opam/5.1.1/lib/menhirLib -I /home/opam/.opam/5.1.1/lib/ocaml/compiler-libs -I vendor/melange-compiler-libs/wrapper/.melange_wrapper.objs/byte -I vendor/melange-compiler-libs/wrapper/.melange_wrapper.objs/native -intf-suffix .ml -no-alias-deps -open Melange_compiler_libs__ -o vendor/melange-compiler-libs/lib/.melange_compiler_libs.objs/native/melange_compiler_libs__Config.cmx -c -impl vendor/melange-compiler-libs/lib/config.ml)
# File "utils/config.mlp", line 221, characters 34-63:
# Error: Unbound value Marshal.compression_supported
# (cd _build/default && /home/opam/.opam/5.1.1/bin/ocamlc.opt -w -9 -g -bin-annot -I vendor/melange-compiler-libs/lib/.melange_compiler_libs.objs/byte -I /home/opam/.opam/5.1.1/lib/menhirLib -I /home/opam/.opam/5.1.1/lib/ocaml/compiler-libs -I vendor/melange-compiler-libs/wrapper/.melange_wrapper.objs/byte -intf-suffix .ml -no-alias-deps -open Melange_compiler_libs__ -o vendor/melange-compiler-libs/lib/.melange_compiler_libs.objs/byte/melange_compiler_libs__Cmi_format.cmo -c -impl vendor/melange-compiler-libs/lib/cmi_format.ml)
# File "vendor/melange-compiler-libs/file_formats/cmi_format.ml", line 87, characters 66-77:
# Error: This variant expression is expected to have type Marshal.extern_flags
#        There is no constructor Compression within type Marshal.extern_flags
# (cd _build/default && /home/opam/.opam/5.1.1/bin/ocamlc.opt -w -9 -g -bin-annot -I vendor/melange-compiler-libs/lib/.melange_compiler_libs.objs/byte -I /home/opam/.opam/5.1.1/lib/menhirLib -I /home/opam/.opam/5.1.1/lib/ocaml/compiler-libs -I vendor/melange-compiler-libs/wrapper/.melange_wrapper.objs/byte -intf-suffix .ml -no-alias-deps -open Melange_compiler_libs__ -o vendor/melange-compiler-libs/lib/.melange_compiler_libs.objs/byte/melange_compiler_libs__Cmt_format.cmo -c -impl vendor/melange-compiler-libs/lib/cmt_format.ml)
# File "vendor/melange-compiler-libs/file_formats/cmt_format.ml", line 112, characters 44-55:
# Error: This variant expression is expected to have type Marshal.extern_flags
#        There is no constructor Compression within type Marshal.extern_flags
# (cd _build/default && /home/opam/.opam/5.1.1/bin/ocamlc.opt -w -9 -g -bin-annot -I vendor/melange-compiler-libs/lib/.melange_compiler_libs.objs/byte -I /home/opam/.opam/5.1.1/lib/menhirLib -I /home/opam/.opam/5.1.1/lib/ocaml/compiler-libs -I vendor/melange-compiler-libs/wrapper/.melange_wrapper.objs/byte -intf-suffix .ml -no-alias-deps -open Melange_compiler_libs__ -o vendor/melange-compiler-libs/lib/.melange_compiler_libs.objs/byte/melange_compiler_libs__Config.cmo -c -impl vendor/melange-compiler-libs/lib/config.ml)
# File "utils/config.mlp", line 221, characters 34-63:
# Error: Unbound value Marshal.compression_supported

Fixed upstream in melange-re/melange#926

@mseri
Copy link
Member

mseri commented Nov 29, 2023

Thanks

@mseri mseri merged commit ba67635 into ocaml:master Nov 29, 2023
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

Successfully merging this pull request may close these issues.

3 participants