-
Notifications
You must be signed in to change notification settings - Fork 104
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
CParser build fails #22
Comments
Please look at The build method for CParser is old and perhaps unexpected. If you look what run_tests does in detail, it's actually doing: This means the Does this help? |
UPDATE: I figured out that these files needed to be generated by make. So I ran
in the l4v/tools/c-parser/IsaMakefile Lines 57 to 58 in 3abbdd7
But for some reason this is not being triggered when I build AutoCorres from the l4v directory.
|
When I do |
See my first post. (I updated it with the command I used) |
OK, I can tell you that it is not expected that if you try build things with just Isabelle that they will work. There are other files coming in from other parts of the build system that the Isabelle build system can't handle on its own. For example, if you want to build CRefine, you need the C code the C parser will be parsing, which is generated by the seL4 build system, which you can't call out to from the Isabelle build system. We expect Makefiles to be the main source of instructing the system on how to build things, and the That said, our Makefiles should work and what you noticed will need a fix to build |
I was just following the directions in the README and INSTALL files, which suggested that the Isabelle build system should suffice to build the C parser. So if the Isabelle build system alone is not sufficient to make all of the dependencies, then the documentation should reflect this. |
Yes, it looks like we need to update some documentation files to reflect the fact that we've removed generated files from the
To me, the CParser |
@fidget324 Thanks for reporting! |
@mbrcknl the c-parser IsaMakefile is fine, the Makefile is missing a dependency on @fidget324 I was not suggesting you are doing anything wrong, merely pointing out the reality of the present moment and how it comes about. If you find any more examples of stale/incorrect docs, please poke us again! |
@Xaphiosis No problem, this is a great project 🥇 :). |
@Xaphiosis Ok, though I'm not sure I understand the intention of the split between the |
It's probably a historic leftover from back when IsaMakefiles were the main way to do things. From what I can see on my screen, if you remove the three files that were reported in this issue, then go into tools/c-parser and type |
RIght, I guess I mentally filtered the Anyhow, at some point, we (@JaphethLim or I) will try to do a few things to address this:
|
update: the release AutoCorres 1.4 (for Isabelle2017) is now available from https://ts.data61.csiro.au/projects/TS/autocorres/ and the README is updated. We still have a Makefile and a separate IsaMakefile in cparser. |
resolves remaining part of github issue #22
The IsaMakefile is now removed and part of the Makefile. This could all still be simplified a bit, but I think this particular issue at least can be closed. |
resolves remaining part of github issue #22
The file tools/c-parser/CTranslation.thy references three files that do not exist:
l4v/tools/c-parser/CTranslation.thy
Lines 66 to 68 in 3abbdd7
It looks like these files existed in 6.0.0, but were removed some time before 7.0.0.
From the l4v directory, I ran
The text was updated successfully, but these errors were encountered: