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

Build fail with --target aarch64-unknown-linux-musl #1165

Open
1 task done
templarundead opened this issue Nov 5, 2022 · 4 comments
Open
1 task done

Build fail with --target aarch64-unknown-linux-musl #1165

templarundead opened this issue Nov 5, 2022 · 4 comments
Labels

Comments

@templarundead
Copy link

Checks

  • I have read the troubleshooting section and still think this is a bug.

Describe the bug you encountered:

error: linking with cc failed: exit status: 1
|
= note: "cc" "/root/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/lib/rustlib/aarch64-unknown-linux-musl/lib/self-contained/crt1.o" "/root/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/lib/rustlib/aarch64-unknown-linux-musl/lib/self-contained/crti.o" "/root/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/lib/rustlib/aarch64-unknown-linux-musl/lib/self-contained/crtbegin.o" "/tmp/rustcwRDzm4/symbols.o" "/tmp/sandbox/fd/target/aarch64-unknown-linux-musl/release/deps/fd-e026eb1ad606ca34.fd.af65a59a-cgu.0.rcgu.o" "-Wl,--as-needed" "-L" "/tmp/sandbox/fd/target/aarch64-unknown-linux-musl/release/deps" "-L" "/tmp/sandbox/fd/target/release/deps" "-L" "/tmp/sandbox/fd/target/aarch64-unknown-linux-musl/release/build/jemalloc-sys-edbb7c506b4d16be/out/build/lib" "-L" "/root/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/lib/rustlib/aarch64-unknown-linux-musl/lib" "-Wl,-Bstatic" "/tmp/rustcwRDzm4/libjemalloc_sys-2b4606dfed38e7c4.rlib" "-Wl,--start-group" "-lunwind" "-lc" "-Wl,--end-group" "/root/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/lib/rustlib/aarch64-unknown-linux-musl/lib/libcompiler_builtins-ee4c65da8befe454.rlib" "-Wl,-Bdynamic" "-Wl,--eh-frame-hdr" "-Wl,-znoexecstack" "-nostartfiles" "-L" "/root/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/lib/rustlib/aarch64-unknown-linux-musl/lib" "-L" "/root/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/lib/rustlib/aarch64-unknown-linux-musl/lib/self-contained" "-o" "/tmp/sandbox/fd/target/aarch64-unknown-linux-musl/release/deps/fd-e026eb1ad606ca34" "-Wl,--gc-sections" "-static" "-no-pie" "-Wl,-zrelro,-znow" "-Wl,--strip-all" "-nodefaultlibs" "-s" "/root/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/lib/rustlib/aarch64-unknown-linux-musl/lib/self-contained/crtend.o" "/root/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/lib/rustlib/aarch64-unknown-linux-musl/lib/self-contained/crtn.o"
= note: /usr/bin/ld: /root/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/lib/rustlib/aarch64-unknown-linux-musl/lib/libcompiler_builtins-ee4c65da8befe454.rlib(cpu_model.o): in function init_have_lse_atomics': /cargo/registry/src/github.com-1ecc6299db9ec823/compiler_builtins-0.1.73/./lib/builtins/cpu_model.c:811: undefined reference to getauxval'
collect2: error: ld returned 1 exit status

= help: some extern functions couldn't be found; some native libraries may need to be installed or have their path specified
= note: use the -l flag to specify native libraries to link
= note: use the cargo:rustc-link-lib directive to specify the native libraries to link with Cargo (see https://doc.rust-lang.org/cargo/reference/build-scripts.html#cargorustc-link-libkindname)

Describe what you expected to happen:

No response

What version of fd are you using?

Latest git

Which operating system / distribution are you on?

Ubuntu 22.04

info: syncing channel updates for 'stable-aarch64-unknown-linux-gnu'

  stable-aarch64-unknown-linux-gnu unchanged - rustc 1.65.0 (897e37553 2022-11-02)

info: checking for self-updates
@sharkdp
Copy link
Owner

sharkdp commented Nov 19, 2022

We currently do not support aarch64. If someone has access to an aarch64 platform and can help with this, that would be very much appreciated.

@sharkdp
Copy link
Owner

sharkdp commented Nov 19, 2022

Your post is referring to both aarch64-unknown-linux-musl and aarch64-unknown-linux-gnu. Are you sure that's not the problem? What exactly are you trying to do?

@tavianator
Copy link
Collaborator

We currently do not support aarch64. If someone has access to an aarch64 platform and can help with this, that would be very much appreciated.

I mean, I have a Raspberry Pi, lemme check

@sharkdp
Copy link
Owner

sharkdp commented Nov 19, 2022

I was confused. Somehow thought that this issue was about the new Apple Silicon hardware. Of course we support aarch64 (recent master run: https://github.com/sharkdp/fd/actions/runs/3494917553/jobs/5851137192). So maybe the problem is with the -musl part?

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

No branches or pull requests

3 participants