| 29 May 2021 |
Roos | Oh, that would certainly be fun | 15:53:47 |
pennae | ghc only targets x86 and arm/aarch64 atm | 15:58:38 |
Roos | I think the writer of git-annex has something along those lines. | 15:54:07 |
pennae | (other haskell compilers do exist, but afawk they mostly do bytecode or jvm, so they're out from the start for a µC) | 16:01:39 |
Roos | Right: https://hackage.haskell.org/package/arduino-copilot | 15:55:54 |
Roos | In reply to @roosemberth:orbstheorem.ch Right: https://hackage.haskell.org/package/arduino-copilot Or C | 16:02:19 |
maralorn | And I thought javascript runs on anything these days … | 16:08:20 |
Roos | That's not necessarily a good thing xD | 16:08:50 |
Las | cabal build on aarch64 for me gives me an ghc: could not execute: opt error, even though I have it in my PATH. Does anyone know how to fix this? | 16:10:45 |
maralorn | Las: On nixos-unstable? | 16:13:25 |
Las | Yeah | 16:13:31 |
Las | It's from the 7th of May | 16:14:02 |
Las | maralorn | 16:19:17 |
maralorn | I see. We have quite recently merged a fix for aarch64/llvm and the ghc withPackages wrapper. But I have no clue it applies to your situation. sterni (he/him) might know more. | 16:29:31 |
Las | Thanks, I'll try updating my nixpkgs! | 16:31:59 |
sterni (he/him) | Las: macOS? | 16:32:27 |
Las | No, Linux of course | 16:32:35 |
Las | I think I'm one of the very few people using an aarch64 machine as my main machine | 16:33:00 |
Las | * I think I'm one of the very few people using an aarch64-linux machine as my main machine | 16:33:04 |
sterni (he/him) | depending on how your environment is set up, ghc should know how to find the LLVM stuff by default now | 16:33:59 |
sterni (he/him) | not sure if we have fixed it everywhere | 16:34:16 |
sterni (he/him) | Las: try updating nixos-unstable and if it still doesn't work, please open an issue on github, describe how you set up your environment and ping @NixOS/haskell. I'll try to fix this, I can't really test stuff on aarch64 though so there's always a bit of guesswork involved | 16:36:00 |
Las | Thanks. | 16:36:11 |
pennae | maybe we should try to reinstall our pinebook and give aarch64 haskell another try
last we tried it was a bit of a massive pain in the tail | 16:37:51 |
sterni (he/him) | there should be quite substantial binary cache by now, I've fixed a bunch of failures related to a GHC bug | 16:38:50 |
sterni (he/him) | the only trouble is development environments because LLVM is not always added correctly, I think | 16:39:10 |
sterni (he/him) | it's a bit annoying that GHC expects LLVM to be in PATH | 16:39:27 |
pennae | last we tried was almost a year ago now, and on gentoo | 16:39:40 |
pennae | ghc just routinely failed to build at all there | 16:39:55 |
sterni (he/him) | everything is working currently in terms of ghc except ghcHEAD | 16:41:54 |