Skip to content

dist-i686-msvc fails with STATUS_NO_MEMORY #159076

Description

@mati865

Creating this issue to have something to easily refer to. During bootstrap bump we got stuck on dist-i686-msvc job that keeps failing with exit code: 0xc0000017, STATUS_NO_MEMORY.

Click to see the possible cause of the failure (guessed by this bot)
LowFree:        12196008 kB
SwapTotal:       3014656 kB
SwapFree:        2860456 kB
##[endgroup]
Executing python x.py -j2 dist bootstrap --include-default-paths
+ python x.py -j2 dist bootstrap --include-default-paths
##[group]Building bootstrap
    Finished `dev` profile [unoptimized] target(s) in 1.76s
##[endgroup]
downloading https://static.rust-lang.org/dist/2026-07-06/rustfmt-nightly-i686-pc-windows-msvc.tar.xz
extracting D:\a\rust\rust\build\cache\2026-07-06\rustfmt-nightly-i686-pc-windows-msvc.tar.xz to D:\a\rust\rust\build\i686-pc-windows-msvc\rustfmt
---
   Compiling quote v1.0.45
error: could not compile `quote` (build script)

Caused by:
  process didn't exit successfully: `sccache 'D:\a\rust\rust\build\bootstrap\debug\rustc' --crate-name build_script_build --edition=2021 'C:\Users\runneradmin\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\quote-1.0.45\build.rs' --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type bin --emit=dep-info,link -C embed-bitcode=no -C debug-assertions=off --cfg 'feature="default"' --cfg 'feature="proc-macro"' --check-cfg 'cfg(docsrs,test)' --check-cfg 'cfg(feature, values("default", "proc-macro"))' -C metadata=b72bb3a3a834151a --out-dir 'D:\a\rust\rust\build\i686-pc-windows-msvc\stage1-rustc\release\build\quote/03279c42beaf3f44\out' -L 'dependency=D:\a\rust\rust\build\i686-pc-windows-msvc\stage1-rustc\release\build\quote/03279c42beaf3f44\out' --cap-lints allow -Z binary-dep-depinfo` (exit code: 0xc0000017, STATUS_NO_MEMORY)
warning: build failed, waiting for other jobs to finish...
error: could not compile `proc-macro2` (build script)

Caused by:
  process didn't exit successfully: `sccache 'D:\a\rust\rust\build\bootstrap\debug\rustc' --crate-name build_script_build --edition=2021 'C:\Users\runneradmin\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\proc-macro2-1.0.106\build.rs' --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type bin --emit=dep-info,link -C embed-bitcode=no -C debug-assertions=off --cfg 'feature="default"' --cfg 'feature="proc-macro"' --check-cfg 'cfg(docsrs,test)' --check-cfg 'cfg(feature, values("default", "nightly", "proc-macro", "span-locations"))' -C metadata=0e3c0cd282f1e688 --out-dir 'D:\a\rust\rust\build\i686-pc-windows-msvc\stage1-rustc\release\build\proc-macro2/b3c4050290632628\out' -L 'dependency=D:\a\rust\rust\build\i686-pc-windows-msvc\stage1-rustc\release\build\proc-macro2/b3c4050290632628\out' --cap-lints allow -Z binary-dep-depinfo` (exit code: 0xc0000017, STATUS_NO_MEMORY)
Bootstrap failed while executing `-j2 dist bootstrap --include-default-paths`
Build completed unsuccessfully in 0:18:38
  local time: Fri Jul 10 02:51:27 CUT 2026
  network time: Fri, 10 Jul 2026 02:51:27 GMT
##[error]Process completed with exit code 1.
##[group]Run echo "disk usage:"

Originally posted by @rust-log-analyzer in #158888 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug.O-windows-msvcToolchain: MSVC, Operating system: WindowsO-x86_32Target: x86 processors, 32 bit (like i686-*) (also known as IA-32, i386, i586, i686)T-cargoRelevant to the cargo team, which will review and decide on the PR/issue.

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions