!ayCRiZriCVtuCUpeLp:nixos.org

Nix Cross Compiling

580 Members
126 Servers

Load older messages


SenderMessageTime
11 Mar 2025
@alexfmpe:matrix.orgalexfmpe bisected down to https://github.com/NixOS/nixpkgs/issues/191152
confirmed I can get libffi and gmp building again by adding a && !targetPlatform.isAndroid
howver I don't understand why it matters? I'm building from nixos, there's nothing on /usr/include
13:41:24
@alexfmpe:matrix.orgalexfmpeer, rather, bisected down to https://github.com/NixOS/nixpkgs/pull/356162 which fixes that issue13:42:12
@alexfmpe:matrix.orgalexfmpe I guess there's some sysroot shenanigans I don't understand going on and having -nostdlibinc is messing with it? 13:43:50
@alexfmpe:matrix.orgalexfmpe hmm though... merely adding && !targetPlatform.isAndroid seems risky for non-nixos linux as /usr/include can leak there? 13:49:30
@qyliss:fairydust.spaceAlyssa RossRedacted or Malformed Event13:52:46
13 Mar 2025
@phanirithvij:matrix.orgloudgolem
nix-build '<nixpkgs>' --arg crossSystem '(import <nixpkgs> {}).lib.systems.examples.aarch64-multiplatform' -A tinc

nix-build '<nixpkgs>' -A pkgsCross.aarch64-multiplatform.tinc

any reason why lib.systems.examples, examples is there

05:51:13
@phanirithvij:matrix.orgloudgolem *
nix-build '<nixpkgs>' --arg crossSystem '(import <nixpkgs> {}).lib.systems.examples.aarch64-multiplatform' -A tinc

nix-build '<nixpkgs>' -A pkgsCross.aarch64-multiplatform.tinc

any reason why lib.systems.examples, examples is there

05:51:19
@phanirithvij:matrix.orgloudgolem *
nix-build '<nixpkgs>' --arg crossSystem '(import <nixpkgs> {}).lib.systems.examples.aarch64-multiplatform' -A tinc
nix-build '<nixpkgs>' -A pkgsCross.aarch64-multiplatform.tinc

any reason why lib.systems.examples, examples is there

05:51:37
@artturin:matrix.orgArtturin
In reply to @phanirithvij:matrix.org
nix-build '<nixpkgs>' --arg crossSystem '(import <nixpkgs> {}).lib.systems.examples.aarch64-multiplatform' -A tinc
nix-build '<nixpkgs>' -A pkgsCross.aarch64-multiplatform.tinc

any reason why lib.systems.examples, examples is there

It's easier to refer to existing example platforms than to write all the attrs, some platforms have more than just config https://github.com/NixOS/nixpkgs/blob/master/lib/systems/examples.nix

pkgsCross sets are made from examples
https://github.com/NixOS/nixpkgs/blob/b1f2198021490b51fb92b8b09db97b9ba2a7b4ce/pkgs/top-level/stage.nix#L197

05:55:54
@ashwinmathi:matrix.orgAshwin Mathi joined the room.14:58:36
@rosssmyth:matrix.orgrosssmythWould it be possible to add a new default/example pkgsCross system that is basically the same as arm-embedded but with newlib-nano? My goal would be to get that GCC cached so that I could use a newer GCC since it seems that latest gcc-arm-embedded update (14) PR was denied. 18:55:20
@rosssmyth:matrix.orgrosssmythI don't know what would be involved beyond adding something to the examples file, but I would be willing to do it 19:01:07
15 Mar 2025
@implr:hackerspace.plimplr joined the room.17:07:38
@implr:hackerspace.plimplrI ran into https://github.com/NixOS/nixpkgs/issues/231537 while cross compiling from a x86 host to a rv64 target. I know it's fixed in unstable, but this makes me wonder about a more general problem: Shellcheck doesn't care what host arch it runs on. Theoretically, we could shellcheck the rv64 shell scripts with a host (x86) shellcheck, eliminating the need for a rv64 ghc. Is that even possible in nixpkgs?17:10:09
@implr:hackerspace.plimplror am i just missing something obvious17:10:14
@bitestring:matrix.orgbitestring Hi, any haskell.nix experts here? Could you please share a minimal flake.nix that can compile my Haskell library to Android aarch64? Documentation did not help at all. 17:10:48
@implr:hackerspace.plimplrnevermind, it is possible, i was just setting hostplatform/buildplatform wrong in colmena18:06:58
16 Mar 2025
@archercatneo:matrix.orgarchercatneo joined the room.15:30:01
17 Mar 2025
@rhelmot:matrix.orgrhelmotis qt cross just totally busted? I'm failing both aarch64-linux and x86_64-freebsd cross with errors related to multiple qtbases ending up in inputs03:22:00
@rhelmot:matrix.orgrhelmotI found https://github.com/NixOS/nixpkgs/pull/267311 but I don't parse how it would help in this case03:22:47
@rhelmot:matrix.orgrhelmot * is qt cross just totally busted? I'm failing both aarch64-linux and x86_64-freebsd cross for qt5.qtsvg with errors related to multiple qtbases ending up in inputs 03:23:30
@rhelmot:matrix.orgrhelmotcommenting out the propagatedBuildInputs/depsTargetTargetPropagated assignment on qmake-hook and that seems to fix some things but the ramifications... unknown lol. will run nixpkgs-review soon03:51:11
@artturin:matrix.orgArtturin
In reply to @rhelmot:matrix.org
is qt cross just totally busted? I'm failing both aarch64-linux and x86_64-freebsd cross for qt5.qtsvg with errors related to multiple qtbases ending up in inputs
Yup and there's a few pr which may fix it
03:59:02
@artturin:matrix.orgArtturin Use the cross label and in:title qt5 03:59:24
@rosscomputerguy:matrix.orgTristan RossYes, I've been wanting the issue fixed so I can get Steam "built" crossly onto aarch64 so I can do gaming on Ampere lol. It's still been broken.04:04:22
@emilazy:matrix.orgemilyI thought Qt 5 cross was inherently broken upstream or something04:10:45
@emilazy:matrix.orgemilybut that Qt 6 could work04:10:51
@greg:thehellings.comGreg HellingsQt5 can be made to work, depending on target. Here's the patchset that Fedora uses to cross compile qt5 base for just Mingw targets: https://src.fedoraproject.org/rpms/mingw-qt5-qtbase/tree/rawhide04:40:06
@greg:thehellings.comGreg HellingsBut that is a LOT of patches. 04:40:16
@rhelmot:matrix.orgrhelmotthanks for the hints, after a bit of tentative hacking I have cast qt5 into the shadow realm and am now building with qt607:46:50

Show newer messages


Back to Room ListRoom Version: 6