Public bug reported:
The llvm-13-dev package appears to be missing a declared dependency on
zlib1g-dev.
The cmake configuration in /usr/lib/llvm-13/cmake/LLVMConfig.cmake is
looking for ZLIB, but failing to find it due to the missing dependency.
(Just below that it also looks for and successfully finds libxml2, as
the dependency for that has been declared.)
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/x86_64-linux-gnu/libxml2.so (found version "2.9.12")
-- Found LLVM 13.0.0
-- Using LLVMConfig.cmake in: /usr/lib/llvm-13/cmake
-- 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://jp.archive.ubuntu.com/ubuntu impish/universe amd64 Packages
100 /var/lib/dpkg/status
** Affects: llvm-toolchain-13 (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to llvm-toolchain-13 in Ubuntu.
https://bugs.launchpad.net/bugs/1967559
Title:
llvm-13-dev missing zlib1g-dev dependency
Status in llvm-toolchain-13 package in Ubuntu:
New
Bug description:
The llvm-13-dev package appears to be missing a declared dependency on
zlib1g-dev.
The cmake configuration in /usr/lib/llvm-13/cmake/LLVMConfig.cmake is
looking for ZLIB, but failing to find it due to the missing
dependency. (Just below that it also looks for and successfully finds
libxml2, as the dependency for that has been declared.)
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/x86_64-linux-gnu/libxml2.so (found version
"2.9.12")
-- Found LLVM 13.0.0
-- Using LLVMConfig.cmake in: /usr/lib/llvm-13/cmake
-- 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://jp.archive.ubuntu.com/ubuntu impish/universe amd64 Packages
100 /var/lib/dpkg/status
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/llvm-toolchain-13/+bug/1967559/+subscriptions
--
Mailing list: https://launchpad.net/~kernel-packages
Post to : [email protected]
Unsubscribe : https://launchpad.net/~kernel-packages
More help : https://help.launchpad.net/ListHelp