per@konjak:~$ opam switch create 4.07.1 <><> Gathering sources ><><><><><><><><><><><><><><><><><><><><><><><><><><><><> [ocaml-base-compiler.4.07.1] 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 "/home/per/.opam/opam-init/hooks/sandbox.sh build make world". #=== ERROR while compiling ocaml-base-compiler.4.07.1 =========================# # context 2.0.4 | linux/x86_64 | | https://opam.ocaml.org#81a37ea2 # path ~/.opam/4.07.1/.opam-switch/build/ocaml-base-compiler.4.07.1 # command ~/.opam/opam-init/hooks/sandbox.sh build make world # exit-code 2 # env-file ~/.opam/log/ocaml-base-compiler-22610-d8a4ae.env # output-file ~/.opam/log/ocaml-base-compiler-22610-d8a4ae.out ### output ### # [...] # /usr/bin/ld: prims.o:(.data.rel+0x9d0): undefined reference to `caml_restore_ra' # /usr/bin/ld: prims.o:(.data.rel+0xa18): undefined reference to `caml_spacetime_only_' # /usr/bin/ld: prims.o:(.data.rel+0xac8): undefined reference to `caml_sys_const_' # /usr/bin/ld: prims.o:(.data.rel+0xae8): undefined reference to `caml_sys_const_max_' # /usr/bin/ld: prims.o:(.data.rel+0xaf0): undefined reference to `caml_sys_const_ostype_' # /usr/bin/ld: prims.o:(.data.rel+0xaf8): undefined reference to `caml_sys_const_ostype_cyg' # /usr/bin/ld: prims.o:(.data.rel+0xb28): undefined reference to `caml_sys_getc' # /usr/bin/ld: prims.o:(.data.rel+0xba0): undefined reference to `caml_terminfo_ro' # collect2: error: ld returned 1 exit status # make[1]: *** [Makefile:187: ocamlrun] Fel 1 # make[1]: Lämnar katalogen ”/home/per/.opam/4.07.1/.opam-switch/build/ocaml-base-compiler.4.07.1/byterun” # make: *** [Makefile:389: coldstart] Fel 2 <><> Error report <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><> ┌─ The following actions failed │ λ build ocaml-base-compiler 4.07.1 └─ ┌─ The following changes have been performed (the rest was aborted) │ ∗ install base-bigarray base │ ∗ install base-threads base │ ∗ install base-unix base └─ Switch initialisation failed: clean up? ('n' will leave the switch partially installed) [Y/n] Y