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

Z3 does not build by default on ubuntu 24.04 #25807

Open
thomas-lamiaux opened this issue May 7, 2024 · 3 comments
Open

Z3 does not build by default on ubuntu 24.04 #25807

thomas-lamiaux opened this issue May 7, 2024 · 3 comments

Comments

@thomas-lamiaux
Copy link

I tried to install z3 with opam on ubuntu 24.04, which fails with the following error message

opam install z3.4.13.0
[ERROR] Package z3.4.13.0 depends on the unavailable system package
'python3-distutils'. You can use `--no-depexts' to attempt installation
anyway.

It seems that z3 relies on the dependency distutils that is no longer available by default in Python 3.12 and above, as in ubuntu 24.04.
Consequently preventing the automatic installation of z3 by opam.

(I was asked to report this issue after discussions on the coq zulip)

@thomas-lamiaux thomas-lamiaux changed the title Z3 do not build by default on ubuntu 24.04 Z3 does not build by default on ubuntu 24.04 May 7, 2024
@arbipher
Copy link
Collaborator

I see. Let me check if z3 (not ocaml-z3) itself works well on Python 3.12 otherwises we can probably require a Python prior to 3.12.

@arbipher
Copy link
Collaborator

I found the z3.4.13.0 on homebrew at macos just works fine with Python 3.12. I also tried it on my mac and it obviously has no distutils.

I guess distutils is not necessary for z3 itself on other distros, so it should be safely to remove it. Let me try making a new z3 opamfile and test it on my ubuntu box later.

@arbipher
Copy link
Collaborator

I don't think distutil is really used in z3 anymore (asking for confirmation with this issue Z3Prover/z3#7228). Let me just make a new opam by removing this.

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