eos icon indicating copy to clipboard operation
eos copied to clipboard

CMake Error at src/bsoncxx/CMakeLists.txt:86 (find_package)

Open mobolun opened this issue 8 years ago • 2 comments

Cloning into 'mongo-cxx-driver'... -- The CXX compiler identification is Clang 4.0.1 -- Check for working CXX compiler: /usr/bin/clang++ -- Check for working CXX compiler: /usr/bin/clang++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done -- The C compiler identification is Clang 4.0.1 -- Check for working C compiler: /usr/bin/clang -- Check for working C compiler: /usr/bin/clang -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Auto-configuring bsoncxx to use MNMLSTC for polyfills since C++17 is inactive CMake Error at src/bsoncxx/CMakeLists.txt:86 (find_package): Could not find a configuration file for package "libbson-static-1.0" that is compatible with requested version "1.10.0".

The following configuration files were considered but not accepted:

/usr/local/lib/cmake/libbson-static-1.0/libbson-static-1.0-config.cmake, version: 1.9.3

-- Configuring incomplete, errors occurred! See also "/mongo-cxx-driver/build/CMakeFiles/CMakeOutput.log". ERROR: Service 'builder' failed to build: The command '/bin/sh -c git clone --depth 1 -b releases/stable https://github.com/mongodb/mongo-cxx-driver && cd mongo-cxx-driver && cmake -H. -Bbuild -G Ninja -DBUILD_SHARED_LIBS=OFF -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr/local && cmake --build build --target install && cd .. && rm -rf mongo-cxx-driver' returned a non-zero code: 1

How can I fix that please?

OS: Docker 18.03.1 / Linux Container

mobolun avatar Jun 18 '18 00:06 mobolun

+1

jimmypark0 avatar Jun 18 '18 07:06 jimmypark0

This has been resolved with PR #4200

ericiles avatar Jun 18 '18 20:06 ericiles