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

error: building pthreads:x64-windows failed with: BUILD_FAILED #44702

Open
tapoban123 opened this issue Mar 30, 2025 · 2 comments
Open

error: building pthreads:x64-windows failed with: BUILD_FAILED #44702

tapoban123 opened this issue Mar 30, 2025 · 2 comments
Assignees
Labels
category:question This issue is a question

Comments

@tapoban123
Copy link

I am trying to install pthread in order to solve the following error that arised while running RAG = RAGPretrainedModel.from_pretrained("colbert-ir/colbertv2.0") from Python ragatouille package:

C:\Users\rayta\anaconda3\envs\python310\Lib\site-packages\colbert\modeling\segmented_maxsim.cpp(1): fatal error C1083: Cannot open include file: 'pthread.h': No such file or directory
ninja: build stopped: subcommand failed.

INFO: Tried to clean up context but failed!

I haven't posted the full python error here. Let me know if you need to see the full Python error.

Here is the error that I got while running vcpkg.exe install pthread :

Here is the vcpkg version:

vcpkg.exe --version
vcpkg package management program version 2025-03-22-d4dd14112c2026ee57e59f966ecfa3b9137bd143

> vcpkg.exe install pthread

Computing installation plan...
The following packages will be built and installed:
    pthread:x64-windows@3.0.0#2
  * pthreads:x64-windows@3.0.0#14
Additional packages (*) will be modified to complete this operation.
Detecting compiler hash for triplet x64-windows...
Compiler found: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.40.33807/bin/Hostx64/x64/cl.exe
Restored 0 package(s) from C:\Users\rayta\AppData\Local\vcpkg\archives in 143 us. Use --debug to see more details.
Installing 1/2 pthreads:x64-windows@3.0.0#14...
Building pthreads:x64-windows@3.0.0#14...
-- Using cached pthreads4w-code-v3.0.0.zip
-- Extracting source E:/My Documents/Mobile Apps/OneGo/tools/vcpkg/downloads/pthreads4w-code-v3.0.0.zip
CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:127 (message):
    Command failed: "E:/My Documents/Mobile Apps/OneGo/tools/vcpkg/downloads/tools/cmake-3.30.1-windows/cmake-3.30.1-windows-i386/bin/cmake.exe" -E tar xjf "E:/My Documents/Mobile Apps/OneGo/tools/vcpkg/downloads/pthreads4w-code-v3.0.0.zip"
    Working Directory: E:/My Documents/Mobile Apps/OneGo/tools/vcpkg/buildtrees/pthreads/src/4w-code-v3-a9b0a36b2a.clean.tmp
    Error code: 1
    See logs for more information:
      E:\My Documents\Mobile Apps\OneGo\tools\vcpkg\buildtrees\pthreads\extract-err.log

Call Stack (most recent call first):
  scripts/cmake/vcpkg_extract_source_archive.cmake:120 (vcpkg_execute_required_process)
  scripts/cmake/vcpkg_extract_source_archive_ex.cmake:8 (vcpkg_extract_source_archive)
  scripts/cmake/vcpkg_from_sourceforge.cmake:36 (vcpkg_extract_source_archive_ex)
  ports/pthreads/portfile.cmake:20 (vcpkg_from_sourceforge)
  scripts/ports.cmake:203 (include)


error: building pthreads:x64-windows failed with: BUILD_FAILED
See https://learn.microsoft.com/vcpkg/troubleshoot/build-failures?WT.mc_id=vcpkg_inproduct_cli for more information.
Elapsed time to handle pthreads:x64-windows: 158 ms
Please ensure you're using the latest port files 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+pthreads
You can submit a new issue at:
  https://github.com/microsoft/vcpkg/issues/new?title=[pthreads]+Build+error+on+x64-windows&body=Copy%20issue%20body%20from%20E%3A%2FMy%20Documents%2FMobile%20Apps%2FOneGo%2Ftools%2Fvcpkg%2Finstalled%2Fvcpkg%2Fissue_body.md
You can also submit an issue by running (GitHub CLI must be installed):
  "C:\Program Files\GitHub CLI\gh.exe" issue create -R microsoft/vcpkg --title "[pthreads] Build failure on x64-windows" --body-file "E:/My Documents/Mobile Apps/OneGo/tools/vcpkg/installed/vcpkg/issue_body.md"
@Mengna-Li Mengna-Li self-assigned this Mar 31, 2025
@Mengna-Li
Copy link
Contributor

Please change the vcpkg root path(without including spaces) and try again.

@tapoban123
Copy link
Author

I tried, but it gave the same error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:question This issue is a question
Projects
None yet
Development

No branches or pull requests

2 participants