Opened 4 years ago

Closed 4 years ago

#60943 closed enhancement (fixed)

rust, cargo: Support arm64

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: g5pw (Aljaž Srebrnič)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: ofarrill, michaelld (Michael Dickens), herbygillot (Herby Gillot), cmconnelly (Claire Connelly), MaddTheSane (C.W. Betts), Dave-Allured (Dave Allured), bestlem, davidbailey00 (David Bailey), railwaycat (sinxccc)
Port: rust cargo

Description

The rust port currently restricts itself to x86_64. Can you investigate adding support for arm64 as well?

Change History (16)

comment:1 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)

Owner: set to g5pw
Status: newassigned

comment:2 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ofarrill added

Has duplicate #60969.

comment:3 Changed 4 years ago by michaelld (Michael Dickens)

Cc: michaelld added

comment:4 Changed 4 years ago by michaelld (Michael Dickens)

happy to help with testing for any ARM64 patches / fixes, for this or other ports

comment:5 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)

Looks like there some degree of rust working on arm64 here:

https://github.com/shepmaster/rust/blob/silicon/silicon/README.md

I'm not sure how to apply that information to updating the rust port.

comment:6 Changed 4 years ago by herbygillot (Herby Gillot)

Cc: herbygillot added

comment:7 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: cmconnelly added

Has duplicate #61553.

comment:8 Changed 4 years ago by MaddTheSane (C.W. Betts)

Cc: MaddTheSane added

comment:9 Changed 4 years ago by Dave-Allured (Dave Allured)

Cc: Dave-Allured added

comment:10 Changed 4 years ago by Harry1993 (Yanmao Man)

64-bit ARM macOS and Windows reach Tier 2:

https://blog.rust-lang.org/2020/12/31/Rust-1.49.0.html

comment:11 Changed 4 years ago by kencu (Ken)

comment:12 Changed 4 years ago by bestlem

Cc: bestlem added

comment:13 Changed 4 years ago by davidbailey00 (David Bailey)

Cc: davidbailey00 added

comment:14 Changed 4 years ago by railwaycat (sinxccc)

Cc: railwaycat added

comment:15 Changed 4 years ago by herbygillot (Herby Gillot)

In 4c5878867bdeb08e5d8c394a76598343cefd081a/macports-ports (master):

rust: update to 1.50.0

  • Use Rust's LLVM instead of MacPorts. This increases build time, but Rust will now build and run in exactly the way it's meant to.

Fixes: #62395
See: #60943
See: #61082

Co-authored-by: Fabian Deifuß <deifussfabian@…>

comment:16 Changed 4 years ago by herbygillot (Herby Gillot)

Resolution: fixed
Status: assignedclosed

In 912990978bd30cc420f083457af559fd33c59b51/macports-ports (master):

cargo-bootstrap: update to 1.50.0

  • Use Rust 1.50.0's prebuilt cargo as bootstrap
  • Enable ARM64 support for both cargo and cargo-bootstrap

Fixes: #60943

Note: See TracTickets for help on using tickets.