Skip to content

compilation fails on openbsd #78

@rudolfII

Description

@rudolfII

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

  • install yaml 3.2.0

<><> 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 =========================================#

context 2.2.0 | openbsd/x86_64 | ocaml.4.14.2 | https://opam.ocaml.org#0229444faf6806e6b12591956211b794451a1eab

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions