Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

multiple definition of __aeabi_ul2d #71865

Closed
lights0123 opened this issue May 4, 2020 · 1 comment
Closed

multiple definition of __aeabi_ul2d #71865

lights0123 opened this issue May 4, 2020 · 1 comment
Labels
C-bug Category: This is a bug.

Comments

@lights0123
Copy link

lights0123 commented May 4, 2020

Trying to compile a sample app for a custom ARM target, I get the following linker error:

  = note: arm-none-eabi-ld: /home/benschattinger/.src/Ndless/ndless-sdk/toolchain/install/lib/gcc/arm-none-eabi/9.2.0/libgcc.a(_arm_addsubdf3.o): in function `__floatundidf':
          /home/benschattinger/.src/Ndless/ndless-sdk/toolchain/build/arm-none-eabi/libgcc/../../../gcc-9.2.0/libgcc/config/arm/ieee754-df.S:541: multiple definition of `__aeabi_ul2d'; /home/benschattinger/Documents/Projects/Calculator/example-nspire/target/sysroot/lib/rustlib/armv5te-nspire-eabi/lib/libcompiler_builtins-d5dfaf2d732197c9.rlib(compiler_builtins-d5dfaf2d732197c9.compiler_builtins.79ijdt9a-cgu.25.rcgu.o):compiler_builtins.79ijdt9a-cgu.25:(.text.__aeabi_ul2d+0x0): first defined here
          collect2: error: ld returned 1 exit status

Meta

This issue was introduced with rustc 1.44.0-nightly (42abbd8 2020-04-07) (rustup toolchain install nightly-2020-04-08-x86_64-unknown-linux-gnu). Builds on previous versions succeed. Here's the diff between the two builds.
rustc --version --verbose:

rustc 1.44.0-nightly (42abbd887 2020-04-07)
binary: rustc
commit-hash: 42abbd8878d3b67238f3611b0587c704ba94f39c
commit-date: 2020-04-07
host: x86_64-unknown-linux-gnu
release: 1.44.0-nightly
LLVM version: 9.0
@lights0123 lights0123 added the C-bug Category: This is a bug. label May 4, 2020
@lights0123
Copy link
Author

Moving to rust-lang/compiler-builtins#353 as per this recommendation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: This is a bug.
Projects
None yet
Development

No branches or pull requests

1 participant