!RbXGJhHMsnQcNIDFWN:nixos.org

Haskell in Nixpkgs/NixOS

720 Members
For discussions and questions about Haskell with Nix, cabal2nix and haskellPackages in nixpkgs | Current Docs: https://haskell4nix.readthedocs.io/ | More Nix: #community:nixos.org | More Haskell: #haskell-space:matrix.org143 Servers

Load older messages


SenderMessageTime
20 Nov 2025
@magic_rb:matrix.redalder.orgmagic_rbanyone 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:tunstall.xyzAlex
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:tunstall.xyzAlex9.4 can be done cross, >= 9.6 doesn't work (unless upstream fixed it?)20:48:28
@alex:tunstall.xyzAlex
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:tunstall.xyzAlex In particular, see modules/compilers/ghc.nix 20:50:40
@magic_rb:matrix.redalder.orgmagic_rbgoddamn armv6l-linux isnt even in the default cross set20:52:18
@magic_rb:matrix.redalder.orgmagic_rbthis will almost certainly go horribly, i doubt ghc even support armv6 officially20:54:53
@alex:tunstall.xyzAlexIt's possible that they used to but eventually dropped support for it.21:04:42
@magic_rb:matrix.redalder.orgmagic_rbIm currently building llvm, we'll see how much ghc explodes21:06:02
@magic_rb:matrix.redalder.orgmagic_rbArmv6 is ancient and i dont blame anyone for dropping it21:06:13
@alex:tunstall.xyzAlexOh, I might be confusing it with armv7l21:06:33
@magic_rb:matrix.redalder.orgmagic_rbArmv7l is old but less ancient21:06:45
@magic_rb:matrix.redalder.orgmagic_rbArmv7l actually is still supported by some stuff21:06:58
@magic_rb:matrix.redalder.orgmagic_rbsince 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 obviously21:23:55
@opna2608:matrix.orgPuna
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
@opna2608:matrix.orgPunaoh wait, v6... only if they have that one ig21:44:51
@magic_rb:matrix.redalder.orgmagic_rbi think itll build, its been building for 26 minutes now21:45:21
@magic_rb:matrix.redalder.orgmagic_rbwhether itll be funtional, who knows21:45:26
@magic_rb:matrix.redalder.orgmagic_rbif 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 old21:50:10
@opna2608:matrix.orgPuna 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:matrix.redalder.orgmagic_rbnot sure21:59:28
@magic_rb:matrix.redalder.orgmagic_rbarmel and armhf are not very descriptive21:59:35
@opna2608:matrix.orgPunahttps://wiki.debian.org/ArmEabiPort https://wiki.debian.org/ArmHardFloatPort22:00:03
@magic_rb:matrix.redalder.orgmagic_rbah armel is armv6 but not HF22:00:07
@magic_rb:matrix.redalder.orgmagic_rbi think?22:00:12
@opna2608:matrix.orgPuna

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
@opna2608:matrix.orgPunaand armhf says that it needs v722:00:56
@magic_rb:matrix.redalder.orgmagic_rbyeah22:01:15
@magic_rb:matrix.redalder.orgmagic_rbwell, im gonna let the GHC we have finish crossing and see22:01:26
@magic_rb:matrix.redalder.orgmagic_rb Puna youll never believe what i got 22:09:43

Show newer messages


Back to Room ListRoom Version: 6