-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Static library #456
Comments
See also issue #454. |
Use case is getting Z3 to run on AWS Lambda. You have to statically link in everything for portability. On your executable if you run ldd a.out you get a grocery list of dynamic libs that need to be removed. Might try running this on some of the test executables as a meta-test to make sure everything is static. |
@chadbrewbaker If you're building using clang or gcc the CMake build system which is currently awaiting review in #461 is capable of building a static version of the Z3 executable and a static library. To do this run
|
@chadbrewbaker: Is that just on AWS, or does this apply to other systems as well? And, did you build Z3 there or did you build it elsewhere and then upload it? |
@chadbrewbaker: I suppose you are running on the default z3 binary? That is indeed a dynamically linked to the system library, but you can easily fix that by adding -static to LINK_FLAGS in config.mk. Note to self: we might want to consider adding an option to mk_make.py for this, may be useful for more requests considering the various cloud systems. |
As part of your binary releases, a statically compiled binary on AWS Linux for AWS Lambda would be awesome. If you need help getting a build box I can get you a Packer script. Yes other systems I have used in the past like Blue Gene/L have needed static compiles. Also, static ARM builds for Android/IOS might be nice. IMHO z3 should become a standard UNIX shell utility and library. |
We don't have the bandwith to provide and maintain packages for all different package systems, but we do very much encourage community-supported packages, so if you can find a maintainer who would like to provide these packages, we would be happy to support them. |
Relates to Z3Prover#456
Closing issue as fixed. Feel free to start a new issue for discussion of community-supported static packages! |
We have a flag to build a static library, but that has had issues for a long time. There was a request on stackoverflow recently: Build z3 as static library instead of DLL
The text was updated successfully, but these errors were encountered: