-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Commonize uname -m
results for aarch64
in docker runner
#127828
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Conversation
Unfortunately this doesn't cover everything because it gives archive failures building with |
FWIW, I had the same change in a local branch that I just didn't get around to pushing. It worked for me with the aarch64-gnu image. |
Thanks for confirming, great to know at least this bit works. Launching the aarch linux image with Didn't look into it too much since the message was pretty useless, hence #127830. I also didn't try running the full dist build since I might as well just use try jobs for that. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
feel free to r=me with/without the nit suggestion
src/ci/docker/run.sh
Outdated
machine="$(uname -m)" | ||
if [ "$machine" = "arm64" ]; then | ||
# MacOS reports "arm64" while Linux reports "aarch64". Commonize this. | ||
machine="aarch64" | ||
fi |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit
machine="$(uname -m)" | |
if [ "$machine" = "arm64" ]; then | |
# MacOS reports "arm64" while Linux reports "aarch64". Commonize this. | |
machine="aarch64" | |
fi | |
# MacOS reports "arm64" while Linux reports "aarch64". Commonize this. | |
machine="$(uname -m | sed 's/arm64/aarch64/')" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Applied and double checked it works, thanks!
`uname -m` on Linux reports `aarch64`, but on MacOS reports `arm64`. Commonize this to `aarch64`. With this fix, it is now possible to run aarch64 CI docker images on Arm MacOS.
fd3c486
to
f3f0b57
Compare
@bors r=onur-ozkan rollup |
…nur-ozkan Commonize `uname -m` results for `aarch64` in docker runner `uname -m` on Linux reports `aarch64`, but on MacOS reports `arm64`. Commonize this to `aarch64`. With this fix, it is now possible to run aarch64 CI docker images on Arm MacOS.
…iaskrgr Rollup of 9 pull requests Successful merges: - rust-lang#127542 ([`macro_metavar_expr_concat`] Add support for literals) - rust-lang#127652 (Unignore cg_gcc fmt) - rust-lang#127664 (Fix precise capturing suggestion for hidden regions when we have APITs) - rust-lang#127806 (Some parser improvements) - rust-lang#127828 (Commonize `uname -m` results for `aarch64` in docker runner) - rust-lang#127845 (unix: break `stack_overflow::install_main_guard` into smaller fn) - rust-lang#127854 (Add internal lint for detecting non-glob imports of `rustc_type_ir::inherent`) - rust-lang#127861 (Document the column numbers for the dbg! macro) - rust-lang#127875 (style-guide: Clarify version-sorting) r? `@ghost` `@rustbot` modify labels: rollup
Rollup of 9 pull requests Successful merges: - rust-lang#127542 ([`macro_metavar_expr_concat`] Add support for literals) - rust-lang#127652 (Unignore cg_gcc fmt) - rust-lang#127664 (Fix precise capturing suggestion for hidden regions when we have APITs) - rust-lang#127806 (Some parser improvements) - rust-lang#127828 (Commonize `uname -m` results for `aarch64` in docker runner) - rust-lang#127845 (unix: break `stack_overflow::install_main_guard` into smaller fn) - rust-lang#127859 (ptr::metadata: avoid references to extern types) - rust-lang#127861 (Document the column numbers for the dbg! macro) - rust-lang#127875 (style-guide: Clarify version-sorting) r? `@ghost` `@rustbot` modify labels: rollup
Rollup merge of rust-lang#127828 - tgross35:docker-aarch64-uname, r=onur-ozkan Commonize `uname -m` results for `aarch64` in docker runner `uname -m` on Linux reports `aarch64`, but on MacOS reports `arm64`. Commonize this to `aarch64`. With this fix, it is now possible to run aarch64 CI docker images on Arm MacOS.
uname -m
on Linux reportsaarch64
, but on MacOS reportsarm64
. Commonize this toaarch64
.With this fix, it is now possible to run aarch64 CI docker images on Arm MacOS.