See https://gist.github.com/Toasterson/90d19ecf4e0b69cfbcd9566a7c098eb8 for the steps.
The problem seems to come from gcc but I have no clue what could be wrong with aarch_aapcs64.s
error: failed to run custom build command for `psm v0.1.21`
Caused by:
process didn't exit successfully: `/var/lib/abuild/rust/build/x86_64-unknown-illumos/stage1-rustc/release/build/psm-61c9c6ef89c427d5/build-script-build` (exit status: 1)
--- stdout