Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 17 Nov 2021 10:15:31 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 259888] devel/ocaml-opam ; opam install error
Message-ID:  <bug-259888-7788-B7xozySu3d@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-259888-7788@https.bugs.freebsd.org/bugzilla/>
References:  <bug-259888-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D259888

--- Comment #1 from Hannes Mehnert <hannes@mehnert.org> ---
Dear Alain,

first of all: this is not an issue with devel/ocaml-opam - which compiles f=
ine,
but the output (opam - the OCaml package manager) fails to install some
packages due to the OCaml port (lang/ocaml) being very old (see
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D250408 for an attempt to
update it).

This is a known issue in OCaml 4.08 (e.g.
https://github.com/ocaml/ocaml/issues/9540). Since `opam` installed
successfully, you can create a "switch" with a more up-to-date OCaml compil=
er:
$ opam switch create 4.13.1
[... bootstraps and compiles an OCaml compiler, takes some time (10 minutes)
...]
$ eval $(opam env)
[ now your current shell has some environment variables that will use that
switch - run the eval $(opem env) in each shell or via ~/.profile to get th=
is
newer OCaml compiler ]
$ opam install async yojson core_extended core_bench cohttp-async
async_graphics cryptokit menhir base core
[ should work now ]

The root cause is: lang/ocaml is very old and should be updated. In the
meantime, opam offers you to install another (newer) OCaml compiler locally.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-259888-7788-B7xozySu3d>