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

Document how to set up autocorres #367

Open
jyizheng opened this issue Jun 28, 2020 · 2 comments
Open

Document how to set up autocorres #367

jyizheng opened this issue Jun 28, 2020 · 2 comments

Comments

@jyizheng
Copy link

I am trying to code ext2 code under cogent/impl/fs/ext2/cogent by following the README.
I got the error at the bottom. BTW, I have gone through the Adder example code. For it, I can generate the final executable successfully.

Is there any fix for this?


Cannot find $AC_DIR (/home/andy/cogent/autocorres)
Cannot find $AC_DIR (/home/andy/cogent/autocorres)
Cannot find $AC_DIR (/home/andy/cogent/autocorres)
Cannot find $AC_DIR (/home/andy/cogent/autocorres)
Cannot find $AC_DIR (/home/andy/cogent/autocorres)
Cannot find $AC_DIR (/home/andy/cogent/autocorres)
make: bash: Command not found
Makefile:165: recipe for target '.c-gen' failed
make: *** [.c-gen] Error 127

@zilinc
Copy link

zilinc commented Jun 28, 2020

You need to download autocorres from http://ts.data61.csiro.au/projects/TS/autocorres/ and set $AC_DIR to it. The README files (https://github.com/NICTA/cogent#proofs) and the documentation (https://cogent.readthedocs.io/en/latest/verification.html?highlight=AC_DIR#building-running-the-generated-files) are not super clear about it; I'll fix it. Thanks for the report. If you are only interested in building the kernel image, I don't think autocorres is needed. I'll test it---maybe the Makefile is unnecessarily requiring it. But you'll certainly need it for any C refinement proofs.

@jyizheng
Copy link
Author

Thanks, I am able to compile ext2 now after I downloaded autocorres.

@zilinc zilinc changed the title Cannot compile ext2 code Document how to set up autocorres Jul 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants