Skip to content

Instantly share code, notes, and snippets.

@Centril
Created April 25, 2019 14:12
Show Gist options
  • Save Centril/be64d49ccc758cab4c11d921bc9eb1f6 to your computer and use it in GitHub Desktop.
Save Centril/be64d49ccc758cab4c11d921bc9eb1f6 to your computer and use it in GitHub Desktop.
centril@centrilnas2:~/programming/rust$ RUST_BACKTRACE=1 ./x.py -i build --stage 1 [485/723]
Updating only changed submodules
Submodules updated in 0.02 seconds
Finished dev [unoptimized] target(s) in 0.20s
Building stage0 std artifacts (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
Finished release [optimized] target(s) in 0.21s
Copying stage0 std from stage0 (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu / x86_64-unknown-linux-gnu)
Building stage0 test artifacts (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
Finished release [optimized] target(s) in 0.18s
Copying stage0 test from stage0 (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu / x86_64-unknown-linux-gnu)
Building stage0 compiler artifacts (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
Finished release [optimized] target(s) in 0.23s
Copying stage0 rustc from stage0 (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu / x86_64-unknown-linux-gnu)
Building stage0 codegen artifacts (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu, llvm)
Finished release [optimized] target(s) in 0.18s
Assembling stage1 compiler (x86_64-unknown-linux-gnu)
Building stage1 std artifacts (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
Finished release [optimized] target(s) in 0.20s
Copying stage1 std from stage1 (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu / x86_64-unknown-linux-gnu)
Building stage1 test artifacts (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
Finished release [optimized] target(s) in 0.18s
Copying stage1 test from stage1 (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu / x86_64-unknown-linux-gnu)
Building stage1 compiler artifacts (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
Compiling syntax_pos v0.0.0 (/home/centril/programming/rust/src/libsyntax_pos)
thread 'rustc' panicked at 'index out of bounds: the len is 137954 but the index is 137954', /home/centril/programming/rust/src/libserialize/opaque.rs:248:21
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
at src/libstd/sys/unix/backtrace/tracing/gcc_s.rs:39
1: std::sys_common::backtrace::print
at src/libstd/sys_common/backtrace.rs:71
at src/libstd/sys_common/backtrace.rs:59
2: std::panicking::default_hook::{{closure}}
at src/libstd/panicking.rs:197
3: std::panicking::default_hook
at src/libstd/panicking.rs:211
4: rustc::util::common::panic_hook
at ./src/liballoc/boxed.rs:718
at src/librustc/util/common.rs:39
5: std::panicking::rust_panic_with_hook
at src/libstd/panicking.rs:478
6: std::panicking::continue_panic_fmt
at src/libstd/panicking.rs:381
7: rust_begin_unwind
at src/libstd/panicking.rs:308
8: core::panicking::panic_fmt
at src/libcore/panicking.rs:85
9: core::panicking::panic_bounds_check
at src/libcore/panicking.rs:61
10: <rustc_metadata::schema::CrateRoot as serialize::serialize::Decodable>::decode::{{closure}}
at ./src/libserialize/opaque.rs:248
at ./src/libserialize/opaque.rs:292
at ./<::rustc::ty::codec::__impl_decoder_methods macros>:4
at ./src/libserialize/serialize.rs:513
at ./src/libcore/ops/function.rs:231
at ./src/libserialize/serialize.rs:221
at src/librustc_metadata/schema.rs:213
11: rustc_metadata::decoder::<impl rustc_metadata::cstore::MetadataBlob>::get_root
at ./src/libserialize/serialize.rs:215
at src/librustc_metadata/schema.rs:176
at src/librustc_metadata/decoder.rs:134
at src/librustc_metadata/decoder.rs:384
12: rustc_metadata::locator::Context::extract_one
at src/librustc_metadata/locator.rs:717
at src/librustc_metadata/locator.rs:622
13: rustc_metadata::locator::Context::find_commandline_library
at src/librustc_metadata/locator.rs:834
14: rustc_metadata::locator::Context::find_library_crate
at src/librustc_metadata/locator.rs:448
15: rustc_metadata::locator::Context::maybe_load_library_crate
at src/librustc_metadata/locator.rs:320
16: rustc_metadata::creader::CrateLoader::load
at src/librustc_metadata/creader.rs:409
17: rustc_metadata::creader::CrateLoader::resolve_crate
at src/librustc_metadata/creader.rs:384
18: rustc_metadata::creader::CrateLoader::maybe_process_path_extern
at src/librustc_metadata/creader.rs:1127
19: rustc_resolve::Resolver::extern_prelude_get
at src/librustc_resolve/lib.rs:5256
at ./src/libcore/option.rs:624
at src/librustc_resolve/lib.rs:5246
20: rustc_resolve::macros::<impl rustc_resolve::Resolver>::early_resolve_ident_in_lexical_scope
at src/librustc_resolve/macros.rs:709
21: rustc_resolve::Resolver::resolve_path
at src/librustc_resolve/lib.rs:3741
22: rustc_resolve::resolve_imports::ImportResolver::resolve_imports
at src/librustc_resolve/resolve_imports.rs:821
at src/librustc_resolve/resolve_imports.rs:684
23: rustc_resolve::macros::<impl syntax::ext::base::Resolver for rustc_resolve::Resolver>::resolve_imports
at src/librustc_resolve/macros.rs:195
24: syntax::ext::expand::MacroExpander::expand_fragment
at src/libsyntax/ext/expand.rs:442
at src/libsyntax/ext/expand.rs:311
25: syntax::ext::expand::MacroExpander::expand_crate
at src/libsyntax/ext/expand.rs:280
26: rustc_interface::passes::configure_and_expand_inner::{{closure}}
at src/librustc_interface/passes.rs:426
at ./src/librustc/util/common.rs:150
at ./src/librustc/util/common.rs:144
at src/librustc_interface/passes.rs:425
27: rustc::util::common::time
at ./src/librustc/util/common.rs:150
at ./src/librustc/util/common.rs:144
28: rustc_interface::passes::configure_and_expand_inner
at src/librustc_interface/passes.rs:379
29: rustc_interface::passes::configure_and_expand::{{closure}}
at src/librustc_interface/passes.rs:143
30: rustc_data_structures::box_region::PinnedGenerator<I,A,R>::new
at ./src/liballoc/boxed.rs:910
at ./src/librustc_data_structures/box_region.rs:36
31: rustc_interface::passes::configure_and_expand
at ./<::rustc_data_structures::box_region::declare_box_region_type macros>:10
at src/librustc_interface/passes.rs:139
32: rustc_interface::queries::Query<T>::compute
at src/librustc_interface/queries.rs:161
at src/librustc_interface/queries.rs:40
33: rustc_interface::queries::Query<T>::compute
at src/librustc_interface/queries.rs:158
at src/librustc_interface/queries.rs:190
at src/librustc_interface/queries.rs:40
34: rustc_interface::queries::Query<T>::compute
at src/librustc_interface/queries.rs:189
at src/librustc_interface/queries.rs:209
at src/librustc_interface/queries.rs:40
35: rustc_interface::queries::<impl rustc_interface::interface::Compiler>::prepare_outputs
at src/librustc_interface/queries.rs:208
36: rustc_interface::interface::run_compiler_in_existing_thread_pool
at src/librustc_driver/lib.rs:300
at ./src/librustc_interface/interface.rs:122
37: std::thread::local::LocalKey<T>::with
at ./src/librustc_interface/interface.rs:140
at ./src/librustc_interface/util.rs:186
at ./src/librustc/ty/context.rs:1932
at ./src/libstd/thread/local.rs:299
at ./src/libstd/thread/local.rs:245
at ./src/librustc/ty/context.rs:1924
at ./src/libstd/thread/local.rs:299
at ./src/libstd/thread/local.rs:245
38: scoped_tls::ScopedKey<T>::set
at ./src/librustc/ty/context.rs:1916
at ./src/librustc_interface/util.rs:186
at /home/centril/.cargo/registry/src/github.com-1ecc6299db9ec823/scoped-tls-1.0.0/src/lib.rs:137
at ./src/librustc_interface/util.rs:182
at /home/centril/.cargo/registry/src/github.com-1ecc6299db9ec823/scoped-tls-1.0.0/src/lib.rs:137
at ./src/libsyntax/lib.rs:101
at /home/centril/.cargo/registry/src/github.com-1ecc6299db9ec823/scoped-tls-1.0.0/src/lib.rs:137
39: syntax::with_globals
at ./src/libsyntax/lib.rs:100
query stack during panic:
end of query stack
error: internal compiler error: unexpected panic
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.36.0-dev running on x86_64-unknown-linux-gnu
note: compiler flags: -Z external-macro-backtrace -Z unstable-options -Z force-unstable-if-unmarked -C prefer-dynamic -C opt-level=2 -C incremental -C prefer-dynamic -C debuginfo=1 -C debug-
assertions=y -C link-args=-Wl,-rpath,$ORIGIN/../lib --crate-type dylib
note: some of the compiler flags provided by cargo are hidden
error: Could not compile `syntax_pos`.
To learn more, run the command again with --verbose.
command did not execute successfully: "/home/centril/programming/rust/build/x86_64-unknown-linux-gnu/stage0/bin/cargo" "build" "--target" "x86_64-unknown-linux-gnu" "-j" "8" "--release" "--f
eatures" "" "--manifest-path" "/home/centril/programming/rust/src/rustc/Cargo.toml" "--message-format" "json"
expected success, got: exit code: 101
failed to run: /home/centril/programming/rust/build/bootstrap/debug/bootstrap -i build --stage 1
Build completed unsuccessfully in 0:00:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment