ocaml / opam-repository

Main public package repository for opam, the source package manager of OCaml.
https://opam.ocaml.org
Creative Commons Zero v1.0 Universal
521 stars 1.14k forks source link

ERROR when building from source #26167

Open fullautodotcom opened 4 months ago

fullautodotcom commented 4 months ago

Error: The implementation src_ext/extlib/src/extArray.pp.ml does not match the interface src_ext/extlib/src/extArray.pp.ml: ... In module Array: Values do not match: external create_float : int -> float array = "caml_array_create_float" is not included in external create_float : int -> float array = "caml_make_float_vect" The names of the primitives are not the same File "src_ext/extlib/src/extArray.mli", line 116, characters 2-69: Expected declaration File "array.mli", line 66, characters 0-69: Actual declaration

I WAS ABLE TO COMPLETE THE BUILD WITH THESE SED SUBSTITUTIONS AFTER "make" but before "sudo make install": export add='external create_float : int -> float array = "caml_make_float_vect"'; sed -i '/caml_make_vect/a$add' src_ext/extlib/src/extArray.ml; sed -i 's/caml_make_vect/caml_array_make/' src_ext/extlib/src/extArray.ml; sed -i 's/caml_make_vect/caml_array_make/' src_ext/extlib/src/extArray.mli;

mseri commented 4 months ago

This should be reported to https://github.com/ygrek/ocaml-extlib