10000 [openssl] install x64-mingw-static failure on very fast SSD · Issue #45635 · microsoft/vcpkg · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

[openssl] install x64-mingw-static failure on very fast SSD #45635

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

Open
negrutiu opened this issue May 22, 2025 · 0 comments
Open

[openssl] install x64-mingw-static failure on very fast SSD #45635

negrutiu opened this issue May 22, 2025 · 0 comments
Labels
category:community-triplet A PR or issue related to community triplets not officially validated by the vcpkg team.

Comments

@negrutiu
Copy link
negrutiu commented May 22, 2025

Operating system

Windows 11

Compiler

MinGW

Steps to reproduce the behavior

- install msys2 to default location `C:\msys64`
- install mingw using `pacman -S mingw-w64-i686-toolchain mingw-w64-x86_64-toolchain`
- clone and bootstrap vcpkg
- create a `vcpkg.json` next to vcpkg.exe

{
  "$schema": "https://raw.githubusercontent.com/microsoft/vcpkg/master/scripts/vcpkg.schema.json",
  "name": "noname",
  "version": "1.0.0.0",
  "dependencies":
  [
    {
      "name": "curl",
      "default-features": false,
      "features": ["http2", "openssl", "brotli", "zstd", "tool"]
    }
  ]
}

- run `set PATH=C:\msys64\mingw64\bin;%PATH% && vcpkg.exe install --triplet=x64-mingw-static`

The build fails most of the time during `-- Installing x64-mingw-static-dbg`
The log shows `Trying to rename Makefile-1467 -> Makefile: Permission denied`

Failure logs

install-x64-mingw-static-dbg-err.log

Trying to rename Makefile-1467 -> Makefile: Permission denied
make[1]: *** [Makefile:2594: depend] Error 13
make: *** [Makefile:2487: build_programs] Error 2
make: *** Waiting for unfinished jobs....

Additional context

I've got a Windows 11 PC with two SSDs, one very fast (M2 Crucial T705, 11GB/s) and a slower one (SATA, 500MB/s, 20x slower).
Building openssl fails most of the time on the fast SSD and always succeeds on the slower one.

Monitoring tools reveal that the underlying NtSetInformationFile("Makefile-1467" -> "Makefile") API call fails with STATUS_TRANSACTIONAL_CONFLICT (0xc0190001), suggesting that the destination file Makefile is currently involved in another active NTFS transaction and thus, the renaming operation is forbidden.
I'm guessing that there's a race condition between threads/processes that operate on the same file.

@negrutiu negrutiu added the category:port-bug The issue is with a library, which is something the port should already support label May 22, 2025
@LilyWangLL LilyWangLL added category:community-triplet A PR or issue related to community triplets not officially validated by the vcpkg team. and removed category:port-bug The issue is with a library, which is something the port should already support labels May 22, 2025
@LilyWangLL LilyWangLL removed their assignment May 22, 2025
@LilyWangLL LilyWangLL changed the title [openssl] install failure on very fast SSD [openssl] install x64-mingw-static failure on very fast SSD May 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:community-triplet A PR or issue related to community triplets not officially validated by the vcpkg team.
Projects
None yet
Development

No branches or pull requests

2 participants
0