➜ ~ opam switch create 4.09.0 <><> Gathering sources ><><><><><><><><><><><><><><><><><><><><><><><><><><> 🐫 [ocaml-base-compiler.4.09.0] downloaded from cache at https://opam.ocaml.org/cache <><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><> 🐫 ∗ installed base-bigarray.base ∗ installed base-threads.base ∗ installed base-unix.base [ERROR] The compilation of ocaml-base-compiler failed at "/Users/krouton/.opam/opam-init/hooks/sandbox.sh build make -j15 world". #=== ERROR while compiling ocaml-base-compiler.4.09.0 =========================# # context 2.0.7 | macos/x86_64 | | https://opam.ocaml.org#0f1d4fba # path ~/.opam/4.09.0/.opam-switch/build/ocaml-base-compiler.4.09.0 # command ~/.opam/opam-init/hooks/sandbox.sh build make -j15 world # exit-code 2 # env-file ~/.opam/log/ocaml-base-compiler-4548-6cc03f.env # output-file ~/.opam/log/ocaml-base-compiler-4548-6cc03f.out ### output ### # ld: symbol(s) not found for architecture x86_64 # [...] # "_caml_weak_set", referenced from: # _caml_builtin_cprim in prims.o # "_main", referenced from: # implicit entry/start for main executable # ld: symbol(s) not found for architecture x86_64 # clang: error: linker command failed with exit code 1 (use -v to see invocation) # clang: error: linker command failed with exit code 1 (use -v to see invocation) # make[1]: *** [ocamlrund] Error 1 # make[1]: *** Waiting for unfinished jobs.... # make[1]: *** [ocamlruni] Error 1 # make: *** [coldstart] Error 2 <><> Error report <><><><><><><><><><><><><><><><><><><><><><><><><><><><><> 🐫 ┌─ The following actions failed │ λ build ocaml-base-compiler 4.09.0 └─ ┌─ The following changes have been performed (the rest was aborted) │ ∗ install base-bigarray base │ ∗ install base-threads base │ ∗ install base-unix base └─ <><> ocaml-base-compiler.4.09.0 troubleshooting <><><><><><><><><><><><><><> 🐫 => A failure in the middle of the build may be caused by build parallelism (enabled by default). Please file a bug report at https://github.com/ocaml/ocaml/issues => You can try installing again including --jobs=1 to force a sequential build instead. Switch initialisation failed: clean up? ('n' will leave the switch partially installed) [Y/n] Y
特になぜとかは調べてないが、多分同様に詰まる人がいるかもしれないしまた詰まりそうなので自分用にメモを残します
ここではunlinkしているが、私の環境ではuninstallをしないと入らなかった。
github.com