opam-repository icon indicating copy to clipboard operation
opam-repository copied to clipboard

problem with installing utop

Open Otom-obhazi opened this issue 3 years ago • 0 comments

email@email-mac ~ % opam install utop
The following actions will be performed:
  - install ocaml-base-compiler 4.12.0 [required by ocaml]
  - install ocaml-config        2      [required by ocaml]
  - install ocaml               4.12.0 [required by utop]
  - install ocamlfind           1.9.6  [required by utop]
  - install ocamlbuild          0.14.2 [required by logs]
  - install dune                3.7.0  [required by utop]
  - install base-bytes          base   [required by ocplib-endian]
  - install uchar               0.0.2  [required by zed]
  - install topkg               1.0.7  [required by logs]
  - install trie                1.0.0  [required by mew]
  - install result              1.5    [required by zed]
  - install csexp               1.5.1  [required by dune-configurator]
  - install cppo                1.6.9  [required by utop]
  - install uutf                1.0.3  [required by zed]
  - install react               1.2.2  [required by utop]
  - install mew                 0.1.0  [required by mew_vi]
  - install dune-configurator   3.7.0  [required by lwt]
  - install ocplib-endian       1.2    [required by lwt]
  - install uucp                15.0.0 [required by zed]
  - install mew_vi              0.5.0  [required by lambda-term]
  - install lwt                 5.6.1  [required by utop]
  - install uuseg               15.0.0 [required by zed]
  - install lwt_react           1.2.0  [required by utop]
  - install logs                0.7.0  [required by utop]
  - install zed                 3.2.1  [required by utop]
  - install lambda-term         3.3.1  [required by utop]
  - install utop                2.11.0
===== 27 to install =====
Do you want to continue? [Y/n] Y

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> retrieved csexp.1.5.1  (cached)
-> retrieved cppo.1.6.9  (cached)
-> retrieved lambda-term.3.3.1  (cached)
-> retrieved logs.0.7.0  (cached)
-> retrieved lwt.5.6.1  (cached)
-> retrieved lwt_react.1.2.0  (cached)
-> retrieved mew.0.1.0  (cached)
-> retrieved mew_vi.0.5.0  (cached)
-> retrieved dune.3.7.0  (cached)
-> retrieved ocaml-base-compiler.4.12.0  (cached)
-> retrieved ocamlfind.1.9.6  (cached)
-> retrieved ocamlbuild.0.14.2  (cached)
-> retrieved ocplib-endian.1.2  (cached)
-> retrieved react.1.2.2  (cached)
-> retrieved result.1.5  (cached)
-> retrieved dune-configurator.3.7.0  (cached)
-> retrieved trie.1.0.0  (cached)
-> retrieved uchar.0.0.2  (cached)
-> retrieved topkg.1.0.7  (cached)
-> retrieved utop.2.11.0  (cached)
-> retrieved uuseg.15.0.0  (cached)
-> retrieved uutf.1.0.3  (cached)
-> retrieved zed.3.2.1  (cached)
-> retrieved uucp.15.0.0  (cached)
[ERROR] The compilation of ocaml-base-compiler.4.12.0 failed at "./configure
        --prefix=/Users/angel/.opam/4.12.0 -C CC=cc ASPP=cc -c".

#=== ERROR while compiling ocaml-base-compiler.4.12.0 =========================#
# context     2.1.4 | macos/x86_64 |  | https://opam.ocaml.org#aadd0374
# path        ~/.opam/4.12.0/.opam-switch/build/ocaml-base-compiler.4.12.0
# command     ~/.opam/opam-init/hooks/sandbox.sh build ./configure --prefix=/Users/angel/.opam/4.12.0 -C CC=cc ASPP=cc -c
# exit-code   77
# env-file    ~/.opam/log/ocaml-base-compiler-9641-af902e.env
# output-file ~/.opam/log/ocaml-base-compiler-9641-af902e.out
### output ###
# [...]
# configure: creating cache config.cache
# configure: Configuring OCaml version 4.12.0
# checking build system type... i386-apple-darwin21.2.0
# checking host system type... i386-apple-darwin21.2.0
# checking target system type... i386-apple-darwin21.2.0
# checking for ld... ld
# checking how to print strings... printf
# checking for gcc... cc
# checking whether the C compiler works... no
# configure: error: in `/Users/angel/.opam/4.12.0/.opam-switch/build/ocaml-base-compiler.4.12.0':
# configure: error: C compiler cannot create executables
# See `config.log' for more details



<><> Error report <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
+- The following actions failed
| - build ocaml-base-compiler 4.12.0
+- 
- No changes have been performed

<><> ocaml-base-compiler.4.12.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/opam-repository/issues
=> You can try installing again including --jobs=1
      to force a sequential build instead.

Otom-obhazi avatar Mar 09 '23 05:03 Otom-obhazi