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

make error #64

Open
wdmjun opened this issue Jun 30, 2021 · 5 comments
Open

make error #64

wdmjun opened this issue Jun 30, 2021 · 5 comments

Comments

@wdmjun
Copy link

wdmjun commented Jun 30, 2021

File "pa_j.ml", line 413, characters 6-24:
413 | | MtFun loc x1 x2 x3 →
^^^^^^^^^^^^^^^^^^
Error: The constructor MtFun expects 3 argument(s),
but is applied here to 4 argument(s)
make: *** [Makefile:49: pa_j.cmo] Error 2

I received this error when running make in ~/hol-light.

@wdmjun
Copy link
Author

wdmjun commented Jul 2, 2021

This was on Debian Sid.

@wdmjun
Copy link
Author

wdmjun commented Jul 18, 2021

I compiled camlp5 from source. I now get the same error as #62.

@maggesi
Copy link

maggesi commented Aug 6, 2021

You need to pick up a good combination of ocaml and camlp5 versions.
The one that I'm using right now is the following:
ocaml 4.05
camlp5 7.10
there many other possibile combinations.

With opam, you can use the following instructions:

opam switch create 4.05.0
eval `opam env`
opam pin add camlp5 7.10
opam install num camlp5

@wdmjun
Copy link
Author

wdmjun commented Aug 8, 2021

Worked for me. Much thanks.

@asr
Copy link
Contributor

asr commented Feb 15, 2022

You need to pick up a good combination of ocaml and camlp5 versions. The one that I'm using right now is the following: ocaml 4.05 camlp5 7.10 there many other possibile combinations.

With opam, you can use the following instructions:

opam switch create 4.05.0
eval `opam env`
opam pin add camlp5 7.10
opam install num camlp5

I had the same problem on Ubuntu 20.04, ocaml 4.08.1 and camlp5 7.11. The above instructions also worked for me. @wdmjun, thanks!

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