-
Notifications
You must be signed in to change notification settings - Fork 273
satcheck_minisat2.cpp: error: 'l_True' was not declared in this scope; did you mean 'Minisat::l_True'? #8052
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
Comments
Hi @vt-alt, I had an investigation at your problem. Essentially it looks like that after minisat version One of such commits (here) changes the way symbols Here I agree that adding @tautschnig as you introduced the |
Given that Minisat hasn't changed for a decade, I'd like to suggest to import the source into the CBMC repo |
@esteffin Thanks! There is maintained fork at https://github.com/stp/minisat even though there isn't very big code difference and mostly cmake builds updates. From distribution point of view linking with external shared library is preferable than embedding (vendoring or even static linking). |
There isn't really a single authoritative Minisat source anymore, and therefore system-provided Minisat installations may use slightly different source layouts. Cater for this by supporting at least the variants with/without macros for l_False/l_True. Fixes: diffblue#8052
@tautschnig I just tested compiling cbmc 5.95.1 release on ALT with this PR #8107 applied over it (without |
When building CBMC version 5.95.1 with system provided minisat (
-Dsat_impl="system-minisat2"
), build fails with:Adding
-DMINISAT_CONSTANTS_AS_MACROS
to theCXXFLAGS
solves the issue. Perhaps this should be auto-added or constants namespaced.CBMC version: 5.95.1
Operating system: ALT Linux
Exact command line resulting in the issue:
The text was updated successfully, but these errors were encountered: