Thank you for your support Vincent ! I already tried this week, I just did it again to be sure. I just ran
opam switch create ocsi_start 4.07.0
eval $(opam env)
opam install ocsigen-start
I then I got the error message of failure to build eliom :
slight_smile:[ERROR] The compilation of eliom failed at
"~/.opam/opam-init/hooks/sandbox.sh build make".
#=== ERROR while compiling eliom.6.7.0 ========================================#
# context 2.0.4 | linux/x86_64 | ocaml-base-compiler.4.07.0 | https://opam.ocaml.org/#c2d5ce87
# path ~/.opam/ocsi_start/.opam-switch/build/eliom.6.7.0
# command ~/.opam/opam-init/hooks/sandbox.sh build make
# exit-code 2
# env-file ~/.opam/log/eliom-28773-cc32ab.env
# output-file ~/.opam/log/eliom-28773-cc32ab.out
### output ###
# [...]
# ocamlfind ocamldep -package js_of_ocaml-ppx.deriving -package react,js_of_ocaml,reactiveData -package lwt_react,tyxml.functor,js_of_ocaml.tyxml,js_of_ocaml-lwt,js_of_ocaml-lwt.logger -package deriving.runtime,js_of_ocaml.deriving -package ocsigenserver.cookies,ocsigenserver.polytables,ocsigenserver.baselib.base -package js_of_ocaml.ppx -package js_of_ocaml-ppx.deriving,lwt_ppx,js_of_ocaml-lwt[...]
# ocamlfind ocamldep -package js_of_ocaml-ppx.deriving -package react,js_of_ocaml,reactiveData -package lwt_react,tyxml.functor,js_of_ocaml.tyxml,js_of_ocaml-lwt,js_of_ocaml-lwt.logger -package deriving.runtime,js_of_ocaml.deriving -package ocsigenserver.cookies,ocsigenserver.polytables,ocsigenserver.baselib.base -modules src/lib/client/eliom_config.mli > src/lib/client/eliom_config.mli.depends
# ocamlfind ocamldep -package js_of_ocaml-ppx.deriving -package react,js_of_ocaml,reactiveData -package lwt_react,tyxml.functor,js_of_ocaml.tyxml,js_of_ocaml-lwt,js_of_ocaml-lwt.logger -package deriving.runtime,js_of_ocaml.deriving -package ocsigenserver.cookies,ocsigenserver.polytables,ocsigenserver.baselib.base -modules src/lib/client/eliom_content_core.mli > src/lib/client/eliom_content_core[...]
# ocamlfind ocamldep -package js_of_ocaml-ppx.deriving -package react,js_of_ocaml,reactiveData -package lwt_react,tyxml.functor,js_of_ocaml.tyxml,js_of_ocaml-lwt,js_of_ocaml-lwt.logger -package deriving.runtime,js_of_ocaml.deriving -package ocsigenserver.cookies,ocsigenserver.polytables,ocsigenserver.baselib.base -package js_of_ocaml.ppx -package js_of_ocaml-ppx.deriving,lwt_ppx,js_of_ocaml-lwt[...]
# ocamlfind ocamldep -package js_of_ocaml-ppx.deriving -package react,js_of_ocaml,reactiveData -package lwt_react,tyxml.functor,js_of_ocaml.tyxml,js_of_ocaml-lwt,js_of_ocaml-lwt.logger -package deriving.runtime,js_of_ocaml.deriving -package ocsigenserver.cookies,ocsigenserver.polytables,ocsigenserver.baselib.base -package js_of_ocaml.ppx -package js_of_ocaml-ppx.deriving,lwt_ppx,js_of_ocaml-lwt[...]
# ocamlfind ocamldep -package js_of_ocaml-ppx.deriving -package react,js_of_ocaml,reactiveData -package lwt_react,tyxml.functor,js_of_ocaml.tyxml,js_of_ocaml-lwt,js_of_ocaml-lwt.logger -package deriving.runtime,js_of_ocaml.deriving -package ocsigenserver.cookies,ocsigenserver.polytables,ocsigenserver.baselib.base -package js_of_ocaml.ppx -package js_of_ocaml-ppx.deriving,lwt_ppx,js_of_ocaml-lwt[...]
# + ocamlfind ocamldep -package js_of_ocaml-ppx.deriving -package react,js_of_ocaml,reactiveData -package lwt_react,tyxml.functor,js_of_ocaml.tyxml,js_of_ocaml-lwt,js_of_ocaml-lwt.logger -package deriving.runtime,js_of_ocaml.deriving -package ocsigenserver.cookies,ocsigenserver.polytables,ocsigenserver.baselib.base -package js_of_ocaml.ppx -package js_of_ocaml-ppx.deriving,lwt_ppx,js_of_ocaml-l[...]
# File "src/lib/eliom_cookies_base.shared.ml", line 21, characters 28-39:
# Error: Deriver json does not support inline notation
# Command exited with code 2.
# Makefile:7: recipe for target 'all' failed
# make: *** [all] Error 10
<><> Error report <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
ââ The following actions failed
â λ build eliom 6.7.0
(I only give the part that went wrong, all other packages were properly installed)
I already was able to install ocsigen-start from a 4.07.1 switch (involving some opam update and upgrade at some points), but links of built app were dead and compilation was broken after a simple opam update && opam upgrade
, which I find a bit scary to choose to launch a project with it. I suspect this process of installing ocsigen-start is very sensitive to opam version (and of course the compiler version). Also maybe different os (I run an Ubuntu 18, and I also had such troubles on Debian stable) or local environment set opam installation priorities differently so that we cannot consistently just opam switch some compiler version and opam install ocsigen-start.
Could you share an opam export file of the switch you just created so that I can check if a simple switch import make it work ?
Best regards !