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

core: undefined symbol: Z3_mk_config" #62750

Closed
matthiaskrgr opened this issue Jul 17, 2019 · 1 comment · Fixed by #62752
Closed

core: undefined symbol: Z3_mk_config" #62750

matthiaskrgr opened this issue Jul 17, 2019 · 1 comment · Fixed by #62752
Labels
A-codegen Area: Code generation A-linkage Area: linking into static, shared libraries and binaries A-LLVM Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues. C-bug Category: This is a bug. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Comments

@matthiaskrgr
Copy link
Member

matthiaskrgr commented Jul 17, 2019

repo is @ bf16480

   Compiling core v0.0.0 (/home/matthias/vcs/github/rust/src/libcore)
error: couldn't load codegen backend "/home/matthias/vcs/github/rust/build/x86_64-unknown-linux-gnu/stage1/lib/rustlib/x86_64-unknown-linux-gnu/codegen-backends/librustc_codegen_llvm-llvm.so": "/home/matthias/vcs/github/rust/build/x86_64-unknown-linux-gnu/stage1/lib/rustlib/x86_64-unknown-linux-gnu/codegen-backends/librustc_codegen_llvm-llvm.so: undefined symbol: Z3_mk_config"

error: Could not compile `core`.

To learn more, run the command again with --verbose.
command did not execute successfully: "/home/matthias/vcs/github/rust/build/x86_64-unknown-linux-gnu/stage0/bin/cargo" "build" "--target" "x86_64-unknown-linux-gnu" "-j" "1" "--release" "--features" "panic-unwind backtrace profiler compiler-builtins-c" "--manifest-path" "/home/matthias/vcs/github/rust/src/libstd/Cargo.toml" "--message-format" "json"
expected success, got: exit code: 101
failed to run: /home/matthias/vcs/github/rust/build/bootstrap/debug/bootstrap build -j 1
Build completed unsuccessfully in 0:00:02

edit:
config:

[llvm]
[build]
submodules = true
extended = true
tools = ["cargo", "rls", "clippy", "rustfmt", "analysis", "src"]
sanitizers = true
profiler = true
low-priority = true
[install]
[rust]
[target.x86_64-unknown-linux-gnu]
[dist]

I'm using manjaro and have z3 installed.
cc @nikic

cc #62592

@jonas-schievink jonas-schievink added A-codegen Area: Code generation A-linkage Area: linking into static, shared libraries and binaries A-LLVM Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues. C-bug Category: This is a bug. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Jul 17, 2019
@nikic
Copy link
Contributor

nikic commented Jul 17, 2019

We should probably explicitly set LLVM_ENABLE_Z3_SOLVER=0 during the LLVM build. If Z3 is found it will be linked by default.

Mark-Simulacrum added a commit to Mark-Simulacrum/rust that referenced this issue Jul 18, 2019
Disable Z3 in LLVM build

Avoid building LLVM with Z3 if it happens to be installed.

Fixes rust-lang#62750.

r? @alexcrichton
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-codegen Area: Code generation A-linkage Area: linking into static, shared libraries and binaries A-LLVM Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues. C-bug Category: This is a bug. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants