Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[mongo-cxx-driver] build failure #21877

Closed
Dariusz1989 opened this issue Dec 6, 2021 · 20 comments · Fixed by #24083
Closed

[mongo-cxx-driver] build failure #21877

Dariusz1989 opened this issue Dec 6, 2021 · 20 comments · Fixed by #24083
Assignees
Labels
category:port-bug The issue is with a library, which is something the port should already support

Comments

@Dariusz1989
Copy link

Host Environment

  • OS: Windows 10x64
  • Compiler: vs 2019

To Reproduce
Steps to reproduce the behavior:
./vcpkg install mongo-cxx-driver

Failure logs
Call Stack (most recent call first):
installed/x64-windows/share/vcpkg-cmake/vcpkg_cmake_configure.cmake:411 (vcpkg_execute_required_process)
ports/mongo-cxx-driver/portfile.cmake:40 (vcpkg_cmake_configure)
scripts/ports.cmake:142 (include)

Could not find a configuration file for package "libmongoc-1.0" that is
compatible with requested version "1.17.0".
The following configuration files were considered but not accepted:

k:/vcpkg/installed/x64-windows/share/libmongoc-1.0/libmongoc-1.0-config.cmake, version: 1.16.1

Call Stack (most recent call first):
src/mongocxx/CMakeLists.txt:54 (find_package)

Additional context
I've installed mongo-c-driver too. He still fails to build cxx version.

@JackBoosY JackBoosY added the category:port-bug The issue is with a library, which is something the port should already support label Dec 7, 2021
@FrankXie05
Copy link
Contributor

@Dariusz1989 According to your log information, I see that your libmongo version is 1.16.1,

k:/vcpkg/installed/x64-windows/share/libmongoc-1.0/libmongoc-1.0-config.cmake, version: 1.16.1

But our latest supported version is 1.17.0. Please use the "git pull" command and rebuild again. :)

@FrankXie05 FrankXie05 added requires:repro The issue is not currently repro-able and removed category:port-bug The issue is with a library, which is something the port should already support labels Dec 8, 2021
@Dariusz1989
Copy link
Author

Dariusz1989 commented Dec 8, 2021

@FrankXie05 see>

git pull
Updating 63e935d96..7bb175eaf
Fast-forward
 ports/aom/aom-uninitialized-pointer.diff           |  13 ++
 ports/aom/portfile.cmake                           |   7 +-
 ports/aom/vcpkg.json                               |   4 +-
 ports/apr/portfile.cmake                           |   4 +
 ports/apr/vcpkg.json                               |   2 +-
 ports/breakpad/vcpkg.json                          |   3 +-
 ports/cpr/001-cpr-config.patch                     |  39 ++--
 ports/cpr/cprConfig.cmake                          |  31 ----
 ports/cpr/fix-uwp.patch                            |  13 --
 ports/cpr/portfile.cmake                           |  17 +-
 ports/cpr/vcpkg.json                               |   3 +-
 ports/ensmallen/portfile.cmake                     |  10 +-
 ports/ensmallen/vcpkg.json                         |   2 +-
 ...64-Do-not-explicitly-set-X264_API_IMPORTS.patch |   5 +-
 ports/ffmpeg/vcpkg.json                            |   2 +-
 ports/fltk/portfile.cmake                          |  30 ++--
 ports/fltk/vcpkg.json                              |   9 +
 ports/gdal/portfile.cmake                          |   1 +
 ports/gdal/vcpkg.json                              |   2 +-
 ports/imgui-sfml/005-fix-imtextureid-define.patch  |   9 +
 ports/imgui-sfml/portfile.cmake                    |   1 +
 ports/imgui-sfml/vcpkg.json                        |   1 +
 ports/itk/portfile.cmake                           |   1 +
 ports/itk/vcpkg.json                               |   2 +-
 ports/libavif/portfile.cmake                       |   3 -
 ports/libavif/vcpkg.json                           |   2 +-
 ports/libcrafter/portfile.cmake                    |   1 +
 ports/libcrafter/vcpkg.json                        |   1 +
 ports/libdc1394/portfile.cmake                     |  22 +++
 ports/libdc1394/vcpkg.json                         |  10 ++
 ports/libdisasm/CMakeLists.txt                     |   4 +
 ports/libdisasm/portfile.cmake                     |  14 +-
 ports/libdisasm/vcpkg.json                         |  10 +-
 ports/libjxl/disable-jxl_extras.patch              |  14 ++
 ports/libjxl/fix-dependencies.patch                |  10 +-
 ports/libjxl/fix-link-flags.patch                  |  15 ++
 ports/libjxl/portfile.cmake                        |  73 ++++++--
 ports/libjxl/vcpkg.json                            |  11 +-
 ports/libyaml/export-pkgconfig.patch               |  15 ++
 ports/libyaml/portfile.cmake                       |  21 ++-
 ports/libyaml/vcpkg.json                           |  14 +-
 ports/libyuv/deprecated-warning.patch              |  16 ++
 ports/libyuv/portfile.cmake                        |   8 +-
 ports/libyuv/vcpkg.json                            |  11 +-
 ports/lodepng-c/CMakeLists.txt                     |  23 ---
 ports/lodepng-c/portfile.cmake                     |  34 +---
 ports/lodepng-c/vcpkg.json                         |   9 +-
 ports/lodepng/CMakeLists.txt                       |  18 +-
 ports/lodepng/portfile.cmake                       |  31 ++--
 ports/lodepng/usage                                |   9 +
 ports/lodepng/vcpkg.json                           |  15 +-
 ports/mimalloc/fix-cmake.patch                     |   8 +-
 ports/mimalloc/portfile.cmake                      |   8 +-
 ports/mimalloc/vcpkg.json                          |   2 +-
 ports/nowide/portfile.cmake                        |  15 +-
 ports/nowide/vcpkg.json                            |  14 +-
 ports/ompl/0002_Fix_config.patch                   |  11 +-
 ports/ompl/vcpkg.json                              |   4 +-
 ports/omplapp/portfile.cmake                       |   8 +
 ports/omplapp/vcpkg.json                           |   2 +-
 ports/openxr-loader/fix-openxr-sdk-jsoncpp.patch   |   4 +-
 ports/openxr-loader/portfile.cmake                 |  37 ++--
 ports/openxr-loader/vcpkg.json                     |  16 +-
 ports/qca/0002-fix-build-error.patch               |  85 +++++----
 ports/qca/portfile.cmake                           |   4 +-
 ports/qca/vcpkg.json                               |   3 +-
 ports/qt-advanced-docking-system/portfile.cmake    |  13 +-
 ports/qt-advanced-docking-system/vcpkg.json        |  11 +-
 ports/qt/vcpkg.json                                |  47 +++--
 .../qt5-base/cmake/qt_submodule_installation.cmake |   8 +-
 ports/qt5-base/vcpkg.json                          |   2 +-
 ports/qt5-declarative/portfile.cmake               |   3 +-
 ports/qt5-declarative/vcpkg.json                   |   4 +-
 ports/qt5compat/vcpkg.json                         |   2 +-
 ports/qtactiveqt/vcpkg.json                        |   2 +-
 .../qtapplicationmanager/bump-cmake-version.patch  |  11 ++
 ports/qtapplicationmanager/portfile.cmake          |  62 +++++++
 ports/qtapplicationmanager/vcpkg.json              |  29 +++
 ports/qtapplicationmanager/wrapper-fixes.patch     |  56 ++++++
 ports/qtbase/cmake/qt_port_details.cmake           |  90 ++++++----
 ports/qtbase/cocoa.patch                           |  15 --
 ports/qtbase/portfile.cmake                        |   1 -
 ports/qtbase/vcpkg.json                            |   3 +-
 ports/qtcharts/vcpkg.json                          |   2 +-
 ports/qtcoap/vcpkg.json                            |   2 +-
 ports/qtconnectivity/vcpkg.json                    |   2 +-
 ports/qtdatavis3d/vcpkg.json                       |   2 +-
 ports/qtdeclarative/vcpkg.json                     |   2 +-
 ports/qtdeviceutilities/portfile.cmake             |  13 ++
 ports/qtdeviceutilities/vcpkg.json                 |  17 ++
 ports/qtdoc/vcpkg.json                             |   2 +-
 ports/qtimageformats/vcpkg.json                    |   2 +-
 ports/qtinterfaceframework/fix-taglib-search.patch |  13 ++
 ports/qtinterfaceframework/portfile.cmake          |  95 ++++++++++
 ports/qtinterfaceframework/vcpkg.json              |  30 ++++
 ports/qtlocation/portfile.cmake                    |  39 ++--
 ports/qtlocation/vcpkg.json                        |  29 +--
 ports/qtlottie/vcpkg.json                          |   2 +-
 ports/qtmqtt/vcpkg.json                            |   2 +-
 ports/qtmultimedia/vcpkg.json                      |   2 +-
 ports/qtnetworkauth/vcpkg.json                     |   2 +-
 ports/qtopcua/vcpkg.json                           |   2 +-
 ports/qtpositioning/portfile.cmake                 |  18 ++
 ports/qtpositioning/vcpkg.json                     |  27 +++
 ports/qtquick3d/vcpkg.json                         |   2 +-
 ports/qtquicktimeline/vcpkg.json                   |   2 +-
 ports/qtremoteobjects/vcpkg.json                   |   2 +-
 ports/qtscxml/vcpkg.json                           |   2 +-
 ports/qtsensors/vcpkg.json                         |   2 +-
 ports/qtserialbus/vcpkg.json                       |   2 +-
 ports/qtserialport/vcpkg.json                      |   2 +-
 ports/qtshadertools/vcpkg.json                     |   2 +-
 ports/qtsvg/vcpkg.json                             |   2 +-
 ports/qttools/portfile.cmake                       |   6 +-
 ports/qttools/vcpkg.json                           |   2 +-
 ports/qttranslations/vcpkg.json                    |   2 +-
 ports/qtvirtualkeyboard/vcpkg.json                 |   2 +-
 ports/qtwayland/vcpkg.json                         |   2 +-
 ports/qtwebchannel/vcpkg.json                      |   2 +-
 ports/qtwebengine/portfile.cmake                   |   2 +-
 ports/qtwebengine/vcpkg.json                       |   2 +-
 ports/qtwebsockets/vcpkg.json                      |   2 +-
 ports/qtwebview/vcpkg.json                         |   3 +-
 ports/qwt/fix-dynamic-static.patch                 |  15 ++
 ports/qwt/portfile.cmake                           |   2 +
 ports/qwt/vcpkg.json                               |   2 +-
 ports/range-v3/portfile.cmake                      |  17 +-
 ports/range-v3/vcpkg.json                          |  17 +-
 ports/readosm/fix-makefiles.patch                  |   6 +-
 ports/readosm/pc-file.patch                        |  12 ++
 ports/readosm/portfile.cmake                       | 147 +++++++--------
 ports/readosm/vcpkg.json                           |   6 +-
 ports/sdl2-mixer/CMakeLists.txt                    |  10 +-
 ports/sdl2-mixer/fix-featurempg123.patch           |  47 +++++
 ports/sdl2-mixer/portfile.cmake                    |   2 +
 ports/sdl2-mixer/vcpkg.json                        |   2 +-
 ports/skcrypter/portfile.cmake                     |  11 ++
 ports/skcrypter/vcpkg.json                         |   6 +
 ports/spatialite-tools/fix-linux-configure.patch   |  35 ----
 ports/spatialite-tools/fix-makefiles.patch         |  61 +------
 ports/spatialite-tools/portfile.cmake              | 197 ++++++++-------------
 ports/spatialite-tools/vcpkg.json                  |  12 +-
 ports/taglib/portfile.cmake                        |  29 +--
 ports/taglib/vcpkg.json                            |   1 +
 ports/tl-ranges/portfile.cmake                     |  18 ++
 ports/tl-ranges/vcpkg.json                         |  12 ++
 ports/xxhash/portfile.cmake                        |   4 +-
 ports/xxhash/vcpkg.json                            |   1 +
 scripts/ci.baseline.txt                            |  15 +-
 scripts/toolchains/android.cmake                   |   5 +
 versions/a-/aom.json                               |   5 +
 versions/a-/apr.json                               |   5 +
 versions/b-/breakpad.json                          |   5 +
 versions/baseline.json                             | 182 +++++++++++--------
 versions/c-/cpr.json                               |   5 +
 versions/e-/ensmallen.json                         |   5 +
 versions/f-/ffmpeg.json                            |   5 +
 versions/f-/fltk.json                              |   5 +
 versions/g-/gdal.json                              |   5 +
 versions/i-/imgui-sfml.json                        |   5 +
 versions/i-/itk.json                               |   5 +
 versions/l-/libavif.json                           |   5 +
 versions/l-/libcrafter.json                        |   5 +
 versions/l-/libdc1394.json                         |   9 +
 versions/l-/libdisasm.json                         |   5 +
 versions/l-/libjxl.json                            |   5 +
 versions/l-/libyaml.json                           |   5 +
 versions/l-/libyuv.json                            |   5 +
 versions/l-/lodepng-c.json                         |   5 +
 versions/l-/lodepng.json                           |   5 +
 versions/m-/mimalloc.json                          |   5 +
 versions/n-/nowide.json                            |   5 +
 versions/o-/ompl.json                              |   5 +
 versions/o-/omplapp.json                           |   5 +
 versions/o-/openxr-loader.json                     |   5 +
 versions/q-/qca.json                               |   5 +
 versions/q-/qt-advanced-docking-system.json        |   5 +
 versions/q-/qt.json                                |   5 +
 versions/q-/qt5-base.json                          |   5 +
 versions/q-/qt5-declarative.json                   |   5 +
 versions/q-/qt5compat.json                         |   5 +
 versions/q-/qtactiveqt.json                        |   5 +
 versions/q-/qtapplicationmanager.json              |   9 +
 versions/q-/qtbase.json                            |   5 +
 versions/q-/qtcharts.json                          |   5 +
 versions/q-/qtcoap.json                            |   5 +
 versions/q-/qtconnectivity.json                    |   5 +
 versions/q-/qtdatavis3d.json                       |   5 +
 versions/q-/qtdeclarative.json                     |   5 +
 versions/q-/qtdeviceutilities.json                 |   9 +
 versions/q-/qtdoc.json                             |   5 +
 versions/q-/qtimageformats.json                    |   5 +
 versions/q-/qtinterfaceframework.json              |   9 +
 versions/q-/qtlocation.json                        |   5 +
 versions/q-/qtlottie.json                          |   5 +
 versions/q-/qtmqtt.json                            |   5 +
 versions/q-/qtmultimedia.json                      |   5 +
 versions/q-/qtnetworkauth.json                     |   5 +
 versions/q-/qtopcua.json                           |   5 +
 versions/q-/qtpositioning.json                     |   9 +
 versions/q-/qtquick3d.json                         |   5 +
 versions/q-/qtquicktimeline.json                   |   5 +
 versions/q-/qtremoteobjects.json                   |   5 +
 versions/q-/qtscxml.json                           |   5 +
 versions/q-/qtsensors.json                         |   5 +
 versions/q-/qtserialbus.json                       |   5 +
 versions/q-/qtserialport.json                      |   5 +
 versions/q-/qtshadertools.json                     |   5 +
 versions/q-/qtsvg.json                             |   5 +
 versions/q-/qttools.json                           |   5 +
 versions/q-/qttranslations.json                    |   5 +
 versions/q-/qtvirtualkeyboard.json                 |   5 +
 versions/q-/qtwayland.json                         |   5 +
 versions/q-/qtwebchannel.json                      |   5 +
 versions/q-/qtwebengine.json                       |   5 +
 versions/q-/qtwebsockets.json                      |   5 +
 versions/q-/qtwebview.json                         |   5 +
 versions/q-/qwt.json                               |   5 +
 versions/r-/range-v3.json                          |   5 +
 versions/r-/readosm.json                           |   5 +
 versions/s-/sdl2-mixer.json                        |   5 +
 versions/s-/skCrypter.json                         |   9 +
 versions/s-/spatialite-tools.json                  |   5 +
 versions/t-/taglib.json                            |   5 +
 versions/t-/tl-ranges.json                         |   9 +
 versions/x-/xxhash.json                            |   5 +
 226 files changed, 1904 insertions(+), 926 deletions(-)
 create mode 100644 ports/aom/aom-uninitialized-pointer.diff
 delete mode 100644 ports/cpr/cprConfig.cmake
 delete mode 100644 ports/cpr/fix-uwp.patch
 create mode 100644 ports/imgui-sfml/005-fix-imtextureid-define.patch
 create mode 100644 ports/libdc1394/portfile.cmake
 create mode 100644 ports/libdc1394/vcpkg.json
 create mode 100644 ports/libjxl/disable-jxl_extras.patch
 create mode 100644 ports/libjxl/fix-link-flags.patch
 create mode 100644 ports/libyaml/export-pkgconfig.patch
 create mode 100644 ports/libyuv/deprecated-warning.patch
 delete mode 100644 ports/lodepng-c/CMakeLists.txt
 create mode 100644 ports/lodepng/usage
 create mode 100644 ports/qtapplicationmanager/bump-cmake-version.patch
 create mode 100644 ports/qtapplicationmanager/portfile.cmake
 create mode 100644 ports/qtapplicationmanager/vcpkg.json
 create mode 100644 ports/qtapplicationmanager/wrapper-fixes.patch
 delete mode 100644 ports/qtbase/cocoa.patch
 create mode 100644 ports/qtdeviceutilities/portfile.cmake
 create mode 100644 ports/qtdeviceutilities/vcpkg.json
 create mode 100644 ports/qtinterfaceframework/fix-taglib-search.patch
 create mode 100644 ports/qtinterfaceframework/portfile.cmake
 create mode 100644 ports/qtinterfaceframework/vcpkg.json
 create mode 100644 ports/qtpositioning/portfile.cmake
 create mode 100644 ports/qtpositioning/vcpkg.json
 create mode 100644 ports/qwt/fix-dynamic-static.patch
 create mode 100644 ports/readosm/pc-file.patch
 create mode 100644 ports/sdl2-mixer/fix-featurempg123.patch
 create mode 100644 ports/skcrypter/portfile.cmake
 create mode 100644 ports/skcrypter/vcpkg.json
 delete mode 100644 ports/spatialite-tools/fix-linux-configure.patch
 create mode 100644 ports/tl-ranges/portfile.cmake
 create mode 100644 ports/tl-ranges/vcpkg.json
 create mode 100644 versions/l-/libdc1394.json
 create mode 100644 versions/q-/qtapplicationmanager.json
 create mode 100644 versions/q-/qtdeviceutilities.json
 create mode 100644 versions/q-/qtinterfaceframework.json
 create mode 100644 versions/q-/qtpositioning.json
 create mode 100644 versions/s-/skCrypter.json
 create mode 100644 versions/t-/tl-ranges.json
 
 S:\01_Code\Projects\vcpkg>vcpkg install mongo-cxx-driver
