-
Notifications
You must be signed in to change notification settings - Fork 12.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bootstrap is broken in rust-1.75.0-beta with: thread 'main' panicked at src/core/builder.rs:1795:26: std::fs::read_dir(registry_src) failed with No such file or directory (os error 2) #117885
Comments
this is my config.toml:
|
The fixme here seems to be the issue: rust/src/bootstrap/src/core/builder.rs Lines 1792 to 1795 in 5526682
As workaround you can try to run |
I'm compiling offline, from the beta src tarball. |
I'm aware. It seems that there is a bug when using vendored sources in combination with remap-debuginfo. Creating the |
WG-prioritization assigning priority (Zulip discussion). @rustbot label -I-prioritize +P-medium |
Well, the cargo eclass is already exporting CARGO_HOME env var, and a CARGO_REGISTRY_DIR as well, and I'm doubtfull about the package manager allowing x.py to escape it's sandbox. Neverthelss, I'll try your suggestion when I'm back home on the machine. |
If you have |
@xen0n for your information only |
Rollup merge of rust-lang#119582 - arlosi:bootstrap-vendor-remap, r=wesleywiser bootstrap: handle vendored sources when remapping crate paths rust-lang#115872 introduced a feature to add path remapping for crate dependencies, but only when they came from Cargo's registry cache, not a vendor directory. This caused builds that used remapped debuginfo and vendor directories to fail with: ``` std::fs::read_dir(registry_src) failed with No such file or directory (os error 2) ``` or (if the `registry/src` directory exists but is empty) ``` error: --remap-path-prefix must contain '=' between FROM and TO ``` Fixes rust-lang#117885 by explicitly supporting the `vendor` directory and adding it to `RUSTC_CARGO_REGISTRY_SRC_TO_REMAP`. Note that `bootstrap.py` already assumes that `./vendor` within the rust repo is the only supported vendoring location. r? `@pietroalbini`
this is my attempt to bootstrap rust-1.75.0 beta, which fails with this beauty:
this is my command:
I can workaround this by reverting #115872
@pietroalbini can you please have a look at this error and the backtrace? I don't get why this error comes up. Thanks
The text was updated successfully, but these errors were encountered: