Closed
Description
See below. Last nightly version that was known to work was 2021-04-19.
Note that it says below 1.53.0-nightly (6df26f897 2021-04-20)
but this is the version that rustup
installs as 2021-04-21
! Similarly rustc 1.53.0-nightly (9d9c2c92b 2021-04-19)
is the last known to work version but installed via rustup
as 2021-04-20
.
$ RUST_BACKTRACE=1 RUSTFLAGS="-Z instrument-coverage" cargo +nightly-2021-04-21 check
Checking osmesa-sys v0.1.2 (/home/slomo/Projects/rust/tmp/osmesa-sys-0.1.2)
warning: use of deprecated macro `try`: use the `?` operator instead
--> lib.rs:29:1
|
29 | / shared_library!(OsMesa, LIB_NAME,
30 | | pub fn OSMesaColorClamp (enable: c_uchar),
31 | | pub fn OSMesaCreateContext (format: c_uint, sharelist: OSMesaContext) -> OSMesaContext,
32 | | pub fn OSMesaCreateContextExt (format: c_uint, depthBits: c_int, stencilBits: c_int, accumBits: c_int, sharelist: OSMesaContext) -> OSM...
... |
41 | | pub fn OSMesaPixelStore (pname: c_int, value: c_int),
42 | | );
| |__^
|
= note: `#[warn(deprecated)]` on by default
= note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
warning: use of deprecated constant `std::sync::ONCE_INIT`: the `new` function is now preferred
--> lib.rs:29:1
|
29 | / shared_library!(OsMesa, LIB_NAME,
30 | | pub fn OSMesaColorClamp (enable: c_uchar),
31 | | pub fn OSMesaCreateContext (format: c_uint, sharelist: OSMesaContext) -> OSMesaContext,
32 | | pub fn OSMesaCreateContextExt (format: c_uint, depthBits: c_int, stencilBits: c_int, accumBits: c_int, sharelist: OSMesaContext) -> OSM...
... |
41 | | pub fn OSMesaPixelStore (pname: c_int, value: c_int),
42 | | );
| |__^
|
= note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
warning: use of deprecated constant `std::sync::ONCE_INIT`: the `new` function is now preferred
--> lib.rs:29:1
|
29 | / shared_library!(OsMesa, LIB_NAME,
30 | | pub fn OSMesaColorClamp (enable: c_uchar),
31 | | pub fn OSMesaCreateContext (format: c_uint, sharelist: OSMesaContext) -> OSMesaContext,
32 | | pub fn OSMesaCreateContextExt (format: c_uint, depthBits: c_int, stencilBits: c_int, accumBits: c_int, sharelist: OSMesaContext) -> OSM...
... |
41 | | pub fn OSMesaPixelStore (pname: c_int, value: c_int),
42 | | );
| |__^
|
= note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
thread 'rustc' panicked at 'assertion failed: self.start_pos.to_u32() + total_extra_bytes <= bpos.to_u32()', compiler/rustc_span/src/lib.rs:1511:9
stack backtrace:
0: rust_begin_unwind
at /rustc/6df26f897cffb2d86880544bb451c6b5f8509b2d/library/std/src/panicking.rs:493:5
1: core::panicking::panic_fmt
at /rustc/6df26f897cffb2d86880544bb451c6b5f8509b2d/library/core/src/panicking.rs:92:14
2: core::panicking::panic
at /rustc/6df26f897cffb2d86880544bb451c6b5f8509b2d/library/core/src/panicking.rs:50:5
3: rustc_span::SourceFile::lookup_file_pos
4: rustc_mir::transform::coverage::Instrumentor::inject_counters
5: <rustc_mir::transform::coverage::InstrumentCoverage as rustc_mir::transform::MirPass>::run_pass
6: rustc_mir::transform::run_passes
7: rustc_mir::transform::mir_promoted
8: rustc_middle::dep_graph::<impl rustc_query_system::dep_graph::DepKind for rustc_middle::dep_graph::dep_node::DepKind>::with_deps
9: rustc_query_system::dep_graph::graph::DepGraph<K>::with_task_impl
10: rustc_data_structures::stack::ensure_sufficient_stack
11: rustc_query_system::query::plumbing::force_query_with_job
12: rustc_query_system::query::plumbing::get_query_impl
13: <rustc_query_impl::Queries as rustc_middle::ty::query::QueryEngine>::mir_promoted
14: rustc_mir::borrow_check::mir_borrowck
15: core::ops::function::FnOnce::call_once
16: rustc_middle::dep_graph::<impl rustc_query_system::dep_graph::DepKind for rustc_middle::dep_graph::dep_node::DepKind>::with_deps
17: rustc_query_system::dep_graph::graph::DepGraph<K>::with_task_impl
18: rustc_data_structures::stack::ensure_sufficient_stack
19: rustc_query_system::query::plumbing::force_query_with_job
20: rustc_query_system::query::plumbing::get_query_impl
21: <rustc_query_impl::Queries as rustc_middle::ty::query::QueryEngine>::mir_borrowck
22: rustc_middle::ty::<impl rustc_middle::ty::context::TyCtxt>::par_body_owners
23: rustc_interface::passes::analysis
24: rustc_middle::dep_graph::<impl rustc_query_system::dep_graph::DepKind for rustc_middle::dep_graph::dep_node::DepKind>::with_deps
25: rustc_query_system::dep_graph::graph::DepGraph<K>::with_task_impl
26: rustc_data_structures::stack::ensure_sufficient_stack
27: rustc_query_system::query::plumbing::force_query_with_job
28: rustc_query_system::query::plumbing::get_query_impl
29: <rustc_query_impl::Queries as rustc_middle::ty::query::QueryEngine>::analysis
30: rustc_interface::passes::QueryContext::enter
31: rustc_interface::queries::<impl rustc_interface::interface::Compiler>::enter
32: rustc_span::with_source_map
33: rustc_interface::interface::create_compiler_and_run
34: 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.53.0-nightly (6df26f897 2021-04-20) running on x86_64-unknown-linux-gnu
note: compiler flags: -Z instrument-coverage -C embed-bitcode=no -C debuginfo=2 -C incremental --crate-type lib
note: some of the compiler flags provided by cargo are hidden
query stack during panic:
#0 [mir_promoted] processing `OSMesaColorClamp`
#1 [mir_borrowck] borrow-checking `OSMesaColorClamp`
#2 [analysis] running analysis passes on this crate
end of query stack
warning: 3 warnings emitted
error: could not compile `osmesa-sys`
To learn more, run the command again with --verbose.