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

ERROR when building from source #26167

Open
fullautodotcom opened this issue Jun 30, 2024 · 1 comment
Open

ERROR when building from source #26167

fullautodotcom opened this issue Jun 30, 2024 · 1 comment

Comments

@fullautodotcom
Copy link

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
Copy link
Member

mseri commented Jun 30, 2024

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

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