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 failed with "error: ‘caml__frame’ undeclared" #10

Closed
jared-wallace opened this issue Nov 30, 2016 · 4 comments
Closed

Comments

@jared-wallace
Copy link

I got this error when compiling on Fedora rawhide, which uses Ocaml 4.04.

I know nothing about Ocaml, but some googling yielded this patch, which fixes the issue.

--- gsl/mlgsl_error.c   2014-04-11 20:43:31.000000000 -0500
+++ gsl/mlgsl_error.c.new       2016-11-29 20:31:11.290071862 -0600
@@ -34,6 +34,7 @@
 
 static void ml_gsl_raise_exn(const char *msg, int gsl_errno)
 {
+  CAMLparam0();
   CAMLlocal2(exn_msg, exn_arg);
   exn_msg = copy_string(msg);
   exn_arg = alloc_small(2, 0);
@tropicflite
Copy link

I have a similar error trying to compile orpie in Arch, but this patch didn't work for me.
Orpie is currently broken for Arch users.

@ecocode
Copy link

ecocode commented Jun 12, 2017

I confirm the same error on Manjaro linux

@auxym
Copy link

auxym commented Jun 26, 2017

I applied both the patch mentioned in the issue OP, as well as the patch currently included in the AUR package. Both fixed errors during build. However, I now get a third error:

Error: No implementations provided for the following modules:
         Gsl_sf referenced from rpc_calc.cmx
         Gsl_math referenced from rpc_calc.cmx

@pelzlpj
Copy link
Owner

pelzlpj commented Aug 29, 2018

Fixed in 1a2d225 (by removing the local copy of ocamlgsl).

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

5 participants