hi masters, previously on my mac with m1 chip, I installed utop successfully, and I tried many times.
for some reasons, I maybe done brew update & upgrade, then utop can’t work any more.
When I type “utop”, it will be stuck with a “utop orgrange header”, can’t input any expressions.
So I tried to re-install utop again, but I can’t install it for below error, do you have any ideas? thank you so much
Constructing initial basis...
Number of 0-1 knapsack inequalities = 14977
Constructing conflict graph...
Conflict graph has 2534 + 605 = 3139 vertices
The following actions will be performed:
- install utop 2.13.1
- install lwt_log 1.1.2
===== 2 to install =====
Do you want to continue? [Y/n] y
<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
Processing 2/6: [lwt_log.1.1.2: dl]
-> retrieved utop.2.13.1 (cached)
-> retrieved lwt_log.1.1.2 (https://opam.ocaml.org/cache)
[ERROR] The compilation of lwt_log.1.1.2 failed at "dune build -p lwt_log -j 7".
[ERROR] The compilation of utop.2.13.1 failed at "dune build -p utop -j 7 @install".
#=== ERROR while compiling utop.2.13.1 ========================================#
# context 2.1.5 | macos/x86_64 | ocaml.5.1.0 | https://opam.ocaml.org#2dcd8684
# path ~/.opam/default/.opam-switch/build/utop.2.13.1
# command ~/.opam/opam-init/hooks/sandbox.sh build dune build -p utop -j 7 @install
# exit-code 1
# env-file ~/.opam/log/utop-80315-144998.env
# output-file ~/.opam/log/utop-80315-144998.out
### output ###
# /tmp/build_16c292_dune/camlasm438898.s:913:2: error: invalid instruction mnemonic 'bl'
# [...]
# /tmp/build_16c292_dune/camlasm438898.s:916:15: error: unknown token in expression
# orr x0, xzr, #1
# ^
# /tmp/build_16c292_dune/camlasm438898.s:917:11: error: brackets expression not supported on this target
# ldr x30, [sp, #8]
# ^
# /tmp/build_16c292_dune/camlasm438898.s:918:14: error: unknown token in expression
# add sp, sp, #16
# ^
# File "src/top/expunge/modules.ml", line 1:
# Error: Assembler error, input left in file /tmp/build_16c292_dune/camlasm438898.s
#=== ERROR while compiling lwt_log.1.1.2 ======================================#
# context 2.1.5 | macos/x86_64 | ocaml.5.1.0 | https://opam.ocaml.org#2dcd8684
# path ~/.opam/default/.opam-switch/build/lwt_log.1.1.2
# command ~/.opam/opam-init/hooks/sandbox.sh build dune build -p lwt_log -j 7
# exit-code 1
# env-file ~/.opam/log/lwt_log-80315-4377b1.env
# output-file ~/.opam/log/lwt_log-80315-4377b1.out
### output ###
# /tmp/build_735af4_dune/camlasm81f813.s:849:2: error: unknown use of instruction mnemonic without a size suffix
# [...]
# /tmp/build_735af4_dune/camlasm81f813.s:851:15: error: unknown token in expression
# orr x0, xzr, #1
# ^
# /tmp/build_735af4_dune/camlasm81f813.s:852:11: error: brackets expression not supported on this target
# ldr x30, [sp, #8]
# ^
# /tmp/build_735af4_dune/camlasm81f813.s:853:14: error: unknown token in expression
# add sp, sp, #16
# ^
# File "src/core/lwt_log_rules.ml", line 1:
# Error: Assembler error, input left in file /tmp/build_735af4_dune/camlasm81f813.s
<><> Error report <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
+- The following actions failed
| - build lwt_log 1.1.2
| - build utop 2.13.1
+-
- No changes have been performed
# Run eval $(opam env) to update the current shell environment