You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to install cppo_ocamlbuild for OCaml 4.02.3 via OPAM. With dune 1.0.0 it worked but now (after upgrade to dune 1.2.0) I get an error:
#=== ERROR while installing cppo_ocamlbuild.1.6.0 =============================#
# opam-version 1.2.2
# os linux
# command jbuilder build -p cppo_ocamlbuild -j 4
# path /home/dbely/.opam/4.02.3+local+gcc5+x64+fpic/build/cppo_ocamlbuild.1.6.0
# compiler 4.02.3+local+linux+fpic
# exit-code 1
# env-file /home/dbely/.opam/4.02.3+local+gcc5+x64+fpic/build/cppo_ocamlbuild.1.6.0/cppo_ocamlbuild-28557-320155.env
# stdout-file /home/dbely/.opam/4.02.3+local+gcc5+x64+fpic/build/cppo_ocamlbuild.1.6.0/cppo_ocamlbuild-28557-320155.out
# stderr-file /home/dbely/.opam/4.02.3+local+gcc5+x64+fpic/build/cppo_ocamlbuild.1.6.0/cppo_ocamlbuild-28557-320155.err
### stderr ###
# [...]
# 5 | (ocamlyacc (cppo_parser))
# ^^^^^^^^^^^^^^^^^^^^^^^^^
# Warning: File cppo_parser.mli is both generated by a rule and present in the source tree.
# As a result, the rule is currently ignored, however this will become an error in the future.
# To keep the current behavior and get rid of this warning, add a field (fallback) to the rule.
# File "ocamlbuild_plugin/jbuild", line 8, characters 14-24:
# 8 | (libraries (ocamlbuild))))
# ^^^^^^^^^^
# Error: Library "ocamlbuild" not found.
# Hint: try: dune external-lib-deps --missing -p cppo_ocamlbuild @install
The text was updated successfully, but these errors were encountered:
OK, I've finally found the problem. cppo_ocamlbuild actually requires ocamlfind to find ocamlbuild library, which is not specified in its dependencies. So then I deploy OPAM and packages in a fresh environment, ocamlfind may not be installed before cppo_ocamlbuild build.
I'm no ocamlbuild user myself. I see there's an ocamlbuild-pkg which seems to have the correct dependencies. So, perhaps the fix is to replace the ocamlbuild dependency by ocamlbuild-pkg in the opam package for cppo_ocamlbuild. Please confirm and/or submit a pull request to opam-repository.
I'm trying to install
cppo_ocamlbuild
for OCaml 4.02.3 via OPAM. Withdune 1.0.0
it worked but now (after upgrade todune 1.2.0
) I get an error:The text was updated successfully, but these errors were encountered: