添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接

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 ocamlfind-1.8.0 in Alpine - x86_64-alpine-linux-musl/bin/ld: cannot find crti.o: No such file or directory #13718 ocamlfind-1.8.0 in Alpine - x86_64-alpine-linux-musl/bin/ld: cannot find crti.o: No such file or directory #13718 XVilka opened this issue Mar 22, 2019 · 1 comment

Trying to solve this issue:

https://discuss.ocaml.org/t/is-there-any-way-to-avoid-error-file-topfind-ml-line-55-characters-12-41-error-unbound-module-toploop/3546/2 ( #11453 )

But after using workaround met another one:

><> Gathering sources ><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
[ocamlfind.1.8.0] downloaded from cache at https://opam.ocaml.org/cache
<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> installed conf-m4.1
[ERROR] The compilation of ocamlfind failed at "/usr/bin/make opt".
#=== ERROR while compiling ocamlfind.1.8.0 ====================================#
# context              2.0.1 | linux/x86_64 | ocaml-system.4.07.1 | https://opam.ocaml.org#fa55d97e
# path                 ~/.opam/default/.opam-switch/build/ocamlfind.1.8.0
# command              /usr/bin/make opt
# exit-code            2
# env-file             ~/.opam/log/ocamlfind-66-548b09.env
# output-file          ~/.opam/log/ocamlfind-66-548b09.out
### output ###
# [...]
# ocamlopt -I +compiler-libs -g -a -o findlib.cmxa findlib_config.cmx fl_split.cmx fl_metatoken.cmx fl_meta.cmx fl_metascanner.cmx fl_topo.cmx fl_package_base.cmx findlib.cmx fl_args.cmx fl_lint.cmx
# if [ 1 -gt 0 ]; then \
#     ocamlopt -I +compiler-libs -g -shared -o findlib.cmxs findlib_config.cmx fl_split.cmx fl_metatoken.cmx fl_meta.cmx fl_metascanner.cmx fl_topo.cmx fl_package_base.cmx findlib.cmx fl_args.cmx fl_lint.cmx; \
# /usr/lib/gcc/x86_64-alpine-linux-musl/8.3.0/../../../../x86_64-alpine-linux-musl/bin/ld: cannot find crti.o: No such file or directory
# /usr/lib/gcc/x86_64-alpine-linux-musl/8.3.0/../../../../x86_64-alpine-linux-musl/bin/ld: cannot find -lssp_nonshared
# collect2: error: ld returned 1 exit status
# File "caml_startup", line 1:
# Error: Error during linking
# make[1]: *** [Makefile:68: findlib.cmxa] Error 2
# make[1]: Leaving directory '/home/user/.opam/default/.opam-switch/build/ocamlfind.1.8.0/src/findlib'
# make: *** [Makefile:17: opt] Error 2
  Voronar, codingCoffee, Type1JGB, rrnazario, 5c077m4n, x3ro, dobrakmato, maurolacy, dialMForMonkey, AsharLohmar, and 36 more reacted with thumbs up emoji
  vincentmader reacted with thumbs down emoji
  SimbaNinja917 and b1ek reacted with hooray emoji
  elmazzun, aesedepece, and noraj reacted with heart emoji
      All reactions
  = note: /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: cannot find crti.o: No such file or directory
          collect2: error: ld returned 1 exit status
ocaml/opam-repository#13718