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

Debian bullseye - can't find libraries (z3, grpc++) in stage 2 #59097

Closed
sylvestre opened this issue Nov 20, 2022 · 3 comments
Closed

Debian bullseye - can't find libraries (z3, grpc++) in stage 2 #59097

sylvestre opened this issue Nov 20, 2022 · 3 comments

Comments

@sylvestre
Copy link
Collaborator

Recently, stage 2 on debian bullseye (amd64) is failing with:


-- flang project is disabled
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):
  CMakeLists.txt:506 (find_package)


-- Could NOT find Z3: Found unsuitable version "0.0.0", but required is at least "4.7.1" (found Z3_LIBRARIES-NOTFOUND)
CMake Error at CMakeLists.txt:515 (message):
  LLVM_ENABLE_Z3_SOLVER cannot be enabled when Z3 is not available.

Enabling the debug -DCMAKE_FIND_DEBUG_MODE=ON
it is searching the libs in
/usr/lib/x86_64-pc-linux-gnu/
while the lib is in
/usr/lib/x86_64-linux-gnu/

de4364f was ok

@MaskRay any idea what changed recently ? thanks!

@nickdesaulniers
Copy link
Member

Recently
de4364f was ok

Was de4364f the last known good revision? What's the first known bad revision? Can you bisect @sylvestre ?

@sylvestre
Copy link
Collaborator Author

I did and it is actually that these options on the packaging side have been removed during a merge...
my bad

	-DBUILTINS_CMAKE_ARGS="-DCMAKE_C_FLAGS=$(STAGE_1_CFLAGS);-DCMAKE_CXX_FLAGS=$(STAGE_1_CXXFLAGS);-DCMAKE_EXE_LINKER_FLAGS=$(STAGE_1_LDFLAGS);-DCMAKE_SHARED_LINKER_FLAGS=$(STAGE_1_LDFLAGS);-DCMAKE_MODULE_LINKER_FLAGS=$(STAGE_1_LDFLAGS);-DCMAKE_BUILD_TYPE=Release;-DLLVM_ENABLE_PER_TARGET_RUNTIME_DIR=OFF" \
	-DRUNTIMES_CMAKE_ARGS="-DCMAKE_C_FLAGS=$(STAGE_1_CFLAGS);-DCMAKE_CXX_FLAGS=$(STAGE_1_CXXFLAGS);-DCMAKE_EXE_LINKER_FLAGS=$(STAGE_1_LDFLAGS);-DCMAKE_SHARED_LINKER_FLAGS=$(STAGE_1_LDFLAGS);-DCMAKE_MODULE_LINKER_FLAGS=$(STAGE_1_LDFLAGS);-DCMAKE_BUILD_TYPE=Release;-DLLVM_ENABLE_PER_TARGET_RUNTIME_DIR=OFF" \

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants