-
Notifications
You must be signed in to change notification settings - Fork 114
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
Sail dislikes the arm-v9.4-a spec ("Fatal error: exception Stack overflow") #737
Comments
Perhaps the environment has a stack limit that's too low? On my Ubuntu 22.04 machine the default is 8MB (from |
My
|
The nightly docker container is using an older version of OCaml that doesn't have the TRMC (tail recursion modolo cons) optimisation. Maybe that's the issue? You could try switching it to OCaml 5.2.0 |
I finally got a setup where I could use docker, and increasing the stack to 64kB (a number I just tried at random) works. Looking at the stack trace when it fails with the default stack size, it's in the menhir generated parser during expression parsing. It appears to be a plain tail-call optimisation failure, which is a little bizarre. |
I'm sure I've run into this before, and I think it's that recent menhir versions are relying on recent OCaml versions for optimizations. |
#751 I increased the version because there's no reason for it to be on 4.10.0 |
That gets past parsing without any problems (I'll leave it running to check it actually produces a C model). It's a little unfortunate that we don't know suitable version combinations in general, although from the changelog any OCaml version from 4.14.0 onwards should be OK. |
I tried to use the armv8 spec, but unfortunately sail complains:
Steps to reproduce:
docker run --rm -it -v "/path/to/sail-arm\:/input" --entrypoint bash sail
eval `opam env`
cd /input/arm-v9.4-a/
make
Am I doing something wrong?
The text was updated successfully, but these errors were encountered: