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

How to build #4

Open
rgrinberg opened this issue Jan 17, 2016 · 0 comments
Open

How to build #4

rgrinberg opened this issue Jan 17, 2016 · 0 comments

Comments

@rgrinberg
Copy link

I'm getting the following error when building:

Solver failed:
  Ocamlbuild knows of no rules that apply to a target named aurochs/aurochs_lib.mly. This can happen if you ask Ocamlbuild to build a target with the wrong extension (e.g. .opt instead of .native) or if
 the source files live in directories that have not been specified as include directories.
Compilation unsuccessful after building 140 targets (140 cached) in 00:00:00.

Note that I did have to change the myocamlbuild to make something compile at all:

--- a/myocamlbuild.ml
+++ b/myocamlbuild.ml
@@ -24,7 +24,8 @@ let cflags =
   lazy begin
     try
       let fl = Sys.getenv "CFLAGS" in
-      let flags = Lexers.comma_or_blank_sep_strings (Lexing.from_string fl) in
+      let flags = Lexers.comma_or_blank_sep_strings fl
+                    (Lexing.from_string fl) in
       S(List.concat (List.map (fun fl -> [A"-ccopt"; A fl]) flags))
     with
     | Not_found -> S[]

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