!pbdtvoHxUGLhcEvnlu:nixos.org

Exotic Nix Targets

338 Members
105 Servers

Load older messages


SenderMessageTime
26 Apr 2026
@lotte:chir.rsLotte (it/its)/Cinny (she/her) θΔ&cross compiled for running on riscv20:35:14
@alexfmpe:matrix.orgalexfmpethe correct Alex will now take over20:35:44
@lotte:chir.rsLotte (it/its)/Cinny (she/her) θΔ&i think i just recreated the hadrian patch in a worse way20:35:55
@alex:tunstall.xyzAlexPlease do share how if you manage to get that to work. I couldn't convince Hadrian to produce the correct output.20:35:58
@alex:tunstall.xyzAlexAlso, you may want to double check that the binary is actually for running on riscv64. Hadrian has a tendency to build a stage 2 cross-compiler instead of a stage 1 cross-compiler.20:37:04
@lotte:chir.rsLotte (it/its)/Cinny (she/her) θΔ&i also got a bootstrap from a debian 9.6.6 package20:37:41
@lotte:chir.rsLotte (it/its)/Cinny (she/her) θΔ&it's still in stage 020:37:52
@lotte:chir.rsLotte (it/its)/Cinny (she/her) θΔ&lemme look at the object files though20:38:19
@alex:tunstall.xyzAlexAh, if you're booting a fully native build from Debian's GHC it might be fine. I haven't touched Debian's packages.20:38:42
@alex:tunstall.xyzAlex* Ah, if you're booting a fully native build from Debian's GHC it might be fine. I haven't tried Debian's packages.20:38:51
@lotte:chir.rsLotte (it/its)/Cinny (she/her) θΔ&i was doing it before but i replaced it with a bootstrap from cross compiled ghc9.4.820:39:32
@lotte:chir.rsLotte (it/its)/Cinny (she/her) θΔ&which is what i originally wanted to do but was foiled by stdenv shenanigans20:40:04
@lotte:chir.rsLotte (it/its)/Cinny (she/her) θΔ&asm file in build dir is riscv so it's probably fine
Download asm file in build dir is riscv so it's probably fine
20:41:07
@alex:tunstall.xyzAlexNice. Looks promising. Since you mentioned 9.4.8 cross as a boot, is it a native build?20:42:24
@lotte:chir.rsLotte (it/its)/Cinny (she/her) θΔ&the 967 build is native20:42:58
@lotte:chir.rsLotte (it/its)/Cinny (she/her) θΔ&(running in qemu because my vf2 ain't got the cpu power for that)20:43:36
@alex:tunstall.xyzAlexYeah, that should work without trouble. If it doesn't, I'd be curious to reproduce the issue and investigate why.20:43:46
@alex:tunstall.xyzAlexThe VF2 can do it, provided you're willing to wait 20h for the GHC derivation alone. :D20:44:09
@lotte:chir.rsLotte (it/its)/Cinny (she/her) θΔ&i had an issue with 948 being single threaded which hadrian tried passing +RTS -qg to which single threaded 948 didn't understand20:45:48
@lotte:chir.rsLotte (it/its)/Cinny (she/her) θΔ&fixed that though by patching out the flag (the incorrect thing to do seemingly)20:46:32
@alex:tunstall.xyzAlex True, I did have to patch that out of Hadrian but never actually took the time to upstream it into Nixpkgs.
It's a bit tricky but possible: https://github.com/AlexandreTunstall/nixos-riscv/blob/df26291108c656d9ec47d4d57caf31810c0498e3/modules/compilers/ghc.nix#L40
20:48:11
@lotte:chir.rsLotte (it/its)/Cinny (she/her) θΔ&i put it into postpatch for hadrian20:48:58
@lotte:chir.rsLotte (it/its)/Cinny (she/her) θΔ&cursed
Download cursed
21:09:00
@emilazy:matrix.orgemily just "the mangler"? in my day it was known as the Evil Mangler 21:09:47
@emilazy:matrix.orgemily also, "a Perl script"? as the file extension clearly shows, it's a literate Perl script 21:09:59
@lotte:chir.rsLotte (it/its)/Cinny (she/her) θΔ&it's a ghc 5 era doc file21:12:59
@alexfmpe:matrix.orgalexfmpeit's literally a Perl script, what's the problem21:41:23
@emilazy:matrix.orgemilyit's a literate Perl script, which is better because it's more academic21:41:38
@alexfmpe:matrix.orgalexfmpenot sure if woosh21:41:50
@alexfmpe:matrix.orgalexfmpeor getting one-upped21:41:55

Show newer messages


Back to Room ListRoom Version: 6