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

ocaml-base-compiler compilation error #25614

Open
adrienbanse opened this issue Apr 3, 2024 · 0 comments
Open

ocaml-base-compiler compilation error #25614

adrienbanse opened this issue Apr 3, 2024 · 0 comments

Comments

@adrienbanse
Copy link

When executing opam init or opam install ocaml-lsp-server odoc ocamlformat utop, I get the following error:

[ERROR] The compilation of ocaml-base-compiler.5.1.1 failed at "make -j1".

#=== ERROR while compiling ocaml-base-compiler.5.1.1 ==========================#
# context     2.1.5 | macos/arm64 |  | https://opam.ocaml.org#689abe19
# path        ~/.opam/default/.opam-switch/build/ocaml-base-compiler.5.1.1
# command     ~/.opam/opam-init/hooks/sandbox.sh build make -j1
# exit-code   2
# env-file    /var/folders/lq/3tht3k2j0kzbjk_268vccty80000gp/T/opam-adrienbanse-40830/ocaml-base-compiler-40830-c725a9.env
# output-file /var/folders/lq/3tht3k2j0kzbjk_268vccty80000gp/T/opam-adrienbanse-40830/ocaml-base-compiler-40830-c725a9.out
### output ###
# ld: Undefined symbols:
# [...]
#       _caml_zstd_compress in libcamlrun.a[57](zstd.b.o)
#   _ZSTD_createCCtx, referenced from:
#       _caml_zstd_compress in libcamlrun.a[57](zstd.b.o)
#   _ZSTD_decompress, referenced from:
#       _caml_zstd_decompress in libcamlrun.a[57](zstd.b.o)
#   _ZSTD_freeCCtx, referenced from:
#       _caml_zstd_compress in libcamlrun.a[57](zstd.b.o)
# clang: error: linker command failed with exit code 1 (use -v to see invocation)
# make[2]: *** [runtime/ocamlrun] Error 1
# make[1]: *** [coldstart] Error 2
# make: *** [world.opt] Error 2

I could'nt find any issue with the same error, sorry if it's duplicated

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

1 participant