mirage / ocaml-cohttp

An OCaml library for HTTP clients and servers using Lwt or Async
Other
713 stars 174 forks source link

cohttp-lwt-unix: Error: inconsistent assumptions over implementation Resolver_lwt_unix #614

Closed XVilka closed 6 years ago

XVilka commented 6 years ago
ERROR] The compilation of cohttp-lwt-unix failed at "/home/akochkov/.opam/default/bin/jbuilder build -p cohttp-lwt-unix -j 7".

#=== ERROR while compiling cohttp-lwt-unix.1.0.2 ==============================#
# context      2.0.0~rc | linux/x86_64 | ocaml-system.4.05.0 | file:///home/akochkov/data/tmp/opam-repository
# path         ~/.opam/default/.opam-switch/build/cohttp-lwt-unix.1.0.2
# command      ~/.opam/default/bin/jbuilder build -p cohttp-lwt-unix -j 7
# exit-code    1
# env-file     ~/.opam/log/cohttp-lwt-unix-551185-bcdb80.env
# output-file  ~/.opam/log/cohttp-lwt-unix-551185-bcdb80.out
### output ###
# Error: Files cohttp-lwt-unix/src/cohttp_lwt_unix.cmxa
# [...]
# (cd _build/default && /usr/bin/ocamlopt.opt -w -40 -g -o cohttp-lwt-unix/bin/cohttp_proxy_lwt.exe -I /home/akochkov/.opam/default/lib/base -I /home/akochkov/.opam/default/lib/base/caml -I /home/akochkov/.opam/default/lib/base/shadow_stdlib -I /home/akochkov/.opam/default/lib/base64 -I /home/akochkov/.opam/default/lib/bytes -I /home/akochkov/.opam/default/lib/cmdliner -I /home/akochkov/.opam/d[...]
# File "_none_", line 1:
# Error: Files cohttp-lwt-unix/src/cohttp_lwt_unix.cmxa
#        and /home/akochkov/.opam/default/lib/conduit-lwt-unix/conduit_lwt_unix.cmxa
#        make inconsistent assumptions over implementation Resolver_lwt_unix
#     ocamlopt cohttp-lwt-unix/bin/cohttp_server_lwt.exe (exit 2)
# (cd _build/default && /usr/bin/ocamlopt.opt -w -40 -g -o cohttp-lwt-unix/bin/cohttp_server_lwt.exe -I /home/akochkov/.opam/default/lib/base -I /home/akochkov/.opam/default/lib/base/caml -I /home/akochkov/.opam/default/lib/base/shadow_stdlib -I /home/akochkov/.opam/default/lib/base64 -I /home/akochkov/.opam/default/lib/bytes -I /home/akochkov/.opam/default/lib/cmdliner -I /home/akochkov/.opam/[...]
# File "_none_", line 1:
# Error: Files cohttp-lwt-unix/src/cohttp_lwt_unix.cmxa
#        and /home/akochkov/.opam/default/lib/conduit-lwt-unix/conduit_lwt_unix.cmxa
#        make inconsistent assumptions over implementation Resolver_lwt_unix

=-=- Error report -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
┌─ The following actions were aborted
│ ∗  install github-unix  3.1.0
│ ∗  install opam-publish 2.0.0~beta
│ ∗  install opium        0.16.0
└─ 
┌─ The following actions failed
│ λ  build cohttp-lwt-unix 1.0.2
└─ 
┌─ The following changes have been performed
│ ⊘  remove    cohttp-lwt-unix  1.0.2
│ ⊘  remove    opium            0.16.0
│ ↘  downgrade bos              0.2.0 to 0.1.6
│ ↘  downgrade cohttp           1.1.0 to 1.0.0
│ ↘  downgrade conduit          1.1.0 to 0.15.4
│ ↘  downgrade doc-ock          1.2.1 to 1.1.1
│ ↘  downgrade doc-ock-html     1.2.1 to 1.1.0
│ ↘  downgrade doc-ock-xml      1.2.1 to 1.1.0
│ ↘  downgrade odoc             1.2.0 to 1.0.0
│ ↻  recompile cohttp-lwt       1.0.2
│ ↻  recompile conduit-lwt      1.1.0
│ ↻  recompile conduit-lwt-unix 1.1.0
│ ↻  recompile opium_kernel     0.16.0
│ ↻  recompile topkg-care       0.9.1
│ ↻  recompile webbrowser       0.6.1
│ ↻  recompile websocket        2.10
│ ∗  install   atdgen           1.12.0
│ ∗  install   github           3.1.0
│ ∗  install   ppx_cstruct      3.2.1
└─ 
XVilka commented 6 years ago

