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

Missing symbols - aarch64-unknown-linux-musl #512

Closed
lancethepants opened this issue Dec 20, 2022 · 1 comment
Closed

Missing symbols - aarch64-unknown-linux-musl #512

lancethepants opened this issue Dec 20, 2022 · 1 comment

Comments

@lancethepants
Copy link

I just bootstrapped rust 1.66.0 for aarch64-unknown-linux-musl and I am getting a similar issue as this one #201 when compiling a program. Missing symbols issue. I tried RUSTFLAGS='-Ctarget-feature=-Clink-arg=-lgcc' cargo build --release, but that didn't seem to help.

 = note: /mmc/lib/gcc/aarch64-tomatoware-linux-musl/12.2.0/../../../../aarch64-tomatoware-linux-musl/bin/ld: /mmc/lib/rustlib/aarch64-unknown-linux-musl/lib/self-contained/libc.a(vfprintf.lo): in function `pop_arg':
          vfprintf.c:(.text.pop_arg+0x120): undefined reference to `__extenddftf2'
          /mmc/lib/gcc/aarch64-tomatoware-linux-musl/12.2.0/../../../../aarch64-tomatoware-linux-musl/bin/ld: /mmc/lib/rustlib/aarch64-unknown-linux-musl/lib/self-contained/libc.a(vfprintf.lo): in function `fmt_fp':
          vfprintf.c:(.text.fmt_fp+0x94): undefined reference to `__addtf3'
          /mmc/lib/gcc/aarch64-tomatoware-linux-musl/12.2.0/../../../../aarch64-tomatoware-linux-musl/bin/ld: vfprintf.c:(.text.fmt_fp+0xa0): undefined reference to `__netf2'
          /mmc/lib/gcc/aarch64-tomatoware-linux-musl/12.2.0/../../../../aarch64-tomatoware-linux-musl/bin/ld: vfprintf.c:(.text.fmt_fp+0xcc): undefined reference to `__netf2'
          /mmc/lib/gcc/aarch64-tomatoware-linux-musl/12.2.0/../../../../aarch64-tomatoware-linux-musl/bin/ld: vfprintf.c:(.text.fmt_fp+0xf4): undefined reference to `__fixunstfsi'
          /mmc/lib/gcc/aarch64-tomatoware-linux-musl/12.2.0/../../../../aarch64-tomatoware-linux-musl/bin/ld: vfprintf.c:(.text.fmt_fp+0xfc): undefined reference to `__floatunsitf'
          /mmc/lib/gcc/aarch64-tomatoware-linux-musl/12.2.0/../../../../aarch64-tomatoware-linux-musl/bin/ld: vfprintf.c:(.text.fmt_fp+0x108): undefined reference to `__subtf3'
          /mmc/lib/gcc/aarch64-tomatoware-linux-musl/12.2.0/../../../../aarch64-tomatoware-linux-musl/bin/ld: vfprintf.c:(.text.fmt_fp+0x118): undefined reference to `__multf3'
          /mmc/lib/gcc/aarch64-tomatoware-linux-musl/12.2.0/../../../../aarch64-tomatoware-linux-musl/bin/ld: vfprintf.c:(.text.fmt_fp+0x124): undefined reference to `__netf2'
          /mmc/lib/gcc/aarch64-tomatoware-linux-musl/12.2.0/../../../../aarch64-tomatoware-linux-musl/bin/ld: vfprintf.c:(.text.fmt_fp+0x39c): undefined reference to `__netf2'
          /mmc/lib/gcc/aarch64-tomatoware-linux-musl/12.2.0/../../../../aarch64-tomatoware-linux-musl/bin/ld: vfprintf.c:(.text.fmt_fp+0x4a4): undefined reference to `__multf3'
          /mmc/lib/gcc/aarch64-tomatoware-linux-musl/12.2.0/../../../../aarch64-tomatoware-linux-musl/bin/ld: vfprintf.c:(.text.fmt_fp+0x4cc): undefined reference to `__addtf3'
          /mmc/lib/gcc/aarch64-tomatoware-linux-musl/12.2.0/../../../../aarch64-tomatoware-linux-musl/bin/ld: vfprintf.c:(.text.fmt_fp+0x4d8): undefined reference to `__subtf3'
          /mmc/lib/gcc/aarch64-tomatoware-linux-musl/12.2.0/../../../../aarch64-tomatoware-linux-musl/bin/ld: vfprintf.c:(.text.fmt_fp+0x58c): undefined reference to `__netf2'
          /mmc/lib/gcc/aarch64-tomatoware-linux-musl/12.2.0/../../../../aarch64-tomatoware-linux-musl/bin/ld: vfprintf.c:(.text.fmt_fp+0x59c): undefined reference to `__fixtfsi'
          /mmc/lib/gcc/aarch64-tomatoware-linux-musl/12.2.0/../../../../aarch64-tomatoware-linux-musl/bin/ld: vfprintf.c:(.text.fmt_fp+0x5ac): undefined reference to `__floatsitf'
          /mmc/lib/gcc/aarch64-tomatoware-linux-musl/12.2.0/../../../../aarch64-tomatoware-linux-musl/bin/ld: vfprintf.c:(.text.fmt_fp+0x5b8): undefined reference to `__subtf3'
          /mmc/lib/gcc/aarch64-tomatoware-linux-musl/12.2.0/../../../../aarch64-tomatoware-linux-musl/bin/ld: vfprintf.c:(.text.fmt_fp+0x5c8): undefined reference to `__multf3'
          /mmc/lib/gcc/aarch64-tomatoware-linux-musl/12.2.0/../../../../aarch64-tomatoware-linux-musl/bin/ld: vfprintf.c:(.text.fmt_fp+0x5e0): undefined reference to `__netf2'
          /mmc/lib/gcc/aarch64-tomatoware-linux-musl/12.2.0/../../../../aarch64-tomatoware-linux-musl/bin/ld: vfprintf.c:(.text.fmt_fp+0x730): undefined reference to `__netf2'
          /mmc/lib/gcc/aarch64-tomatoware-linux-musl/12.2.0/../../../../aarch64-tomatoware-linux-musl/bin/ld: vfprintf.c:(.text.fmt_fp+0x834): undefined reference to `__multf3'
          /mmc/lib/gcc/aarch64-tomatoware-linux-musl/12.2.0/../../../../aarch64-tomatoware-linux-musl/bin/ld: vfprintf.c:(.text.fmt_fp+0x8a8): undefined reference to `__addtf3'
          /mmc/lib/gcc/aarch64-tomatoware-linux-musl/12.2.0/../../../../aarch64-tomatoware-linux-musl/bin/ld: vfprintf.c:(.text.fmt_fp+0x8b0): undefined reference to `__netf2'
          /mmc/lib/gcc/aarch64-tomatoware-linux-musl/12.2.0/../../../../aarch64-tomatoware-linux-musl/bin/ld: vfprintf.c:(.text.fmt_fp+0x11e0): undefined reference to `__subtf3'
          /mmc/lib/gcc/aarch64-tomatoware-linux-musl/12.2.0/../../../../aarch64-tomatoware-linux-musl/bin/ld: vfprintf.c:(.text.fmt_fp+0x11ec): undefined reference to `__addtf3'
          /mmc/lib/gcc/aarch64-tomatoware-linux-musl/12.2.0/../../../../aarch64-tomatoware-linux-musl/bin/ld: /mmc/lib/rustlib/aarch64-unknown-linux-musl/lib/self-contained/libc.a(frexpl.lo): in function `frexpl.localalias':
          frexpl.c:(.text.frexpl+0x6c): undefined reference to `__netf2'
          /mmc/lib/gcc/aarch64-tomatoware-linux-musl/12.2.0/../../../../aarch64-tomatoware-linux-musl/bin/ld: frexpl.c:(.text.frexpl+0xa4): undefined reference to `__multf3'
          collect2: error: ld returned 1 exit status
@lancethepants
Copy link
Author

Issue not present in 1.67.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant