stdcompat icon indicating copy to clipboard operation
stdcompat copied to clipboard

ocaml 5.3 does not work

Open xhpohanka opened this issue 10 months ago • 1 comments

I found this when tried to build coccinelle on my arch linux, ocaml 5.3 is there now...

File "stdcompat__array.ml", line 1:
Error: The implementation stdcompat__array.ml
       does not match the interface stdcompat__array.mli: 
       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 "stdcompat__array_s.mli", line 80, characters 0-67:
         Expected declaration
       File "array.mli", line 66, characters 0-69: Actual declaration
ocamlfind ocamlc -c  -bin-annot -no-alias-deps -nolabels -I . -alert -deprecated stdcompat__printexc.ml -o stdcompat__printexc.cmo

xhpohanka avatar Feb 19 '25 09:02 xhpohanka

Many thanks for reporting. It's known indeed and I am working on fixing it. I am not able to give any date for when stdcompat is going to be available for OCaml 5.3, but I do hope it will happen before the end of March.

shindere avatar Feb 19 '25 09:02 shindere

Hello, I wanted to check up and see if there was any progress on this or to see if there was any way we could help? Thank you!

ethancedwards8 avatar Jun 05 '25 04:06 ethancedwards8

Hello,

Thanks for the proposal.

Still working on it, I started to do a bit of rewriting to fix nasty build errors.

shindere avatar Jun 05 '25 07:06 shindere

stdcompat builds fine with OCaml 5.3 (default config). I suppose this can be closed? :)

manufactory avatar Aug 08 '25 22:08 manufactory

As explained elsewhere, it's not enough for stdcompat to build with a given version of the OCaml compiler as the purpose of this particular package is to make all the features from that compiler's standard library available to older compilers. In this sense stdcompat is very special and different from other packages.

Its release 21.0 accomplishes this, so I am now closing this issue.

shindere avatar Aug 19 '25 11:08 shindere