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

Build error on macos #547

Open
dboris opened this issue May 6, 2019 · 1 comment
Open

Build error on macos #547

dboris opened this issue May 6, 2019 · 1 comment

Comments

@dboris
Copy link

dboris commented May 6, 2019

After installing ppx_deriving_yojson, yojson was downgraded from 1.7.0 to 1.5.0, and ocsigen-start fails to build with the following error:

#=== ERROR while compiling ocsigen-start.1.7.0 ================================#
# context     2.0.4 | macos/x86_64 | ocaml-base-compiler.4.07.1 | https://opam.ocaml.org#393c2feb
# path        ~/.opam/ocsigen.407/.opam-switch/build/ocsigen-start.1.7.0
# command     ~/.opam/opam-init/hooks/sandbox.sh build make -j4
# exit-code   2
# env-file    ~/.opam/log/ocsigen-start-14204-1872ec.env
# output-file ~/.opam/log/ocsigen-start-14204-1872ec.out
### output ###
# [...]
# eliomc -ppx -c -package lwt_ppx -package js_of_ocaml-ppx.deriving -package calendar -package safepass -package ocsigen-toolkit.server -package yojson -package re.str -I _server/src/ -g src/os_lib.eliomi
# eliomc -ppx -c -package lwt_ppx -package js_of_ocaml-ppx.deriving -package calendar -package safepass -package ocsigen-toolkit.server -package yojson -package re.str -I _server/src/ -g src/os_connect_phone.eliomi
# eliomc -ppx -c -package lwt_ppx -package js_of_ocaml-ppx.deriving -package calendar -package safepass -package ocsigen-toolkit.server -package yojson -package re.str -I _server/src/ -g src/os_date.eliomi
# eliomc -ppx -c -package lwt_ppx -package js_of_ocaml-ppx.deriving -package calendar -package safepass -package ocsigen-toolkit.server -package yojson -package re.str -I _server/src/ -g src/os_email.eliomi
# eliomc -ppx -c -package lwt_ppx -package js_of_ocaml-ppx.deriving -package calendar -package safepass -package ocsigen-toolkit.server -package yojson -package re.str -I _server/src/ -g src/os_fcm_notif.eliomi
# eliomc -ppx -c -package lwt_ppx -package js_of_ocaml-ppx.deriving -package calendar -package safepass -package ocsigen-toolkit.server -package yojson -package re.str -I _server/src/ -g src/os_services.eliomi
# eliomc -ppx -c -package lwt_ppx -package js_of_ocaml-ppx.deriving -package calendar -package safepass -package ocsigen-toolkit.server -package yojson -package re.str -I _server/src/ -g src/os_msg.eliomi
# eliomc -ppx -c -package lwt_ppx -package js_of_ocaml-ppx.deriving -package calendar -package safepass -package ocsigen-toolkit.server -package yojson -package re.str -I _server/src/ -g src/os_handlers.eliomi
# File "src/os_fcm_notif.eliomi", line 99, characters 23-36:
# Error: Unbound type constructor Yojson.Safe.t
# make: *** [_server/src/os_fcm_notif.cmi] Error 2
# make: *** Waiting for unfinished jobs....
@dboris
Copy link
Author

dboris commented Jun 13, 2019

Related to ocaml-ppx/ppx_deriving_yojson#94
Pinning ppx_deriving_yojson as suggested there resolves the issue.

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

1 participant