Hello,
1st: I don't know much about ocaml, I just wanted to install a program that depends on ocaml-yaml. The compilation fails on OpenBSD. If anyone can comment on what is going on, I'd be grateful.
Thanks
Ruda
$ opam install yaml
The following actions will be performed:
=== install 1 package
<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> retrieved yaml.3.2.0 (cached)
[ERROR] The compilation of yaml.3.2.0 failed at "dune build -p yaml -j 1".
#=== ERROR while compiling yaml.3.2.0 =========================================#
path ~/.opam/default/.opam-switch/build/yaml.3.2.0
command ~/.opam/default/bin/dune build -p yaml -j 1
exit-code 1
env-file ~/.opam/log/yaml-21432-914a46.env
output-file ~/.opam/log/yaml-21432-914a46.out
output
ffi_ml_types_stubgen.c:116:32: note: forward declaration of 'struct event_scalar_s'
[...]
ffi_ml_types_stubgen.c:128:16: error: offsetof of incomplete type 'struct event_scalar_s'
offsetof(struct event_scalar_s, length));
^ ~~~~~~
/usr/include/stddef.h:69:32: note: expanded from macro 'offsetof'
#define offsetof(type, member) __builtin_offsetof(type, member)
^ ~~~~
ffi_ml_types_stubgen.c:116:32: note: forward declaration of 'struct event_scalar_s'
offsetof(struct event_scalar_s, style));
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
<><> Error report <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
+- The following actions failed
| - build yaml 3.2.0
Hello,
1st: I don't know much about ocaml, I just wanted to install a program that depends on ocaml-yaml. The compilation fails on OpenBSD. If anyone can comment on what is going on, I'd be grateful.
Thanks
Ruda