| 20 Nov 2025 |
Puna | 50/50 | 22:09:59 |
magic_rb | $ ./result/bin/ghci
qemu: uncaught target signal 11 (Segmentation fault) - core dumped
Segmentation fault (core dumped)
:( | 22:10:14 |
Puna | i'd believe it | 22:10:20 |
magic_rb | though tbf im also running this through fucking qemu which isnt helping probably | 22:10:36 |
magic_rb | can hetzner VMs execute armv6? probably not | 22:10:53 |
Puna | if you do wanna go the debian GHC way, you can yoink code from this
https://github.com/NixOS/nixpkgs/pull/439258 | 22:10:59 |
Alex | In reply to @opna2608:matrix.org cross-compiled haskell.compiler.ghc94 just segfaulted the moment i tried to do anything with it on ppc64. maybe it does better on armv6 though. otherwise, trixie has a prebuilt ghc 9.6.6 for armel that you could yoink for bootstrapping, I think that should work for armv6? https://packages.debian.org/trixie/ghc Try overriding it to force an unregisterised build (there is an option in the arguments for this). | 22:14:26 |
| 21 Nov 2025 |
Puna | that works, neat!
puna@Yubel ~> /nix/store/vyxi39wvrq4kzr0d18q4vplrczhh7ijk-ghc-powerpc64-unknown-linux-gnuabielfv1-9.4.8/bin/ghci
GHCi, version 9.4.8: https://www.haskell.org/ghc/ :? for help
ghci> :load /dev/shm/peano.hs
[1 of 2] Compiling Main ( /dev/shm/peano.hs, interpreted )
Ok, one module loaded.
ghci> toPeano 21
Succ (Succ (Succ (Succ (Succ (Succ (Succ (Succ (Succ (Succ (Succ (Succ (Succ (Succ (Succ (Succ (Succ (Succ (Succ (Succ (Succ Zero))))))))))))))))))))
| 00:04:00 |
magic_rb | Howd you overwrite it? Show code | 00:04:25 |
Puna | ↪ nix-build --no-out-link --max-jobs 1 --cores 30 -E '
with import ./. { };
pkgsCross.ppc64-elfv1.haskell.compiler.ghc94.override {
enableUnregisterised = true;
}'
| 00:04:46 |
magic_rb | Ill have to do the same most likely | 00:04:51 |
magic_rb | Didnt they plan to remove unregistered builds? | 00:05:00 |
magic_rb | Though, theyve been planning to remove unregistered ever since i know what GHC is, sooo probably not happening soon | 00:05:39 |
Alex | In reply to @magic_rb:matrix.redalder.org Didnt they plan to remove unregistered builds? That's no good if GHC can't generate valid code with NCG/LLVM for your platform.
Anyway, it might not be needed for newer GHCs (IIRC with RISC-V changing Nixpkgs version without changing GHC fixed the registerised segfault). | 00:08:53 |
| 20 May 2021 |
| @grahamc:nixos.org set the history visibility to "world_readable". | 22:10:58 |
| @grahamc:nixos.org changed the room name to "" from "". | 22:10:58 |
| @grahamc:nixos.org invited maralorn. | 22:11:05 |
| maralorn joined the room. | 22:11:13 |
| andi- joined the room. | 22:30:49 |
| @grahamc:nixos.orgchanged room power levels. | 22:36:42 |
| Room Avatar Renderer. | 22:46:20 |
| maralorn changed the join rule to "public" from "public". | 22:54:26 |
| maralorn changed the room topic to "For discussions and questions about Haskell with Nix, cabal2nix and haskellPackages in nixpkgs | Current Docs: https://haskell4nix.readthedocs.io/" from "For discussions about Haskell with Nix, cabal2nix and haskellPackages in nixpkgs | Current Docs: https://haskell4nix.readthedocs.io/". | 22:56:19 |
| Server Stats Discoverer (traveler bot) joined the room. | 23:05:49 |
| pennae joined the room. | 23:06:26 |
| justinrestivo joined the room. | 23:07:39 |
| srid joined the room. | 23:07:41 |
| bqv joined the room. | 23:08:26 |
| bqv changed their display name from qy to bqv. | 23:08:27 |
| bqv changed their display name from bqv to qy. | 23:08:28 |