Skip to content

Stable rustc always panics on arm/musl #60297

@dragonmaus

Description

@dragonmaus

Stable rust is unable to compile anything on arm-unknown-linux-musleabihf (Raspberry Pi gen 1 running Void Linux).

Even a simple program like the following:

fn main() {
    println!("Hello, world!");
}

throws an "internal compiler error: unexpected panic" at "already borrowed: BorrowMutError".

Meta

rustc --version --verbose:

rustc 1.34.0
binary: rustc
commit-hash: unknown
commit-date: unknown
host: arm-unknown-linux-musleabihf
release: 1.34.0
LLVM version: 8.0

Backtrace:

thread 'rustc' panicked at 'already borrowed: BorrowMutError', src/libcore/result.rs:997:5
stack backtrace:
   0: <unknown>
   1: <unknown>
   2: <unknown>
   3: <unknown>
   4: <unknown>
   5: std::panicking::rust_panic_with_hook
   6: <unknown>
   7: rust_begin_unwind
   8: core::panicking::panic_fmt
   9: <unknown>
  10: syntax::attr::is_known
  11: <unknown>
  12: <unknown>
  13: <syntax::ext::expand::InvocationCollector<'a, 'b> as syntax::mut_visit::MutVisitor>::flat_map_item
  14: <unknown>
  15: <unknown>
  16: <unknown>
  17: <syntax::ext::expand::InvocationCollector<'a, 'b> as syntax::mut_visit::MutVisitor>::flat_map_item
  18: <unknown>
  19: <unknown>
  20: <unknown>
  21: syntax::ext::expand::MacroExpander::expand_crate
  22: <unknown>
  23: <unknown>
  24: <unknown>
  25: rustc_driver::driver::compile_input
  26: <unknown>
  27: <unknown>
  28: rustc_driver::run_compiler
  29: <unknown>
  30: __rust_maybe_catch_panic
  31: <unknown>
  32: <unknown>
  33: <unknown>
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.34.0 running on arm-unknown-linux-musleabihf

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug.I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️O-ArmTarget: 32-bit Arm processors (armv6, armv7, thumb...), including 64-bit Arm in AArch32 stateO-muslTarget: The musl libcP-mediumMedium priorityT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions