Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

failed to install utop.1.19.3: cppo_ocamlbuild not found #220

Closed
gitoleg opened this issue Nov 1, 2017 · 3 comments
Closed

failed to install utop.1.19.3: cppo_ocamlbuild not found #220

gitoleg opened this issue Nov 1, 2017 · 3 comments

Comments

@gitoleg
Copy link

gitoleg commented Nov 1, 2017

failed to install utop.1.19.3

#=== ERROR while installing utop.1.19.3 =======================================#
# opam-version 1.2.2
# os           linux
# command      make
# path         /home/oleg/.opam/fresh_4.03.0/build/utop.1.19.3
# compiler     4.03.0
# exit-code    2
# env-file     /home/oleg/.opam/fresh_4.03.0/build/utop.1.19.3/utop-22008-e4db2f.env
# stdout-file  /home/oleg/.opam/fresh_4.03.0/build/utop.1.19.3/utop-22008-e4db2f.out
# stderr-file  /home/oleg/.opam/fresh_4.03.0/build/utop.1.19.3/utop-22008-e4db2f.err
### stdout ###
# [...]
# pkg_lambda_term: ..................................... /home/oleg/.opam/fresh_4.03.0/lib/lambda-term
# ocamldoc: ............................................ /home/oleg/.opam/fresh_4.03.0/bin/ocamldoc
# gzip: ................................................ /bin/gzip
# 
# ./setup.exe -build 
# ocamlfind ocamlopt -package unix -package ocamlbuild -linkpkg -package cppo_ocamlbuild myocamlbuild.ml /home/oleg/.opam/fresh_4.03.0/lib/ocamlbuild/ocamlbuild.cmx -o myocamlbuild
# + ocamlfind ocamlopt -package unix -package ocamlbuild -linkpkg -package cppo_ocamlbuild myocamlbuild.ml /home/oleg/.opam/fresh_4.03.0/lib/ocamlbuild/ocamlbuild.cmx -o myocamlbuild
# ocamlfind: Package `cppo_ocamlbuild' not found

I think the reson is in last cppo.1.6.0, since with previous cppo.1.5.0 utop works fine.
ocaml/opam-repository#10047

As far as I understand (and maybe I'm wrong) all we need is either constraint cppo version in opam or add a dependency from cppo_ocamlbuild.

@rgrinberg
Copy link
Collaborator

Any reason why you can't just use the latest version of utop (which doesn't ocamlbuild at all)? You can also just fix the opam file in the opam-repository directly if you'd like.

@gitoleg
Copy link
Author

gitoleg commented Nov 1, 2017

we have to use this version because latest doesn't work for us, we have a runtime error like
Error: Reference to undefined global Longident'`.
(similar was discussed in #213 )
So will do PR to opam-repository )  

@gitoleg
Copy link
Author

gitoleg commented Nov 4, 2017

so PR to opam was merged:
ocaml/opam-repository#10582
Issue may be closed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants