rust-lang / rust-lang/rust

Windows sccache errors on CI with socket error

Open
#148,910 1 comment 0 reactions 0 assignees View on GitHub

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:

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.