opam-repository icon indicating copy to clipboard operation
opam-repository copied to clipboard

Building lablgtk fails with the error: ocamlfind: sourceView2Enums.ml: No such file or directory

Open tkurtbond opened this issue 1 year ago • 9 comments

On Fedora 38 x86_64 with opam's default switch having ocaml-4.14.1 I issue the following command:

opam install lablgtk

and get the following output:

The following actions will be performed:
  ∗ install lablgtk 2.18.13

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>⬇ retrieved lablgtk.2.18.13  (cached)
[ERROR] The installation of lablgtk failed at "make install".

#=== ERROR while installing lablgtk.2.18.13 ===================================#
# context     2.1.5 | linux/x86_64 | ocaml.4.14.1 | https://opam.ocaml.org#0a8b83a5
# path        ~/.opam/default/.opam-switch/build/lablgtk.2.18.13
# command     ~/.opam/opam-init/hooks/sandbox.sh install make install
# exit-code   2
# env-file    ~/.opam/log/lablgtk-227066-3df866.env
# output-file ~/.opam/log/lablgtk-227066-3df866.out
### output ###
# [...]
# Installed /home/tkb/.opam/default/lib/lablgtk2/gtkThread.cmi
# Installed /home/tkb/.opam/default/lib/lablgtk2/gtkThInit.cmo
# Installed /home/tkb/.opam/default/lib/lablgtk2/gtkThread.cmo
# Installed /home/tkb/.opam/default/lib/lablgtk2/propcc
# Installed /home/tkb/.opam/default/lib/lablgtk2/varcc
# Installed /home/tkb/.opam/default/lib/lablgtk2/gtkInit.cmo
# Installed /home/tkb/.opam/default/lib/lablgtk2/lablgtksourceview2.cma
# Installed /home/tkb/.opam/default/lib/lablgtk2/lablgtk.cma
# ocamlfind: sourceView2Enums.ml: No such file or directory
# make[1]: *** [Makefile:406: findlib-install] Error 2
# make[1]: Leaving directory '/home/tkb/.opam/default/.opam-switch/build/lablgtk.2.18.13/src'
# make: *** [Makefile:5: install] Error 2

Building lablgtk2 from the release tarball on the same machines completes without an error.

tkurtbond avatar Jul 12 '23 15:07 tkurtbond