conan-center-index: [package] mongo-c-driver/1.17.2: Does not build on RH with zstd

Summary

mongo-c-driver does not build with default settings. Builds fine without zstd.

Package and Environment Details (include every applicable attribute)

  • Package Name/Version: mongo-c-driver/1.17.2
  • Operating System+version: CentOS Linux release 7.8.2003 (Core)
  • Using RH devtoolset-9
  • Compiler+version: gcc (GCC) 9.1.1 20190605 (Red Hat 9.1.1-2)
  • Conan version: conan 1.31.2
  • Python version: Python 2.7.5 + Python 3.6.8

Conan profile (output of conan profile show default or conan profile show <profile> if custom profile is in use)

[settings]
os=Linux
os_build=Linux
arch=x86_64
arch_build=x86_64
compiler=gcc
compiler.libcxx=libstdc++11
build_type=RelWithDebInfo
compiler.cppstd=17
ig=ig
os.version=rh7
os_build.release=rh7
compiler.version=9
[options]
[build_requires]
[env]

Steps to reproduce (Include if Applicable)

conan install --build=missing mongo-c-driver/1.17.2@

Logs (Include/Attach if Applicable)

log.txt

Click to expand log mongo-c-driver/1.17.2: Applying build-requirement: pkgconf/1.7.3 Downloading conan_sources.tgz completed [1.20k] Decompressing conan_sources.tgz completed [0.00k] mongo-c-driver/1.17.2: Configuring sources in /var/ig/deploy/kapustk/conan-standalone/bamboo/.conan/data/mongo-c-driver/1.17.2/_/_/source Downloading mongo-c-driver-1.17.2.tar.gz completed [6922.22k]

mongo-c-driver/1.17.2: Copying sources to build folder mongo-c-driver/1.17.2: Building your package in /var/ig/deploy/kapustk/conan-standalone/bamboo/.conan/data/mongo-c-driver/1.17.2///build/a32ef8708262b64db08875175d509acf31ea84ad mongo-c-driver/1.17.2: Generator pkg_config created pkgconf.pc mongo-c-driver/1.17.2: Generator pkg_config created libcrypto.pc mongo-c-driver/1.17.2: Generator pkg_config created libssl.pc mongo-c-driver/1.17.2: Generator pkg_config created openssl.pc mongo-c-driver/1.17.2: Generator pkg_config created snappylib.pc mongo-c-driver/1.17.2: Generator pkg_config created snappy.pc mongo-c-driver/1.17.2: Generator pkg_config created zlib.pc mongo-c-driver/1.17.2: Generator pkg_config created libzstd.pc mongo-c-driver/1.17.2: Generator pkg_config created zstd.pc mongo-c-driver/1.17.2: Generator pkg_config created icu-data.pc mongo-c-driver/1.17.2: Generator pkg_config created icu-uc.pc mongo-c-driver/1.17.2: Generator pkg_config created icu-i18n.pc mongo-c-driver/1.17.2: Generator pkg_config created icu-tu.pc mongo-c-driver/1.17.2: Generator pkg_config created icu-test.pc mongo-c-driver/1.17.2: Generator pkg_config created icu-io.pc mongo-c-driver/1.17.2: Generator pkg_config created icu-i18n-alias.pc mongo-c-driver/1.17.2: Generator pkg_config created icu-data-alias.pc mongo-c-driver/1.17.2: Generator pkg_config created icu.pc mongo-c-driver/1.17.2: Generator cmake_find_package created Findpkgconf.cmake mongo-c-driver/1.17.2: Generator cmake_find_package created FindOpenSSL.cmake mongo-c-driver/1.17.2: Generator cmake_find_package created FindSnappy.cmake mongo-c-driver/1.17.2: Generator cmake_find_package created FindZLIB.cmake mongo-c-driver/1.17.2: Generator cmake_find_package created Findzstd.cmake mongo-c-driver/1.17.2: Generator cmake_find_package created FindICU.cmake mongo-c-driver/1.17.2: Generator cmake created conanbuildinfo.cmake mongo-c-driver/1.17.2: Calling build() cmake: /var/ig/deploy/kapustk/conan-standalone/bin/libcrypto.so.10: version `OPENSSL_1.0.2’ not found (required by cmake)

----Running------

cd ‘/var/ig/deploy/kapustk/conan-standalone/bamboo/.conan/data/mongo-c-driver/1.17.2///build/a32ef8708262b64db08875175d509acf31ea84ad/build_subfolder’ && cmake -G “Unix Makefiles” -DCMAKE_BUILD_TYPE=“RelWithDebInfo” -DCMAKE_SYSTEM_VERSION=“rh7” -DCONAN_IN_LOCAL_CACHE=“ON” -DCONAN_COMPILER=“gcc” -DCONAN_COMPILER_VERSION=“9” -DCONAN_CXX_FLAGS=“-m64” -DCONAN_SHARED_LINKER_FLAGS=“-m64” -DCONAN_C_FLAGS=“-m64” -DBUILD_SHARED_LIBS=“OFF” -DCMAKE_INSTALL_PREFIX=“/var/ig/deploy/kapustk/conan-standalone/bamboo/.conan/data/mongo-c-driver/1.17.2///package/a32ef8708262b64db08875175d509acf31ea84ad” -DCMAKE_INSTALL_BINDIR=“bin” -DCMAKE_INSTALL_SBINDIR=“bin” -DCMAKE_INSTALL_LIBEXECDIR=“bin” -DCMAKE_INSTALL_LIBDIR=“lib” -DCMAKE_INSTALL_INCLUDEDIR=“include” -DCMAKE_INSTALL_OLDINCLUDEDIR=“include” -DCMAKE_INSTALL_DATAROOTDIR=“share” -DCONAN_CMAKE_POSITION_INDEPENDENT_CODE=“ON” -DCMAKE_MODULE_PATH=“/var/ig/deploy/kapustk/conan-standalone/bamboo/.conan/data/mongo-c-driver/1.17.2///build/a32ef8708262b64db08875175d509acf31ea84ad” -DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=“ON” -DCONAN_EXPORTED=“1” -DCMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_SKIP=“TRUE” -DENABLE_SSL=“OPENSSL” -DENABLE_SASL=“OFF” -DENABLE_STATIC=“ON” -DENABLE_TESTS=“OFF” -DENABLE_EXAMPLES=“OFF” -DENABLE_SRV=“ON” -DENABLE_MAINTAINER_FLAGS=“OFF” -DENABLE_AUTOMATIC_INIT_AND_CLEANUP=“ON” -DENABLE_CRYPTO_SYSTEM_PROFILE=“OFF” -DENABLE_TRACING=“OFF” -DENABLE_COVERAGE=“OFF” -DENABLE_SHM_COUNTERS=“OFF” -DENABLE_MONGOC=“ON” -DENABLE_BSON=“ON” -DENABLE_SNAPPY=“ON” -DENABLE_ZLIB=“SYSTEM” -DENABLE_ZSTD=“ON” -DENABLE_MAN_PAGES=“False” -DENABLE_HTML_DOCS=“False” -DENABLE_EXTRA_ALIGNMENT=“True” -DENABLE_RDTSCP=“False” -DENABLE_APPLE_FRAMEWORK=“False” -DENABLE_ICU=“ON” -DENABLE_UNINSTALL=“False” -DENABLE_CLIENT_SIDE_ENCRYPTION=“OFF” -DENABLE_MONGODB_AWS_AUTH=“AUTO” -DENABLE_PIC=“True” -DOPENSSL_ROOT_DIR=“/var/ig/deploy/kapustk/conan-standalone/bamboo/.conan/data/openssl/1.1.1h///package/d4b52feeb198b600042932f6fc1011e8f2f5cb83” -Wno-dev ‘/var/ig/deploy/kapustk/conan-standalone/bamboo/.conan/data/mongo-c-driver/1.17.2///build/a32ef8708262b64db08875175d509acf31ea84ad’


– The C compiler identification is GNU 9.1.1 – The CXX compiler identification is GNU 9.1.1 – Detecting C compiler ABI info – Detecting C compiler ABI info - done – Check for working C compiler: /opt/rh/devtoolset-9/root/usr/bin/cc - skipped – Detecting C compile features – Detecting C compile features - done – Detecting CXX compiler ABI info – Detecting CXX compiler ABI info - done – Check for working CXX compiler: /opt/rh/devtoolset-9/root/usr/bin/c++ - skipped – Detecting CXX compile features – Detecting CXX compile features - done – Conan: called by CMake conan helper – Conan: called inside local cache – Conan: Adjusting output directories – Conan: Using cmake global configuration – Conan: Adjusting default RPATHs Conan policies – Conan: Adjusting language standard – Conan: Adjusting fPIC flag (ON) – Conan: Compiler GCC>=5, checking major version 9 – Conan: Checking correct version: 9 file VERSION_CURRENT contained BUILD_VERSION 1.17.2 – Build and install static libraries – Using bundled libbson libbson version (from VERSION_CURRENT file): 1.17.2 – Check if the system is big endian – Searching 16 bit integer – Looking for sys/types.h – Looking for sys/types.h - found – Looking for stdint.h – Looking for stdint.h - found – Looking for stddef.h – Looking for stddef.h - found – Check size of unsigned short – Check size of unsigned short - done – Searching 16 bit integer - Using unsigned short – Check if the system is big endian - little endian – Looking for snprintf – Looking for snprintf - found – Looking for reallocf – Looking for reallocf - not found – Performing Test BSON_HAVE_TIMESPEC – Performing Test BSON_HAVE_TIMESPEC - Success – struct timespec found – Looking for gmtime_r – Looking for gmtime_r - found – Looking for rand_r – Looking for rand_r - found – Looking for strings.h – Looking for strings.h - found – Looking for strlcpy – Looking for strlcpy - not found – Looking for clock_gettime – Looking for clock_gettime - found – Looking for strnlen – Looking for strnlen - found – Looking for stdbool.h – Looking for stdbool.h - found – Looking for SYS_gettid – Looking for SYS_gettid - found – Looking for syscall – Looking for syscall - found – Performing Test HAVE_ATOMIC_32_ADD_AND_FETCH – Performing Test HAVE_ATOMIC_32_ADD_AND_FETCH - Success – Performing Test HAVE_ATOMIC_64_ADD_AND_FETCH – Performing Test HAVE_ATOMIC_64_ADD_AND_FETCH - Success Adding -fPIC to compilation of bson_static components libmongoc version (from VERSION_CURRENT file): 1.17.2 – Searching for zlib CMake packages – Conan: Using autogenerated FindZLIB.cmake – Found ZLIB: 1.2.11 (found version “1.2.11”) – Library z found /var/ig/deploy/kapustk/conan-standalone/bamboo/.conan/data/zlib/1.2.11///package/d4b52feeb198b600042932f6fc1011e8f2f5cb83/lib/libz.a – Found: /var/ig/deploy/kapustk/conan-standalone/bamboo/.conan/data/zlib/1.2.11///package/d4b52feeb198b600042932f6fc1011e8f2f5cb83/lib/libz.a – zlib found version “” – zlib include path “/var/ig/deploy/kapustk/conan-standalone/bamboo/.conan/data/zlib/1.2.11///package/d4b52feeb198b600042932f6fc1011e8f2f5cb83/include” – zlib libraries “/var/ig/deploy/kapustk/conan-standalone/bamboo/.conan/data/zlib/1.2.11///package/d4b52feeb198b600042932f6fc1011e8f2f5cb83/lib/libz.a” – Looking for include file unistd.h – Looking for include file unistd.h - found – Looking for include file stdarg.h – Looking for include file stdarg.h - found – Searching for compression library zstd – Found PkgConfig: /var/ig/deploy/kapustk/conan-standalone/bamboo/.conan/data/pkgconf/1.7.3///package/d4b52feeb198b600042932f6fc1011e8f2f5cb83/bin/pkgconf (found version “1.7.3”) – Checking for module ‘libzstd’ – Package ‘libzstd’, required by ‘virtual:world’, not found CMake Error at source_subfolder/CMakeLists.txt:10 (_message): Not found Call Stack (most recent call first): source_subfolder/src/libmongoc/CMakeLists.txt:108 (message)

– Configuring incomplete, errors occurred! See also “/var/ig/deploy/kapustk/conan-standalone/bamboo/.conan/data/mongo-c-driver/1.17.2///build/a32ef8708262b64db08875175d509acf31ea84ad/build_subfolder/CMakeFiles/CMakeOutput.log”. See also “/var/ig/deploy/kapustk/conan-standalone/bamboo/.conan/data/mongo-c-driver/1.17.2///build/a32ef8708262b64db08875175d509acf31ea84ad/build_subfolder/CMakeFiles/CMakeError.log”. mongo-c-driver/1.17.2: mongo-c-driver/1.17.2: ERROR: Package ‘a32ef8708262b64db08875175d509acf31ea84ad’ build failed mongo-c-driver/1.17.2: WARN: Build folder /var/ig/deploy/kapustk/conan-standalone/bamboo/.conan/data/mongo-c-driver/1.17.2///build/a32ef8708262b64db08875175d509acf31ea84ad ERROR: mongo-c-driver/1.17.2: Error in build() method, line 173 cmake = self.configure_cmake() while calling 'configure_cmake’, line 167 self.cmake.configure(build_folder=self.build_subfolder) ConanException: Error 1 while executing cd '/var/ig/deploy/kapustk/conan-standalone/bamboo/.conan/data/mongo-c-driver/1.17.2///build/a32ef8708262b64db08875175d509acf31ea84ad/build_subfolder’ && cmake -G “Unix Makefiles” -DCMAKE_BUILD_TYPE=“RelWithDebInfo” -DCMAKE_SYSTEM_VERSION=“rh7” -DCONAN_IN_LOCAL_CACHE=“ON” -DCONAN_COMPILER=“gcc” -DCONAN_COMPILER_VERSION=“9” -DCONAN_CXX_FLAGS=“-m64” -DCONAN_SHARED_LINKER_FLAGS=“-m64” -DCONAN_C_FLAGS=“-m64” -DBUILD_SHARED_LIBS=“OFF” -DCMAKE_INSTALL_PREFIX="/var/ig/deploy/kapustk/conan-standalone/bamboo/.conan/data/mongo-c-driver/1.17.2///package/a32ef8708262b64db08875175d509acf31ea84ad" -DCMAKE_INSTALL_BINDIR=“bin” -DCMAKE_INSTALL_SBINDIR=“bin” -DCMAKE_INSTALL_LIBEXECDIR=“bin” -DCMAKE_INSTALL_LIBDIR=“lib” -DCMAKE_INSTALL_INCLUDEDIR=“include” -DCMAKE_INSTALL_OLDINCLUDEDIR=“include” -DCMAKE_INSTALL_DATAROOTDIR=“share” -DCONAN_CMAKE_POSITION_INDEPENDENT_CODE=“ON” -DCMAKE_MODULE_PATH=“/var/ig/deploy/kapustk/conan-standalone/bamboo/.conan/data/mongo-c-driver/1.17.2///build/a32ef8708262b64db08875175d509acf31ea84ad” -DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=“ON” -DCONAN_EXPORTED=“1” -DCMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_SKIP=“TRUE” -DENABLE_SSL=“OPENSSL” -DENABLE_SASL=“OFF” -DENABLE_STATIC=“ON” -DENABLE_TESTS=“OFF” -DENABLE_EXAMPLES=“OFF” -DENABLE_SRV=“ON” -DENABLE_MAINTAINER_FLAGS=“OFF” -DENABLE_AUTOMATIC_INIT_AND_CLEANUP=“ON” -DENABLE_CRYPTO_SYSTEM_PROFILE=“OFF” -DENABLE_TRACING=“OFF” -DENABLE_COVERAGE=“OFF” -DENABLE_SHM_COUNTERS=“OFF” -DENABLE_MONGOC=“ON” -DENABLE_BSON=“ON” -DENABLE_SNAPPY=“ON” -DENABLE_ZLIB=“SYSTEM” -DENABLE_ZSTD=“ON” -DENABLE_MAN_PAGES=“False” -DENABLE_HTML_DOCS=“False” -DENABLE_EXTRA_ALIGNMENT=“True” -DENABLE_RDTSCP=“False” -DENABLE_APPLE_FRAMEWORK=“False” -DENABLE_ICU=“ON” -DENABLE_UNINSTALL=“False” -DENABLE_CLIENT_SIDE_ENCRYPTION=“OFF” -DENABLE_MONGODB_AWS_AUTH=“AUTO” -DENABLE_PIC=“True” -DOPENSSL_ROOT_DIR=“/var/ig/deploy/kapustk/conan-standalone/bamboo/.conan/data/openssl/1.1.1h///package/d4b52feeb198b600042932f6fc1011e8f2f5cb83” -Wno-dev ‘/var/ig/deploy/kapustk/conan-standalone/bamboo/.conan/data/mongo-c-driver/1.17.2///build/a32ef8708262b64db08875175d509acf31ea84ad’

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 18 (13 by maintainers)

Most upvoted comments

PKG_CONFIG_PATH is not set when it is set beforehand. https://github.com/conan-io/conan/blob/77927821033595f96c44d9d8ef122fade5805c5e/conans/client/build/cmake.py#L298-L300

@kpk-pl Is that environment variable set by you or your environment by any chance?

@kpk-pl I’ve written my thoughs in https://github.com/conan-io/conan/issues/8089, please amend with your views.