You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
rust-objcopy is x86-64 executable on aarch64-unknown-linux-gnu #138943
C-bugCategory: This is a bug.O-AArch64Armv8-A or later processors in AArch64 modeT-bootstrapRelevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)
changed the title [-]https://github.com/rust-lang/www.rust-lang.org/issues/2127[/-][+]rust-objcopy is x86-64 executable in aarch64-unknown-linux-gnu[/+]on Mar 26, 2025
changed the title [-]rust-objcopy is x86-64 executable in aarch64-unknown-linux-gnu[/-][+]rust-objcopy is x86-64 executable on aarch64-unknown-linux-gnu[/+]on Mar 26, 2025
C-bugCategory: This is a bug.O-AArch64Armv8-A or later processors in AArch64 modeT-bootstrapRelevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)
Activity
Stevenjin8 commentedon Mar 25, 2025
rust-lang/www.rust-lang.org#2127
moxian commentedon Mar 25, 2025
@rustbot label: +T-bootstrap +O-aarch64
[-]https://github.com/rust-lang/www.rust-lang.org/issues/2127[/-][+]rust-objcopy is x86-64 executable in aarch64-unknown-linux-gnu[/+][-]rust-objcopy is x86-64 executable in aarch64-unknown-linux-gnu[/-][+]rust-objcopy is x86-64 executable on aarch64-unknown-linux-gnu[/+]Noratrieb commentedon Mar 26, 2025
the relevant logic is here:
rust/src/bootstrap/src/core/build_steps/compile.rs
Line 2193 in 068609c
Stevenjin8 commentedon Mar 27, 2025
Yeah its not a big issue for me. I just came across this and figured I'd make an issue just in case. Thanks for taking the time to look into this!
alex-berger commentedon Apr 14, 2025
@Noratrieb Actually, it causes problems in practice. For example in our use case where we are cross-compiling from Linux to macOS.
ab566a1583b4:/workdir# uname -m aarch64 ab566a1583b4:/workdir# file /root/.rustup/toolchains/stable-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/bin/rust-objcopy /root/.rustup/toolchains/stable-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/bin/rust-objcopy: ELF 64-bit LSB pie executable, x86-64, version 1 (GNU/Linux), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, BuildID[sha1]=314f8cd18e99dc0dd8d0f1cd88dd44291cb566c0, for GNU/Linux 3.2.0, not strippedWhich then leads to build failures/errors like this:
tindzk commentedon May 16, 2025
I encountered the same issue as @alex-berger when cross-compiling to macOS. This can be used as a workaround on Alpine Linux:
lambdageek commentedon Oct 29, 2025
I think this is a duplicate of #145699 and is probably fixed by #145763
Kobzol commentedon Oct 29, 2025
Yes, I also think so, thank you.