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:x64-windows@3.6.5 build failure #44314

Open
rculler opened this issue Mar 11, 2025 · 3 comments
Open

mongo-cxx-driver:x64-windows@3.6.5 build failure #44314

rculler opened this issue Mar 11, 2025 · 3 comments
Assignees
Labels
requires:repro The issue is not currently repro-able

Comments

@rculler
Copy link

rculler commented Mar 11, 2025

Operating system

Windows

Compiler

Visual Studio 2019

Steps to reproduce the behavior

To specify the version I wanted, I edited vcpkg\ports\mongo-cxx-driver\vcpkg.json and set the “version” value to “3.6.5”
.\vcpkg install mongo-cxx-driver

The build fails with:
Downloading https://github.com/mongodb/mongo-cxx-driver/archive/r3.6.5.tar.gz -> mongodb-mongo-cxx-driver-r3.6.5.tar.gz
D:\vcpkg\downloads\mongodb-mongo-cxx-driver-r3.6.5.tar.gz.4312.part: error: download from https://github.com/mongodb/mongo-cxx-driver/archive/r3.6.5.tar.gz had an unexpected hash
note: Expected: 7b6564cb5087b03886f3c99aa5da9e87a898b1bd1098393a7668e39d673d6203a39f7fa95e5bef995f5e53c18654ef1806823cf643a994a8c19a1df75b9eb306
note: Actual  : fe304d2f406f65d79a030dcfd1509543a9ab3057e46328d5ca1fc58da04758b9a2c6666a6194d574f9b42022324972d41c37d00d6fba87dfba63fbfb99e821de
CMake Error at scripts/cmake/vcpkg_download_distfile.cmake:124 (message):
  Download failed, halting portfile.
Call Stack (most recent call first):
  scripts/cmake/vcpkg_from_github.cmake:106 (vcpkg_download_distfile)
  ports/mongo-cxx-driver/portfile.cmake:1 (vcpkg_from_github)
  scripts/ports.cmake:203 (include)

Failure logs

stdout-x64-windows.log

x64-windows.vcpkg_abi_info.txt

Additional context

No response

@rculler rculler added the category:port-bug The issue is with a library, which is something the port should already support label Mar 11, 2025
@WangWeiLin-MV WangWeiLin-MV 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 Mar 12, 2025
@WangWeiLin-MV
Copy link
Contributor

Using the latest version of vcpkg for local installation does not reproduce the issue.

Installing 9/9 mongo-cxx-driver:x64-linux@4.0.0...
Building mongo-cxx-driver:x64-linux@4.0.0...
Downloading https://github.com/mongodb/mongo-cxx-driver/archive/r4.0.0.tar.gz -> mongodb-mongo-cxx-driver-r4.0.0.tar.gz
Successfully downloaded mongodb-mongo-cxx-driver-r4.0.0.tar.gz

Please try with latest vcpkg.

@rculler
Copy link
Author

rculler commented Mar 12, 2025

As I specified, I'm working with mongo-cxx-driver v3.6.5 x64 windows

I'm using vcpkg package management program version 2025-02-11-bec4296bf5289dc9ce83b4f5095943e44162f9c2

In the vcpkg/downloads folder I'm seeing mongodb-mongo-cxx-driver-r3.6.5.tar.gz.5704.part
Is the build system not completing the download?

@WangWeiLin-MV
Copy link
Contributor

.tar.gz.5704.part

Downloading error would leave a file like this, please check or clean these files and make sure the network is working properly.

Please try with latest vcpkg.

You could update the local git repository by the command like: git pull.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
requires:repro The issue is not currently repro-able
Projects
None yet
Development

No branches or pull requests

2 participants