Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ppx_bitstring install fails due to zstd version mismatch #33

Open
buggymcbugfix opened this issue Jan 23, 2024 · 2 comments
Open

ppx_bitstring install fails due to zstd version mismatch #33

buggymcbugfix opened this issue Jan 23, 2024 · 2 comments

Comments

@buggymcbugfix
Copy link

My installation of ppx_bitstring on macOS 14.2.1 is failing due to

# ld: warning: search path '/opt/homebrew/Cellar/zstd/1.5.2/lib' not found
# ld: library 'zstd' not found

(Full output below)

My installed version of zstd is 1.5.5:

$ ls /opt/homebrew/Cellar/zstd/1.5.5/lib 
cmake               libzstd.1.dylib     libzstd.dylib
libzstd.1.5.5.dylib libzstd.a           pkgconfig

Where does the dependency on zstd come from? Is it possible/resonable to install ppx_bitstring with this newer version of the library?

Appendix:

$ opam install ppx_bitstring
Constructing initial basis...
Number of 0-1 knapsack inequalities = 2998
Constructing conflict graph...
Conflict graph has 945 + 493 = 1438 vertices
The following actions will be performed:
  ∗ install ppx_bitstring 4.1.0

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><>  🐫 
⬇ retrieved ppx_bitstring.4.1.0  (cached)
[ERROR] The compilation of ppx_bitstring.4.1.0 failed at "dune build -p ppx_bitstring -j 7 @install".

#=== ERROR while compiling ppx_bitstring.4.1.0 ================================#
# context     2.1.5 | macos/arm64 | ocaml-base-compiler.5.1.1 | https://opam.ocaml.org#fa77046c
# path        ~/.opam/5.1.1/.opam-switch/build/ppx_bitstring.4.1.0
# command     ~/.opam/opam-init/hooks/sandbox.sh build dune build -p ppx_bitstring -j 7 @install
# exit-code   1
# env-file    ~/.opam/log/ppx_bitstring-38979-0e195f.env
# output-file ~/.opam/log/ppx_bitstring-38979-0e195f.out
### output ###
# [...]
# (cd _build/default && /Users/vl200/.opam/5.1.1/bin/ocamlopt.opt -g -w -24 -o .ppx/0224ad3443a846e54f1637fccb074e7d/ppx.exe /Users/vl200/.opam/5.1.1/lib/ocaml/compiler-libs/ocamlcommon.cmxa /Users/vl200/.opam/5.1.1/lib/ocaml-compiler-libs/common/ocaml_common.cmxa /Users/vl200/.opam/5.1.1/lib/ppxlib/astlib/astlib.cmxa /Users/vl200/.opam/5.1.1/lib/stdlib-shims/stdlib_shims.cmxa /Users/vl200/.opa[...]
# ld: warning: search path '/opt/homebrew/Cellar/zstd/1.5.2/lib' not found
# ld: library 'zstd' not found
# clang: error: linker command failed with exit code 1 (use -v to see invocation)
# File "caml_startup", line 1:
# Error: Error during linking (exit code 1)
# -> required by _build/default/.ppx/0224ad3443a846e54f1637fccb074e7d/ppx.exe
# -> required by _build/default/ppx/ppx_bitstring.pp.ml
# -> required by _build/default/ppx/.ppx_bitstring.objs/byte/ppx_bitstring.cmi
# -> required by _build/install/default/lib/ppx_bitstring/ppx_bitstring.cmi
# -> required by _build/default/ppx_bitstring.install
# -> required by alias install



<><> Error report <><><><><><><><><><><><><><><><><><><><><><><><><><><><><>  🐫 
┌─ The following actions failed
│ λ build ppx_bitstring 4.1.0
└─ 
╶─ No changes have been performed
@buggymcbugfix
Copy link
Author

PS: For now ln -s /opt/homebrew/Cellar/zstd/1.5.5 /opt/homebrew/Cellar/zstd/1.5.2 allowed me to complete the installation (not sure if this breaks anything though).

@xguerin
Copy link
Owner

xguerin commented Jan 23, 2024

zstd is not a direct dependency of bitstring. It could be a dependency of a dependency. I'll investigate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants