Closed smondet closed 11 years ago
HEAD's solver should give much better results. Could you try to see if there are some improvements ?
Also, the error message should also see fixed (see #463).
Is HEAD
supposed to work with 0.9.2 ~/.opam/
trees?
$ opam switch list
'opam switch' failed.
Fatal error: exception File "src/client/opamSwitchCommand.ml", line 30, characters 20-26: Assertion failed
Apart from that, yes the initial issue seems solved.
opam upgrade
got all the 109.09.00 packages, and also uninstalling everything, and installing core and core_extended again gets the expected packages
But I had to restart the re-installations because of ocamlfind install errors
First time:
$ opam install core
...
### stderr ###
ocamlfind: Conflict with another package: Library dllcore_stubs.so is already installed
then the second time it works (had to restart also for failures in dependencies like pipebang, and ounit too)
It seems that you have installed OCaml with OPAM (or you don't have ocaml
in your PATH
). Is the contents of your CAML_LD_LIBRARY_PATH
seems to be the one you'd expect ?
(I've pushed a fix for you first error)
Or you have a very old ~/.opam
tree (with a bad /.opam/compilers/system.comp
). Mine looks like:
opam-version: "1"
name: "system"
version: "4.00.1"
packages: ["base-unix" "base-bigarray" "base-threads"]
env: [
[CAML_LD_LIBRARY_PATH = "%{lib}%/stublibs:/usr/local/lib/ocaml/stublibs"]
]
preinstalled: true
Indeed, I had removed the system
compiler. I will try again later with a fresh .opam/
.
PS: I always do: install ocaml in /tmp, compile opam with it, then opam switch <another one>
and opam switch remove system
and delete the initial ocaml installation.
Hi, I still get the first error (with tag 0.9.3):
I just did
opam init
opam switch --yes 4.00.1
opam switch remove system
opam upgrade --yes
and now:
opam switch
'opam switch' failed.
Fatal error: exception File "src/client/opamSwitchCommand.ml", line 30, characters 20-26: Assertion failed
If I put back an ocaml compiler in the $PATH
, then it works again:
$ opam switch
4.00.1 C 4.00.1 Official 4.00.1 release
-- -- 3.11.2 Official 3.11.2 release
-- -- 3.12.1 Official 3.12.1 release
.... etc. ....
-- -- 4.01.0dev+trunk latest trunk snapshot
-- -- system System compiler (4.00.1)
The Fatal error: exception File "src/client/opamSwitchCommand.ml", line 30, characters 20-26: Assertion failed
has unfortunately shipped with 0.9.3 but it is fixed in 0.9.4. So closing the issue (btw, 0.9.4 also containts some solver heuristics improvements).
With the cannonical opam-repo (at 0fbd60c762a81f4f0c53c6fe12f1c3f583fa3d8b), opam
0.9.2
, and after a fresh switch to4.00.1
:core 109.09.00 seems available
but
wants to install 109.08.00.
but forcing seems to work:
but then the solver wants to downgrade:
or the solver gets lost and timeouts (and this time it wants to downgrade to yet an older version of the
core
family):PS: This error message can be quite misleading: