llvm-13-dev missing zlib1g-dev dependency
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
llvm-toolchain-13 (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
The llvm-13-dev package appears to be missing a declared dependency on zlib1g-dev.
The cmake configuration in /usr/lib/
What I expected: using "find_package(LLVM REQUIRED CONFIG)" in CMakeLists.txt to work.
What happened: it failed;
-- Could NOT find ZLIB (missing: ZLIB_LIBRARY ZLIB_INCLUDE_DIR)
-- Found LibXml2: /usr/lib/
-- Found LLVM 13.0.0
-- Using LLVMConfig.cmake in: /usr/lib/
-- Configuring done
CMake Error at CMakeLists.txt:20 (add_executable):
Target "demo" links to target "ZLIB::ZLIB" but the target was not
found. Perhaps a find_package() call is missing for an IMPORTED target, or
an ALIAS target is missing?
Fixed the build failure by running: apt-get install zlib1g-dev
$ lsb_release -rd
Description: Ubuntu 21.10
Release: 21.10
$ apt-cache policy llvm-13-dev
llvm-13-dev:
Installed: 1:13.0.0-2
Candidate: 1:13.0.0-2
Version table:
*** 1:13.0.0-2 500
500 http://
100 /var/lib/
Status changed to 'Confirmed' because the bug affects multiple users.