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 for heap #22

Closed
mgudemann opened this issue Aug 31, 2020 · 3 comments
Closed

Make error for heap #22

mgudemann opened this issue Aug 31, 2020 · 3 comments

Comments

@mgudemann
Copy link

Hi,

when I try to redo the proofs using the provided Makefile, I get the following error

~/s/g/H/V/a/StandardAlgorithms (master|✔) $ why3 config --full-config
Found prover CVC4 version 1.7 (alternative: counterexamples)
Found prover CVC4 version 1.7, OK.
Found prover CVC3 version 2.4.1, OK.
Found prover Z3 version 4.8.6 (alternative: counterexamples)
Found prover Z3 version 4.8.6, OK.
Found prover Z3 version 4.8.6 (alternative: noBV)
Found prover Coq version 8.10.2, OK.
Prover Alt-Ergo version 2.3.2 is not known to be supported.
Known versions for this prover: 2.3.1, 2.3.0.
Known old versions for this prover: .
8 prover(s) added (including 1 prover(s) with an unrecognized version)
Generating strategies:
  Prover Z3 4.8.6 will be used in Auto level >= 1
  Prover CVC4 1.7 will be used in Auto level >= 1
Save config to /home/guedemann/.why3.conf
~/s/g/H/V/a/StandardAlgorithms (master|✔) $ make
nonmutating
maxmin
binarysearch
mutating
numeric
heap
make[2]: *** No rule to make target '"', needed by '@echo'.  Stop.
make[1]: *** [../Config/group.mk:50: heap_parent] Error 2
make: *** [Makefile:25: heap] Error 2

The version of Z3 and Coq differs slightly, is the error related to that difference?

Trying to solve this problem I also found that StandardAlgorithms/README.txt refers to a Makefile.template which has been deleted in cb67e3f
The described variables seem to be in Config/frama-c.mk now.

@jensgerlach
Copy link
Contributor

jensgerlach commented Aug 31, 2020

README.txt is not up to date. Sorry for that.
I will also look at the particular problem of heap_parent

Another problem is that there is no meaningful default target in Makefile.
You should/could call.

  • make test (recursively runs very basic tests)
  • make report-clean and then make report which prints some numbers about the verification of the various examples. (This might take a long time and the printed numbers are not really explained.)

It might, however, make more sense to go to the individual examples.

  • Calling there make wpgui runs Frama-C/WP and opens the Frama-C GUI.
  • make wp just calls Frama-C/WP on the command line.

Hope this helps.

@jensgerlach
Copy link
Contributor

The problem you reported has been fixed in the development version.
Thanks a lot!

@mgudemann
Copy link
Author

@jensgerlach
With make report it works as intended.
Thank you very much for the explanation and the quick fix!

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

2 participants