!ayCRiZriCVtuCUpeLp:nixos.org

Nix Cross Compiling

582 Members
126 Servers

Load older messages


SenderMessageTime
19 Feb 2026
@jonhermansen:matrix.org@jonhermansen:matrix.org left the room.18:27:51
21 Feb 2026
@h7x4:nani.wtfh7x4 changed their profile picture.19:25:59
@h7x4:nani.wtfh7x4 changed their profile picture.19:30:16
@h7x4:nani.wtfh7x4 changed their profile picture.19:33:40
22 Feb 2026
@oakenpearl15:matrix.orgOaken joined the room.02:54:21
@slushee:crabsin.spaceSlushee changed their profile picture.20:30:27
@slushee:crabsin.spaceSlushee changed their profile picture.23:03:42
23 Feb 2026
@theo-paris:matrix.orgTheo Paris

Not sure if this is the right place for this but:
I was testing github.com/NixOS/nixpkgs/pull/463361 with a nixos config flake using

  nixpkgs.localSystem = {
    system = "x86_64-linux";
    useLLVM = true;
    linker = "lld";
  };

And I ran into the following error:


       … while evaluating the option `home-manager.users.theo.i18n.glibcLocales':

       … while evaluating the option `i18n.glibcLocales':

       (stack trace truncated; use '--show-trace' to show the full, detailed trace)

       error: function 'anonymous lambda' called with unexpected argument 'nativeBuildInputs'
       at /nix/store/hq30166l4qc2l2va8v4lj9fyg894wdqs-source/pkgs/build-support/fetchurl/boot.nix:10:1:
            9|
           10| {
             | ^
           11|   url ? builtins.head urls,
00:58:11
@theo-paris:matrix.orgTheo ParisIt seems like it should work with crossSystem but that adds gcc's bootstrap to the mix as well as llvm00:58:45
@theo-paris:matrix.orgTheo Paris* It seems like it should work with crossSystem but that adds gcc's bootstrap to the mix as well as llvm - I just wanted to have a "(mostly) pure llvm" system.00:59:16
@theo-paris:matrix.orgTheo Paris* It seems like it should work with crossSystem but that adds the host gcc bootstrap to the mix as well as llvm - I just wanted to have a "(mostly) pure llvm" system.00:59:32
@theo-paris:matrix.orgTheo ParisI'm not even sure where to start to attempt to fix this issue... I could try adding nativeBuildInputs or removeAttrs but I'm not sure if those are the right solutions01:00:37
@artturin:matrix.orgArtturin
In reply to @theo-paris:matrix.org

Not sure if this is the right place for this but:
I was testing github.com/NixOS/nixpkgs/pull/463361 with a nixos config flake using

  nixpkgs.localSystem = {
    system = "x86_64-linux";
    useLLVM = true;
    linker = "lld";
  };

And I ran into the following error:


       … while evaluating the option `home-manager.users.theo.i18n.glibcLocales':

       … while evaluating the option `i18n.glibcLocales':

       (stack trace truncated; use '--show-trace' to show the full, detailed trace)

       error: function 'anonymous lambda' called with unexpected argument 'nativeBuildInputs'
       at /nix/store/hq30166l4qc2l2va8v4lj9fyg894wdqs-source/pkgs/build-support/fetchurl/boot.nix:10:1:
            9|
           10| {
             | ^
           11|   url ? builtins.head urls,

That's a common symptom of bootstrap issues
The bootstrap fetchurl is used in a place where the full fetchurl should be used.
It's not an issue in fetchurl itself

https://github.com/NixOS/nixpkgs/blob/master/pkgs/build-support/fetchurl/boot.nix

01:34:32
24 Feb 2026
@haylin:catgirl.cloudhaylin joined the room.04:17:53
@vcunat:matrix.orgvcunatThe cross-trunk jobset is broken now: https://hydra.nixos.org/jobset/nixpkgs/cross-trunk#tabs-errors07:34:18
@vcunat:matrix.orgvcunatProbably since https://github.com/NixOS/nixpkgs/pull/488406#event-2299933764507:34:44
@vcunat:matrix.orgvcunatI don't even know what error is relevant in there.07:39:49
@cdepillabout:matrix.orgcdepillabout left the room.07:40:25
@vcunat:matrix.orgvcunatOh wait, it probably isn't broken.07:46:16
@vcunat:matrix.orgvcunatFor a couple days there was no rebuild of those jobs, apparently. And the timer just hasn't fired since the staging-next merge yesterday 🤦 07:46:54
@vcunat:matrix.orgvcunatWe'll see in about an hour; I queued an eval.07:47:10
@crazychaoz:matrix.orgcrazychaoz

what happened in between

• Updated input 'nixpkgs':
       'github:NixOS/nixpkgs/41da1e3ea8e23e094e5e3eeb1e6b830468a7399e?narHash=sha256-jp0D4vzBcRKwNZwfY4BcWHemLGUs4JrS3X9w5k/JYDA%3D' (2025-06-14)
  → 'github:NixOS/nixpkgs/724cf38d99ba81fbb4a347081db93e2e3a9bc2ae?narHash=sha256-MpAKyXfJRDTgRU33Hja%2BG%2B3h9ywLAJJNRq4Pjbb4dQs%3D' (2026-02-19)

so that

error: Package ‘mingw_w64-pthreads-13.0.0’ in /nix/store/00k5v1i44s1dqjryvq6q414rnha8x6ld-source/pkgs/os-specific/windows/mingw-w64/headers.nix:35 is not available on the requested hostPlatform:
         hostPlatform.system = "x86_64-linux"
         package.meta.platforms = [
           "aarch64-windows"
           "x86_64-windows"
           "i686-windows"
         ]

(i cannot cross compile for windows anymore)

error (gcc-15.2.0):

       > The directory (BUILD_SYSTEM_HEADER_DIR) that should contain system headers does not exist:
       >   /usr/include
       > make[2]: *** [Makefile:3641: stmp-fixinc] Error 1
       > rm gcc.pod
       > make[2]: Leaving directory '/build/build/gcc'
09:32:21
@crazychaoz:matrix.orgcrazychaoz *

what happened in between

• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/41da1e3ea8e23e094e5e3eeb1e6b830468a7399e?narHash=sha256-jp0D4vzBcRKwNZwfY4BcWHemLGUs4JrS3X9w5k/JYDA%3D' (2025-06-14)
  → 'github:NixOS/nixpkgs/724cf38d99ba81fbb4a347081db93e2e3a9bc2ae?narHash=sha256-MpAKyXfJRDTgRU33Hja%2BG%2B3h9ywLAJJNRq4Pjbb4dQs%3D' (2026-02-19)

so that

error: Package ‘mingw_w64-pthreads-13.0.0’ in /nix/store/00k5v1i44s1dqjryvq6q414rnha8x6ld-source/pkgs/os-specific/windows/mingw-w64/headers.nix:35 is not available on the requested hostPlatform:
         hostPlatform.system = "x86_64-linux"
         package.meta.platforms = [
           "aarch64-windows"
           "x86_64-windows"
           "i686-windows"
         ]

(i cannot cross compile for windows anymore)

error (gcc-15.2.0):

       > The directory (BUILD_SYSTEM_HEADER_DIR) that should contain system headers does not exist:
       >   /usr/include
       > make[2]: *** [Makefile:3641: stmp-fixinc] Error 1
       > rm gcc.pod
       > make[2]: Leaving directory '/build/build/gcc'
09:32:29
@vcunat:matrix.orgvcunatIt evaluated fine. I'm sorry for the false alarm.10:20:46
@vcunat:matrix.orgvcunatThough the "removed jobs" might be worth investigating: https://hydra.nixos.org/eval/182312310:20:53
@vcunat:matrix.orgvcunat* The jobset evaluated fine. I'm sorry for the false alarm.10:21:51
@alexfmpe:matrix.orgalexfmpe
In reply to @crazychaoz:matrix.org

what happened in between

• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/41da1e3ea8e23e094e5e3eeb1e6b830468a7399e?narHash=sha256-jp0D4vzBcRKwNZwfY4BcWHemLGUs4JrS3X9w5k/JYDA%3D' (2025-06-14)
  → 'github:NixOS/nixpkgs/724cf38d99ba81fbb4a347081db93e2e3a9bc2ae?narHash=sha256-MpAKyXfJRDTgRU33Hja%2BG%2B3h9ywLAJJNRq4Pjbb4dQs%3D' (2026-02-19)

so that

error: Package ‘mingw_w64-pthreads-13.0.0’ in /nix/store/00k5v1i44s1dqjryvq6q414rnha8x6ld-source/pkgs/os-specific/windows/mingw-w64/headers.nix:35 is not available on the requested hostPlatform:
         hostPlatform.system = "x86_64-linux"
         package.meta.platforms = [
           "aarch64-windows"
           "x86_64-windows"
           "i686-windows"
         ]

(i cannot cross compile for windows anymore)

error (gcc-15.2.0):

       > The directory (BUILD_SYSTEM_HEADER_DIR) that should contain system headers does not exist:
       >   /usr/include
       > make[2]: *** [Makefile:3641: stmp-fixinc] Error 1
       > rm gcc.pod
       > make[2]: Leaving directory '/build/build/gcc'
That sounds very recent, I've been cross compiling to windows for months
10:40:03
@crazychaoz:matrix.orgcrazychaoz

how?
for me it worked previously with:

          TARGET_CC = "${pkgs.pkgsCross.mingwW64.stdenv.cc}/bin/${pkgs.pkgsCross.mingwW64.stdenv.cc.targetPrefix}cc";

          depsBuildBuild = with pkgs; [
            pkgsCross.mingwW64.stdenv.cc
            pkgsCross.mingwW64.windows.pthreads
            perl
          ];
11:22:33
@alexfmpe:matrix.orgalexfmpeI've mostly used pkgsCross.ucrt64, not sure about that one11:34:48
@alexfmpe:matrix.orgalexfmpe pkgsCross.ucrt64.windows.pthreads builds for me 11:35:41

Show newer messages


Back to Room ListRoom Version: 6