NixOS RISC-V | 209 Members | |
| NixOS on RISC-V https://wiki.nixos.org/wiki/RISC-V https://pad.lassul.us/NixOS-riscv64-linux https://github.com/orgs/NixOS/teams/risc-v | 62 Servers |
| Sender | Message | Time |
|---|---|---|
| 9 Jan 2024 | ||
fgaz: thanks for your work on this device! Regarding your Sourcehut releases: I downloaded the latest 2 or 3 (a few times using a few methods just to be sure), but the checksums are consistently different from those published in your release descriptions, and attempts to decompress them (w/zstd or zstdcat) consistently result in Read error (39) : premature end at around 2.94 GiB. Is it just me? | 04:01:31 | |
* fgaz: thanks for your work on the Star64! Regarding your Sourcehut releases: I downloaded the latest 2 or 3 (a few times using a few methods just to be sure), but the checksums are consistently different from those published in your release descriptions, and attempts to decompress them (w/zstd or zstdcat) consistently result in Read error (39) : premature end at around 2.94 GiB. Is it just me? | 04:06:22 | |
| ctem: it's not just you, srht is truncating the files. Seems like I got an exception for the upload limit but not for the download one. Get the image from here | 08:33:23 | |
| Thanks, grabbing it now! | 08:35:03 | |
| Here's a MEGA mirror for good measure: https://mega.nz/folder/peF2Rahb#fCG03VnoNVGuNRWXHSSR-g | 09:49:28 | |
| 10 Jan 2024 | ||
| FYI: This small RISC-V notebook look very nice https://noc.social/@cnxsoft/111731217857524077 | 20:08:44 | |
| 11 Jan 2024 | ||
| 17:31:28 | ||
| 17:31:44 | ||
| 17:31:48 | ||
| 16 Jan 2024 | ||
| 03:28:03 | ||
| 17 Jan 2024 | ||
| 17:48:59 | ||
| 21 Jan 2024 | ||
In reply to @fgaz:matrix.orgMerged 🎉 https://github.com/NixOS/nixpkgs/pull/282517 | 19:34:52 | |
In reply to @fgaz:matrix.orgNice, now I no longer need an ugly hack to build everything with RV64GC_Zba_Zbb (old bootstrap's GCC was too old). | 19:40:47 | |
| 23 Jan 2024 | ||
| hi, I'm building a RISC-V NixOS system for qemu without compressed instructions using this overlay http://sprunge.us/SzNRff that injects -march=rv64g via NIX_CFLAGS_COMPILE_riscv64_unknown_linux_gnu | 11:24:36 | |
| to ensure there are no compressed instructions I enabled a trap in QEMU that aborts if a compressed instruction is used | 11:25:04 | |
| it boots fine and reaches userspace, but there is a problem in libgcc_s.so, which causes a SIGILL | 11:25:32 | |
| I'm not sure if this method works for libgcc_s as it may end up being built by the new compiler, ignoring my -march hack | 11:27:04 | |
| any ideas? | 11:27:33 | |
In reply to @rdg:matrix.org Have you tried setting I'd share some specific code, but I can't find it. I think it might only be on my RISC-V system. | 13:07:12 | |
In reply to @rdg:matrix.org If you're compiling natively (YMMV for cross-compilation), the following should work, since it seems to be used by all gcc compilers, including when compiling gcc itself from the bootstrap gcc. | 13:20:24 | |
| * If you're compiling natively (YMMV for cross-compilation), the following should work, since it seems to be used by all gcc compilers, including when compiling gcc itself from the bootstrap gcc. | 13:20:53 | |
| Alex: I'm cross compiling, so I tried adding it in the nixpkgs.crossSystem.gcc.arch but I don't see it with NIX_DEBUG=1 being added anywhere | 13:27:30 | |
| for native compilation we had successfully used nixpkgs.localSystem.gcc.arch in other tests | 13:28:13 | |
| https://github.com/NixOS/nixpkgs/blob/15ff1758e7816331033baa14eebbea68626128f3/pkgs/build-support/cc-wrapper/default.nix#L601 | 15:33:44 | |
| it is injected before not after the original flags | 15:34:03 | |
In reply to @rdg:matrix.org I think it's because That whole function is a nightmare for RISC-V's highly customisable ISA... | 15:55:39 | |
| the flag arrives to cc-cflags-before | 15:57:33 | |
| the problem is that some packages inject their own -march, overriding it | 15:57:55 | |
| that's why I used NIX_CFLAGS_COMPILE_riscv64_unknown_linux_gnu, as it gets added after | 15:58:20 | |
| but it doesn't work for musl (required for the security wrappers) or rust | 15:58:48 | |