Computing installation plan...
The following packages will be built and installed:
    mongo-cxx-driver[core]:x64-windows -> 3.6.5#1
Detecting compiler hash for triplet x64-windows...
Restored 0 packages from C:\Users\Master\AppData\Local\vcpkg\archives in 684.7 us. Use --debug to see more details.
Starting package 1/1: mongo-cxx-driver:x64-windows
Building package mongo-cxx-driver[core]:x64-windows...
-- Using cached mongodb-mongo-cxx-driver-r3.6.5.tar.gz.
-- Cleaning sources at S:/01_Code/Projects/vcpkg/buildtrees/mongo-cxx-driver/src/r3.6.5-215d61d973.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source S:/01_Code/Projects/vcpkg/downloads/mongodb-mongo-cxx-driver-r3.6.5.tar.gz
-- Applying patch fix-uwp.patch
-- Applying patch disable-c2338-mongo-cxx-driver.patch
-- Applying patch disable_test_and_example.patch
-- Applying patch github-654.patch
-- Applying patch fix-dependencies.patch
-- Using source at S:/01_Code/Projects/vcpkg/buildtrees/mongo-cxx-driver/src/r3.6.5-215d61d973.clean
-- Found external ninja('1.10.2').
-- Configuring x64-windows
CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:127 (message):
    Command failed: ninja -v
    Working Directory: S:/01_Code/Projects/vcpkg/buildtrees/mongo-cxx-driver/x64-windows-rel/vcpkg-parallel-configure
    Error code: 1
    See logs for more information:
      S:\01_Code\Projects\vcpkg\buildtrees\mongo-cxx-driver\config-x64-windows-out.log

Call Stack (most recent call first):
  installed/x64-windows/share/vcpkg-cmake/vcpkg_cmake_configure.cmake:411 (vcpkg_execute_required_process)
  ports/mongo-cxx-driver/portfile.cmake:40 (vcpkg_cmake_configure)
  scripts/ports.cmake:142 (include)


Error: Building package mongo-cxx-driver:x64-windows failed with: BUILD_FAILED
Please ensure you're using the latest portfiles with `git pull` and `.\vcpkg update`.
Then check for known issues at:
  https://github.com/microsoft/vcpkg/issues?q=is%3Aissue+is%3Aopen+in%3Atitle+mongo-cxx-driver
You can submit a new issue at:
  https://github.com/microsoft/vcpkg/issues/new?template=report-package-build-failure.md&title=[mongo-cxx-driver]+Build+error
including:
  package: mongo-cxx-driver[core]:x64-windows -> 3.6.5#1
    vcpkg-tool version: 2021-11-24-48b94a6946b8a70abd21529218927fd478d02b6c
    vcpkg-scripts version: 7bb175eaf 2021-12-07 (12 hours ago)

Additionally, attach any relevant sections from the log files above.

Log

[1/2] "S:/01_Code/Projects/vcpkg/downloads/tools/cmake-3.21.1-windows/cmake-3.21.1-windows-i386/bin/cmake.exe" -S "S:/01_Code/Projects/vcpkg/buildtrees/mongo-cxx-driver/src/r3.6.5-215d61d973.clean" -B .. "-DMONGOCXX_HEADER_INSTALL_DIR=include" "-DBSONCXX_HEADER_INSTALL_DIR=include" "-DBSONCXX_POLY_USE_BOOST=1" "-DBUILD_VERSION=3.6.5" "-DCMAKE_MAKE_PROGRAM=C:/Program Files/Microsoft Visual Studio/2022/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/Ninja/ninja.exe" "-DBUILD_SHARED_LIBS=ON" "-DVCPKG_CHAINLOAD_TOOLCHAIN_FILE=S:/01_Code/Projects/vcpkg/scripts/toolchains/windows.cmake" "-DVCPKG_TARGET_TRIPLET=x64-windows" "-DVCPKG_SET_CHARSET_FLAG=ON" "-DVCPKG_PLATFORM_TOOLSET=v143" "-DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON" "-DCMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY=ON" "-DCMAKE_FIND_PACKAGE_NO_SYSTEM_PACKAGE_REGISTRY=ON" "-DCMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_SKIP=TRUE" "-DCMAKE_VERBOSE_MAKEFILE=ON" "-DVCPKG_APPLOCAL_DEPS=OFF" "-DCMAKE_TOOLCHAIN_FILE=S:/01_Code/Projects/vcpkg/scripts/buildsystems/vcpkg.cmake" "-DCMAKE_ERROR_ON_ABSOLUTE_INSTALL_DESTINATION=ON" "-DVCPKG_CXX_FLAGS=" "-DVCPKG_CXX_FLAGS_RELEASE=" "-DVCPKG_CXX_FLAGS_DEBUG=" "-DVCPKG_C_FLAGS=" "-DVCPKG_C_FLAGS_RELEASE=" "-DVCPKG_C_FLAGS_DEBUG=" "-DVCPKG_CRT_LINKAGE=dynamic" "-DVCPKG_LINKER_FLAGS=" "-DVCPKG_LINKER_FLAGS_RELEASE=" "-DVCPKG_LINKER_FLAGS_DEBUG=" "-DVCPKG_TARGET_ARCHITECTURE=x64" "-DCMAKE_INSTALL_LIBDIR:STRING=lib" "-DCMAKE_INSTALL_BINDIR:STRING=bin" "-D_VCPKG_ROOT_DIR=S:/01_Code/Projects/vcpkg" "-D_VCPKG_INSTALLED_DIR=S:/01_Code/Projects/vcpkg/installed" "-DVCPKG_MANIFEST_INSTALL=OFF" "-DCMAKE_DISABLE_SOURCE_CHANGES=ON" -G "Ninja" "-DCMAKE_BUILD_TYPE=Release" "-DCMAKE_INSTALL_PREFIX=S:/01_Code/Projects/vcpkg/packages/mongo-cxx-driver_x64-windows"
FAILED: ../CMakeCache.txt 
"S:/01_Code/Projects/vcpkg/downloads/tools/cmake-3.21.1-windows/cmake-3.21.1-windows-i386/bin/cmake.exe" -S "S:/01_Code/Projects/vcpkg/buildtrees/mongo-cxx-driver/src/r3.6.5-215d61d973.clean" -B .. "-DMONGOCXX_HEADER_INSTALL_DIR=include" "-DBSONCXX_HEADER_INSTALL_DIR=include" "-DBSONCXX_POLY_USE_BOOST=1" "-DBUILD_VERSION=3.6.5" "-DCMAKE_MAKE_PROGRAM=C:/Program Files/Microsoft Visual Studio/2022/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/Ninja/ninja.exe" "-DBUILD_SHARED_LIBS=ON" "-DVCPKG_CHAINLOAD_TOOLCHAIN_FILE=S:/01_Code/Projects/vcpkg/scripts/toolchains/windows.cmake" "-DVCPKG_TARGET_TRIPLET=x64-windows" "-DVCPKG_SET_CHARSET_FLAG=ON" "-DVCPKG_PLATFORM_TOOLSET=v143" "-DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON" "-DCMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY=ON" "-DCMAKE_FIND_PACKAGE_NO_SYSTEM_PACKAGE_REGISTRY=ON" "-DCMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_SKIP=TRUE" "-DCMAKE_VERBOSE_MAKEFILE=ON" "-DVCPKG_APPLOCAL_DEPS=OFF" "-DCMAKE_TOOLCHAIN_FILE=S:/01_Code/Projects/vcpkg/scripts/buildsystems/vcpkg.cmake" "-DCMAKE_ERROR_ON_ABSOLUTE_INSTALL_DESTINATION=ON" "-DVCPKG_CXX_FLAGS=" "-DVCPKG_CXX_FLAGS_RELEASE=" "-DVCPKG_CXX_FLAGS_DEBUG=" "-DVCPKG_C_FLAGS=" "-DVCPKG_C_FLAGS_RELEASE=" "-DVCPKG_C_FLAGS_DEBUG=" "-DVCPKG_CRT_LINKAGE=dynamic" "-DVCPKG_LINKER_FLAGS=" "-DVCPKG_LINKER_FLAGS_RELEASE=" "-DVCPKG_LINKER_FLAGS_DEBUG=" "-DVCPKG_TARGET_ARCHITECTURE=x64" "-DCMAKE_INSTALL_LIBDIR:STRING=lib" "-DCMAKE_INSTALL_BINDIR:STRING=bin" "-D_VCPKG_ROOT_DIR=S:/01_Code/Projects/vcpkg" "-D_VCPKG_INSTALLED_DIR=S:/01_Code/Projects/vcpkg/installed" "-DVCPKG_MANIFEST_INSTALL=OFF" "-DCMAKE_DISABLE_SOURCE_CHANGES=ON" -G "Ninja" "-DCMAKE_BUILD_TYPE=Release" "-DCMAKE_INSTALL_PREFIX=S:/01_Code/Projects/vcpkg/packages/mongo-cxx-driver_x64-windows"
-- The CXX compiler identification is MSVC 19.30.30705.0
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.30.30705/bin/Hostx64/x64/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- The C compiler identification is MSVC 19.30.30705.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.30.30705/bin/Hostx64/x64/cl.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
bsoncxx version: 3.6.5
CMake Warning at S:/01_Code/Projects/vcpkg/installed/x64-windows/share/libbson-1.0/libbson-1.0-config.cmake:15 (message):
  This CMake target is deprecated.  Use 'mongo::bson_shared' instead.
  Consult the example projects for further details.
Call Stack (most recent call first):
  S:/01_Code/Projects/vcpkg/scripts/buildsystems/vcpkg.cmake:788 (_find_package)
  src/bsoncxx/CMakeLists.txt:98 (find_package)


found libbson version 1.16.1
-- Found Boost: S:/01_Code/Projects/vcpkg/installed/x64-windows/include (found suitable version "1.77.0", minimum required is "1.56.0")  
-- Performing Test COMPILER_HAS_DEPRECATED_ATTR
-- Performing Test COMPILER_HAS_DEPRECATED_ATTR - Failed
mongocxx version: 3.6.5
CMake Error at S:/01_Code/Projects/vcpkg/scripts/buildsystems/vcpkg.cmake:788 (_find_package):
  Could not find a configuration file for package "libmongoc-1.0" that is
  compatible with requested version "1.17.0".

  The following configuration files were considered but not accepted:

    S:/01_Code/Projects/vcpkg/installed/x64-windows/share/libmongoc-1.0/libmongoc-1.0-config.cmake, version: 1.16.1

Call Stack (most recent call first):
  src/mongocxx/CMakeLists.txt:54 (find_package)


-- Configuring incomplete, errors occurred!
See also "S:/01_Code/Projects/vcpkg/buildtrees/mongo-cxx-driver/x64-windows-rel/CMakeFiles/CMakeOutput.log".
See also "S:/01_Code/Projects/vcpkg/buildtrees/mongo-cxx-driver/x64-windows-rel/CMakeFiles/CMakeError.log".
[2/2] "S:/01_Code/Projects/vcpkg/downloads/tools/cmake-3.21.1-windows/cmake-3.21.1-windows-i386/bin/cmake.exe" -S "S:/01_Code/Projects/vcpkg/buildtrees/mongo-cxx-driver/src/r3.6.5-215d61d973.clean" -B "../../x64-windows-dbg" "-DMONGOCXX_HEADER_INSTALL_DIR=include" "-DBSONCXX_HEADER_INSTALL_DIR=include" "-DBSONCXX_POLY_USE_BOOST=1" "-DBUILD_VERSION=3.6.5" "-DCMAKE_MAKE_PROGRAM=C:/Program Files/Microsoft Visual Studio/2022/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/Ninja/ninja.exe" "-DBUILD_SHARED_LIBS=ON" "-DVCPKG_CHAINLOAD_TOOLCHAIN_FILE=S:/01_Code/Projects/vcpkg/scripts/toolchains/windows.cmake" "-DVCPKG_TARGET_TRIPLET=x64-windows" "-DVCPKG_SET_CHARSET_FLAG=ON" "-DVCPKG_PLATFORM_TOOLSET=v143" "-DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON" "-DCMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY=ON" "-DCMAKE_FIND_PACKAGE_NO_SYSTEM_PACKAGE_REGISTRY=ON" "-DCMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_SKIP=TRUE" "-DCMAKE_VERBOSE_MAKEFILE=ON" "-DVCPKG_APPLOCAL_DEPS=OFF" "-DCMAKE_TOOLCHAIN_FILE=S:/01_Code/Projects/vcpkg/scripts/buildsystems/vcpkg.cmake" "-DCMAKE_ERROR_ON_ABSOLUTE_INSTALL_DESTINATION=ON" "-DVCPKG_CXX_FLAGS=" "-DVCPKG_CXX_FLAGS_RELEASE=" "-DVCPKG_CXX_FLAGS_DEBUG=" "-DVCPKG_C_FLAGS=" "-DVCPKG_C_FLAGS_RELEASE=" "-DVCPKG_C_FLAGS_DEBUG=" "-DVCPKG_CRT_LINKAGE=dynamic" "-DVCPKG_LINKER_FLAGS=" "-DVCPKG_LINKER_FLAGS_RELEASE=" "-DVCPKG_LINKER_FLAGS_DEBUG=" "-DVCPKG_TARGET_ARCHITECTURE=x64" "-DCMAKE_INSTALL_LIBDIR:STRING=lib" "-DCMAKE_INSTALL_BINDIR:STRING=bin" "-D_VCPKG_ROOT_DIR=S:/01_Code/Projects/vcpkg" "-D_VCPKG_INSTALLED_DIR=S:/01_Code/Projects/vcpkg/installed" "-DVCPKG_MANIFEST_INSTALL=OFF" "-DCMAKE_DISABLE_SOURCE_CHANGES=ON" -G "Ninja" "-DCMAKE_BUILD_TYPE=Debug" "-DCMAKE_INSTALL_PREFIX=S:/01_Code/Projects/vcpkg/packages/mongo-cxx-driver_x64-windows/debug"
FAILED: ../../x64-windows-dbg/CMakeCache.txt 
"S:/01_Code/Projects/vcpkg/downloads/tools/cmake-3.21.1-windows/cmake-3.21.1-windows-i386/bin/cmake.exe" -S "S:/01_Code/Projects/vcpkg/buildtrees/mongo-cxx-driver/src/r3.6.5-215d61d973.clean" -B "../../x64-windows-dbg" "-DMONGOCXX_HEADER_INSTALL_DIR=include" "-DBSONCXX_HEADER_INSTALL_DIR=include" "-DBSONCXX_POLY_USE_BOOST=1" "-DBUILD_VERSION=3.6.5" "-DCMAKE_MAKE_PROGRAM=C:/Program Files/Microsoft Visual Studio/2022/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/Ninja/ninja.exe" "-DBUILD_SHARED_LIBS=ON" "-DVCPKG_CHAINLOAD_TOOLCHAIN_FILE=S:/01_Code/Projects/vcpkg/scripts/toolchains/windows.cmake" "-DVCPKG_TARGET_TRIPLET=x64-windows" "-DVCPKG_SET_CHARSET_FLAG=ON" "-DVCPKG_PLATFORM_TOOLSET=v143" "-DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON" "-DCMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY=ON" "-DCMAKE_FIND_PACKAGE_NO_SYSTEM_PACKAGE_REGISTRY=ON" "-DCMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_SKIP=TRUE" "-DCMAKE_VERBOSE_MAKEFILE=ON" "-DVCPKG_APPLOCAL_DEPS=OFF" "-DCMAKE_TOOLCHAIN_FILE=S:/01_Code/Projects/vcpkg/scripts/buildsystems/vcpkg.cmake" "-DCMAKE_ERROR_ON_ABSOLUTE_INSTALL_DESTINATION=ON" "-DVCPKG_CXX_FLAGS=" "-DVCPKG_CXX_FLAGS_RELEASE=" "-DVCPKG_CXX_FLAGS_DEBUG=" "-DVCPKG_C_FLAGS=" "-DVCPKG_C_FLAGS_RELEASE=" "-DVCPKG_C_FLAGS_DEBUG=" "-DVCPKG_CRT_LINKAGE=dynamic" "-DVCPKG_LINKER_FLAGS=" "-DVCPKG_LINKER_FLAGS_RELEASE=" "-DVCPKG_LINKER_FLAGS_DEBUG=" "-DVCPKG_TARGET_ARCHITECTURE=x64" "-DCMAKE_INSTALL_LIBDIR:STRING=lib" "-DCMAKE_INSTALL_BINDIR:STRING=bin" "-D_VCPKG_ROOT_DIR=S:/01_Code/Projects/vcpkg" "-D_VCPKG_INSTALLED_DIR=S:/01_Code/Projects/vcpkg/installed" "-DVCPKG_MANIFEST_INSTALL=OFF" "-DCMAKE_DISABLE_SOURCE_CHANGES=ON" -G "Ninja" "-DCMAKE_BUILD_TYPE=Debug" "-DCMAKE_INSTALL_PREFIX=S:/01_Code/Projects/vcpkg/packages/mongo-cxx-driver_x64-windows/debug"
-- The CXX compiler identification is MSVC 19.30.30705.0
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.30.30705/bin/Hostx64/x64/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- The C compiler identification is MSVC 19.30.30705.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.30.30705/bin/Hostx64/x64/cl.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
bsoncxx version: 3.6.5
CMake Warning at S:/01_Code/Projects/vcpkg/installed/x64-windows/share/libbson-1.0/libbson-1.0-config.cmake:15 (message):
  This CMake target is deprecated.  Use 'mongo::bson_shared' instead.
  Consult the example projects for further details.
Call Stack (most recent call first):
  S:/01_Code/Projects/vcpkg/scripts/buildsystems/vcpkg.cmake:788 (_find_package)
  src/bsoncxx/CMakeLists.txt:98 (find_package)


found libbson version 1.16.1
-- Found Boost: S:/01_Code/Projects/vcpkg/installed/x64-windows/include (found suitable version "1.77.0", minimum required is "1.56.0")  
-- Performing Test COMPILER_HAS_DEPRECATED_ATTR
-- Performing Test COMPILER_HAS_DEPRECATED_ATTR - Failed
mongocxx version: 3.6.5
CMake Error at S:/01_Code/Projects/vcpkg/scripts/buildsystems/vcpkg.cmake:788 (_find_package):
  Could not find a configuration file for package "libmongoc-1.0" that is
  compatible with requested version "1.17.0".

  The following configuration files were considered but not accepted:

    S:/01_Code/Projects/vcpkg/installed/x64-windows/share/libmongoc-1.0/libmongoc-1.0-config.cmake, version: 1.16.1

Call Stack (most recent call first):
  src/mongocxx/CMakeLists.txt:54 (find_package)


-- Configuring incomplete, errors occurred!
See also "S:/01_Code/Projects/vcpkg/buildtrees/mongo-cxx-driver/x64-windows-dbg/CMakeFiles/CMakeOutput.log".
See also "S:/01_Code/Projects/vcpkg/buildtrees/mongo-cxx-driver/x64-windows-dbg/CMakeFiles/CMakeError.log".
ninja: build stopped: subcommand failed.

Sadly still does not work :- (

@FrankXie05
Copy link
Contributor

@Dariusz1989 Can you provide me with the following file:

k:/vcpkg/installed/x64-windows/share/libmongoc-1.0/libmongoc-1.0-config.cmake
S:\01_Code\Projects\vcpkg\buildtrees\mongo-cxx-driver\config-x64-windows-out.log

@Dariusz1989
Copy link
Author

@FrankXie05
Copy link
Contributor

@Dariusz1989
I see that the version in your source file is 1.16.1, which is the main cause of build failure, so you can re-clone a new vcpkg library and build. :)

set (MONGOC_MAJOR_VERSION 1)
set (MONGOC_MINOR_VERSION 16)
set (MONGOC_MICRO_VERSION 1)
set (MONGOC_VERSION 1.16.1)

find_package (libbson-1.0 "1.16" REQUIRED)

@Dariusz1989
Copy link
Author

Dariusz1989 commented Dec 8, 2021

Hey
Uuuuuuuuu I've no idea what to do :- D I only ever used git desktop/clion git/pycharm git :- D
So to reclone it...
Do I Delete my old vpkg folder & redownload vpkg & install all libs again from 0 ?
Or is there command I run from within vcpkg like git pull/git re-clone ?s
Should I not be able to just update the lib from 1.16.1 to 1.17.0 via vpckg ?

@FrankXie05
Copy link
Contributor

@Dariusz1989 You can delete the vcpkg folder (if you are not using it), or create a new folder, open “powershell” in the folder directory, and and run the following commands:

> git clone https://github.com/microsoft/vcpkg
> .\vcpkg\bootstrap-vcpkg.bat
> .\vcpkg\vcpkg install [packages name]

Then you can use the downloaded packages. :)

@JackBoosY
Copy link
Contributor

Please note that if you download vcpkg instead of clone vcpkg, all version control in vcpkg will not work!
And if you met the network issue, please see https://gitee.com/jackboosy/vcpkg/issues/I44496.

@Dariusz1989
Copy link
Author

@FrankXie05 Thank you! Yup running it all from scratch worked. I think I initially downloaded zip from git & used that. So now with git clont seems to work... Thanks again!
I noticed that he install
-- Building x64-windows-dbg
-- Building x64-windows-rel
Is there a way to build releaseWithDebInfo option?

@Dariusz1989
Copy link
Author

Ok back with more issues...
I tried running
vcpkg install mongo-cxx-driver[std-experimental]
Here is my log:

Computing installation plan...
A suitable version of cmake was not found (required v3.21.1). Downloading portable cmake v3.21.1...
Downloading cmake...
  https://github.com/Kitware/CMake/releases/download/v3.21.1/cmake-3.21.1-windows-i386.zip -> S:\01_Code\Projects\vcpkg2\vcpkg\downloads\cmake-3.21.1-windows-i386.zip
Extracting cmake...
A suitable version of 7zip was not found (required v19.0.0). Downloading portable 7zip v19.0.0...
Downloading 7zip...
  https://www.7-zip.org/a/7z1900-x64.msi -> S:\01_Code\Projects\vcpkg2\vcpkg\downloads\7z1900-x64.msi
Extracting 7zip...
The following packages will be built and installed:
  * boost-assert[core]:x64-windows -> 1.77.0
  * boost-config[core]:x64-windows -> 1.77.0#2
  * boost-core[core]:x64-windows -> 1.77.0
  * boost-detail[core]:x64-windows -> 1.77.0
  * boost-io[core]:x64-windows -> 1.77.0
  * boost-move[core]:x64-windows -> 1.77.0
  * boost-optional[core]:x64-windows -> 1.77.0
  * boost-predef[core]:x64-windows -> 1.77.0
  * boost-preprocessor[core]:x64-windows -> 1.77.0
  * boost-smart-ptr[core]:x64-windows -> 1.77.0
  * boost-static-assert[core]:x64-windows -> 1.77.0
  * boost-throw-exception[core]:x64-windows -> 1.77.0
  * boost-type-traits[core]:x64-windows -> 1.77.0
  * boost-uninstall[core]:x64-windows -> 1.77.0
  * boost-utility[core]:x64-windows -> 1.77.0
  * boost-vcpkg-helpers[core]:x64-windows -> 1.77.0
  * boost-winapi[core]:x64-windows -> 1.77.0
  * libbson[core]:x64-windows -> 1.17.6#1
  * mongo-c-driver[core]:x64-windows -> 1.17.6#2
    mongo-cxx-driver[core,std-experimental]:x64-windows -> 3.6.5#1
  * vcpkg-cmake[core]:x64-windows -> 2021-09-13
  * vcpkg-cmake-config[core]:x64-windows -> 2021-11-01
  * zlib[core]:x64-windows -> 1.2.11#13
Additional packages (*) will be modified to complete this operation.
Detecting compiler hash for triplet x64-windows...
A suitable version of powershell-core was not found (required v7.2.0). Downloading portable powershell-core v7.2.0...
Downloading powershell-core...
  https://github.com/PowerShell/PowerShell/releases/download/v7.2.0/PowerShell-7.2.0-win-x86.zip -> S:\01_Code\Projects\vcpkg2\vcpkg\downloads\PowerShell-7.2.0-win-x86.zip
Extracting powershell-core...
Restored 22 packages from C:\Users\Master\AppData\Local\vcpkg\archives in 543.1 ms. Use --debug to see more details.
Starting package 1/23: boost-uninstall:x64-windows
Installing package boost-uninstall[core]:x64-windows...
Elapsed time for package boost-uninstall:x64-windows: 5.575 ms
Starting package 2/23: boost-vcpkg-helpers:x64-windows
Installing package boost-vcpkg-helpers[core]:x64-windows...
Elapsed time for package boost-vcpkg-helpers:x64-windows: 4.206 ms
Starting package 3/23: boost-config:x64-windows
Installing package boost-config[core]:x64-windows...
Elapsed time for package boost-config:x64-windows: 132.9 ms
Starting package 4/23: boost-assert:x64-windows
Installing package boost-assert[core]:x64-windows...
Elapsed time for package boost-assert:x64-windows: 6.684 ms
Starting package 5/23: boost-static-assert:x64-windows
Installing package boost-static-assert[core]:x64-windows...
Elapsed time for package boost-static-assert:x64-windows: 6.059 ms
Starting package 6/23: boost-core:x64-windows
Installing package boost-core[core]:x64-windows...
Elapsed time for package boost-core:x64-windows: 31.39 ms
Starting package 7/23: boost-preprocessor:x64-windows
Installing package boost-preprocessor[core]:x64-windows...
Elapsed time for package boost-preprocessor:x64-windows: 241.3 ms
Starting package 8/23: boost-type-traits:x64-windows
Installing package boost-type-traits[core]:x64-windows...
Elapsed time for package boost-type-traits:x64-windows: 105.2 ms
Starting package 9/23: boost-detail:x64-windows
Installing package boost-detail[core]:x64-windows...
Elapsed time for package boost-detail:x64-windows: 18.73 ms
Starting package 10/23: boost-io:x64-windows
Installing package boost-io[core]:x64-windows...
Elapsed time for package boost-io:x64-windows: 10.75 ms
Starting package 11/23: boost-predef:x64-windows
Installing package boost-predef[core]:x64-windows...
Elapsed time for package boost-predef:x64-windows: 92.56 ms
Starting package 12/23: boost-winapi:x64-windows
Installing package boost-winapi[core]:x64-windows...
Elapsed time for package boost-winapi:x64-windows: 68.53 ms
Starting package 13/23: boost-move:x64-windows
Installing package boost-move[core]:x64-windows...
Elapsed time for package boost-move:x64-windows: 30.17 ms
Starting package 14/23: boost-throw-exception:x64-windows
Installing package boost-throw-exception[core]:x64-windows...
Elapsed time for package boost-throw-exception:x64-windows: 8.861 ms
Starting package 15/23: boost-utility:x64-windows
Installing package boost-utility[core]:x64-windows...
Elapsed time for package boost-utility:x64-windows: 20.67 ms
Starting package 16/23: boost-optional:x64-windows
Installing package boost-optional[core]:x64-windows...
Elapsed time for package boost-optional:x64-windows: 16.2 ms
Starting package 17/23: boost-smart-ptr:x64-windows
Installing package boost-smart-ptr[core]:x64-windows...
Elapsed time for package boost-smart-ptr:x64-windows: 63.37 ms
Starting package 18/23: vcpkg-cmake:x64-windows
Installing package vcpkg-cmake[core]:x64-windows...
Elapsed time for package vcpkg-cmake:x64-windows: 10.87 ms
Starting package 19/23: vcpkg-cmake-config:x64-windows
Installing package vcpkg-cmake-config[core]:x64-windows...
Elapsed time for package vcpkg-cmake-config:x64-windows: 8.145 ms
Starting package 20/23: libbson:x64-windows
Installing package libbson[core]:x64-windows...
Elapsed time for package libbson:x64-windows: 46.34 ms
Starting package 21/23: zlib:x64-windows
Installing package zlib[core]:x64-windows...
Elapsed time for package zlib:x64-windows: 24.99 ms
Starting package 22/23: mongo-c-driver:x64-windows
Installing package mongo-c-driver[core]:x64-windows...
Elapsed time for package mongo-c-driver:x64-windows: 72.12 ms
Starting package 23/23: mongo-cxx-driver:x64-windows
Building package mongo-cxx-driver[core,std-experimental]:x64-windows...
-- Downloading https://github.com/mongodb/mongo-cxx-driver/archive/r3.6.5.tar.gz -> mongodb-mongo-cxx-driver-r3.6.5.tar.gz...
-- Extracting source S:/01_Code/Projects/vcpkg2/vcpkg/downloads/mongodb-mongo-cxx-driver-r3.6.5.tar.gz
-- Applying patch fix-uwp.patch
-- Applying patch disable-c2338-mongo-cxx-driver.patch
-- Applying patch disable_test_and_example.patch
-- Applying patch github-654.patch
-- Applying patch fix-dependencies.patch
-- Using source at S:/01_Code/Projects/vcpkg2/vcpkg/buildtrees/mongo-cxx-driver/src/r3.6.5-215d61d973.clean
-- Found external ninja('1.10.2').
-- Configuring x64-windows
CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:127 (message):
    Command failed: ninja -v
    Working Directory: S:/01_Code/Projects/vcpkg2/vcpkg/buildtrees/mongo-cxx-driver/x64-windows-rel/vcpkg-parallel-configure
    Error code: 1
    See logs for more information:
      S:\01_Code\Projects\vcpkg2\vcpkg\buildtrees\mongo-cxx-driver\config-x64-windows-out.log

Call Stack (most recent call first):
  installed/x64-windows/share/vcpkg-cmake/vcpkg_cmake_configure.cmake:411 (vcpkg_execute_required_process)
  ports/mongo-cxx-driver/portfile.cmake:40 (vcpkg_cmake_configure)
  scripts/ports.cmake:142 (include)


Error: Building package mongo-cxx-driver:x64-windows failed with: BUILD_FAILED
Please ensure you're using the latest portfiles with `git pull` and `.\vcpkg update`.
Then check for known issues at:
  https://github.com/microsoft/vcpkg/issues?q=is%3Aissue+is%3Aopen+in%3Atitle+mongo-cxx-driver
You can submit a new issue at:
  https://github.com/microsoft/vcpkg/issues/new?template=report-package-build-failure.md&title=[mongo-cxx-driver]+Build+error
including:
  package: mongo-cxx-driver[core,std-experimental]:x64-windows -> 3.6.5#1
    vcpkg-tool version: 2021-11-24-48b94a6946b8a70abd21529218927fd478d02b6c
    vcpkg-scripts version: 7bb175eaf 2021-12-07 (19 hours ago)

Additionally, attach any relevant sections from the log files above.

My questions are.... :

  1. Why its failing :- D
  2. Why does he install boost ? I though he is meant to use std::experimental instead of boost?

More logs:

