ocaml / opam-repository

Main public package repository for opam, the source package manager of OCaml.
https://opam.ocaml.org
Creative Commons Zero v1.0 Universal
517 stars 1.13k forks source link

Error while updating opam packages #23496

Closed ghost closed 1 year ago

ghost commented 1 year ago
#=== ERROR while compiling user-setup.0.7 =====================================#
# context     2.1.4 | linux/x86_64 | ocaml.5.0.0 | https://opam.ocaml.org#25bba47d
# path        ~/.opam/default/.opam-switch/build/user-setup.0.7
# command     ~/.opam/opam-init/hooks/sandbox.sh build make
# exit-code   2
# env-file    ~/.opam/log/user-setup-78904-7cd32c.env
# output-file ~/.opam/log/user-setup-78904-7cd32c.out
### output ###
# ocamlbuild -r \
#   -tag debug \
#   -I . -I ocamltop -I emacs -I vim -I sublime -I gedit \
#   -use-ocamlfind -pkg unix -pkg re -pkg re.pcre -pkg cmdliner \
#    \
#   ousMain.native
# ocamlfind ocamldep -package cmdliner -package re.pcre -package re -package unix -modules ousMain.ml > ousMain.ml.depends
# + ocamlfind ocamldep -package cmdliner -package re.pcre -package re -package unix -modules ousMain.ml > ousMain.ml.depends
# ocamlfind: Package `unix' not found
# Command exited with code 2.
# make: *** [Makefile:19: _build/ousMain.native] Error 10

#=== ERROR while compiling logs.0.7.0 =========================================#
# context     2.1.4 | linux/x86_64 | ocaml.5.0.0 | https://opam.ocaml.org#25bba47d
# path        ~/.opam/default/.opam-switch/build/logs.0.7.0
# command     ~/.opam/opam-init/hooks/sandbox.sh build ocaml pkg/pkg.ml build --pinned false --with-js_of_ocaml false --with-fmt true --with-cmdliner true --with-lwt true --with-base-threads true
# exit-code   1
# env-file    ~/.opam/log/logs-78904-e8ad6a.env
# output-file ~/.opam/log/logs-78904-e8ad6a.out
### output ###
# [...]
# + ocamlfind ocamlc -where > /home/ubuntu/.opam/default/.opam-switch/build/logs.0.7.0/_build/ocamlc.where
# ocamlfind: Package `threads' not found
# Command exited with code 2.
# pkg.ml: [ERROR] cmd ['ocamlbuild' '-use-ocamlfind' '-classic-display' '-j' '4' '-tag' 'debug'
#      '-build-dir' '_build' 'opam' 'pkg/META' 'CHANGES.md' 'LICENSE.md'
#      'README.md' 'src/logs.cma' 'src/logs.cmi' 'src/logs.mli'
#      'src/logs_fmt.cma' 'src/logs_fmt.cmi' 'src/logs_fmt.mli'
#      'src/logs_cli.cma' 'src/logs_cli.cmi' 'src/logs_cli.mli'
#      'src/logs_lwt.cma' 'src/logs_lwt.cmi' 'src/logs_lwt.mli'
#      'src/logs_top.cma' 'src/logs_threaded.cma' 'src/logs_threaded.cmi'
#      'src/logs_threaded.mli' 'src/logs_top_init.ml'
#      'src/logs_fmt_top_init.ml' 'test/tool.ml' 'test/tags.ml']: exited with 10

<><> Error report <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
┌─ The following actions failed
│ λ build logs       0.7.0
│ λ build user-setup 0.7
└─
┌─ The following changes have been performed (the rest was aborted)
│ ⊘ remove    bos                 0.2.1
│ ⊘ remove    dune-release        1.6.2
│ ⊘ remove    lambda-term         3.3.1
│ ⊘ remove    logs                0.7.0
│ ⊘ remove    user-setup          0.7
│ ⊘ remove    utop                2.11.0
│ ↻ recompile base-bytes          base
│ ↻ recompile dot-merlin-reader   4.6
│ ↻ recompile lwt                 5.6.1
│ ↻ recompile lwt_react           1.2.0
│ ↻ recompile merlin              4.8-500
│ ↻ recompile ocaml-lsp-server    1.15.1-5.0
│ ↻ recompile ocamlformat-lib     0.25.1
│ ↻ recompile ocp-indent          1.8.1
│ ↻ recompile ocplib-endian       1.2
│ ↻ recompile omd                 1.3.2
│ ↻ recompile ounit2              2.2.6
│ ↻ recompile stdcompat           19
│ ↗ upgrade   ocaml-version       3.5.0 to 3.6.1
│ ↗ upgrade   ocamlfind           1.9.5 to 1.9.6
│ ↗ upgrade   ocamlformat         0.24.1 to 0.25.1
│ ↗ upgrade   ocamlformat-rpc-lib 0.24.1 to 0.25.1
└─
axrwl commented 1 year ago

Can you format your issue properly (without using heading levels)?

ghost commented 1 year ago

Can you format your issue properly (without using heading levels)?

Oh, I don't why it was formatted that way. Its fixed now, thanks to mseri!

kit-ty-kate commented 1 year ago

Is this fixed after an opam update -u ? c.f. #23480

ghost commented 1 year ago

Is this fixed after an opam update -u ? c.f. #23480

Yes it is fixed now, as I tried to update it again. Thanks Alot!