lib.platforms.loongarch64: init#227560
Conversation
cbd2cbd to
4dafeb4
Compare
4dafeb4 to
b620ded
Compare
|
|
c6328ee to
b620ded
Compare
b620ded to
52205c6
Compare
52205c6 to
05b2728
Compare
|
I've added the patches for building and running @ofborg build pkgsCross.loongarch64-linux.nix $ file result/bin/nix
result/bin/nix: ELF 64-bit LSB pie executable, LoongArch, version 1 (SYSV), dynamically linked, interpreter /nix/store/5i7srpc3x5yrmsaygfg1cpr4q02y758c-glibc-loongarch64-unknown-linux-gnu-2.37-8/lib/ld-linux-loongarch-lp64d.so.1, BuildID[sha1]=64b062e2172e0bcc0962dc16de8064e4274eb783, for GNU/Linux 5.19.0, not stripped
$ result/bin/nix --version
nix (Nix) 2.13.3 |
05b2728 to
41a7833
Compare
41a7833 to
45ce269
Compare
45ce269 to
2a47336
Compare
6fd9b12 to
956719d
Compare
|
Wouldn't it be better to merge this now, so we can fix further stuff in parallel without pushing to this single PR? |
|
@wegank Looks like the generated hello program could successfully run in loongarch64 machine. But Nix still failure, whatever which argument I have give. The running linux kernel is still 4.19 by the ways, is it anyway to rebuild the program when the nixpkgs has changed ? |
The binary compatibility with the old world is indeed not guaranteed.
It is not possible to avoid rebuilding the world if stdenv is affected in a non-trivial way. You will experience this from time to time if you continue to bootstrap a native loongarch64-linux stdenv. |
Description of changes
Adding the support of loongarch64 platform
but current the platform couldn't work, the detail information could be seemed in the commit messages.Sorry, I haven't enough time to fix this problem since the middle of May, thus I have to make a kind of PR right now, and see if anyone is willing to help here.
Things done
Adding the support of loongarch64
adding a kind of mapping in
linux-headerfromloongarch64intoloongarchadding code in
pkgs/development/tools/misc/binutils/default.nixto avoid to using gold linker in the compile of loongarch64 arch.sandbox = trueset innix.conf? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/)