-
Notifications
You must be signed in to change notification settings - Fork 377
Open
Labels
Milestone
Description
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