Uploaded image for project: 'Python Integrations'
  1. Python Integrations
  2. INTPYTHON-569

[PyMongoArrow] Libbson failing to build on Windows Hosts

    • Type: Icon: Build Failure Build Failure
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • pymongoarrow-1.8
    • Affects Version/s: None
    • Component/s: pymongoarrow
    • None
    • None
    • Python Drivers
    • Not Needed
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?
    • None
    • None
    • None
    • None
    • None
    • None

      https://github.com/mongodb-labs/mongo-arrow/actions/runs/14235712079/job/39894515959

        + echo 'Installing libbson...'
        ++ uname -m
        + DEFAULT_ARCH=x86_64
        + MACOSX_DEPLOYMENT_TARGET=10.15
        + CMAKE_OSX_ARCHITECTURES=x86_64
        + CMAKE_BUILD_TYPE=Release
        ++ pwd
        + DEFAULT_INSTALL_DIR=/d/a/mongo-arrow/mongo-arrow/bindings/python/libbson
        + LIBBSON_INSTALL_DIR=./libbson
        +++ dirname ./libbson
        ++ cd .
        ++ pwd
        ++ basename ./libbson
        + LIBBSON_INSTALL_DIR=/d/a/mongo-arrow/mongo-arrow/bindings/python/libbson
        MACOSX_DEPLOYMENT_TARGET=10.15
        + echo MACOSX_DEPLOYMENT_TARGET=10.15
        + echo CMAKE_OSX_ARCHITECTURES=x86_64
        + echo LIBBSON_INSTALL_DIR=/d/a/mongo-arrow/mongo-arrow/bindings/python/libbson
        + pushd mongo-c-driver-1.23.1
        + git checkout 1.23.1
        CMAKE_OSX_ARCHITECTURES=x86_64
        LIBBSON_INSTALL_DIR=/d/a/mongo-arrow/mongo-arrow/bindings/python/libbson
        /d/a/mongo-arrow/mongo-arrow/bindings/python/mongo-c-driver-1.23.1 /d/a/mongo-arrow/mongo-arrow/bindings/python
        HEAD is now at 629161e 1.23.1 Release
        + mkdir -p cmake-build
        /d/a/mongo-arrow/mongo-arrow/bindings/python/mongo-c-driver-1.23.1/cmake-build /d/a/mongo-arrow/mongo-arrow/bindings/python/mongo-c-driver-1.23.1 /d/a/mongo-arrow/mongo-arrow/bindings/python
        + pushd cmake-build
        + '[' -n /d/a/mongo-arrow/mongo-arrow/bindings/python/libbson ']'
        + cmake -DENABLE_AUTOMATIC_INIT_AND_CLEANUP=OFF -DENABLE_MONGOC=OFF -DCMAKE_OSX_ARCHITECTURES=x86_64 -DCMAKE_BUILD_TYPE=Release -DCMAKE_OSX_DEPLOYMENT_TARGET=10.15 -DCMAKE_INSTALL_PREFIX:PATH=/d/a/mongo-arrow/mongo-arrow/bindings/python/libbson ..
        -- Building for: Visual Studio 16 2019
        -- Configuring incomplete, errors occurred!
        CMake Error at CMakeLists.txt:1 (cmake_minimum_required):
          Compatibility with CMake < 3.5 has been removed from CMake.
        
          Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
          to tell CMake that the project requires at least <min> but has been updated
          to work with policies introduced by <max> or earlier.
        
          Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway.
        
        
        build-libbson: exit 1 (3.20 seconds) D:\a\mongo-arrow\mongo-arrow\bindings\python> bash build-libbson.sh pid=6484
          build-libbson: FAIL code 1 (7.36=setup[4.16]+cmd[3.20] seconds)
          evaluation failed :( (7.56 seconds)
      

            Assignee:
            steve.silvester@mongodb.com Steve Silvester
            Reporter:
            steve.silvester@mongodb.com Steve Silvester
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: