Quick help needed here:

So I had the default opam switch using the systems installed ocaml version - 4.08 - on archlinux, and had a bunch of things installted like utop and merlin, etc. Since a few days ago the system was updated to 4.09, so I assume everything is kind broken in the switch because it was compiled for previous version.

opam switch reinstall or opam upgrade don't fix anything.

Any ideas for the newbie here?


Really weird that I can't find any info about this. I'd assume this would be kind the default basic way to use it for starters. Hitting such a thing this early is sad.

Trying upgrade --fixup it says to use "'opam list --base' and 'opam switch set-base'".

Let's try the later one, not sure what this does. But appears to want to recompile and move to the 4.09. So strange. No idea why it's removing merlin.

A warning in unistall script of ocamlfind...?
An error compiling utop...

I guess at least the outputs are really beautiful and detailed, which is nice.

"opam switch" stops saying that is using the system thing, just blank now...

Now says to to a switch import from old state file, or opam reinstall --restore...

Let's see what the later command does.

Oh says it wants to restore utop, but that is not compiling at all. Lol. This is not fun.

Show thread

Seems the errors is about a problem in the packaging of package.


Creating a new switch "opam switch create ocaml-base-compiler" and using a combination of switch export, editing the export file to change the root and the installed ocaml there, importing to the new switch, seems to kinda be working.

Still this all sounds too troublesome and should be more straightforward.

Show thread
Sign in to participate in the conversation

Server run by the main developers of the project 🐘 It is not focused on any particular niche interest - everyone is welcome as long as you follow our code of conduct!