Skip to content
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

Internal compiler error running ./src/ci/docker/run.sh #46781

Closed
ScottAbbey opened this issue Dec 17, 2017 · 3 comments
Closed

Internal compiler error running ./src/ci/docker/run.sh #46781

ScottAbbey opened this issue Dec 17, 2017 · 3 comments

Comments

@ScottAbbey
Copy link
Contributor

ScottAbbey commented Dec 17, 2017

I was attempting to run the ci/docker build.

I set up a machine with Ubuntu 14.04, installed docker and assorted build tools, cloned rust-lang/rust (master -> 3537658), and ran:

./src/ci/docker/run.sh dist-x86_64-linux

The build ran for some time then failed with the following internal compiler error.

Note that I originally had run this yesterday for dist-x86_64-freebsd and had the same or a very similar error that I did not save because I assumed I had done something wrong. I just tried a different one today.

I'm still not sure I'm doing this right so if I am just taking the wrong steps to run this let me know. There is a considerable amount of additional log material I am leaving out that occurs before this point.


error: internal compiler error: /checkout/src/librustc/ty/context.rs:249: node unknown node (id=1) with HirId::owner DefId(0/0:0 ~ core[2633]) cannot be placed in TypeckTables with local_id_root DefId(0/0:1631 ~ core[2633]::panicking[0]::panic_fmt[0])

note: the compiler unexpectedly panicked. this is a bug.

note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports

note: rustc 1.24.0-dev running on x86_64-unknown-linux-gnu

thread 'rustc' panicked at 'Box<Any>', /checkout/src/librustc_errors/lib.rs:502:8
note: Run with `RUST_BACKTRACE=1` for a backtrace.

error: Could not compile `core`.

Caused by:
  process didn't exit successfully: `/checkout/obj/build/bootstrap/debug/rustc --crate-name core /checkout/src/libcore/lib.rs --error-format json --crate-type lib --emit=dep-info,link -C opt-level=2 -C metadata=c80c8268f013635d -C extra-filename=-c80c8268f013635d --out-dir /checkout/obj/build/x86_64-unknown-linux-gnu/stage1-std/x86_64-unknown-linux-gnu/release/deps --target x86_64-unknown-linux-gnu -L dependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage1-std/x86_64-unknown-linux-gnu/release/deps -L dependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage1-std/release/deps` (exit code: 101)

@eddyb
Copy link
Member

eddyb commented Dec 17, 2017

cc @nikomatsakis @michaelwoerister

@alexcrichton
Copy link
Member

This is an ICE I've encountered many times before running this script and has to do with debug assertions being enabled in the compiler. I forget about when this started to appear but it's certainly not a new bug. You can work around this by setting DEPLOY=1 in the environment before running the docker script.

@ScottAbbey
Copy link
Contributor Author

Thank you for the suggested workaround. After more thorough searching, I have found this is a duplicate of #43982 so I will close.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants