Closed kou closed 1 day ago
Thanks for the detailed bug report and the proposed patch. I cannot think of a better solution at this time.
As you may have noticed, I sent a PR based on your patch. I expect this PR will get a review on Monday. I expect that will get merged and then be part of the next release (v2.27.0) due early in 2024-08.
Thanks! apache/arrow will update bundled google-cloud-cpp after the release.
FYI: The next version of MinGW-w64's bcrypt.h will have BCRYPT_*_ALG_HANDLE
.
Does this issue affect the google-cloud-cpp project? If the problem is with the Google Cloud service exposed by the
google-cloud-cpp
libraries instead of the client libraries themselves, you may consider opening a support request instead. Thegoogle-cloud-cpp
developers cannot help you troubleshoot problems with the service itself.Yes.
What component of
google-cloud-cpp
is this related to? For example, is this related to bigtable (i.e., something ingoogle/cloud/bigtable
), or GCS (i.e., something ingoogle/cloud/storage
)?google/cloud/internal/sha256_hash.cc
google/cloud/internal/sha256_hmac.cc
Describe the bug A clear and concise description of what the bug is.
I don't think that this is a bug of google-cloud-cpp but the latest release can't be built with MinGW-w64 because MinGW-w64's
bcrypt.h
doesn't provideBCRYPT_SHA256_ALG_HANDLE
. See also: https://github.com/mingw-w64/mingw-w64/issues/49So we can't build the latest google-cloud-cpp with MinGW-w64. Here are build error logs in apache/arrow:
With GCC: https://github.com/apache/arrow/actions/runs/9784972906/job/27017012557#step:7:1038
With clang: https://github.com/apache/arrow/actions/runs/9784972906/job/27017012746#step:7:977
To Reproduce Steps to reproduce the behavior:
Expected behavior A clear and concise description of what you expected to happen.
google-cloud-cpp can be built with MinGW-w64.
Operating system: If you are using a Linux distribution please include the name and version of the distribution too.
Windows.
What compiler and version are you using? Please include the output of
g++ -v
orclang++ -v
or the equivalent command-line flag.https://github.com/apache/arrow/actions/runs/9784972906/job/27017012557#step:7:96
https://github.com/apache/arrow/actions/runs/9784972906/job/27017012746#step:7:96
What version of
google-cloud-cpp
are you using? Please include the output fromgit rev-parse HEAD
if you are compiling from source, or the version number from the applicablegoogle/cloud/*/version.h
file.https://github.com/googleapis/google-cloud-cpp/releases/tag/v2.26.0
Additional context Add any other context about the problem here.
I haven't tried yet but the following patch may work: