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

rust-objcopy is x86-64 executable on aarch64-unknown-linux-gnu #138943

Open
Stevenjin8 opened this issue Mar 25, 2025 · 4 comments
Open

rust-objcopy is x86-64 executable on aarch64-unknown-linux-gnu #138943

Stevenjin8 opened this issue Mar 25, 2025 · 4 comments
Labels
C-bug Category: This is a bug. O-AArch64 Armv8-A or later processors in AArch64 mode T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)

Comments

@Stevenjin8
Copy link

Stevenjin8 commented Mar 25, 2025

If I download https://static.rust-lang.org/dist/rust-1.85.1-aarch64-unknown-linux-gnu.tar.xz (link from https://forge.rust-lang.org/infra/other-installation-methods.html#standalone-installers), all the files are ARM executables except for ./rustc/lib/rustlib/aarch64-unknown-linux-gnu/bin/rust-objcopy which is an x86_64 executable.

$ file ./rustc/lib/rustlib/aarch64-unknown-linux-gnu/bin/rust-objcopy
./rustc/lib/rustlib/aarch64-unknown-linux-gnu/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]=285124b3756870de665b8585d6c9cb3a72a13eca, for GNU/Linux 3.2.0, not stripped

I expected to see this happen to be a aarch executable

@Stevenjin8 Stevenjin8 added the C-bug Category: This is a bug. label Mar 25, 2025
@rustbot rustbot added the needs-triage This issue may need triage. Remove it if it has been sufficiently triaged. label Mar 25, 2025
@Stevenjin8
Copy link
Author

@moxian
Copy link
Contributor

moxian commented Mar 25, 2025

@rustbot label: +T-bootstrap +O-aarch64

@rustbot rustbot added T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) O-AArch64 Armv8-A or later processors in AArch64 mode labels Mar 25, 2025
@Noratrieb Noratrieb 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 Mar 26, 2025
@Noratrieb Noratrieb 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 Mar 26, 2025
@Noratrieb Noratrieb removed the needs-triage This issue may need triage. Remove it if it has been sufficiently triaged. label Mar 26, 2025
@Noratrieb
Copy link
Member

the relevant logic is here:

I don't see anything obvious standing out. note that rust-objcopy is only used for MacOS so this shouldn't cause problems in practice.

@Stevenjin8
Copy link
Author

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!

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. O-AArch64 Armv8-A or later processors in AArch64 mode T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)
Projects
None yet
Development

No branches or pull requests

4 participants