-
Notifications
You must be signed in to change notification settings - Fork 57
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
failed compilation of ocaml target #7
Comments
I'm seeing the same thing. |
Hi all, Specify the location of the libraries in the CAML_LD_LIBRARY_PATH variable in ocaml_interface/Makefile (updated). Let me know if it works. Cheers, |
I'm still having trouble with this. It seems that CAML_LD_LIBRARY_PATH was replaced with LD_LIBRARY_PATH, and this variable in master is set to:
which is where liboptpoly.so lives. However, I'm still getting the following error:
(I am also still getting |
Hi Ian, Did you try setting the LD_LIBRARY_PATH before calling make? Can you specify the compiler version and the operating system on your machine? Cheers, |
The LD_LIBRARY_PATH is already set to include the directory in which liboptpoly.so resides. So I expect that even without modifying this variable, I should not get the error that I mentioned above. That being said, I did try to modify this variable to also include the location of the libelina_poly_caml library, and still got the same errors. I am using Debian 3.16.43-2, with gcc version 4.9.2. Thanks, Ian |
Hello, I sent a pull request #31 , in which I think the easiest way is to install using opam. (From the above command, I assumed you installed
or you may be able to install Elina to your own directory (e.g.
I tested this on Debian GNU/Linux 9 (stretch) and gcc (Debian 6.3.0-18+deb9u1) 6.3.0 20170516. Sincerely, |
Fix setup instructions
Make in ocaml_interface fails due to path to libraries not being correctly set.
ocamlopt.opt -g -I /home/monniaux/.opam/4.04.0/lib/gmp -I /home/monniaux/.opam/4.04.0/lib/apron -o mlexample.opt bigarray.cmxa gmp.cmxa apron.cmxa elina_poly.cmxa mlexample.ml
/usr/bin/ld: cannot find -lelina_poly_caml
/usr/bin/ld: cannot find -loptpoly
/usr/bin/ld: cannot find -lcamlidl
collect2: error: ld returned 1 exit status
File "caml_startup", line 1:
Error: Error during linking
Makefile:87: recipe for target 'mlexample.opt' failed
The text was updated successfully, but these errors were encountered: