You are not logged in.

#1 2021-10-30 18:15:25

Morta
Member
Registered: 2019-07-07
Posts: 660

Upgrade from ocaml-cryptokit 1.161-1 to 1.161-2

camlc src/config/.flags.eobjs/byte/dune__exe__Flags.{cmi,cmo,cmt} (exit 2)
(cd _build/default && /usr/bin/ocamlc.opt -w -40 -g -bin-annot -I src/config/.flags.eobjs/byte -I /home/morta/.opam/default/lib/csexp -I /home/morta/.opam/default/lib/dune-configurator -I /home/morta/.opam/default/lib/result -no-alias-deps -open Dune__exe -o src/config/.flags.eobjs/byte/dune__exe__Flags.cmo -c -impl src/config/flags.ml)
File "src/config/flags.ml", line 1:
Error: /home/morta/.opam/default/lib/dune-configurator/configurator.cmi
       is not a compiled interface for this version of OCaml.
It seems to be for an older version of OCaml.

 -> error making: ocaml-cryptokit

How can I upgrade ocaml to a newer version that ocaml-cryptokit runs?

Last edited by Morta (2021-10-30 18:15:49)

Offline

#2 2021-10-30 19:30:03

loqs
Member
Registered: 2014-03-06
Posts: 18,822

Re: Upgrade from ocaml-cryptokit 1.161-1 to 1.161-2

What version of ocaml is installed on the system?  How have you tried to update it?  Have you tried building the package as a different user to avoid locally install files?

Offline

#3 2021-10-31 12:58:00

Morta
Member
Registered: 2019-07-07
Posts: 660

Re: Upgrade from ocaml-cryptokit 1.161-1 to 1.161-2

[morta@lapt0p ~]$ ocaml
        OCaml version 4.12.0

No have I to build own PKGBUILD with the newest ocaml version? Why they doesn't upgrade it?
I have only tried to install over yay with a superuser yay -S ocaml-cryptokit

Offline

#4 2021-10-31 13:18:36

Morta
Member
Registered: 2019-07-07
Posts: 660

Re: Upgrade from ocaml-cryptokit 1.161-1 to 1.161-2

OK,

https://archlinux.org/packages/extra/x86_64/ocaml/

It's a package of pacman and is flagged out of date. So no PKGBUILD exist. I have to wait till the pacman package will be upgraded

Offline

#5 2021-10-31 14:00:29

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 14,845

Re: Upgrade from ocaml-cryptokit 1.161-1 to 1.161-2

archlinux repo packages use PKGBUILD files just like AUR packages, for ocaml see https://github.com/archlinux/svntogit-p … caml/trunk .

Keep in mind though that ocaml is tricky to update and you'll have to rebuild several other packages including llvm .


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#6 2021-10-31 16:26:12

Morta
Member
Registered: 2019-07-07
Posts: 660

Re: Upgrade from ocaml-cryptokit 1.161-1 to 1.161-2

How do you mean rebuild?  Or what I have to rebuild exactly? Where is a list of these packages? Can i simply reinstall it?

Offline

#7 2021-11-01 10:57:04

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 14,845

Re: Upgrade from ocaml-cryptokit 1.161-1 to 1.161-2

Everything on archlinux that uses ocaml is build against a specific version of ocaml . If the installed ocaml version changes, all those packages need to be rebuilt to work with the new ocaml version .

If you look in the PKGBUILD I linked you see that its pkgname array holds 2 names : ocaml and ocaml-compiler-libs .
ocaml-compiler-libs depends on ocaml .


run

$ pacman -Qi ocaml

Every package that is listed under Required By or Optional For uses ocaml for something and will stop working correctly when th einstalled ocaml version is not what it was when they were build .

To ensure those packages work correctly they need to be rebuilt against a new ocaml version .


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

Board footer

Powered by FluxBB