Skip to content

build-env: doesn't seem to be honoured #6574

@dbuenzli

Description

@dbuenzli

I have an opam file with:

build-env: CAML_LD_LIBRARY_PATH += "_build/src/std"

My build fails at the install: step with:

[…]
# Fatal error: cannot load shared library dllb0_stubs
# Reason: dlopen(dllb0_stubs.so, 0x000A): tried: 'dllb0_stubs.so' (no such file), '/System/Volumes/Preboot/Cryptexes/OSdllb0_stubs.so' (no such file), '/usr/lib/dllb0_stubs.so' (no such file, not in dyld cache), 'dllb0_stubs.so' (no such file)

If I check the suggested build environment file, the environment variable doesn't seem to be setup as expected by the build-env field:

> cat ~/.opam/log/b0-51512-5d52f8.env | grep CAML_LD_LIBRARY_PATH
CAML_LD_LIBRARY_PATH=/Users/dbuenzli/.opam/ocaml.5.3.0+bco/lib/stublibs:/Users/dbuenzli/.opam/ocaml.5.3.0+bco/lib/ocaml/stublibs:/Users/dbuenzli/.opam/ocaml.5.3.0+bco/lib/ocaml

(Don't know if this is relevant but this package install uses both an .install file and an install: section).

> opam --version
2.3.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions