Closed
Description
Code
Followed first this:
https://substrate.dev/docs/en/knowledgebase/getting-started/
and then this tutorial:
https://substrate.dev/docs/en/tutorials/create-your-first-substrate-chain/setup
for macos, then try to run
cargo build --release
Produces the panic everytime.
Machine is Big Sur 11.2.3
Meta
rustc --version --verbose
:
rustc 1.51.0 (2fd73fabe 2021-03-23)
binary: rustc
commit-hash: 2fd73fabe469357a12c2c974c140f67e7cdd76d0
commit-date: 2021-03-23
host: x86_64-apple-darwin
release: 1.51.0
LLVM version: 11.0.1
Error output
thread 'rustc' panicked at 'supplied instant is later than self', library/std/src/time.rs:281:48
stack backtrace:
0: _rust_begin_unwind
1: core::panicking::panic_fmt
2: core::option::expect_failed
3: std::time::Instant::elapsed
4: rustc_middle::util::common::record_time
5: rustc_symbol_mangling::legacy::mangle
6: rustc_symbol_mangling::symbol_name_provider
7: rustc_middle::ty::query::<impl rustc_query_system::query::config::QueryAccessors<rustc_middle::ty::context::TyCtxt> for rustc_middle::ty::query::queries::symbol_name>::compute
8: rustc_query_system::dep_graph::graph::DepGraph<K>::with_task_impl
9: rustc_data_structures::stack::ensure_sufficient_stack
10: rustc_query_system::query::plumbing::force_query_with_job
11: rustc_query_system::query::plumbing::get_query_impl
12: rustc_middle::mir::mono::MonoItem::symbol_name
13: <alloc::vec::Vec<T> as alloc::vec::spec_from_iter::SpecFromIter<T,I>>::from_iter
14: rustc_mir::monomorphize::partitioning::assert_symbols_are_distinct
15: rustc_data_structures::sync::join
16: rustc_mir::monomorphize::partitioning::collect_and_partition_mono_items
17: rustc_middle::ty::query::<impl rustc_query_system::query::config::QueryAccessors<rustc_middle::ty::context::TyCtxt> for rustc_middle::ty::query::queries::collect_and_partition_mono_items>::compute
18: rustc_query_system::dep_graph::graph::DepGraph<K>::with_task_impl
19: rustc_data_structures::stack::ensure_sufficient_stack
20: rustc_query_system::query::plumbing::force_query_with_job
21: rustc_query_system::query::plumbing::get_query_impl
22: rustc_codegen_ssa::base::codegen_crate
23: <rustc_codegen_llvm::LlvmCodegenBackend as rustc_codegen_ssa::traits::backend::CodegenBackend>::codegen_crate
24: rustc_interface::passes::QueryContext::enter
25: rustc_interface::queries::Queries::ongoing_codegen
26: rustc_interface::queries::<impl rustc_interface::interface::Compiler>::enter
27: rustc_span::with_source_map
28: rustc_interface::interface::create_compiler_and_run
29: rustc_span::with_session_globals
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.51.0 (2fd73fabe 2021-03-23) running on x86_64-apple-darwin
note: compiler flags: -C opt-level=3 -C embed-bitcode=no --crate-type lib
note: some of the compiler flags provided by cargo are hidden
query stack during panic:
#0 [symbol_name] computing the symbol for `<core::iter::Chain<core::iter::Map<core::slice::Iter<curve25519_dalek::scalar::Scalar>, [closure@/Users/michael/.cargo/registry/src/github.com-1ecc6299db9ec823/schnorrkel-0.9.1/src/vrf.rs:944:23: 944:29]>, core::iter::Cloned<core::slice::Iter<curve25519_dalek::scalar::Scalar>>> as core::iter::Iterator>::fold::<(), &mut [closure@core::iter::adapters::map::map_fold<curve25519_dalek::scalar::Scalar, [i8; 256], (), [closure@<curve25519_dalek::backend::serial::scalar_mul::straus::Straus as curve25519_dalek::traits::VartimeMultiscalarMul>::optional_multiscalar_mul<core::iter::Chain<core::iter::Chain<core::iter::Map<core::slice::Iter<curve25519_dalek::scalar::Scalar>, [closure@/Users/michael/.cargo/registry/src/github.com-1ecc6299db9ec823/schnorrkel-0.9.1/src/vrf.rs:944:23: 944:29]>, core::iter::Cloned<core::slice::Iter<curve25519_dalek::scalar::Scalar>>>, core::iter::Once<curve25519_dalek::scalar::Scalar>>, core::iter::Map<core::iter::Chain<core::iter::Chain<core::iter::Map<core::slice::Iter<vrf::VRFProofBatchable>, [closure@/Users/michael/.cargo/registry/src/github.com-1ecc6299db9ec823/schnorrkel-0.9.1/src/vrf.rs:947:27: 947:55]>, core::iter::Map<core::slice::Iter<keys::PublicKey>, [closure@/Users/michael/.cargo/registry/src/github.com-1ecc6299db9ec823/schnorrkel-0.9.1/src/vrf.rs:948:43: 948:68]>>, core::iter::Once<core::option::Option<curve25519_dalek::ristretto::RistrettoPoint>>>, [closure@<curve25519_dalek::ristretto::RistrettoPoint as curve25519_dalek::traits::VartimeMultiscalarMul>::optional_multiscalar_mul<core::iter::Chain<core::iter::Chain<core::iter::Map<core::slice::Iter<curve25519_dalek::scalar::Scalar>, [closure@/Users/michael/.cargo/registry/src/github.com-1ecc6299db9ec823/schnorrkel-0.9.1/src/vrf.rs:944:23: 944:29]>, core::iter::Cloned<core::slice::Iter<curve25519_dalek::scalar::Scalar>>>, core::iter::Once<curve25519_dalek::scalar::Scalar>>, core::iter::Chain<core::iter::Chain<core::iter::Map<core::slice::Iter<vrf::VRFProofBatchable>, [closure@/Users/michael/.cargo/registry/src/github.com-1ecc6299db9ec823/schnorrkel-0.9.1/src/vrf.rs:947:27: 947:55]>, core::iter::Map<core::slice::Iter<keys::PublicKey>, [closure@/Users/michael/.cargo/registry/src/github.com-1ecc6299db9ec823/schnorrkel-0.9.1/src/vrf.rs:948:43: 948:68]>>, core::iter::Once<core::option::Option<curve25519_dalek::ristretto::RistrettoPoint>>>>::{closure#0}]>>::{closure#0}], [closure@core::iter::Iterator::for_each::call<[i8; 256], [closure@<std::vec::Vec<[i8; 256]> as std::vec::spec_extend::SpecExtend<[i8; 256], core::iter::Map<core::iter::Chain<core::iter::Chain<core::iter::Map<core::slice::Iter<curve25519_dalek::scalar::Scalar>, [closure@/Users/michael/.cargo/registry/src/github.com-1ecc6299db9ec823/schnorrkel-0.9.1/src/vrf.rs:944:23: 944:29]>, core::iter::Cloned<core::slice::Iter<curve25519_dalek::scalar::Scalar>>>, core::iter::Once<curve25519_dalek::scalar::Scalar>>, [closure@<curve25519_dalek::backend::serial::scalar_mul::straus::Straus as curve25519_dalek::traits::VartimeMultiscalarMul>::optional_multiscalar_mul<core::iter::Chain<core::iter::Chain<core::iter::Map<core::slice::Iter<curve25519_dalek::scalar::Scalar>, [closure@/Users/michael/.cargo/registry/src/github.com-1ecc6299db9ec823/schnorrkel-0.9.1/src/vrf.rs:944:23: 944:29]>, core::iter::Cloned<core::slice::Iter<curve25519_dalek::scalar::Scalar>>>, core::iter::Once<curve25519_dalek::scalar::Scalar>>, core::iter::Map<core::iter::Chain<core::iter::Chain<core::iter::Map<core::slice::Iter<vrf::VRFProofBatchable>, [closure@/Users/michael/.cargo/registry/src/github.com-1ecc6299db9ec823/schnorrkel-0.9.1/src/vrf.rs:947:27: 947:55]>, core::iter::Map<core::slice::Iter<keys::PublicKey>, [closure@/Users/michael/.cargo/registry/src/github.com-1ecc6299db9ec823/schnorrkel-0.9.1/src/vrf.rs:948:43: 948:68]>>, core::iter::Once<core::option::Option<curve25519_dalek::ristretto::RistrettoPoint>>>, [closure@<curve25519_dalek::ristretto::RistrettoPoint as curve25519_dalek::traits::VartimeMultiscalarMul>::optional_multiscalar_mul<core::iter::Chain<core::iter::Chain<core::iter::Map<core::slice::Iter<curve25519_dalek::scalar::Scalar>, [closure@/Users/michael/.cargo/registry/src/github.com-1ecc6299db9ec823/schnorrkel-0.9.1/src/vrf.rs:944:23: 944:29]>, core::iter::Cloned<core::slice::Iter<curve25519_dalek::scalar::Scalar>>>, core::iter::Once<curve25519_dalek::scalar::Scalar>>, core::iter::Chain<core::iter::Chain<core::iter::Map<core::slice::Iter<vrf::VRFProofBatchable>, [closure@/Users/michael/.cargo/registry/src/github.com-1ecc6299db9ec823/schnorrkel-0.9.1/src/vrf.rs:947:27: 947:55]>, core::iter::Map<core::slice::Iter<keys::PublicKey>, [closure@/Users/michael/.cargo/registry/src/github.com-1ecc6299db9ec823/schnorrkel-0.9.1/src/vrf.rs:948:43: 948:68]>>, core::iter::Once<core::option::Option<curve25519_dalek::ristretto::RistrettoPoint>>>>::{closure#0}]>>::{closure#0}]>>>::spec_extend::{closure#0}]>::{closure#0}]>::{closure#0}]>`
#1 [collect_and_partition_mono_items] collect_and_partition_mono_items
end of query stack
error: could not compile `schnorrkel`
To learn more, run the command again with --verbose.
warning: build failed, waiting for other jobs to finish...
error: build failed
Backtrace
stack backtrace:
0: _rust_begin_unwind
1: core::panicking::panic_fmt
2: core::option::expect_failed
3: std::time::Instant::elapsed
4: rustc_middle::util::common::record_time
5: rustc_symbol_mangling::legacy::mangle
6: rustc_symbol_mangling::symbol_name_provider
7: rustc_middle::ty::query::<impl rustc_query_system::query::config::QueryAccessors<rustc_middle::ty::context::TyCtxt> for rustc_middle::ty::query::queries::symbol_name>::compute
8: rustc_query_system::dep_graph::graph::DepGraph<K>::with_task_impl
9: rustc_data_structures::stack::ensure_sufficient_stack
10: rustc_query_system::query::plumbing::force_query_with_job
11: rustc_query_system::query::plumbing::get_query_impl
12: rustc_middle::mir::mono::MonoItem::symbol_name
13: <alloc::vec::Vec<T> as alloc::vec::spec_from_iter::SpecFromIter<T,I>>::from_iter
14: rustc_mir::monomorphize::partitioning::assert_symbols_are_distinct
15: rustc_data_structures::sync::join
16: rustc_mir::monomorphize::partitioning::collect_and_partition_mono_items
17: rustc_middle::ty::query::<impl rustc_query_system::query::config::QueryAccessors<rustc_middle::ty::context::TyCtxt> for rustc_middle::ty::query::queries::collect_and_partition_mono_items>::compute
18: rustc_query_system::dep_graph::graph::DepGraph<K>::with_task_impl
19: rustc_data_structures::stack::ensure_sufficient_stack
20: rustc_query_system::query::plumbing::force_query_with_job
21: rustc_query_system::query::plumbing::get_query_impl
22: rustc_codegen_ssa::base::codegen_crate
23: <rustc_codegen_llvm::LlvmCodegenBackend as rustc_codegen_ssa::traits::backend::CodegenBackend>::codegen_crate
24: rustc_interface::passes::QueryContext::enter
25: rustc_interface::queries::Queries::ongoing_codegen
26: rustc_interface::queries::<impl rustc_interface::interface::Compiler>::enter
27: rustc_span::with_source_map
28: rustc_interface::interface::create_compiler_and_run
29: rustc_span::with_session_globals