For those encountering the following error while building gapi-ocaml, you can manually edit the version in the PKGBUILD of ocaml-cryptokitin AUR to 1.20 or below.
Starting build()...
(cd _build/default && /usr/bin/ocamlc.opt -w -40 -w -23-27-32-33 -g -bin-annot -bin-annot-occurrences -I src/g
api/.gapi_ocaml.objs/byte -I /usr/lib/ocaml/camlp-streams -I /usr/lib/ocaml/cryptokit -I /usr/lib/ocaml/curl -
I /usr/lib/ocaml/str -I /usr/lib/ocaml/threads -I /usr/lib/ocaml/unix -I /usr/lib/ocaml/yojson -I /usr/lib/oca
ml/zarith -I src/netstring/.netstring_local.objs/byte -I src/netsys/.netsys_local.objs/byte -no-alias-deps -o
src/gapi/.gapi_ocaml.objs/byte/gapiJwtServiceAccount.cmi -c -intf src/gapi/gapiJwtServiceAccount.mli)
File “src/gapi/gapiJwtServiceAccount.mli”, line 23, characters 34-51:
23 | val parse_private_key : string -> Cryptokit.RSA.key
^^^^^^^^^^^^^^^^^
Error: Unbound type constructor Cryptokit.RSA.key
==> Error: build() encountered failure.
Aborting...
This is because Cryptokit 1.21 introduced an RSA change that broke the RSA functionality required by gapi-ocaml. This PR migrates Cryptokit's big-number arithmetic core from the legacy Numerix library to Zarith. This means: if the build environment fails to correctly detect Zarith, Cryptokit may either omit compiling the RSA module entirely (since RSA relies on big-number arithmetic) or produce a broken interface.
Pinned Comments
pricechrispy commented on 2017-04-25 17:39 (UTC) (edited on 2022-10-16 06:40 (UTC) by pricechrispy)
Before you flag this package out-of-date:
According to the official project page: https://astrada.github.io/google-drive-ocamlfuse/
Find latest release versions here: https://launchpad.net/~alessandro-strada/+archive/ubuntu/ppa
The latest releases are not all tagged versions on GitHub.
For the latest development versions on git, try: https://aur.archlinux.org/packages/google-drive-ocamlfuse-git
OLD official project page: http://gdfuse.forge.ocamlcore.org/
OLD release versions here: https://forge.ocamlcore.org/frs/?group_id=305