Open
Description
Is there an existing issue for this?
- I have searched the existing issues
Current Behavior
In our publish workflow, we see that building the Docker image for linux/arm fails during the BlazingMQ configure stage, with the following output:
#29 60.77 CMake Error at /workspace/srcs/bde-tools/BdeBuildSystem/BdeImportPkgConfigTargets.cmake:231 (message):
#29 60.77 Cannot find zlib.pc file in these paths:
#29 60.77 /usr/lib/x86_64-linux-gnu/pkgconfig /opt/bb/lib64/pkgconfig
#29 60.77 /usr/lib/x86_64-linux-gnu/pkgconfig /opt/bb/lib64/pkgconfig
#29 60.77
#29 60.77 [CALL_CHAIN=zlib]
#29 60.77 Call Stack (most recent call first):
#29 60.77 /workspace/srcs/bde-tools/BdeBuildSystem/BdeImportPkgConfigTargets.cmake:185 (_bbs_pcimport_get_pcfile)
#29 60.77 /workspace/srcs/bde-tools/BdeBuildSystem/BdeImportPkgConfigTargets.cmake:128 (_bbs_pcimport_import_pkgconfig_target)
#29 60.77 /workspace/srcs/bde-tools/BdeBuildSystem/BdeImportPkgConfigTargets.cmake:109 (_bbs_pcimport_add_package)
#29 60.77 /workspace/srcs/bde-tools/BdeBuildSystem/BdeImportPkgConfigTargets.cmake:87 (_bbs_import_pkgconfig_targets)
#29 60.77 /workspace/srcs/bde-tools/BdeBuildSystem/BdeTargetUtils.cmake:100 (bbs_import_pkgconfig_targets)
#29 60.77 /workspace/srcs/bde-tools/BdeBuildSystem/BdeTargetUtils.cmake:145:EVAL:2 (_bbs_defer_target_import)
#29 60.77 CMakeLists.txt:DEFERRED
Expected Behavior
We should be able to build ARM images.
Steps To Reproduce
Run the publish workflow.
BlazingMQ Version
HEAD
Anything else?
The issue seems to be this hardcoded path: /usr/lib/x86_64-linux-gnu/pkgconfig
. Truly, we should be using the system pkg-config
path, augmented with our install root /opt/bb
.