ocamlfind-1.8.0 in Alpine - x86_64-alpine-linux-musl/bin/ld: cannot find crti.o: No such file or directory
><> 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