!ayCRiZriCVtuCUpeLp:nixos.org

Nix Cross Compiling

565 Members
118 Servers

Load older messages


SenderMessageTime
24 Feb 2026
@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
@alexfmpe:matrix.orgalexfmpe actually pkgsCross.mingwW64.windows.pthreads also builds for me 11:36:45
@alexfmpe:matrix.orgalexfmpeon aarch64-darwin11:36:49
@crazychaoz:matrix.orgcrazychaozi believe the error is with the cc11:38:27
@crazychaoz:matrix.orgcrazychaoz
┃                ┌─ ⏵ gcc-15.2.0 (buildPhase) ⏱ 5m0s
┃             ┌─ ⏸ gcc-wrapper-15.2.0
┃          ┌─ ⏸ stdenv-linux
┃       ┌─ ⏸ mingw_w64-pthreads-13.0.0
11:40:49
@alexfmpe:matrix.orgalexfmpe nix-build -A pkgsCross.mingwW64.stdenv.cc also built for me 12:01:27
@alexfmpe:matrix.orgalexfmpe
┏━ Dependency Graph:
┃          ┌─ ✔ dlltool
┃          │  ┌─ ✔ 001-fix-rpath.patch
┃          ├─ ✔ meson-1.10.1 ⏱ 5m9s
┃          │                       ┌─ ↓ ✔ gcc-15.2.0.tar.xz from [2]
┃          │                       │  ┌─ ✔ mingw_w64-headers-13.0.0 ⏱ 7s
┃          │                       │  ├─ ✔ x86_64-w64-mingw32-binutils-2.44 ⏱ 3m1s
┃          │                       ├─ ✔ x86_64-w64-mingw32-binutils-wrapper-2.44 ⏱ 4s
┃          │                    ┌─ ✔ x86_64-w64-mingw32-nolibc-gcc-15.2.0 ⏱ 6m26s
┃          │                 ┌─ ✔ win-dll-hook.sh
┃          │              ┌─ ✔ x86_64-w64-mingw32-nolibc-gcc-wrapper-15.2.0
┃          │           ┌─ ✔ stdenv-darwin
┃          │        ┌─ ✔ mingw-w64-x86_64-w64-mingw32-13.0.0 ⏱ 3m53s
┃          │     ┌─ ✔ x86_64-w64-mingw32-binutils-wrapper-2.44
┃          │  ┌─ ✔ x86_64-w64-mingw32-nolibc-gcc-wrapper-15.2.0
┃          ├─ ✔ stdenv-darwin
┃       ┌─ ✔ mcfgthread-x86_64-w64-mingw32-2.3.1 ⏱ 13s
┃    ┌─ ✔ x86_64-w64-mingw32-gcc-15.2.0 ⏱ 7m52s
┃ ┌─ ✔ win-dll-hook.sh
┃ ✔ x86_64-w64-mingw32-gcc-wrapper-15.2.0
12:01:45
@alexfmpe:matrix.orgalexfmpeI can't test on linux right now12:02:07
@alexfmpe:matrix.orgalexfmpe* I can't test on x86_64-linux right now12:02:21
@alexfmpe:matrix.orgalexfmpethis was on master12:03:49
@alexfmpe:matrix.orgalexfmpe if I try in your 724... commit, pkgsCross.mingwW64.stdenv.cc is fetched from cache 12:05:08
@crazychaoz:matrix.orgcrazychaozjust as a sanity check: please update & compile this: https://github.com/CrazyChaoz/backtor12:06:35
@alexfmpe:matrix.orgalexfmpe"update" ?12:20:12
@alexfmpe:matrix.orgalexfmpewait a second12:21:49
@crazychaoz:matrix.orgcrazychaoz i currently committed the "working" state, so you'll need a nix flake update to get the broken state 12:22:13
@crazychaoz:matrix.orgcrazychaozor should i publish a broken branch ?12:23:03
@alexfmpe:matrix.orgalexfmpeI mean, if you want me to reproduce, then yeah you should give me your exact flake.lock12:24:02
@alexfmpe:matrix.orgalexfmpe or I might nix flake update into a different state 12:24:23
@alexfmpe:matrix.orgalexfmpeI really don't get why flakes want flake.nix to be non-reproducible12:24:45
@crazychaoz:matrix.orgcrazychaozack; https://github.com/CrazyChaoz/backtor/tree/broken-windows12:30:05
@alexfmpe:matrix.orgalexfmpe what do I run?
nix build .\#packages.aarch64-darwin.windows
12:38:17
@alexfmpe:matrix.orgalexfmpe * what do I run?
nix build .\#packages.aarch64-darwin.windows ?
12:38:20
@crazychaoz:matrix.orgcrazychaoz.#windows should suffice12:38:45
@alexfmpe:matrix.orgalexfmpe

these 399 derivations will be built:

12:41:46
@alexfmpe:matrix.orgalexfmpeouch12:41:51

Show newer messages


Back to Room ListRoom Version: 6