!ayCRiZriCVtuCUpeLp:nixos.org

Nix Cross Compiling

567 Members
123 Servers

Load older messages


SenderMessageTime
25 Oct 2025
@emilazy:matrix.orgemilybut this NOP apparently fixed things at some point?01:05:13
@emilazy:matrix.orgemilyI must be too tired to think properly :)01:05:29
@emilazy:matrix.orgemilyok, no, it's not a nop, the derivations before and after differ, I'm just confused01:10:07
@emilazy:matrix.orgemily oh 01:11:38
@emilazy:matrix.orgemily
  libraries = lib.makeExtensible (libraries: let
    callPackage = newScope (libraries // buildLlvmTools // { inherit stdenv cmake libxml2 python3 isl release_version version monorepoSrc; });
  in {
01:11:45
@emilazy:matrix.orgemilyyeah that. would explain it.01:11:47
@matthewcroughan:defenestrate.itmatthewcroughan @ 39c3 (DECT 94667 or 97340 or 67192)What is Canadian cross, and where can I learn more about the origins of this terM/14:22:39
@matthewcroughan:defenestrate.itmatthewcroughan @ 39c3 (DECT 94667 or 97340 or 67192)* What is Canadian cross, and where can I learn more about the origins of this term?14:22:40
@opna2608:matrix.orgPunadifferent platforms for build, host & target. i.e. cross-compiling (x86_64-linux -> aarch64-linux) a cross-compiler (aarch64-linux -> riscv64-none)14:26:43
@dramforever:matrix.orgdramforever

https://crosstool-ng.github.io/docs/toolchain-types/

The term Canadian Cross was coined because at the time that these issues were all being hashed out, Canada had three national political parties (per Wikipedia).

14:27:28
@emilazy:matrix.orgemilyit's the stupidest term in the universe14:38:31
@alexfmpe:matrix.orgalexfmpewhat's this "ng" I keep seeing everywhere? 14:39:34
@alexfmpe:matrix.orgalexfmpessh-ng, gcc-ng, crosstool-ng14:39:42
@artturin:matrix.orgArtturinNew gen14:39:50
@artturin:matrix.orgArtturin* next gen14:40:06
@alexfmpe:matrix.orgalexfmpeI feel somehow disappointed14:40:09
@alexfmpe:matrix.orgalexfmpe

The term Canadian Cross was coined because at the time that these issues were all being hashed out, Canada had three national political parties

lolwut

14:43:08
@alexfmpe:matrix.orgalexfmpe* lolwut14:43:29
@emilazy:matrix.orgemily it's a bit awkward that makeScopeWithSplicing' passes self rather than spliced to the function 15:38:46
@emilazy:matrix.orgemily like the pkgs/__splicedPackages thing 15:38:52
@emilazy:matrix.orgemily is the idea to just always use callPackage for every single definition? but that's awkward in its own way, because of the effects on .override of course 15:39:09
@emilazy:matrix.orgemily can we just… make it pass spliced? I'm not seeing how that would cause problems 15:39:49
26 Oct 2025
@thedb:matrix.orgthedb joined the room.10:23:30
27 Oct 2025
@llamato:matrix.orgLlamato joined the room.20:08:25
28 Oct 2025
@llamato:matrix.orgLlamatoHi guys. I am working on getting a nix os desktop enviroment running on the Banana Pi M1. (armv7l). So far I managed to get the labwc wayland compositor running but am now struggling to get any browser to compile. Looks like onnxruntime keeps firefox from compiling. Shitboken6 keeps falkon from compiling and libparserutils keeps netsurf from compiling saying it can not find the CC command oddly enough. Any ideas on what I can do here?07:12:19
@symphorien:xlumurb.eusymphorienfwiw last version of upstream Firefox dropped support for 32 bit07:14:27
@grimmauld:grapevine.grimmauld.deGrimmauld (any/all)You could maybe try servo... Things not finding cc does happen occasionally, should be fixable07:18:25
@grimmauld:grapevine.grimmauld.deGrimmauld (any/all)Qt cross for falkon, well good luck07:18:41
@anders:sorby.xyzAnders

Reposting here:
I am working on readding support for relibc and redoxos to nixpkgs. That requires adding support for the relibc library which is a replacement for libc compatible with redox.
https://github.com/NixOS/nixpkgs/pull/453786

But I run into an infinite recusion problem when I try nix-shell -A pkgsCross.x86_64-unknown-redox.mkShell.


       … while evaluating the attribute 'stdenv.cc.targetPrefix'
         at /home/anderscs/src/nixpkgs/pkgs/stdenv/generic/default.nix:209:15:
          208|
          209|       inherit cc hasCC;
             |               ^
          210|

       … while evaluating 'targetPackages.stdenv.cc' to select 'targetPrefix' on it
         at /home/anderscs/src/nixpkgs/pkgs/development/compilers/rust/rustc.nix:55:14:
           54| stdenv.mkDerivation (finalAttrs: {
           55|   pname = "${targetPackages.stdenv.cc.targetPrefix}rustc";
             |              ^
           56|   inherit version;

       error: infinite recursion encountered
       at /home/anderscs/src/nixpkgs/pkgs/development/compilers/rust/rustc.nix:55:14:
           54| stdenv.mkDerivation (finalAttrs: {
           55|   pname = "${targetPackages.stdenv.cc.targetPrefix}rustc";
             |              ^

It is a circular dependency which should be solvable.

How do I best solve this?

07:39:44
@llamato:matrix.orgLlamato Thank you for the quick response.

Regarding CC not being found. How could that be fixed?

Regarding Servo. I tried it but that seems to have issues with the rust bindings. Saying it can not find bindgen.
08:05:11

Show newer messages


Back to Room ListRoom Version: 6