rgrinberg / opium

Sinatra like web toolkit for OCaml
MIT License
755 stars 67 forks source link

build failed for 0.14.0 #48

Closed jcaose closed 8 years ago

jcaose commented 8 years ago
[vagrant@localhost ~]$ opam install opium
The following actions will be performed:
  ∗  install opium 0.14.0

=-=- Gathering sources =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
[opium] Archive in cache

=-=- Processing actions -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
[ERROR] The compilation of opium failed at "make".
Processing  1/1: [opium: ocamlfind remove]
#=== ERROR while installing opium.0.14.0 ======================================#
# opam-version 1.2.2
# os           linux
# command      make
# path         /home/vagrant/.opam/4.02.3/build/opium.0.14.0
# compiler     4.02.3
# exit-code    2
# env-file     /home/vagrant/.opam/4.02.3/build/opium.0.14.0/opium-23954-5f1023.env
# stdout-file  /home/vagrant/.opam/4.02.3/build/opium.0.14.0/opium-23954-5f1023.out
# stderr-file  /home/vagrant/.opam/4.02.3/build/opium.0.14.0/opium-23954-5f1023.err
### stdout ###
# [...]
# --- Checking for ocamlfind... (found /home/vagrant/.opam/4.02.3/bin/ocamlfind)
# --- Checking for ocamlc.opt... (found /home/vagrant/.opam/4.02.3/bin/ocamlc.opt)
# --- Checking for ocamlopt.opt... (found /home/vagrant/.opam/4.02.3/bin/ocamlopt.opt)
# --- Checking whether ocamlc understands the "z" warnings... (yes)
# *** omake: finished reading OMakefiles (0.03 sec)
# --- Checking if ocamldep understands -modules... (yes)
# - build _build/opium opium_static_serve.o
# + ocamlfind ocamlopt -syntax camlp4o -package core_kernel,cohttp.lwt,camlp4,fieldslib.syntax,sexplib.syntax,ezjsonm,cmdliner -g -bin-annot -thread -I . -I ../opium_rock -c opium_static_serve.ml
# *** omake: 46/108 targets are up to date
# *** omake: failed (1.91 sec, 6/6 scans, 10/15 rules, 59/155 digests)
### stderr ###
# [...]
# *** omake: warning: stdout is not a tty, disabling the progress bar
#    (use --progress to override).
# File "opium_static_serve.ml", line 24, characters 20-37:
# Error: Unbound module Magic_mime
# *** omake: targets were not rebuilt because of errors:
#    _build/opium/opium_static_serve.cmx
#       depends on: _build/opium/opium_static_serve.ml
#    _build/opium/opium_static_serve.o
#       depends on: _build/opium/opium_static_serve.ml
# make: *** [build] Error 2

=-=- Error report -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
The following actions failed
  ∗  install opium 0.14.0
No changes have been performed
rgrinberg commented 8 years ago

Hi, are you able to reproduce this with opium from master? E.g.

$ opam pin add opium --dev-repo
jcaose commented 8 years ago

different problem now though I have cow installed.
btw, on centos6. probably should give up

vagrant@localhost ~]$ opam install   opium
[ERROR] Your configuration or environment specifies external solver cudf_remote_proxy, but it
        cannot be found. Fix your installation, your configuration or use
        '--use-internal-solver'.
[vagrant@localhost ~]$ mv cudf_remote_proxy  /usr/local/bin/
mv: cannot move `cudf_remote_proxy' to `/usr/local/bin/cudf_remote_proxy': Permission denied
[vagrant@localhost ~]$ sudo mv cudf_remote_proxy  /usr/local/bin/
[vagrant@localhost ~]$ opam install   opium

=-=- Synchronising pinned packages =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
[opium] https://github.com/rgrinberg/opium.git already up-to-date
The following actions will be performed:
  ∗  install opium 0.14.0*

=-=- Gathering sources =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
[opium] https://github.com/rgrinberg/opium.git already up-to-date

=-=- Processing actions -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
[ERROR] The compilation of opium failed at "make".
Processing  1/1: [opium: ocamlfind remove]
#=== ERROR while installing opium.0.14.0 ======================================#
# opam-version 1.2.2
# os           linux
# command      make
# path         /home/vagrant/.opam/4.02.3/build/opium.0.14.0
# compiler     4.02.3
# exit-code    2
# env-file     /home/vagrant/.opam/4.02.3/build/opium.0.14.0/opium-1115-c61e7b.env
# stdout-file  /home/vagrant/.opam/4.02.3/build/opium.0.14.0/opium-1115-c61e7b.out
# stderr-file  /home/vagrant/.opam/4.02.3/build/opium.0.14.0/opium-1115-c61e7b.err
### stdout ###
# [...]
# --- Checking for ocamlc.opt... (found /home/vagrant/.opam/4.02.3/bin/ocamlc.opt)
# --- Checking for ocamlopt.opt... (found /home/vagrant/.opam/4.02.3/bin/ocamlopt.opt)
# --- Checking for ocamldep.opt... (found /home/vagrant/.opam/4.02.3/bin/ocamldep.opt)
# --- Checking for ocamllex.opt... (found /home/vagrant/.opam/4.02.3/bin/ocamllex.opt)
# --- Checking whether ocamlc understands the "z" warnings... (yes)
# *** omake: finished reading OMakefiles (0.04 sec)
# - build . README.md
# + cppo -n -o README.md < README.cpp.md
# *** omake: 13/124 targets are up to date
# *** omake: failed (0.05 sec, 0/0 scans, 1/1 rules, 51/125 digests)
### stderr ###
# ocamlfind: Package `cow.syntax' not found
# [...]
#    *** omake error:
#       File OMakefile: line 120, characters 4-22
#       command not found in PATH: cppo
# *** omake: targets were not rebuilt because of errors:
#    README.md
#       depends on: examples/middleware_ua.ml
#       depends on: README.cpp.md
#       depends on: examples/hello_world.ml
# make: *** [build] Error 126

=-=- Error report -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
The following actions failed
  ∗  install opium 0.14.0
No changes have been performed
rgrinberg commented 8 years ago

Sorry for your frustration. I think your problem will be fixed once you install cppo. I will update the opam file in the repository as well.

rgrinberg commented 8 years ago

cppo has been removed (it was used for a trivial preprocessing job anyway) and both master and 0.15.0 build.