Skip to content

'dromedary.py' misses data for 'unix' #12

@shayne-fletcher

Description

@shayne-fletcher

the prebuilt_ocaml_library definition of the OCaml API 'unix' library generated by 'dromedary.py' misses native and bytecode C library data.

what 'domedary.py' generates is

prebuilt_ocaml_library(
    name = "unix",
    ...
    native_c_libs = [],
    bytecode_c_libs = [],
    ...
    )

and what 'dromedary.py' should generate is

prebuilt_ocaml_library(
    name = "unix",
    ...
    native_c_libs = [
        "opam/lib/ocaml/libunixnat.a"
    ],
    bytecode_c_libs = [
        "opam/lib/ocaml/libunixbyt.a"
    ],
    ...
    )

this means OCaml binaries that use the Unix module fail to link.

example link failures can be seen on the test-unix-workflow branch of this ocaml-scripts clone by executing test-unix.yml. see these build logs.

the workflow attempts to build the target root//test:test-unix, a program that calls the Unix.getlogin function.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions