Stream: t-compiler/help

Topic: Manually repeating bootstrap rustc invocation


Nikita Popov (Jan 05 2020 at 21:02, on Zulip):

If rustc crashes while compiling libstd and I want to rerun under gdb, how do I do that? The command itself is printed, but it seems to also expect a boatload of additional environment variables (RUSTC_STAGE, RUSTC_SYSROOT, etc). How can I get those? They don't seem to be part of -vvv either.

simulacrum (Jan 05 2020 at 21:05, on Zulip):

@Nikita Popov in what stage?

simulacrum (Jan 05 2020 at 21:06, on Zulip):

generally speaking you can replace all the env variables and the rustc binary with ./build/x86*/stageN/bin/rustc and that should just work, if it doesn't, then I can likely help you make it work

Nikita Popov (Jan 05 2020 at 21:16, on Zulip):

Thanks, that worked!

Yerkebulan Tulibergenov (Jan 07 2020 at 21:14, on Zulip):

@Nikita Popov are you switching to Rust from PHP by any chance? ;)

Nikita Popov (Jan 07 2020 at 21:34, on Zulip):

Nah, I only do Rust work occasionally, and even then it's more LLVM than Rust ;)

Last update: Sep 18 2020 at 20:30UTC