ocaml-ctypes icon indicating copy to clipboard operation
ocaml-ctypes copied to clipboard

Package `bigarray` not found with `ctypes.0.15.0` for `5.00.0+trunk`

Open shakthimaan opened this issue 3 years ago • 2 comments

With the removal of the bigarray library in trunk, ctypes.0.15.0 does not build with 5.00.0+trunk and emits the following error:

...
# ocamlfind  ocamlc -package bigarray -package bytes -package integers   -principal -short-paths -g -ccopt "-I/home/guest/sandmark/_opam/5.00.0+trunk/lib/integers"   -c -o _build/src/ctypes/ctypes_ptr.cmo -I _build/src/ctypes  src/ctypes/ctypes_ptr.ml
# ocamlfind: Package `bigarray' not found
# make: *** [Makefile.rules:110: _build/src/ctypes/ctypes_ptr.cmo] Error 2

Can you please provide a patch that uses Stdlib.Bigarray instead to build ctypes.0.15.0 or the latest ctypes.0.20.0 with 5.00.0+trunk? Thank you.

shakthimaan avatar Jan 24 '22 18:01 shakthimaan

For 0.20.0 this is caused by https://github.com/mirage/bigarray-compat/pull/1

kit-ty-kate avatar Jan 26 '22 08:01 kit-ty-kate

The new version of bigarray-compat should fix the issue: https://github.com/ocaml/opam-repository/pull/20553

TheLortex avatar Jan 26 '22 09:01 TheLortex

Closing as fixed, since recent versions of ctypes build with OCaml 5.0.0

yallop avatar Aug 01 '23 12:08 yallop