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

'js_of_ocaml.deriving.syntax' not found #110

Closed
constfun opened this issue Mar 19, 2014 · 6 comments
Closed

'js_of_ocaml.deriving.syntax' not found #110

constfun opened this issue Mar 19, 2014 · 6 comments

Comments

@constfun
Copy link

I could be doing this wrong, but I'm trying to compile a simple package and getting the error.

devbox% ocamlbuild -use-ocamlfind -syntax camlp4o -package js_of_ocaml -package js_of_ocaml.syntax -package deriving -package deriving.syntax -package js_of_ocaml.deriving -package js_of_ocaml.deriving.syntax spiral.native
+ ocamlfind ocamldep -syntax camlp4o -package js_of_ocaml.deriving.syntax -package js_of_ocaml.deriving -package deriving.syntax -package deriving -package js_of_ocaml.syntax -package js_of_ocaml -modules spiral.ml > spiral.ml.depends
ocamlfind: Package `js_of_ocaml.deriving.syntax' not found
Command exited with code 2.
Compilation unsuccessful after building 1 target (0 cached) in 00:00:00.

js_of_ocaml was installed using opam:

devbox% opam install js_of_ocaml
[NOTE] Package js_of_ocaml is already installed (current version is 1.4.0).
@hhugo
Copy link
Member

hhugo commented Mar 19, 2014

js_of_ocaml require deriving package to provide js_of_ocaml.deriving.syntax.

opam install deriving should be enough

@constfun
Copy link
Author

I forgot to mention this, but it is already installed:

devair% opam install deriving                          
[NOTE] Package deriving is already installed (current version is 0.5).

@hhugo
Copy link
Member

hhugo commented Mar 19, 2014

have you tried to reinstall js_of_ocaml ?
what's the output of ocamlfind list | grep js_of_ocaml ?

@hhugo
Copy link
Member

hhugo commented Mar 20, 2014

Any news ?

Note that it doesn't make any sense to compile the native version of your program with js_of_ocaml package.

  • If it aims to be compiled to javascript afterward, you should build the bytecode version
ocamlbuild -use-ocamlfind -syntax camlp4o -package js_of_ocaml,js_of_ocaml.syntax,deriving,deriving.syntax,js_of_ocaml.deriving,js_of_ocaml.deriving.syntax spiral.byte
  • other you should not use js_of_ocaml package
ocamlbuild -use-ocamlfind -syntax camlp4o -package js_of_ocaml.syntax,deriving,deriving.syntax,js_of_ocaml.deriving,js_of_ocaml.deriving.syntax spiral.native

@msimon
Copy link
Contributor

msimon commented Apr 6, 2014

js_of_ocaml 1.4 need deriving-ocsigen. The dev version remove this dependence.
If I were you I will pin js_of_ocaml 1.4 and modify the makefile to check for deriving and not deriving-ocsigen (they are exactly the same)

@hhugo
Copy link
Member

hhugo commented Apr 11, 2014

reopen if needed

@hhugo hhugo closed this as completed Apr 11, 2014
vouillon added a commit that referenced this issue Oct 29, 2024
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