Skip to content

bootstrap: fully rely on RUSTC_WRAPPER#127682

Closed
RalfJung wants to merge 4 commits into
rust-lang:masterfrom
RalfJung:bootstrap-rustc-wrapper
Closed

bootstrap: fully rely on RUSTC_WRAPPER#127682
RalfJung wants to merge 4 commits into
rust-lang:masterfrom
RalfJung:bootstrap-rustc-wrapper

Conversation

@RalfJung

@RalfJung RalfJung commented Jul 13, 2024

Copy link
Copy Markdown
Member

With rust-lang/cargo#13659, cargo now respects RUSTC_WRAPPER for all rustc invocations. That means we can finally remove the hack where we set our wrapper as both RUSTC and RUSTC_WRAPPER.

There could still be build scripts that fail to respect RUSTC_WRAPPER, but then we should fix those before they become a rustc dependency.

Fixes #128383

@rustbot

rustbot commented Jul 13, 2024

Copy link
Copy Markdown
Collaborator

r? @Kobzol

rustbot has assigned @Kobzol.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) labels Jul 13, 2024
@rust-log-analyzer

This comment has been minimized.

@RalfJung

RalfJung commented Jul 13, 2024

Copy link
Copy Markdown
Member Author

Turns out even our own libc crate doesn't properly wrap its rustc invocations.^^ I guess I did not hit this locally as the build script was already cached.
Blocked on rust-lang/libc#3772.

@Kobzol

Kobzol commented Jul 13, 2024

Copy link
Copy Markdown
Member

@rustbot blocked

@rustbot rustbot added S-blocked Status: Blocked on something else such as an RFC or other implementation work. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Jul 13, 2024
@RalfJung

This comment was marked as outdated.

@RalfJung RalfJung closed this Jul 30, 2024
@RalfJung RalfJung deleted the bootstrap-rustc-wrapper branch July 30, 2024 10:26
@RalfJung RalfJung restored the bootstrap-rustc-wrapper branch August 28, 2024 10:10
@RalfJung RalfJung reopened this Aug 28, 2024
@RalfJung RalfJung force-pushed the bootstrap-rustc-wrapper branch from ad9308c to 946ee4f Compare August 28, 2024 10:11
@RalfJung

Copy link
Copy Markdown
Member Author

Locally a check-build passes now, let's see what CI says...

@rust-log-analyzer

This comment has been minimized.

@RalfJung

Copy link
Copy Markdown
Member Author

I guess I still had cached build script results somewhere.

The next offender is: field-offset. It uses rustc_version, so hopefully we just need to pull in the just-released version 0.4.1.

@rustbot

rustbot commented Aug 28, 2024

Copy link
Copy Markdown
Collaborator

These commits modify the Cargo.lock file. Unintentional changes to Cargo.lock can be introduced when switching branches and rebasing PRs.

If this was unintentional then you should revert the changes before this PR is merged.
Otherwise, you can ignore this comment.

@rust-log-analyzer

This comment has been minimized.

@rustbot

rustbot commented Aug 28, 2024

Copy link
Copy Markdown
Collaborator

Some changes occurred in compiler/rustc_codegen_gcc

cc @antoyo, @GuillaumeGomez

Some changes occurred in compiler/rustc_codegen_cranelift

cc @bjorn3

@rust-log-analyzer

This comment has been minimized.

@RalfJung RalfJung force-pushed the bootstrap-rustc-wrapper branch from d4462b4 to 77d269a Compare August 28, 2024 11:50
@rustbot

rustbot commented Aug 28, 2024

Copy link
Copy Markdown
Collaborator

rust-analyzer is developed in its own repository. If possible, consider making this change to rust-lang/rust-analyzer instead.

cc @rust-lang/rust-analyzer

@rust-log-analyzer

This comment has been minimized.

@RalfJung

Copy link
Copy Markdown
Member Author

Blocked on stepancheg/rust-protobuf#735.

@RalfJung

RalfJung commented Oct 13, 2024

Copy link
Copy Markdown
Member Author

@rust-lang/rust-analyzer not sure if you have some sort of direction relationship with your dependencies, but if you, do, it'd be good if you could take a look at this. I am trying to do a cleanup in bootstrap, and the very last holdout (well, it seems to be the last holdout, it's tricky to be sure) is a problem with one indirect dependency of rust-analyzer: the protobuf crate, which is a dependency of scip. The PR to fix this (stepancheg/rust-protobuf#737) has seen no maintainer reaction whatsoever in over a month.

@davidbarsky

Copy link
Copy Markdown
Contributor

@RalfJung Ah, I might be able to make a few things happen. Lemme ask around.

@lnicola

lnicola commented Oct 16, 2024

Copy link
Copy Markdown
Member

protobuf 3.7.1 is out, but scip still depends on 3.2.

@RalfJung

Copy link
Copy Markdown
Member Author

That should be fine though since it's a semver-compatible update.

@RalfJung

Copy link
Copy Markdown
Member Author

Oh wtf they use a =3.2.0 dependency. Yeah then this is another blocker :(

@lnicola

lnicola commented Oct 16, 2024

Copy link
Copy Markdown
Member

I suspect it's in the public API, so it would be a breaking change. Nvm, maybe not.

@RalfJung

RalfJung commented Oct 16, 2024

Copy link
Copy Markdown
Member Author

It's not a breaking change to do a semver-compatible update of public API types, is it?

Next blocker: scip-code/scip#284

@RalfJung RalfJung force-pushed the bootstrap-rustc-wrapper branch from 77d269a to 4b05169 Compare October 16, 2024 13:15
@rust-log-analyzer

This comment has been minimized.

@RalfJung

Copy link
Copy Markdown
Member Author

scip got updated, now we're just waiting for rust-lang/rust-analyzer#18315 to be synced into the rustc repo. :)

@lnicola

lnicola commented Oct 17, 2024

Copy link
Copy Markdown
Member

Once we deal with the fallout from #123951 :-).

@lnicola

lnicola commented Oct 17, 2024

Copy link
Copy Markdown
Member

Ready.

@RalfJung RalfJung force-pushed the bootstrap-rustc-wrapper branch from 4b05169 to 024677f Compare October 17, 2024 21:41
@rust-log-analyzer

This comment has been minimized.

@rust-log-analyzer

This comment has been minimized.

@RalfJung

Copy link
Copy Markdown
Member Author

What the heck is going on here?

/checkout/obj/build/bootstrap/debug/rustc /checkout/obj/build/x86_64-unknown-linux-gnu/stage0/bin/clippy-driver /path/to/nowhere/all-rustc-calls-should-go-through-the-wrapper - --crate-name ...

Now rustc is triple-wrapped?^^ Seems to be some problem with the clippy logic?

Cc @rust-lang/clippy

@rust-log-analyzer

Copy link
Copy Markdown
Collaborator

The job mingw-check failed! Check out the build log: (web) (plain)

Click to see the possible cause of the failure (guessed by this bot)
#16 2.826 Building wheels for collected packages: reuse
#16 2.828   Building wheel for reuse (pyproject.toml): started
#16 3.078   Building wheel for reuse (pyproject.toml): finished with status 'done'
#16 3.079   Created wheel for reuse: filename=reuse-4.0.3-cp310-cp310-manylinux_2_35_x86_64.whl size=132720 sha256=026f3bb0f1aa8090b861fd0a0939cb1a782396d84c8aab7875096557d637a0f6
#16 3.079   Stored in directory: /tmp/pip-ephem-wheel-cache-0k4e1t22/wheels/3d/8d/0a/e0fc6aba4494b28a967ab5eaf951c121d9c677958714e34532
#16 3.082 Installing collected packages: boolean-py, binaryornot, tomlkit, reuse, python-debian, markupsafe, license-expression, jinja2, chardet, attrs
#16 3.482 Successfully installed attrs-23.2.0 binaryornot-0.4.4 boolean-py-4.0 chardet-5.2.0 jinja2-3.1.4 license-expression-30.3.0 markupsafe-2.1.5 python-debian-0.1.49 reuse-4.0.3 tomlkit-0.13.0
#16 3.482 WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
#16 DONE 3.6s
---

failures:

---- header::tests::channel stdout ----
thread 'header::tests::channel' panicked at src/tools/compiletest/src/common.rs:663:19:
error: failed to run LD_LIBRARY_PATH="/checkout/src/tools/compiletest/:/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-tools/x86_64-unknown-linux-gnu/release/deps:/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-tools/x86_64-unknown-linux-gnu/release:/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-sysroot/lib/rustlib/x86_64-unknown-linux-gnu/lib:/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-sysroot/lib/rustlib/x86_64-unknown-linux-gnu/lib" RUSTC_BOOTSTRAP="1" "/path/to/nowhere/all-rustc-calls-should-go-through-the-wrapper" "--print=all-target-specs-json" "-Zunstable-options": No such file or directory (os error 2)

---- header::tests::asm_support stdout ----
thread 'header::tests::asm_support' panicked at src/tools/compiletest/src/common.rs:663:19:
thread 'header::tests::asm_support' panicked at src/tools/compiletest/src/common.rs:663:19:
error: failed to run LD_LIBRARY_PATH="/checkout/src/tools/compiletest/:/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-tools/x86_64-unknown-linux-gnu/release/deps:/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-tools/x86_64-unknown-linux-gnu/release:/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-sysroot/lib/rustlib/x86_64-unknown-linux-gnu/lib:/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-sysroot/lib/rustlib/x86_64-unknown-linux-gnu/lib" RUSTC_BOOTSTRAP="1" "/path/to/nowhere/all-rustc-calls-should-go-through-the-wrapper" "--print=all-target-specs-json" "-Zunstable-options": No such file or directory (os error 2)
---- header::tests::cross_compile stdout ----
thread 'header::tests::cross_compile' panicked at src/tools/compiletest/src/common.rs:663:19:
thread 'header::tests::cross_compile' panicked at src/tools/compiletest/src/common.rs:663:19:
error: failed to run LD_LIBRARY_PATH="/checkout/src/tools/compiletest/:/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-tools/x86_64-unknown-linux-gnu/release/deps:/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-tools/x86_64-unknown-linux-gnu/release:/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-sysroot/lib/rustlib/x86_64-unknown-linux-gnu/lib:/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-sysroot/lib/rustlib/x86_64-unknown-linux-gnu/lib" RUSTC_BOOTSTRAP="1" "/path/to/nowhere/all-rustc-calls-should-go-through-the-wrapper" "--print=all-target-specs-json" "-Zunstable-options": No such file or directory (os error 2)
---- header::tests::git_hash stdout ----
thread 'header::tests::git_hash' panicked at src/tools/compiletest/src/common.rs:663:19:
thread 'header::tests::git_hash' panicked at src/tools/compiletest/src/common.rs:663:19:
error: failed to run LD_LIBRARY_PATH="/checkout/src/tools/compiletest/:/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-tools/x86_64-unknown-linux-gnu/release/deps:/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-tools/x86_64-unknown-linux-gnu/release:/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-sysroot/lib/rustlib/x86_64-unknown-linux-gnu/lib:/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-sysroot/lib/rustlib/x86_64-unknown-linux-gnu/lib" RUSTC_BOOTSTRAP="1" "/path/to/nowhere/all-rustc-calls-should-go-through-the-wrapper" "--print=all-target-specs-json" "-Zunstable-options": No such file or directory (os error 2)
---- header::tests::families stdout ----
thread 'header::tests::families' panicked at src/tools/compiletest/src/common.rs:663:19:
thread 'header::tests::families' panicked at src/tools/compiletest/src/common.rs:663:19:
error: failed to run LD_LIBRARY_PATH="/checkout/src/tools/compiletest/:/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-tools/x86_64-unknown-linux-gnu/release/deps:/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-tools/x86_64-unknown-linux-gnu/release:/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-sysroot/lib/rustlib/x86_64-unknown-linux-gnu/lib:/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-sysroot/lib/rustlib/x86_64-unknown-linux-gnu/lib" RUSTC_BOOTSTRAP="1" "/path/to/nowhere/all-rustc-calls-should-go-through-the-wrapper" "--print=all-target-specs-json" "-Zunstable-options": No such file or directory (os error 2)
---- header::tests::debugger stdout ----
thread 'header::tests::debugger' panicked at src/tools/compiletest/src/common.rs:663:19:
thread 'header::tests::debugger' panicked at src/tools/compiletest/src/common.rs:663:19:
error: failed to run LD_LIBRARY_PATH="/checkout/src/tools/compiletest/:/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-tools/x86_64-unknown-linux-gnu/release/deps:/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-tools/x86_64-unknown-linux-gnu/release:/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-sysroot/lib/rustlib/x86_64-unknown-linux-gnu/lib:/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-sysroot/lib/rustlib/x86_64-unknown-linux-gnu/lib" RUSTC_BOOTSTRAP="1" "/path/to/nowhere/all-rustc-calls-should-go-through-the-wrapper" "--print=all-target-specs-json" "-Zunstable-options": No such file or directory (os error 2)
---- header::tests::ignore_arch stdout ----
thread 'header::tests::ignore_arch' panicked at src/tools/compiletest/src/common.rs:663:19:
thread 'header::tests::ignore_arch' panicked at src/tools/compiletest/src/common.rs:663:19:
error: failed to run LD_LIBRARY_PATH="/checkout/src/tools/compiletest/:/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-tools/x86_64-unknown-linux-gnu/release/deps:/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-tools/x86_64-unknown-linux-gnu/release:/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-sysroot/lib/rustlib/x86_64-unknown-linux-gnu/lib:/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-sysroot/lib/rustlib/x86_64-unknown-linux-gnu/lib" RUSTC_BOOTSTRAP="1" "/path/to/nowhere/all-rustc-calls-should-go-through-the-wrapper" "--print=all-target-specs-json" "-Zunstable-options": No such file or directory (os error 2)
---- header::tests::ignore_target stdout ----
thread 'header::tests::ignore_target' panicked at src/tools/compiletest/src/common.rs:663:19:
thread 'header::tests::ignore_target' panicked at src/tools/compiletest/src/common.rs:663:19:
error: failed to run LD_LIBRARY_PATH="/checkout/src/tools/compiletest/:/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-tools/x86_64-unknown-linux-gnu/release/deps:/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-tools/x86_64-unknown-linux-gnu/release:/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-sysroot/lib/rustlib/x86_64-unknown-linux-gnu/lib:/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-sysroot/lib/rustlib/x86_64-unknown-linux-gnu/lib" RUSTC_BOOTSTRAP="1" "/path/to/nowhere/all-rustc-calls-should-go-through-the-wrapper" "--print=all-target-specs-json" "-Zunstable-options": No such file or directory (os error 2)
---- header::tests::is_big_endian stdout ----
thread 'header::tests::is_big_endian' panicked at src/tools/compiletest/src/common.rs:663:19:
thread 'header::tests::is_big_endian' panicked at src/tools/compiletest/src/common.rs:663:19:
error: failed to run LD_LIBRARY_PATH="/checkout/src/tools/compiletest/:/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-tools/x86_64-unknown-linux-gnu/release/deps:/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-tools/x86_64-unknown-linux-gnu/release:/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-sysroot/lib/rustlib/x86_64-unknown-linux-gnu/lib:/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-sysroot/lib/rustlib/x86_64-unknown-linux-gnu/lib" RUSTC_BOOTSTRAP="1" "/path/to/nowhere/all-rustc-calls-should-go-through-the-wrapper" "--print=all-target-specs-json" "-Zunstable-options": No such file or directory (os error 2)
---- header::tests::ignore_coverage stdout ----
thread 'header::tests::ignore_coverage' panicked at src/tools/compiletest/src/common.rs:663:19:
thread 'header::tests::ignore_coverage' panicked at src/tools/compiletest/src/common.rs:663:19:
error: failed to run LD_LIBRARY_PATH="/checkout/src/tools/compiletest/:/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-tools/x86_64-unknown-linux-gnu/release/deps:/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-tools/x86_64-unknown-linux-gnu/release:/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-sysroot/lib/rustlib/x86_64-unknown-linux-gnu/lib:/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-sysroot/lib/rustlib/x86_64-unknown-linux-gnu/lib" RUSTC_BOOTSTRAP="1" "/path/to/nowhere/all-rustc-calls-should-go-through-the-wrapper" "--print=all-target-specs-json" "-Zunstable-options": No such file or directory (os error 2)
---- header::tests::llvm_version stdout ----
thread 'header::tests::llvm_version' panicked at src/tools/compiletest/src/common.rs:663:19:
thread 'header::tests::llvm_version' panicked at src/tools/compiletest/src/common.rs:663:19:
error: failed to run LD_LIBRARY_PATH="/checkout/src/tools/compiletest/:/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-tools/x86_64-unknown-linux-gnu/release/deps:/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-tools/x86_64-unknown-linux-gnu/release:/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-sysroot/lib/rustlib/x86_64-unknown-linux-gnu/lib:/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-sysroot/lib/rustlib/x86_64-unknown-linux-gnu/lib" RUSTC_BOOTSTRAP="1" "/path/to/nowhere/all-rustc-calls-should-go-through-the-wrapper" "--print=all-target-specs-json" "-Zunstable-options": No such file or directory (os error 2)
---- header::tests::matches_env stdout ----
thread 'header::tests::matches_env' panicked at src/tools/compiletest/src/common.rs:663:19:
thread 'header::tests::matches_env' panicked at src/tools/compiletest/src/common.rs:663:19:
error: failed to run LD_LIBRARY_PATH="/checkout/src/tools/compiletest/:/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-tools/x86_64-unknown-linux-gnu/release/deps:/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-tools/x86_64-unknown-linux-gnu/release:/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-sysroot/lib/rustlib/x86_64-unknown-linux-gnu/lib:/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-sysroot/lib/rustlib/x86_64-unknown-linux-gnu/lib" RUSTC_BOOTSTRAP="1" "/path/to/nowhere/all-rustc-calls-should-go-through-the-wrapper" "--print=all-target-specs-json" "-Zunstable-options": No such file or directory (os error 2)
---- header::tests::matches_os stdout ----
thread 'header::tests::matches_os' panicked at src/tools/compiletest/src/common.rs:663:19:
thread 'header::tests::matches_os' panicked at src/tools/compiletest/src/common.rs:663:19:
error: failed to run LD_LIBRARY_PATH="/checkout/src/tools/compiletest/:/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-tools/x86_64-unknown-linux-gnu/release/deps:/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-tools/x86_64-unknown-linux-gnu/release:/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-sysroot/lib/rustlib/x86_64-unknown-linux-gnu/lib:/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-sysroot/lib/rustlib/x86_64-unknown-linux-gnu/lib" RUSTC_BOOTSTRAP="1" "/path/to/nowhere/all-rustc-calls-should-go-through-the-wrapper" "--print=all-target-specs-json" "-Zunstable-options": No such file or directory (os error 2)
---- header::tests::matches_abi stdout ----
---- header::tests::matches_abi stdout ----
thread 'header::tests::matches_abi' panicked at src/tools/compiletest/src/common.rs:663:19:
error: failed to run LD_LIBRARY_PATH="/checkout/src/tools/compiletest/:/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-tools/x86_64-unknown-linux-gnu/release/deps:/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-tools/x86_64-unknown-linux-gnu/release:/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-sysroot/lib/rustlib/x86_64-unknown-linux-gnu/lib:/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-sysroot/lib/rustlib/x86_64-unknown-linux-gnu/lib" RUSTC_BOOTSTRAP="1" "/path/to/nowhere/all-rustc-calls-should-go-through-the-wrapper" "--print=all-target-specs-json" "-Zunstable-options": No such file or directory (os error 2)
---- header::tests::only_target stdout ----
thread 'header::tests::only_target' panicked at src/tools/compiletest/src/common.rs:663:19:
thread 'header::tests::only_target' panicked at src/tools/compiletest/src/common.rs:663:19:
error: failed to run LD_LIBRARY_PATH="/checkout/src/tools/compiletest/:/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-tools/x86_64-unknown-linux-gnu/release/deps:/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-tools/x86_64-unknown-linux-gnu/release:/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-sysroot/lib/rustlib/x86_64-unknown-linux-gnu/lib:/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-sysroot/lib/rustlib/x86_64-unknown-linux-gnu/lib" RUSTC_BOOTSTRAP="1" "/path/to/nowhere/all-rustc-calls-should-go-through-the-wrapper" "--print=all-target-specs-json" "-Zunstable-options": No such file or directory (os error 2)
---- header::tests::profiler_runtime stdout ----
thread 'header::tests::profiler_runtime' panicked at src/tools/compiletest/src/common.rs:663:19:
thread 'header::tests::profiler_runtime' panicked at src/tools/compiletest/src/common.rs:663:19:
error: failed to run LD_LIBRARY_PATH="/checkout/src/tools/compiletest/:/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-tools/x86_64-unknown-linux-gnu/release/deps:/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-tools/x86_64-unknown-linux-gnu/release:/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-sysroot/lib/rustlib/x86_64-unknown-linux-gnu/lib:/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-sysroot/lib/rustlib/x86_64-unknown-linux-gnu/lib" RUSTC_BOOTSTRAP="1" "/path/to/nowhere/all-rustc-calls-should-go-through-the-wrapper" "--print=all-target-specs-json" "-Zunstable-options": No such file or directory (os error 2)
---- header::tests::pointer_width stdout ----
---- header::tests::pointer_width stdout ----
thread 'header::tests::pointer_width' panicked at src/tools/compiletest/src/common.rs:663:19:
error: failed to run LD_LIBRARY_PATH="/checkout/src/tools/compiletest/:/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-tools/x86_64-unknown-linux-gnu/release/deps:/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-tools/x86_64-unknown-linux-gnu/release:/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-sysroot/lib/rustlib/x86_64-unknown-linux-gnu/lib:/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-sysroot/lib/rustlib/x86_64-unknown-linux-gnu/lib" RUSTC_BOOTSTRAP="1" "/path/to/nowhere/all-rustc-calls-should-go-through-the-wrapper" "--print=all-target-specs-json" "-Zunstable-options": No such file or directory (os error 2)
---- header::tests::sanitizers stdout ----
thread 'header::tests::sanitizers' panicked at src/tools/compiletest/src/common.rs:663:19:
thread 'header::tests::sanitizers' panicked at src/tools/compiletest/src/common.rs:663:19:
error: failed to run LD_LIBRARY_PATH="/checkout/src/tools/compiletest/:/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-tools/x86_64-unknown-linux-gnu/release/deps:/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-tools/x86_64-unknown-linux-gnu/release:/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-sysroot/lib/rustlib/x86_64-unknown-linux-gnu/lib:/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-sysroot/lib/rustlib/x86_64-unknown-linux-gnu/lib" RUSTC_BOOTSTRAP="1" "/path/to/nowhere/all-rustc-calls-should-go-through-the-wrapper" "--print=all-target-specs-json" "-Zunstable-options": No such file or directory (os error 2)
---- header::tests::stage stdout ----
thread 'header::tests::stage' panicked at src/tools/compiletest/src/common.rs:663:19:
thread 'header::tests::stage' panicked at src/tools/compiletest/src/common.rs:663:19:
error: failed to run LD_LIBRARY_PATH="/checkout/src/tools/compiletest/:/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-tools/x86_64-unknown-linux-gnu/release/deps:/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-tools/x86_64-unknown-linux-gnu/release:/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-sysroot/lib/rustlib/x86_64-unknown-linux-gnu/lib:/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-sysroot/lib/rustlib/x86_64-unknown-linux-gnu/lib" RUSTC_BOOTSTRAP="1" "/path/to/nowhere/all-rustc-calls-should-go-through-the-wrapper" "--print=all-target-specs-json" "-Zunstable-options": No such file or directory (os error 2)
---- header::tests::should_fail stdout ----
thread 'header::tests::should_fail' panicked at src/tools/compiletest/src/common.rs:663:19:
thread 'header::tests::should_fail' panicked at src/tools/compiletest/src/common.rs:663:19:
error: failed to run LD_LIBRARY_PATH="/checkout/src/tools/compiletest/:/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-tools/x86_64-unknown-linux-gnu/release/deps:/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-tools/x86_64-unknown-linux-gnu/release:/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-sysroot/lib/rustlib/x86_64-unknown-linux-gnu/lib:/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-sysroot/lib/rustlib/x86_64-unknown-linux-gnu/lib" RUSTC_BOOTSTRAP="1" "/path/to/nowhere/all-rustc-calls-should-go-through-the-wrapper" "--print=all-target-specs-json" "-Zunstable-options": No such file or directory (os error 2)
---- header::tests::system_llvm_version stdout ----
thread 'header::tests::system_llvm_version' panicked at src/tools/compiletest/src/common.rs:663:19:
thread 'header::tests::system_llvm_version' panicked at src/tools/compiletest/src/common.rs:663:19:
error: failed to run LD_LIBRARY_PATH="/checkout/src/tools/compiletest/:/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-tools/x86_64-unknown-linux-gnu/release/deps:/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-tools/x86_64-unknown-linux-gnu/release:/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-sysroot/lib/rustlib/x86_64-unknown-linux-gnu/lib:/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-sysroot/lib/rustlib/x86_64-unknown-linux-gnu/lib" RUSTC_BOOTSTRAP="1" "/path/to/nowhere/all-rustc-calls-should-go-through-the-wrapper" "--print=all-target-specs-json" "-Zunstable-options": No such file or directory (os error 2)
---- header::tests::wasm_special stdout ----
thread 'header::tests::wasm_special' panicked at src/tools/compiletest/src/common.rs:663:19:
thread 'header::tests::wasm_special' panicked at src/tools/compiletest/src/common.rs:663:19:
error: failed to run LD_LIBRARY_PATH="/checkout/src/tools/compiletest/:/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-tools/x86_64-unknown-linux-gnu/release/deps:/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-tools/x86_64-unknown-linux-gnu/release:/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-sysroot/lib/rustlib/x86_64-unknown-linux-gnu/lib:/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-sysroot/lib/rustlib/x86_64-unknown-linux-gnu/lib" RUSTC_BOOTSTRAP="1" "/path/to/nowhere/all-rustc-calls-should-go-through-the-wrapper" "--print=all-target-specs-json" "-Zunstable-options": No such file or directory (os error 2)
---- header::tests::threads_support stdout ----
thread 'header::tests::threads_support' panicked at src/tools/compiletest/src/common.rs:663:19:
thread 'header::tests::threads_support' panicked at src/tools/compiletest/src/common.rs:663:19:
error: failed to run LD_LIBRARY_PATH="/checkout/src/tools/compiletest/:/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-tools/x86_64-unknown-linux-gnu/release/deps:/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-tools/x86_64-unknown-linux-gnu/release:/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-sysroot/lib/rustlib/x86_64-unknown-linux-gnu/lib:/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-sysroot/lib/rustlib/x86_64-unknown-linux-gnu/lib" RUSTC_BOOTSTRAP="1" "/path/to/nowhere/all-rustc-calls-should-go-through-the-wrapper" "--print=all-target-specs-json" "-Zunstable-options": No such file or directory (os error 2)

failures:
    header::tests::channel
    header::tests::asm_support

@RalfJung

Copy link
Copy Markdown
Member Author

Hm, compiletest seems to require a single rustc binary, it doesn't support wrappers.

This rabbit hole is too deep, I have to stop here.

@RalfJung RalfJung closed this Oct 19, 2024
@flip1995

Copy link
Copy Markdown
Member

Clippy uses RUSTC_WORKSPACE_WRAPPER instead of RUSTC_WRAPPER. Maybe this is what is causing this?

@RalfJung

RalfJung commented Oct 21, 2024 via email

Copy link
Copy Markdown
Member Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-blocked Status: Blocked on something else such as an RFC or other implementation work. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bootstrap should be able to fully rely on RUSTC_WRAPPER

7 participants