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

Compilation error on Linux #175

Open
dboris opened this issue Jul 7, 2019 · 2 comments
Open

Compilation error on Linux #175

dboris opened this issue Jul 7, 2019 · 2 comments

Comments

@dboris
Copy link

dboris commented Jul 7, 2019

Trying to compile on Debian 10:

#=== ERROR while compiling ocsigenserver.2.11.0 ===============================#
# context     2.0.3 | linux/x86_64 | ocaml-base-compiler.4.07.1 | https://opam.ocaml.org#01357e69
# path        ~/.opam/4.07.1/.opam-switch/build/ocsigenserver.2.11.0
# command     ~/.opam/opam-init/hooks/sandbox.sh build make
# exit-code   2
# env-file    ~/.opam/log/ocsigenserver-16574-7fbc68.env
# output-file ~/.opam/log/ocsigenserver-16574-7fbc68.out
### output ###
# [...]
# Use String.lowercase_ascii instead.
# File "ocsigen_server.ml", line 759, characters 15-28:
# Warning 3: deprecated: Ocsigen_lib.String.create
# Use Bytes.create instead.
# File "ocsigen_server.ml", line 1025, characters 4-25:
# Error: The constructor Ssl.Private_key_error expects 1 argument(s),
#        but is applied here to 0 argument(s)
# make[2]: *** [Makefile:73: ocsigen_server.cmo] Error 2
# make[2]: Leaving directory '/home/boris/.opam/4.07.1/.opam-switch/build/ocsigenserver.2.11.0/src/server'
# make[1]: *** [Makefile:6: all] Error 2
# make[1]: Leaving directory '/home/boris/.opam/4.07.1/.opam-switch/build/ocsigenserver.2.11.0/src'
# make: *** [Makefile:8: all] Error 2
@clembu
Copy link

clembu commented Jul 8, 2019

I believe this is fixed for 2.11.1. Try pinning to the repo?

opam pin add ocsigenserver [email protected]:ocsigen/ocsigenserver.git

If you can't there should a release soon.

@G-bn
Copy link

G-bn commented Oct 23, 2019

Do you have a fix? Compilation and pin repo are not working for Debian 10.
Thanks

#=== ERROR while compiling ocsigenserver.2.9 ==================================#
# context     2.0.3 | linux/x86_64 | ocaml-system.4.05.0 | https://opam.ocaml.org#4bbbd7fe
# path        ~/.opam/default/.opam-switch/build/ocsigenserver.2.9
# command     ~/.opam/opam-init/hooks/sandbox.sh build make
# exit-code   2
# env-file    ~/.opam/log/ocsigenserver-21446-1cc355.env
# output-file ~/.opam/log/ocsigenserver-21446-1cc355.out
### output ###
# [...]
# ocamlfind ocamlc -g -bin-annot  -thread -I ../../baselib -I ../../http -I ../../server -package tyxml.parser -package pgocaml -package lwt -c ocsipersist.ml
# File "ocsipersist.ml", line 56, characters 34-41:
# Error: The function applied to this argument has type
#          ?check:('a -> (bool -> unit) -> unit) -> 'a Lwt_pool.t
# This argument cannot be applied with label ~dispose
# make[3]: *** [Makefile:46: ocsipersist.cmo] Error 2
# make[3] : on quitte le répertoire « /home/guillaume/.opam/default/.opam-switch/build/ocsigenserver.2.9/src/extensions/ocsipersist-pgsql »
# make[2]: *** [Makefile:52: byte] Error 2
# make[2] : on quitte le répertoire « /home/guillaume/.opam/default/.opam-switch/build/ocsigenserver.2.9/src/extensions »
# make[1]: *** [Makefile:7: all] Error 2
# make[1] : on quitte le répertoire « /home/guillaume/.opam/default/.opam-switch/build/ocsigenserver.2.9/src »
# make: *** [Makefile:8: all] Error 2



<><> Error report <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
~/$ opam pin add ocsigenserver [email protected]:ocsigen/ocsigenserver.git

[NOTE] Package ocsigenserver is currently pinned to
       git+https://github.com/ocsigen/ocsigenserver.git (version 2.14.0).
[ERROR] Could not synchronize /home/guillaume/.opam/default/.opam-switch/sources/ocsigenserver
        from "git+ssh://[email protected]/ocsigen/ocsigenserver.git":
        "/usr/bin/git fetch -q" exited with code 128
[ERROR] Error getting source from git+ssh://[email protected]/ocsigen/ocsigenserver.git:
          - git+ssh://[email protected]/ocsigen/ocsigenserver.git

and

~/$ opam install ocsigen-start
Sorry, no solution found: there seems to be a problem with your request.

No solution found, exiting

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

3 participants