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

1.85.1: NetBSD x86_64 installation provides Linux rust-objcopy #139195

Open
0-wiz-0 opened this issue Mar 31, 2025 · 1 comment
Open

1.85.1: NetBSD x86_64 installation provides Linux rust-objcopy #139195

0-wiz-0 opened this issue Mar 31, 2025 · 1 comment
Labels
C-bug Category: This is a bug. O-netbsd Operating system: NetBSD T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)

Comments

@0-wiz-0
Copy link

0-wiz-0 commented Mar 31, 2025

I found this using the pkgsrc wip/rust185-bin package, but this can be reproduced in a NetBSD 10.99.12/x86_64 sandbox with the default installation suggestion of:

curl --proto '=https' --tlsv1.2 https://sh.rustup.rs -sSf | sh

I get a Linux binary of rust-objcopy installed:

# file .rustup/toolchains/stable-x86_64-unknown-netbsd/lib/rustlib/x86_64-unknown-netbsd/bin/rust-objcopy
.rustup/toolchains/stable-x86_64-unknown-netbsd/lib/rustlib/x86_64-unknown-netbsd/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]=24d28b2bcbdfbf3f133800c03229dd8644773e55, for GNU/Linux 3.2.0, not stripped

The other installed binaries are NetBSD 9.0 binaries, so that's fine.

I didn't check the other architectures, so please

  • find out what went wrong here
  • fix it
  • create new binary packages for the affected architectures

Thank you.

@rustbot rustbot added the needs-triage This issue may need triage. Remove it if it has been sufficiently triaged. label Mar 31, 2025
@0-wiz-0 0-wiz-0 changed the title 1.85.1: NetBSD x86_64 provides gets Linux rust-objcopy 1.85.1: NetBSD x86_64 provides Linux rust-objcopy Mar 31, 2025
@0-wiz-0 0-wiz-0 changed the title 1.85.1: NetBSD x86_64 provides Linux rust-objcopy 1.85.1: NetBSD x86_64 installation provides Linux rust-objcopy Mar 31, 2025
@moxian
Copy link
Contributor

moxian commented Mar 31, 2025

Effectively duplicate of #138943
This should not cause any issues in practice, but please mention if that's not the case.

@rustbot label: +T-bootstrap +O-netbsd +C-bug -needs-triage

@rustbot rustbot added C-bug Category: This is a bug. O-netbsd Operating system: NetBSD T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) and removed needs-triage This issue may need triage. Remove it if it has been sufficiently triaged. labels Mar 31, 2025
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-netbsd Operating system: NetBSD 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

3 participants