[1/2] "S:/01_Code/Projects/vcpkg2/vcpkg/downloads/tools/cmake-3.21.1-windows/cmake-3.21.1-windows-i386/bin/cmake.exe" -S "S:/01_Code/Projects/vcpkg2/vcpkg/buildtrees/mongo-cxx-driver/src/r3.6.5-215d61d973.clean" -B .. "-DMONGOCXX_HEADER_INSTALL_DIR=include" "-DBSONCXX_HEADER_INSTALL_DIR=include" "-DBSONCXX_POLY_USE_STD_EXPERIMENTAL=1" "-DBUILD_VERSION=3.6.5" "-DCMAKE_MAKE_PROGRAM=C:/Program Files/Microsoft Visual Studio/2022/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/Ninja/ninja.exe" "-DBUILD_SHARED_LIBS=ON" "-DVCPKG_CHAINLOAD_TOOLCHAIN_FILE=S:/01_Code/Projects/vcpkg2/vcpkg/scripts/toolchains/windows.cmake" "-DVCPKG_TARGET_TRIPLET=x64-windows" "-DVCPKG_SET_CHARSET_FLAG=ON" "-DVCPKG_PLATFORM_TOOLSET=v143" "-DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON" "-DCMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY=ON" "-DCMAKE_FIND_PACKAGE_NO_SYSTEM_PACKAGE_REGISTRY=ON" "-DCMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_SKIP=TRUE" "-DCMAKE_VERBOSE_MAKEFILE=ON" "-DVCPKG_APPLOCAL_DEPS=OFF" "-DCMAKE_TOOLCHAIN_FILE=S:/01_Code/Projects/vcpkg2/vcpkg/scripts/buildsystems/vcpkg.cmake" "-DCMAKE_ERROR_ON_ABSOLUTE_INSTALL_DESTINATION=ON" "-DVCPKG_CXX_FLAGS=" "-DVCPKG_CXX_FLAGS_RELEASE=" "-DVCPKG_CXX_FLAGS_DEBUG=" "-DVCPKG_C_FLAGS=" "-DVCPKG_C_FLAGS_RELEASE=" "-DVCPKG_C_FLAGS_DEBUG=" "-DVCPKG_CRT_LINKAGE=dynamic" "-DVCPKG_LINKER_FLAGS=" "-DVCPKG_LINKER_FLAGS_RELEASE=" "-DVCPKG_LINKER_FLAGS_DEBUG=" "-DVCPKG_TARGET_ARCHITECTURE=x64" "-DCMAKE_INSTALL_LIBDIR:STRING=lib" "-DCMAKE_INSTALL_BINDIR:STRING=bin" "-D_VCPKG_ROOT_DIR=S:/01_Code/Projects/vcpkg2/vcpkg" "-D_VCPKG_INSTALLED_DIR=S:/01_Code/Projects/vcpkg2/vcpkg/installed" "-DVCPKG_MANIFEST_INSTALL=OFF" "-DCMAKE_DISABLE_SOURCE_CHANGES=ON" -G "Ninja" "-DCMAKE_BUILD_TYPE=Release" "-DCMAKE_INSTALL_PREFIX=S:/01_Code/Projects/vcpkg2/vcpkg/packages/mongo-cxx-driver_x64-windows"
FAILED: ../CMakeCache.txt 
"S:/01_Code/Projects/vcpkg2/vcpkg/downloads/tools/cmake-3.21.1-windows/cmake-3.21.1-windows-i386/bin/cmake.exe" -S "S:/01_Code/Projects/vcpkg2/vcpkg/buildtrees/mongo-cxx-driver/src/r3.6.5-215d61d973.clean" -B .. "-DMONGOCXX_HEADER_INSTALL_DIR=include" "-DBSONCXX_HEADER_INSTALL_DIR=include" "-DBSONCXX_POLY_USE_STD_EXPERIMENTAL=1" "-DBUILD_VERSION=3.6.5" "-DCMAKE_MAKE_PROGRAM=C:/Program Files/Microsoft Visual Studio/2022/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/Ninja/ninja.exe" "-DBUILD_SHARED_LIBS=ON" "-DVCPKG_CHAINLOAD_TOOLCHAIN_FILE=S:/01_Code/Projects/vcpkg2/vcpkg/scripts/toolchains/windows.cmake" "-DVCPKG_TARGET_TRIPLET=x64-windows" "-DVCPKG_SET_CHARSET_FLAG=ON" "-DVCPKG_PLATFORM_TOOLSET=v143" "-DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON" "-DCMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY=ON" "-DCMAKE_FIND_PACKAGE_NO_SYSTEM_PACKAGE_REGISTRY=ON" "-DCMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_SKIP=TRUE" "-DCMAKE_VERBOSE_MAKEFILE=ON" "-DVCPKG_APPLOCAL_DEPS=OFF" "-DCMAKE_TOOLCHAIN_FILE=S:/01_Code/Projects/vcpkg2/vcpkg/scripts/buildsystems/vcpkg.cmake" "-DCMAKE_ERROR_ON_ABSOLUTE_INSTALL_DESTINATION=ON" "-DVCPKG_CXX_FLAGS=" "-DVCPKG_CXX_FLAGS_RELEASE=" "-DVCPKG_CXX_FLAGS_DEBUG=" "-DVCPKG_C_FLAGS=" "-DVCPKG_C_FLAGS_RELEASE=" "-DVCPKG_C_FLAGS_DEBUG=" "-DVCPKG_CRT_LINKAGE=dynamic" "-DVCPKG_LINKER_FLAGS=" "-DVCPKG_LINKER_FLAGS_RELEASE=" "-DVCPKG_LINKER_FLAGS_DEBUG=" "-DVCPKG_TARGET_ARCHITECTURE=x64" "-DCMAKE_INSTALL_LIBDIR:STRING=lib" "-DCMAKE_INSTALL_BINDIR:STRING=bin" "-D_VCPKG_ROOT_DIR=S:/01_Code/Projects/vcpkg2/vcpkg" "-D_VCPKG_INSTALLED_DIR=S:/01_Code/Projects/vcpkg2/vcpkg/installed" "-DVCPKG_MANIFEST_INSTALL=OFF" "-DCMAKE_DISABLE_SOURCE_CHANGES=ON" -G "Ninja" "-DCMAKE_BUILD_TYPE=Release" "-DCMAKE_INSTALL_PREFIX=S:/01_Code/Projects/vcpkg2/vcpkg/packages/mongo-cxx-driver_x64-windows"
-- The CXX compiler identification is MSVC 19.30.30705.0
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.30.30705/bin/Hostx64/x64/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- The C compiler identification is MSVC 19.30.30705.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.30.30705/bin/Hostx64/x64/cl.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
CMake Error at src/bsoncxx/CMakeLists.txt:67 (message):
  Can only use BSONCXX_POLY_USE_STD_EXPERIMENTAL if CMAKE_CXX_STANDARD is 14
  or higher


-- Configuring incomplete, errors occurred!
See also "S:/01_Code/Projects/vcpkg2/vcpkg/buildtrees/mongo-cxx-driver/x64-windows-rel/CMakeFiles/CMakeOutput.log".
[2/2] "S:/01_Code/Projects/vcpkg2/vcpkg/downloads/tools/cmake-3.21.1-windows/cmake-3.21.1-windows-i386/bin/cmake.exe" -S "S:/01_Code/Projects/vcpkg2/vcpkg/buildtrees/mongo-cxx-driver/src/r3.6.5-215d61d973.clean" -B "../../x64-windows-dbg" "-DMONGOCXX_HEADER_INSTALL_DIR=include" "-DBSONCXX_HEADER_INSTALL_DIR=include" "-DBSONCXX_POLY_USE_STD_EXPERIMENTAL=1" "-DBUILD_VERSION=3.6.5" "-DCMAKE_MAKE_PROGRAM=C:/Program Files/Microsoft Visual Studio/2022/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/Ninja/ninja.exe" "-DBUILD_SHARED_LIBS=ON" "-DVCPKG_CHAINLOAD_TOOLCHAIN_FILE=S:/01_Code/Projects/vcpkg2/vcpkg/scripts/toolchains/windows.cmake" "-DVCPKG_TARGET_TRIPLET=x64-windows" "-DVCPKG_SET_CHARSET_FLAG=ON" "-DVCPKG_PLATFORM_TOOLSET=v143" "-DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON" "-DCMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY=ON" "-DCMAKE_FIND_PACKAGE_NO_SYSTEM_PACKAGE_REGISTRY=ON" "-DCMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_SKIP=TRUE" "-DCMAKE_VERBOSE_MAKEFILE=ON" "-DVCPKG_APPLOCAL_DEPS=OFF" "-DCMAKE_TOOLCHAIN_FILE=S:/01_Code/Projects/vcpkg2/vcpkg/scripts/buildsystems/vcpkg.cmake" "-DCMAKE_ERROR_ON_ABSOLUTE_INSTALL_DESTINATION=ON" "-DVCPKG_CXX_FLAGS=" "-DVCPKG_CXX_FLAGS_RELEASE=" "-DVCPKG_CXX_FLAGS_DEBUG=" "-DVCPKG_C_FLAGS=" "-DVCPKG_C_FLAGS_RELEASE=" "-DVCPKG_C_FLAGS_DEBUG=" "-DVCPKG_CRT_LINKAGE=dynamic" "-DVCPKG_LINKER_FLAGS=" "-DVCPKG_LINKER_FLAGS_RELEASE=" "-DVCPKG_LINKER_FLAGS_DEBUG=" "-DVCPKG_TARGET_ARCHITECTURE=x64" "-DCMAKE_INSTALL_LIBDIR:STRING=lib" "-DCMAKE_INSTALL_BINDIR:STRING=bin" "-D_VCPKG_ROOT_DIR=S:/01_Code/Projects/vcpkg2/vcpkg" "-D_VCPKG_INSTALLED_DIR=S:/01_Code/Projects/vcpkg2/vcpkg/installed" "-DVCPKG_MANIFEST_INSTALL=OFF" "-DCMAKE_DISABLE_SOURCE_CHANGES=ON" -G "Ninja" "-DCMAKE_BUILD_TYPE=Debug" "-DCMAKE_INSTALL_PREFIX=S:/01_Code/Projects/vcpkg2/vcpkg/packages/mongo-cxx-driver_x64-windows/debug"
FAILED: ../../x64-windows-dbg/CMakeCache.txt 
"S:/01_Code/Projects/vcpkg2/vcpkg/downloads/tools/cmake-3.21.1-windows/cmake-3.21.1-windows-i386/bin/cmake.exe" -S "S:/01_Code/Projects/vcpkg2/vcpkg/buildtrees/mongo-cxx-driver/src/r3.6.5-215d61d973.clean" -B "../../x64-windows-dbg" "-DMONGOCXX_HEADER_INSTALL_DIR=include" "-DBSONCXX_HEADER_INSTALL_DIR=include" "-DBSONCXX_POLY_USE_STD_EXPERIMENTAL=1" "-DBUILD_VERSION=3.6.5" "-DCMAKE_MAKE_PROGRAM=C:/Program Files/Microsoft Visual Studio/2022/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/Ninja/ninja.exe" "-DBUILD_SHARED_LIBS=ON" "-DVCPKG_CHAINLOAD_TOOLCHAIN_FILE=S:/01_Code/Projects/vcpkg2/vcpkg/scripts/toolchains/windows.cmake" "-DVCPKG_TARGET_TRIPLET=x64-windows" "-DVCPKG_SET_CHARSET_FLAG=ON" "-DVCPKG_PLATFORM_TOOLSET=v143" "-DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON" "-DCMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY=ON" "-DCMAKE_FIND_PACKAGE_NO_SYSTEM_PACKAGE_REGISTRY=ON" "-DCMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_SKIP=TRUE" "-DCMAKE_VERBOSE_MAKEFILE=ON" "-DVCPKG_APPLOCAL_DEPS=OFF" "-DCMAKE_TOOLCHAIN_FILE=S:/01_Code/Projects/vcpkg2/vcpkg/scripts/buildsystems/vcpkg.cmake" "-DCMAKE_ERROR_ON_ABSOLUTE_INSTALL_DESTINATION=ON" "-DVCPKG_CXX_FLAGS=" "-DVCPKG_CXX_FLAGS_RELEASE=" "-DVCPKG_CXX_FLAGS_DEBUG=" "-DVCPKG_C_FLAGS=" "-DVCPKG_C_FLAGS_RELEASE=" "-DVCPKG_C_FLAGS_DEBUG=" "-DVCPKG_CRT_LINKAGE=dynamic" "-DVCPKG_LINKER_FLAGS=" "-DVCPKG_LINKER_FLAGS_RELEASE=" "-DVCPKG_LINKER_FLAGS_DEBUG=" "-DVCPKG_TARGET_ARCHITECTURE=x64" "-DCMAKE_INSTALL_LIBDIR:STRING=lib" "-DCMAKE_INSTALL_BINDIR:STRING=bin" "-D_VCPKG_ROOT_DIR=S:/01_Code/Projects/vcpkg2/vcpkg" "-D_VCPKG_INSTALLED_DIR=S:/01_Code/Projects/vcpkg2/vcpkg/installed" "-DVCPKG_MANIFEST_INSTALL=OFF" "-DCMAKE_DISABLE_SOURCE_CHANGES=ON" -G "Ninja" "-DCMAKE_BUILD_TYPE=Debug" "-DCMAKE_INSTALL_PREFIX=S:/01_Code/Projects/vcpkg2/vcpkg/packages/mongo-cxx-driver_x64-windows/debug"
-- The CXX compiler identification is MSVC 19.30.30705.0
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.30.30705/bin/Hostx64/x64/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- The C compiler identification is MSVC 19.30.30705.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.30.30705/bin/Hostx64/x64/cl.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
CMake Error at src/bsoncxx/CMakeLists.txt:67 (message):
  Can only use BSONCXX_POLY_USE_STD_EXPERIMENTAL if CMAKE_CXX_STANDARD is 14
  or higher


-- Configuring incomplete, errors occurred!
See also "S:/01_Code/Projects/vcpkg2/vcpkg/buildtrees/mongo-cxx-driver/x64-windows-dbg/CMakeFiles/CMakeOutput.log".
ninja: build stopped: subcommand failed.

@Dariusz1989
Copy link
Author

vcpkg install mongo-cxx-driver[mnmlstc] Does not work either :- (

@JackBoosY JackBoosY added category:port-bug The issue is with a library, which is something the port should already support category:question This issue is a question and removed requires:repro The issue is not currently repro-able labels Dec 9, 2021
@JackBoosY
Copy link
Contributor

JackBoosY commented Dec 9, 2021

I can confirm that. The reason why it happened is because mongo-cxx-driver set CMAKE_CXX_STANDARD to 11 by default.
However, if we need to use feature std-experimental, CMAKE_CXX_STANDARD must be higher than 14. So I think that's a upstream bug.
Please report this to the upstream first.

@JackBoosY
Copy link
Contributor

vcpkg install mongo-cxx-driver[mnmlstc] Does not work either :- (

CMake Error at ports/mongo-cxx-driver/portfile.cmake:22 (message):
  Feature mnmlstc only supports UNIX

@JackBoosY JackBoosY added the depends:upstream-changes Waiting on a change to the upstream project label Dec 9, 2021
@Dariusz1989
Copy link
Author

@JackBoosY thanks for info! I was wondering what the mnmlstc mode was... That makes sense thanks! Might be worth adding it as a comment to file info?
As to upstream bug.... uhhh, where how do I report it?

@JackBoosY
Copy link
Contributor

@Dariusz1989 Upstream: http://mongocxx.org/reporting-bugs/

I think we shouldn't add comment for it, the users should figure out it by themselves.

@Dariusz1989
Copy link
Author

Yo
Waiting for mongo people to look in to it >
https://jira.mongodb.org/browse/CXX-2419#add-comment

@JackBoosY JackBoosY removed the category:question This issue is a question label Jan 14, 2022
@Dariusz1989
Copy link
Author

@JackBoosY Mongo people replied to my query with build > https://jira.mongodb.org/browse/CXX-2419?focusedCommentId=4466057&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-4466057

They bounced ball back to you :D
Fix >

diff --git a/ports/mongo-cxx-driver/portfile.cmake b/ports/mongo-cxx-driver/portfile.cmake
--
index 1b208519e..4b03c74d3 100644
--- a/ports/mongo-cxx-driver/portfile.cmake
+++ b/ports/mongo-cxx-driver/portfile.cmake
@@ -2,6 +2,7 @@ set(VERSION_MAJOR 3)
set(VERSION_MINOR 6)
set(VERSION_PATCH 5)
set(VERSION_FULL ${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH})
+set(BSONCXX_STANDARD 11)
 
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
@@ -29,6 +30,7 @@ elseif ("boost" IN_LIST FEATURES)
set(BSONCXX_POLY BOOST)
elseif("std-experimental" IN_LIST FEATURES)
set(BSONCXX_POLY STD_EXPERIMENTAL)
+    set(BSONCXX_STANDARD 17)
else()
if (NOT VCPKG_CMAKE_SYSTEM_NAME OR VCPKG_CMAKE_SYSTEM_NAME STREQUAL "WindowsStore")
set(BSONCXX_POLY BOOST)
@@ -43,6 +45,7 @@ vcpkg_cmake_configure(

Any chance we can patch it up?

@JackBoosY JackBoosY removed the depends:upstream-changes Waiting on a change to the upstream project label Apr 8, 2022
@JackBoosY
Copy link
Contributor

Will update this in the next week.

@rcsanchez97
Copy link
Contributor

@JackBoosY would it make things move more quickly if I submitted the change as a PR?

@JackBoosY
Copy link
Contributor

@rcsanchez97 of course.

strega-nil-ms pushed a commit that referenced this issue Apr 15, 2022
* [mongo-cxx-driver] set c++17 for std::experimental build

fixes #21877

* update version

* update git-tree

* add license

* overwrite version

Co-authored-by: FrankXie <v-frankxie@microsoft.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:port-bug The issue is with a library, which is something the port should already support
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants