!ayCRiZriCVtuCUpeLp:nixos.org

Nix Cross Compiling

560 Members
122 Servers

Load older messages


SenderMessageTime
17 Nov 2021
@piegames:matrix.orgpiegamesOkay, I'll try that.18:12:47
@piegames:matrix.orgpiegames
In reply to @sternenseemann:systemli.org
piegames: so it fails because you are passing it a second time
Well, it would, if clang had proper CLI argument error handling. Passing --target twice just does … something?
18:13:13
@piegames:matrix.orgpiegames
In reply to @symphorien:xlumurb.eu
Maybe try nix-shell -A pkgsCross.riscv32-embedded.rustc
I already have that, thanks. I need a custom patched LLVM version within my rustc for $reasons.
18:13:46
@piegames:matrix.orgpiegames
In reply to @sternenseemann:systemli.org
you can use clang-unwrapped, but then you are back at square one and need to figure out everything manually
Would have helped, but didn't: the list of supported targets is rather short (comparing to the binary from Arch) and it doesn't include any riscv
18:26:22
@sternenseemann:systemli.orgsterni llvmPackages_12.clang-unwrapped? 18:27:27
@piegames:matrix.orgpiegamesThank you, it works now (I had an outdated package)18:32:04
19 Nov 2021
@happyalu:matrix.orghappyalu joined the room.04:21:35
20 Nov 2021
@nykw:tchncs.denykw joined the room.11:08:02
@sternenseemann:systemli.orgsternihm has anyone been watching GHC cross builds?14:53:37
@sternenseemann:systemli.orgsterni * hm has anyone been watching cross GHC builds?14:53:46
@sternenseemann:systemli.orgsterniseems like there may have been regressions along the way14:53:58
21 Nov 2021
@kunrooted:matrix.orgkunrooted changed their profile picture.12:54:24
@alexfmpe:matrix.orgalexfmpesterni: huh which regressions? I fixed ghc 8.x for mingw a month ago or so, but haven't really looked at it since23:40:30
@alexfmpe:matrix.orgalexfmpedoes it make sense to add that to whatever that cross release file was? will that get it in CI?23:41:03
@sternenseemann:systemli.orgsterni alexfmpe: pkgs/top-level/release-cross.nix describes this jobset: https://hydra.nixos.org/jobset/nixpkgs/cross-trunk 23:44:24
@sternenseemann:systemli.orgsterniif you look at a recent eval, you can check for the failures23:44:36
@sternenseemann:systemli.orgsterni you'll find the 8.10.7 failures by searching for haskellPackages 23:44:50
@sternenseemann:systemli.orgsterni ghcHEAD is in a bit of a state as well, but I don't care too much atm, may be more interesting to replace it with ghc921 for now 23:45:19
@sternenseemann:systemli.orgsterni also the platform list in release-cross.nix is a bit weird, we should maybe sync it with lib.systems.examples 23:45:48
@alexfmpe:matrix.orgalexfmpe
In reply to @sternenseemann:systemli.org
you'll find the 8.10.7 failures by searching for haskellPackages
did you mean cross builds of ghc or misc haskell packages?
23:47:52
@alexfmpe:matrix.orgalexfmpe I seem to remember ghc 9.x being broken on mingw upstream 23:50:22
@alexfmpe:matrix.orgalexfmpehttps://gitlab.haskell.org/ghc/ghc/-/issues/1814323:51:09
@alexfmpe:matrix.orgalexfmpeand voila https://hydra.nixos.org/build/158165265/nixlog/123:51:37
@alexfmpe:matrix.orgalexfmpeoh hmm two related PRs landed one week ago, that seems worth trying23:53:09
22 Nov 2021
@alexfmpe:matrix.orgalexfmpe indeed, the current ghcHead build goes further now and hits some missing term.h error which seems to be fixed with an ncurses dep 00:23:00
@alexfmpe:matrix.orgalexfmpebuild still going, here's hoping it actually works now00:23:27
@alexfmpe:matrix.orgalexfmpe sterni: https://github.com/NixOS/nixpkgs/pull/146959 02:57:06
@sternenseemann:systemli.orgsterni
In reply to @alexfmpe:matrix.org
did you mean cross builds of ghc or misc haskell packages?
cross compilation of haskellPackages.hello is tested which also requires us to build a haskell cross compiler
11:18:41
@sternenseemann:systemli.orgsternithanks a lot for the patch!11:19:06
@sternenseemann:systemli.orgsterni John Ericson: interesting long term project could be improving the story with cc-wrapper and multi target compilers or in nixpkgs in general, given that GHC is projected to become multi target in the future as well 11:19:47

There are no newer messages yet.


Back to Room ListRoom Version: 6