Open muellerpeter-pms opened 3 years ago
this also happens to a completely fresh project without any dependencies.
tcargo v0.1.0 (/home/pi/src/tcargo)
thread 'rustc' panicked at 'index out of bounds: the len is 18 but the index is 56', compiler/rustc_metadata/src/rmeta/decoder.rs:328:61
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
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/issues/new?labels=C-bug%2C+I-ICE%2C+T-compiler&template=ice.md
note: rustc 1.53.0 (53cb7b09b 2021-06-17) running on armv7-unknown-linux-gnueabihf
note: compiler flags: -C embed-bitcode=no -C debuginfo=2 -C incremental --crate-type bin
note: some of the compiler flags provided by cargo are hidden
query stack during panic:
end of query stack
error: could not compile `tcargo`
To learn more, run the command again with --verbose.
Does this still happen on nightly? It may have been fixed by #86876.
It also panics but the message is another one. The project is an untouched new one created with cargo new.
cargo +nightly b
Compiling tcargo v0.1.0 (/home/pi/src/tcargo)
thread 'rustc' panicked at 'called `set` on feature `` which is not `active`', compiler/rustc_feature/src/active.rs:100:18
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
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/issues/new?labels=C-bug%2C+I-ICE%2C+T-compiler&template=ice.md
note: rustc 1.55.0-nightly (59216858a 2021-07-18) running on armv7-unknown-linux-gnueabihf
note: compiler flags: -C embed-bitcode=no -C debuginfo=2 -C incremental --crate-type bin
note: some of the compiler flags provided by cargo are hidden
query stack during panic:
end of query stack
error: could not compile `tcargo`
Hmm, interesting. Can you post the backtrace for that second panic?
here is the backtrace:
Compiling tcargo v0.1.0 (/home/pi/src/tcargo)
thread 'rustc' panicked at 'called `set` on feature `` which is not `active`', compiler/rustc_feature/src/active.rs:100:18
stack backtrace:
0: rust_begin_unwind
at /rustc/59216858a323978a97593cba22b5ed84350a3783/library/std/src/panicking.rs:515:5
1: std::panicking::begin_panic_fmt
at /rustc/59216858a323978a97593cba22b5ed84350a3783/library/std/src/panicking.rs:457:5
2: rustc_feature::active::<impl rustc_feature::Feature>::set
3: rustc_expand::config::features
4: rustc_interface::passes::register_plugins
5: rustc_interface::queries::Queries::register_plugins
6: rustc_interface::queries::<impl rustc_interface::interface::Compiler>::enter
7: rustc_span::with_source_map
8: rustc_interface::interface::create_compiler_and_run
9: scoped_tls::ScopedKey<T>::set
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
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/issues/new?labels=C-bug%2C+I-ICE%2C+T-compiler&template=ice.md
note: rustc 1.55.0-nightly (59216858a 2021-07-18) running on armv7-unknown-linux-gnueabihf
note: compiler flags: -C embed-bitcode=no -C debuginfo=2 -C incremental --crate-type bin
note: some of the compiler flags provided by cargo are hidden
query stack during panic:
end of query stack
error: could not compile `tcargo````
Hi,
is there anything new about that? Can I assist in any way further?
Triage: @muellerpeter-pms One way to help right now is to see if you can still reproduce on latest nightly. If you know how to reproduce this without a physical Raspberry Pie, that would also be great.
Code
There is no special code, I tried to compile libc 0.2.98 as a dependency.
Meta
rustc --version --verbose
:As you can see i try to compile on a raspberry pi
Error output
Backtrace
``` Compiling autocfg v1.0.1 Compiling libc v0.2.98 Compiling proc-macro2 v1.0.27 Compiling unicode-xid v0.2.2 thread 'rustc' panicked at 'index out of bounds: the len is 18 but the index is 56', compiler/rustc_metadata/src/rmeta/decoder.rs:328:61 stack backtrace: thread 'rustc' panicked at 'index out of bounds: the len is 18 but the index is 56', compiler/rustc_metadata/src/rmeta/decoder.rs:328:61 stack backtrace: thread 'rustc' panicked at 'index out of bounds: the len is 18 but the index is 56', compiler/rustc_metadata/src/rmeta/decoder.rs:328:61 stack backtrace: error: could not compile `unicode-xid` Caused by: process didn't exit successfully: `rustc --crate-name unicode_xid /home/pi/.cargo/registry/src/github.com-1285ae84e5963aae/unicode-xid-0.2.2/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 --cfg 'feature="default"' -C metadata=e095e5353733add3 -C extra-filename=-e095e5353733add3 --out-dir /home/pi/src/pms_home/target/debug/deps -L dependency=/home/pi/src/pms_home/target/debug/deps --cap-lints allow` (signal: 4, SIGILL: illegal instruction) warning: build failed, waiting for other jobs to finish... 0: rust_begin_unwind at /rustc/53cb7b09b00cbea8754ffb78e7e3cb521cb8af4b/library/std/src/panicking.rs:493:5 0: rust_begin_unwind at /rustc/53cb7b09b00cbea8754ffb78e7e3cb521cb8af4b/library/std/src/panicking.rs:493:5 1: core::panicking::panic_fmt at /rustc/53cb7b09b00cbea8754ffb78e7e3cb521cb8af4b/library/core/src/panicking.rs:92:14 2: core::panicking::panic_bounds_check at /rustc/53cb7b09b00cbea8754ffb78e7e3cb521cb8af4b/library/core/src/panicking.rs:69:5 0: rust_begin_unwind at /rustc/53cb7b09b00cbea8754ffb78e7e3cb521cb8af4b/library/std/src/panicking.rs:493:5 1: core::panicking::panic_fmt 1: core::panicking::panic_fmt at /rustc/53cb7b09b00cbea8754ffb78e7e3cb521cb8af4b/library/core/src/panicking.rs:92:14 at /rustc/53cb7b09b00cbea8754ffb78e7e3cb521cb8af4b/library/core/src/panicking.rs:92:14 2: core::panicking::panic_bounds_check at /rustc/53cb7b09b00cbea8754ffb78e7e3cb521cb8af4b/library/core/src/panicking.rs:69:5 2: core::panicking::panic_bounds_check at /rustc/53cb7b09b00cbea8754ffb78e7e3cb521cb8af4b/library/core/src/panicking.rs:69:5 3: rustc_metadata::rmeta::decoder:: for rustc_span::span_encoding::Span>::decode
3: rustc_metadata::rmeta::decoder:: for rustc_span::span_encoding::Span>::decode
3: rustc_metadata::rmeta::decoder:: for rustc_span::span_encoding::Span>::decode
4: rustc_metadata::rmeta::decoder::cstore_impl::::get_span_untracked
4: rustc_metadata::rmeta::decoder::cstore_impl::::get_span_untracked
5: rustc_resolve::build_reduced_graph::::get_module
6: ::visit_item
5: rustc_resolve::build_reduced_graph::::get_module
6: ::visit_item
4: rustc_metadata::rmeta::decoder::cstore_impl::::get_span_untracked
5: rustc_resolve::build_reduced_graph::::get_module
6: ::visit_item
7: rustc_ast::visit::walk_item
7: rustc_ast::visit::walk_item
8: ::visit_item
8: ::visit_item
7: rustc_ast::visit::walk_item
8: ::visit_item
9: rustc_expand::expand::AstFragment::visit_with
9: rustc_expand::expand::AstFragment::visit_with
9: rustc_expand::expand::AstFragment::visit_with
10: rustc_resolve::macros::::visit_ast_fragment_with_placeholders
10: rustc_resolve::macros::::visit_ast_fragment_with_placeholders
10: rustc_resolve::macros::::visit_ast_fragment_with_placeholders
11: rustc_expand::expand::MacroExpander::collect_invocations
11: rustc_expand::expand::MacroExpander::collect_invocations
11: rustc_expand::expand::MacroExpander::collect_invocations
12: rustc_expand::expand::MacroExpander::fully_expand_fragment
12: rustc_expand::expand::MacroExpander::fully_expand_fragment
12: rustc_expand::expand::MacroExpander::fully_expand_fragment
13: rustc_expand::expand::MacroExpander::expand_crate
13: rustc_expand::expand::MacroExpander::expand_crate
13: rustc_expand::expand::MacroExpander::expand_crate
14: rustc_session::utils::::time
14: rustc_session::utils::::time
14: rustc_session::utils::::time
15: rustc_interface::passes::configure_and_expand_inner
15: rustc_interface::passes::configure_and_expand_inner
15: rustc_interface::passes::configure_and_expand_inner
16: rustc_interface::passes::configure_and_expand::{{closure}}
16: rustc_interface::passes::configure_and_expand::{{closure}}
16: rustc_interface::passes::configure_and_expand::{{closure}}
17: rustc_data_structures::box_region::PinnedGenerator::new
17: rustc_data_structures::box_region::PinnedGenerator::new
17: rustc_data_structures::box_region::PinnedGenerator::new
18: rustc_interface::passes::configure_and_expand
18: rustc_interface::passes::configure_and_expand
19: rustc_interface::queries::Queries::expansion
19: rustc_interface::queries::Queries::expansion
18: rustc_interface::passes::configure_and_expand
19: rustc_interface::queries::Queries::expansion
20: rustc_interface::queries::::enter
20: rustc_interface::queries::::enter
20: rustc_interface::queries::::enter
21: rustc_span::with_source_map
21: rustc_span::with_source_map
21: rustc_span::with_source_map
22: rustc_interface::interface::create_compiler_and_run
22: rustc_interface::interface::create_compiler_and_run
22: rustc_interface::interface::create_compiler_and_run
23: scoped_tls::ScopedKey::set
23: scoped_tls::ScopedKey::set
23: scoped_tls::ScopedKey::set
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
error: internal compiler error: unexpected panic
error: internal compiler error: unexpected panic
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/issues/new?labels=C-bug%2C+I-ICE%2C+T-compiler&template=ice.md
note: rustc 1.53.0 (53cb7b09b 2021-06-17) running on armv7-unknown-linux-gnueabihf
note: compiler flags: -C embed-bitcode=no -C debuginfo=2 --crate-type bin
note: some of the compiler flags provided by cargo are hidden
query stack during panic:
end of query stack
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: https://github.com/rust-lang/rust/issues/new?labels=C-bug%2C+I-ICE%2C+T-compiler&template=ice.md
note: rustc 1.53.0 (53cb7b09b 2021-06-17) running on armv7-unknown-linux-gnueabihf
note: the compiler unexpectedly panicked. this is a bug.
note: compiler flags: -C embed-bitcode=no -C debuginfo=2 --crate-type lib
note: some of the compiler flags provided by cargo are hidden
note: we would appreciate a bug report: https://github.com/rust-lang/rust/issues/new?labels=C-bug%2C+I-ICE%2C+T-compiler&template=ice.md
query stack during panic:
note: rustc 1.53.0 (53cb7b09b 2021-06-17) running on armv7-unknown-linux-gnueabihf
end of query stack
note: compiler flags: -C embed-bitcode=no -C debuginfo=2 --crate-type bin
note: some of the compiler flags provided by cargo are hidden
query stack during panic:
end of query stack
error: build failed
```