nix
nix copied to clipboard
Add support for LoongArch64
Yet another architecture :-) I don' know much about rust, but at least it built on qemu <:-/
Hi @donmor
Thanks for your contribution for LoongArch!
WARNING: The requested image's platform (linux/loong64) does not match the detected host platform (linux/amd64) and no specific platform was requested
exec /usr/sbin/sh: exec format error
Does it need to cross compile for loongarch64 target on x86_64 host?
Thanks, Leslie Zhai
Hi @donmor
Thanks for your contribution for LoongArch!
WARNING: The requested image's platform (linux/loong64) does not match the detected host platform (linux/amd64) and no specific platform was requested exec /usr/sbin/sh: exec format error
Does it need to cross compile for loongarch64 target on x86_64 host?
Thanks, Leslie Zhai
I think so but I failed to make it pass CI. I can build this locally on qemu vm, though <:-/
And I'm not sure if it is finely optimized. It's just a simpliest patch to build this package on loongarch.
Could we skip CI and just add basic support like ioctl
for now? We can add CI at a later time, such as when promoting to Tier 2.
loongarch64 is already in tier2. This PR should get more attention. @asomers would you like to take a look?
loongarch64 is already in tier2. This PR should get more attention. @asomers would you like to take a look?
Seconded. The user base of this architecture is definitely picking up and nix
is an essential dependency for most Rust applications.
The author of this PR hasn't been active on GitHub for a while, so feel free to pick it up.
Triage: https://github.com/nix-rust/nix/pull/2045 (since nix 0.27.0
) already contained the necessary ioctl change, so if this PR is to be rebased, only the CI changes will remain. nix
is already working on LoongArch from 0.27.0
on, if one doesn't intend to hack on nix
itself.
Triage: #2045 (since
nix 0.27.0
) already contained the necessary ioctl change, so if this PR is to be rebased, only the CI changes will remain.nix
is already working on LoongArch from0.27.0
on, if one doesn't intend to hack onnix
itself.
Thanks for confirming that!
so if this PR is to be rebased, only the CI changes will remain.
Please also add this target to the target support list of Nix as a tier2 target.
Sorry for be inactive (I'm busy at work). I have this rebased here (#2461 ).
I'm not sure if cirrus.yml
is still necessary, so I'll leave this open but remove unnecessary changes.
I'm not sure if cirrus.yml is still necessary, so I'll leave this open but remove unnecessary changes.
This is no longer needed, close it as superseded by #2461.