Skip to content

[ICE] while building proc-macro2's build script #158575

Description

@marrahm
error: the compiler unexpectedly panicked. This is a bug                                                                                    
                                                                                                                                            
note: we would appreciate a bug report: https://github.com/rust-lang/rust/issues/new?labels=C-bug%2C+I-ICE%2C+T-compiler&template=ice.md    
                                                                                                                                            
note: rustc 1.96.0 (ac68faa20 2026-05-25) running on aarch64-unknown-linux-gnu                                                              
                                                                                                                                            
note: compiler flags: --crate-type bin -C embed-bitcode=no -C debug-assertions=off -C strip=debuginfo                                       
                                                                                                                                            
note: some of the compiler flags provided by cargo are hidden                                                                               
                                                                                                                                            
query stack during panic:                                                                                                                   
#0 [optimized_mir] optimizing MIR for `std::fs::create_dir`                                                                                 
#1 [items_of_instance] collecting items used by `std::fs::create_dir::<&std::path::PathBuf>`                                                
... and 1 other queries... use `env RUST_BACKTRACE=1` to see the full query stack                                                           
error: could not compile `proc-macro2` (build script)                                                                                       
                                                                                                                                            
Caused by:                                                                                                                                  
  process didn't exit successfully: `/root/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/bin/rustc --crate-name build_script_build --e
dition=2021 /root/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/proc-macro2-1.0.106/build.rs --error-format=json --json=diagnostic-re
ndered-ansi,artifacts,future-incompat --crate-type bin --emit=dep-info,link -C embed-bitcode=no -C debug-assertions=off --cfg 'feature="proc
-macro"' --check-cfg 'cfg(docsrs,test)' --check-cfg 'cfg(feature, values("default", "nightly", "proc-macro", "span-locations"))' -C metadata
=8c1c16eb67d71927 -C extra-filename=-28ca1e2a9ff48ec4 --out-dir /tmp/cargo-installbMHFs4/release/build/proc-macro2-28ca1e2a9ff48ec4 -C strip
=debuginfo -L dependency=/tmp/cargo-installbMHFs4/release/deps --cap-lints allow` (exit status: 101)                                        
warning: build failed, waiting for other jobs to finish...                                                                                  
error: failed to compile `cargo-deb v3.7.0`, intermediate artifacts can be found at `/tmp/cargo-installbMHFs4`.                             
To reuse those artifacts with a future compilation, set the environment variable `CARGO_BUILD_BUILD_DIR` to that path.                      
prepare librespot_0.8.0-1moode1 with git clone https://github.com/librespot-org/librespot.git:v0.8.0 as source                              
Cloning into 'librespot-0.8.0'...                                                                                                           
Note: switching to 'd36f9f1907e8cc9d68a93f8ebc6b627b1bf7267d'.   

Meta

rustc --version --verbose:

<version>

Error output

<output>
Backtrace

<backtrace>

error happens consistently. its during a compile of Spotify in Moode.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug.I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️S-needs-reproStatus: This issue has no reproduction and needs a reproduction to make progress.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type
    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