janestreet / ppx_hash

A ppx rewriter that generates hash functions from type expressions and definitions
MIT License
15 stars 5 forks source link

Fails to install #1

Closed dxtr closed 6 years ago

dxtr commented 8 years ago

I am trying to install async and ppx_hash fails to install

$ opam install async
The following actions will be performed:
  ∗  install ppx_hash 114.10+84               [required by async]
  ∗  install async    114.08+89
===== ∗  2 =====
Do you want to continue ? [Y/n] y

=-=- Gathering sources =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Processing  2/2: [async: git] [ppx_hash: git]
[ppx_hash] git://github.com/janestreet/ppx_hash#3bcbce0873d0ecc66225f5d5ec9a51472c49b6a2 already up-to-date
[async] git://github.com/janestreet/async#e4a845d5cc12b3defab409b4cd4683a8571f45ed already up-to-date

=-=- Processing actions -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
[ERROR] The compilation of ppx_hash failed at "./configure --prefix /home/dxtr/.opam/4.03.0".

#=== ERROR while installing ppx_hash.114.10+84 ================================#
# opam-version 1.2.2
# os           linux
# command      ./configure --prefix /home/dxtr/.opam/4.03.0
# path         /home/dxtr/.opam/4.03.0/build/ppx_hash.114.10+84
# compiler     4.03.0
# exit-code    2
# env-file     /home/dxtr/.opam/4.03.0/build/ppx_hash.114.10+84/ppx_hash-29637-c61e7b.env
# stdout-file  /home/dxtr/.opam/4.03.0/build/ppx_hash.114.10+84/ppx_hash-29637-c61e7b.out
# stderr-file  /home/dxtr/.opam/4.03.0/build/ppx_hash.114.10+84/ppx_hash-29637-c61e7b.err
### stdout ###
# ocamlfind ocamlopt -o setup.exe -linkpkg -package ocamlbuild,oasis.dynrun setup.ml || \
#   ocamlfind ocamlc -o setup.exe -linkpkg -package ocamlbuild,oasis.dynrun setup.ml || true
# for f in setup.*; do [ $f = setup.exe -o $f = setup.ml ] || rm -f $f; done
# ./setup.exe -configure --prefix /home/dxtr/.opam/4.03.0
### stderr ###
# W: No replace section found in file Makefile
# ocamlfind: Package `ppx_driver.inside-base' not found
# W: Field 'pkg_ppx_driver_inside_base' is not set: Command ''/home/dxtr/.opam/4.03.0/bin/ocamlfind' query -format %d ppx_driver.inside-base > '/tmp/dxtr/oasis
-6b8e95.txt'' terminated with error code 2
# E: Cannot find findlib package ppx_driver.inside-base
# E: Failure("1 configuration error")
# make: *** [Makefile:63: configure] Error 1

=-=- Error report -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
The following actions were aborted
  ∗  install async 114.08+89
The following actions failed
  ∗  install ppx_hash 114.10+84
No changes have been performed
dxtr commented 8 years ago

If I switch to ocaml 4.02.3 it starts working.

ghost commented 8 years ago

Yh, version constraints are not properly setup at the moment. You need to do opam upgrade first to be sure you get the 114.10+84 version of everything

hhugo commented 6 years ago

We now have version constraint on new releases. should not happen anymore