Same with slightly older version:

∗  installed cohttp-lwt.0.99.0
[ERROR] The compilation of cohttp-lwt-unix failed at "/home/akochkov/.opam/default/bin/jbuilder build -p cohttp-lwt-unix -j 7".
∗  installed opium_kernel.0.16.0
∗  installed github.3.1.0

#=== ERROR while compiling cohttp-lwt-unix.0.99.0 =============================#
# context      2.0.0~rc | linux/x86_64 | ocaml-system.4.05.0 | file:///home/akochkov/data/tmp/opam-repository
# path         ~/.opam/default/.opam-switch/build/cohttp-lwt-unix.0.99.0
# command      ~/.opam/default/bin/jbuilder build -p cohttp-lwt-unix -j 7
# exit-code    1
# env-file     ~/.opam/log/cohttp-lwt-unix-555563-7dcbbc.env
# output-file  ~/.opam/log/cohttp-lwt-unix-555563-7dcbbc.out
### output ###
# Error: Files cohttp-lwt-unix/src/cohttp_lwt_unix.cmxa
# [...]
# (cd _build/default && /usr/bin/ocamlopt.opt -w -40 -g -o cohttp-lwt-unix/bin/cohttp_proxy_lwt.exe -I /home/akochkov/.opam/default/lib/base -I /home/akochkov/.opam/default/lib/base/caml -I /home/akochkov/.opam/default/lib/base/shadow_stdlib -I /home/akochkov/.opam/default/lib/base64 -I /home/akochkov/.opam/default/lib/bytes -I /home/akochkov/.opam/default/lib/cmdliner -I /home/akochkov/.opam/d[...]
# File "_none_", line 1:
# Error: Files cohttp-lwt-unix/src/cohttp_lwt_unix.cmxa
#        and /home/akochkov/.opam/default/lib/conduit-lwt-unix/conduit_lwt_unix.cmxa
#        make inconsistent assumptions over implementation Resolver_lwt_unix
#     ocamlopt cohttp-lwt-unix/bin/cohttp_server_lwt.exe (exit 2)
# (cd _build/default && /usr/bin/ocamlopt.opt -w -40 -g -o cohttp-lwt-unix/bin/cohttp_server_lwt.exe -I /home/akochkov/.opam/default/lib/base -I /home/akochkov/.opam/default/lib/base/caml -I /home/akochkov/.opam/default/lib/base/shadow_stdlib -I /home/akochkov/.opam/default/lib/base64 -I /home/akochkov/.opam/default/lib/bytes -I /home/akochkov/.opam/default/lib/cmdliner -I /home/akochkov/.opam/[...]
# File "_none_", line 1:
# Error: Files cohttp-lwt-unix/src/cohttp_lwt_unix.cmxa
#        and /home/akochkov/.opam/default/lib/conduit-lwt-unix/conduit_lwt_unix.cmxa
#        make inconsistent assumptions over implementation Resolver_lwt_unix

=-=- Error report -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
┌─ The following actions were aborted
│ ∗  install opium 0.16.0
└─ 
┌─ The following actions failed
│ λ  build cohttp-lwt-unix 0.99.0
└─ 
┌─ The following changes have been performed
│ ↘  downgrade cohttp       1.0.0 to 0.99.0
│ ↘  downgrade cohttp-lwt   1.0.2 to 0.99.0
│ ↻  recompile github       3.1.0
│ ↻  recompile opium_kernel 0.16.0
│ ↻  recompile websocket    2.10
└─ 
rgrinberg commented 6 years ago

You should probably re-compile conduit, conduit-lwt, and conduit-lwt-unix and then reinstall cohttp.

mseri commented 6 years ago

@XVilka has this been resolved? Can I close it?

rgrinberg commented 6 years ago

Yup