Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Tests that require Z3 fail rather than being unsupported #8231

Open
mikeurbach opened this issue Feb 12, 2025 · 1 comment
Open

Tests that require Z3 fail rather than being unsupported #8231

mikeurbach opened this issue Feb 12, 2025 · 1 comment

Comments

@mikeurbach
Copy link
Contributor

I've been dealing with something in my circt integration tests for a while, and it has been an annoyance, but not a major issue. However, it actually masked a problem in #8225. Basically, I haven't configured z3, and any test with // REQUIRES: libz3 fails, rather than being unsupported. Does anyone else see this?

Separately, I need to just get z3 set up so I can run these tests during these LLVM bumps, but the current behavior seems wrong.

I didn't see any open issue about this, but please redirect me if this is a dupe.

For completeness, here is how I configure things:

cmake -B build -G Ninja llvm/llvm \
    -DCMAKE_BUILD_TYPE=Debug \
    -DCMAKE_C_COMPILER=clang \
    -DCMAKE_CXX_COMPILER=clang++ \
    -DCMAKE_EXPORT_COMPILE_COMMANDS=ON \
    -DLLVM_ENABLE_PROJECTS=mlir \
    -DLLVM_ENABLE_ASSERTIONS=ON \
    -DLLVM_EXTERNAL_PROJECTS=circt \
    -DLLVM_EXTERNAL_CIRCT_SOURCE_DIR=. \
    -DLLVM_TARGETS_TO_BUILD=host \
    -DLLVM_LIT_ARGS="-v --show-unsupported" \
    -DLLVM_USE_LINKER=gold \
    -DMLIR_ENABLE_BINDINGS_PYTHON=ON \
    -DCIRCT_BINDINGS_PYTHON_ENABLED=ON

I will note that I see this in the output:

CMake Warning at cmake/modules/FindZ3.cmake:116 (message):
  Failed to determine Z3 library version, defaulting to 0.0.0.
Call Stack (most recent call first):
  /scratch/verif/mikeu/circt/CMakeLists.txt:474 (find_package)


-- Could NOT find Z3 (missing: Z3_LIBRARIES Z3_INCLUDE_DIR) (found version "0.0.0")
-- Did NOT find z3.
@teqdruid
Copy link
Contributor

teqdruid commented Feb 13, 2025 via email

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants