qe-compiler
qe-compiler copied to clipboard
libzip build issue on vanilla Ubuntu 22.04
Running qss-compiler 128c937335ce23d35c4e98c3b7618d7420bd11ee on a fresh Ubuntu 22.04 VM with Python 3.10.6. Default Conan 1.59.0 profile and CMake updated to 3.26.1.
Observed behaviour
The build fails with
CMake Error at cmake/AddQSSC.cmake:115 (target_link_libraries):
Target "QSSCPayloadZip" links to:
libzip::zip
but the target was not found. Possible reasons include:
* There is a typo in the target name.
* A find_package call is missing for an IMPORTED target.
* An ALIAS target is missing.
Expected behaviour The build system should pick up on libzip.
Workaround Telling CMake to use the OS's zip library works, but requires additional intervention.
--- a/lib/Payload/ZipPayload/CMakeLists.txt
+++ b/lib/Payload/ZipPayload/CMakeLists.txt
@@ -24,7 +24,7 @@ qssc_add_plugin(QSSCPayloadZip QSSC_PAYLOAD_PLUGIN
LINK_LIBS
QSSCPayload
- libzip::zip
+ zip
Unfortunately, this is not closed by #117 (got autoclosed on merge). Please reopen, should be easy to reproduce.
My VM failed over the weekend when building LLVM, restarting.