Skip to content

Rustc bootstrap build is unable to find crates in poky after 1.76 version update #122075

Closed
@Yashinde145

Description

@Yashinde145

I am building rust 1.76 and then testing it using the same command(python3 src/bootstrap/bootstrap.py test test_suites_names --target x86_64-poky-linux-gnu in poky environment) as mentioned in #115642 (comment).

While bootstrapping the rustc for poky target(x86_64-poky-linux-gnu), the build is unable to fetch the standard crates and macros and thus the build fails. Since, the build is not completed successfully, testing also doesn't take place. This didn't happened till rust 1.75.

The following is a small portion of error log:

error[E0463]: can't find crate for `std` 
error[E0463]: can't find crate for `core`
error[E0463]: can't find crate for `compiler_builtins`
.
.   many more similar errors
.
error[E0425]: cannot find function, tuple struct or tuple variant `Some` in this scope
  --> /rust/deps/quote-1.0.29/build.rs:33:25
   |
33 |     if pieces.next() != Some("rustc 1") {
   |                         ^^^^ not found in this scope

error[E0425]: cannot find function, tuple struct or tuple variant `Some` in this scope
  --> /rust/deps/quote-1.0.29/build.rs:37:5
   |
37 |     Some(RustcVersion { minor })
   |     ^^^^ not found in this scope
   .
   .   many more similar erorrs
   .
error: cannot find macro `format` in this scope
   --> /rust/deps/autocfg/src/lib.rs:333:19
    |
333 |             emit(&format!("has_{}", mangle(name)));
    |                   ^^^^^^

Complete log file is attached for more details. (Build log starts from line 65)

Are there any significant changes with respect to building rustc and crates on custom targets from 1.75 to 1.76? I tried to check the release notes but couldn't find.

Am I missing something or doing anything wrong?

Metadata

Metadata

Assignees

No one assigned

    Labels

    T-bootstrapRelevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions