Windows sccache errors on CI with socket error
Open
Nobody has claimed this yet.
A-CI
A-LLVM
A-spurious
C-bug
E-needs-investigation
- Dominant language
- Rust
- Stars
- 119k
- Forks
- 16.1k
- PR merge metrics
- PR metrics pending
Description
Recently there have been some errors on the Windows runners while building llvm with this error:
885/3793] Building CXX object lib/Transforms/Instrumentation/CMakeFiles/LLVMInstrumentation.dir/InstrProfiling.cpp.obj
FAILED: lib/Transforms/Instrumentation/CMakeFiles/LLVMInstrumentation.dir/InstrProfiling.cpp.obj
sccache D:\a\rust\rust\mingw64\bin\g++.exe -DEXPERIMENTAL_KEY_INSTRUCTIONS -DGTEST_HAS_RTTI=0 -D_DEBUG -D_FILE_OFFSET_BITS=64 -D_GLIBCXX_ASSERTIONS -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -ID:/a/rust/rust/build/x86_64-pc-windows-gnu/llvm/build/lib/Transforms/Instrumentation -ID:/a/rust/rust/src/llvm-project/llvm/lib/Transforms/Instrumentation -ID:/a/rust/rust/build/x86_64-pc-windows-gnu/llvm/build/include -ID:/a/rust/rust/src/llvm-project/llvm/include -ffunction-sections -fdata-sections -m64 -Wa,-mbig-obj -Werror=date-time -w -ffunction-sections -fdata-sections -O2 -DNDEBUG -std=c++17 -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -MD -MT lib/Transforms/Instrumentation/CMakeFiles/LLVMInstrumentation.dir/InstrProfiling.cpp.obj -MF lib\Transforms\Instrumentation\CMakeFiles\LLVMInstrumentation.dir\InstrProfiling.cpp.obj.d -o lib/Transforms/Instrumentation/CMakeFiles/LLVMInstrumentation.dir/InstrProfiling.cpp.obj -c D:/a/rust/rust/src/llvm-project/llvm/lib/Transforms/Instrumentation/InstrProfiling.cpp
sccache: error: An operation on a socket could not be performed because the system lacked sufficient buffer space or because a queue was full. (os error 10055)
[886/3793] Building CXX object lib/Transforms/Instrumentation/CMakeFiles/LLVMInstrumentation.dir/MemProfUse.cpp.obj
[887/3793] Building CXX object lib/Transforms/Instrumentation/CMakeFiles/LLVMInstrumentation.dir/NumericalStabilitySanitizer.cpp.obj
[888/3793] Building CXX object lib/Transforms/Instrumentation/CMakeFiles/LLVMInstrumentation.dir/IndirectCallPromotion.cpp.obj
ninja: build stopped: subcommand failed.
thread 'main' (4120) panicked at C:\Users\runneradmin\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\cmake-0.1.54\src\lib.rs:1119:5:
command did not execute successfully, got: exit code: 1
Seen in:
- x86_64-mingw-1: https://github.com/rust-lang/rust/pull/146978#issuecomment-3527900761
- aarch64-msvc-2: https://github.com/rust-lang/rust/pull/147440#issuecomment-3376909609
- dist-aarch64-msvc: https://github.com/rust-lang/rust/pull/148340#issuecomment-3475730055
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the Windows CI logs and the sccache/CMake invocation shown in the issue, then compare the three referenced pull-request failures. Determine why the Windows runners hit socket error 10055 and identify a reliable CI or build mitigation; done means LLVM builds complete without this failure on the affected targets.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cmake, rust
- Domain
- build-system, ci-cd, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100