| 20 Nov 2025 |
magic_rb | anyone have any pointers for the cross compiling GHC itself issue? i would like to get some kind of GHC for armv6l if at all possible (would also help the riscv people) | 20:43:05 |
Alex | In reply to @magic_rb:matrix.redalder.org anyone have any pointers for the cross compiling GHC itself issue? i would like to get some kind of GHC for armv6l if at all possible (would also help the riscv people) Start from 9.4. | 20:48:04 |
Alex | 9.4 can be done cross, >= 9.6 doesn't work (unless upstream fixed it?) | 20:48:28 |
Alex | In reply to @magic_rb:matrix.redalder.org anyone have any pointers for the cross compiling GHC itself issue? i would like to get some kind of GHC for armv6l if at all possible (would also help the riscv people) This repository builds GHC for RISC-V from an older commit of nixpkgs, but it should demonstrate how to do it.
https://github.com/AlexandreTunstall/nixos-riscv | 20:49:57 |
Alex | In particular, see modules/compilers/ghc.nix | 20:50:40 |
magic_rb | goddamn armv6l-linux isnt even in the default cross set | 20:52:18 |
magic_rb | this will almost certainly go horribly, i doubt ghc even support armv6 officially | 20:54:53 |
Alex | It's possible that they used to but eventually dropped support for it. | 21:04:42 |
magic_rb | Im currently building llvm, we'll see how much ghc explodes | 21:06:02 |
magic_rb | Armv6 is ancient and i dont blame anyone for dropping it | 21:06:13 |
Alex | Oh, I might be confusing it with armv7l | 21:06:33 |
magic_rb | Armv7l is old but less ancient | 21:06:45 |
magic_rb | Armv7l actually is still supported by some stuff | 21:06:58 |
magic_rb | since im already talking about this in this room, anyone know how to conditionally override a package in an overlay when doing cross to a specific platform? I'd like to apply my overlay which cross boots GHC but only when crossing to armv6l-linux obviously | 21:23:55 |
Puna | In reply to @magic_rb:matrix.redalder.org anyone have any pointers for the cross compiling GHC itself issue? i would like to get some kind of GHC for armv6l if at all possible (would also help the riscv people) you could also bootstrap by packaging a ghc built by debian | 21:43:03 |
Puna | oh wait, v6... only if they have that one ig | 21:44:51 |
magic_rb | i think itll build, its been building for 26 minutes now | 21:45:21 |
magic_rb | whether itll be funtional, who knows | 21:45:26 |
magic_rb | if i want to upcompile to 984 id have to first go through 966 right? i recall something about them using extensions where are at least two minor releases old | 21:50:10 |
Puna | 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 | 21:58:01 |
magic_rb | not sure | 21:59:28 |
magic_rb | armel and armhf are not very descriptive | 21:59:35 |
Puna | https://wiki.debian.org/ArmEabiPort
https://wiki.debian.org/ArmHardFloatPort | 22:00:03 |
magic_rb | ah armel is armv6 but not HF | 22:00:07 |
magic_rb | i think? | 22:00:12 |
Puna |
The ARM EABI port (armel) is the default port in Debian for ARM architecture versions 4T, 5T, and 6.
From Debian 10 (buster), 4T is no longer supported and the armel baseline was updated to 5T. If you have 4T hardware, please use Debian stretch or upgrade your hardware.
| 22:00:36 |
Puna | and armhf says that it needs v7 | 22:00:56 |
magic_rb | yeah | 22:01:15 |
magic_rb | well, im gonna let the GHC we have finish crossing and see | 22:01:26 |
magic_rb | Puna youll never believe what i got | 22:09:43 |