!ayCRiZriCVtuCUpeLp:nixos.org

Nix Cross Compiling

552 Members
118 Servers

Load older messages


SenderMessageTime
21 Oct 2021
@sternenseemann:systemli.orgsterniI may have to dive into this business now; I haven't dived into that topic to much so far, so I was kind of hoping for you answering here bc you are a lot more knowledgeable than me here10:15:12
22 Oct 2021
@sternenseemann:systemli.orgsterni trofi: btw https://github.com/NixOS/nixpkgs/pull/87909 09:09:19
25 Oct 2021
@sternenseemann:systemli.orgsterniI think this came up here: https://github.com/NixOS/nixpkgs/issues/14290122:06:59
26 Oct 2021
@grahamc:nixos.org@grahamc:nixos.orgchanged room power levels.01:16:31
@mjolnir:nixos.orgNixOS Moderation Bot changed their display name from mjolnir to NixOS Moderation Bot.02:00:07
@mjolnir:nixos.orgNixOS Moderation Bot set a profile picture.02:00:25
@mjolnir:nixos.orgNixOS Moderation Bot changed their profile picture.02:23:38
@mjolnir:nixos.orgNixOS Moderation Bot changed their profile picture.02:33:08
27 Oct 2021
@sternenseemann:systemli.orgsterni Alyssa Ross: another “fun” fact: nixpkgs passes hostPlatform.config (a GNU triple) to the flag which at most understands LLVM triples + some hacks for certain things 16:20:43
@sternenseemann:systemli.orgsterni:|16:20:44
@sternenseemann:systemli.orgsternithe problem is that we kind of need LLVM compat here because that's all Cabal understands, seemingly16:21:18
@trofi:matrix.orgtrofiI though Cabal uses GHC's notion of tuples which predates LLVM: https://gitlab.haskell.org/ghc/ghc/-/blob/master/m4/ghc_convert_cpu.m4#L3 (same for OS/VENDOR).20:03:45
@trofi:matrix.orgtrofiAlso https://github.com/haskell/cabal/issues/5887 comes to mind20:05:15
@sternenseemann:systemli.orgsterni trofi: cabal can (attempt to) parse LLVM triples which was used in cabal 21:38:10
@sternenseemann:systemli.orgsterniit ignores the vendor part completely I think21:38:27
@trofi:matrix.orgtrofiaha21:38:46
@sternenseemann:systemli.orgsternialso the things GHC and Cabal understand are slightly different21:39:04
10 May 2022
@piper:lutris.engineeringPiper McCorkle (they/them or she/her) changed their display name from Piper McCorkle (she/her or they/them) to Piper McCorkle (they/them or she/her).05:25:52
27 Oct 2021
@sternenseemann:systemli.orgsternihence the GHC_CONVERT_{OS,CPU} macros21:39:13
29 Oct 2021
@sternenseemann:systemli.orgsterni John Ericson: any reason we are only building ghcHEAD in cross-trunk? I think this is the ghc version that works the worst atm 10:31:22
@sternenseemann:systemli.orgsterniwould probably make more sense to use the default version?10:31:38
@AleXoundOS:matrix.org@AleXoundOS:matrix.org joined the room.12:39:37
@AleXoundOS:matrix.org@AleXoundOS:matrix.orgHi. How can I use my own crosscompiler package (MIPS) instead of the one (GCC) from nixpkgs?14:36:33
@Ericson2314:matrix.orgJohn Ericson sterni: yeah that is probably a holdover from when only ghcHEAD worked, haha 15:10:17
@Ericson2314:matrix.orgJohn Ericsongood idea to change it15:10:23
@sternenseemann:systemli.orgsterni
In reply to @AleXoundOS:matrix.org
Hi. How can I use my own crosscompiler package (MIPS) instead of the one (GCC) from nixpkgs?
easiest is probably to package it properly and then use overrideCC stdenv buildPackages.my-cross-compiler as stdenv.
17:25:24
@sternenseemann:systemli.orgsterni nixpkgs needs to be cross compiled correctly, so e. g. import <nixpkgs> { crossSystem = { config = "<your autoconf triple>"; }c 17:27:01
@sternenseemann:systemli.orgsterni * nixpkgs needs to be cross compiled correctly, so e. g. import <nixpkgs> { crossSystem = { config = "<your autoconf triple>"; } 17:27:03
@sternenseemann:systemli.orgsterni if you are targeting mips, I'm not sure how will nixpkgs will cope with that seems only mipsel is explored territory 17:27:29
@sternenseemann:systemli.orgsterni John Ericson: oh we do ghcHEAD and default ghc 17:57:05

There are no newer messages yet.


Back to Room ListRoom Version: 6