Skip to content

linker error "undefined symbol: __aeabi_uidiv" for target thumbv6m-none-eabi #60782

Closed
@starblue

Description

@starblue

Beginning with nightly-2019-05-10 I get the following linker error:

error: linking with `rust-lld` failed: exit code: 1
  |
  = note: "rust-lld" "-flavor" "gnu" "-L" "/home/juergen/.rustup/toolchains/nightly-2019-05-10-x86_64-unknown-linux-gnu/lib/rustlib/thumbv6m-none-eabi/lib" "/home/juergen/rust/dust/dust-test/target/thumbv6m-none-eabi/release/deps/test_uart-988eaff94921fb1c.test_uart.67ne5b40-cgu.0.rcgu.o" "-o" "/home/juergen/rust/dust/dust-test/target/thumbv6m-none-eabi/release/deps/test_uart-988eaff94921fb1c" "--gc-sections" "-L" "/home/juergen/rust/dust/dust-test/target/thumbv6m-none-eabi/release/deps" "-L" "/home/juergen/rust/dust/dust-test/target/release/deps" "-L" "/home/juergen/.rustup/toolchains/nightly-2019-05-10-x86_64-unknown-linux-gnu/lib/rustlib/thumbv6m-none-eabi/lib" "--start-group" "--end-group" "-Bstatic" "/home/juergen/.rustup/toolchains/nightly-2019-05-10-x86_64-unknown-linux-gnu/lib/rustlib/thumbv6m-none-eabi/lib/libcompiler_builtins-afe13c5355265d4c.rlib" "-Tldscripts/lpc802m001.ld" "-Lldscripts" "-Map=output/lpc802m001_test-uart.map" "-Bdynamic"
  = note: rust-lld: error: undefined symbol: __aeabi_uidiv
          >>> referenced by num.rs:204 (src/libcore/fmt/num.rs:204)
          >>>               /home/juergen/rust/dust/dust-test/target/thumbv6m-none-eabi/release/deps/test_uart-988eaff94921fb1c.test_uart.67ne5b40-cgu.0.rcgu.o:(core::fmt::num::imp::fmt_u32::h2131a43fb24cc589)

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-linkageArea: linking into static, shared libraries and binariesC-bugCategory: This is a bug.O-ArmTarget: 32-bit Arm processors (armv6, armv7, thumb...), including 64-bit Arm in AArch32 stateP-highHigh 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