!ayCRiZriCVtuCUpeLp:nixos.org

Nix Cross Compiling

578 Members
124 Servers

Load older messages


SenderMessageTime
26 Feb 2026
@rosssmyth:matrix.orgrosssmythSame way as using musl and glibs 20:20:13
@emilazy:matrix.orgemilyanyway I think someone should ask rustc what linker command it's actually calling20:20:23
@rosssmyth:matrix.orgrosssmyth* Same way as using musl and glibc20:20:27
@rosssmyth:matrix.orgrosssmythIt's probably in our rustc wrapper somewhere I'd guess20:20:44
@rosssmyth:matrix.orgrosssmythI'll poke around20:20:47
@emilazy:matrix.orgemilyisn't there just a flag that makes it print the command it runs?20:21:28
@emilazy:matrix.orgemilyI thought it did that whenever it failed even20:21:34
@rosssmyth:matrix.orgrosssmythYeah20:21:37
@rosssmyth:matrix.orgrosssmythrustc -V or something20:21:44
@rosssmyth:matrix.orgrosssmyth rustc --print link-args but you need to supply it with some files to munch on 20:24:41
@dramforever:matrix.orgdramforeveri can't compile ripgrep rn because it depends on ... arm64ec wine when crossing from aarch64-linux? which we don't have20:26:20
@dramforever:matrix.orgdramforeverbut pkgsCross.mingwW64.bonk works for me20:26:29
@dramforever:matrix.orgdramforever* i can't compile ripgrep rn because it depends on ... arm64ec wine plus an x86_64 emulator when crossing from aarch64-linux? which we don't have20:26:47
@dramforever:matrix.orgdramforeverdid this magically get fixed in the few months...?20:27:20
@dramforever:matrix.orgdramforever* did this magically get fixed in the few months since that PR...?20:27:26
@emilazy:matrix.orgemilyiirc we have some awful thing where you can pick between five different thread implementations for MinGW?20:27:35
@emilazy:matrix.orgemilyso maybe that's relevant20:27:38
@rosssmyth:matrix.orgrosssmythI removed most of those, so it should only use the real one most of the time except in one weird case20:28:01
@rosssmyth:matrix.orgrosssmythWhich idk why it is needed, but I just didn't touch it. 20:28:21
@rosssmyth:matrix.orgrosssmythUsing a weird windows pthreads from 2010 that hasn't been updated since 2013 is not actually load bearing it turns out20:32:22
@emilazy:matrix.orgemilyit's a Nixpkgs edge case so either one guy in 2014 used it once and it never even worked in-tree or you will break every single setup if you change it20:32:27
@rosssmyth:matrix.orgrosssmythYes. Which is why I didn't touch it. 20:32:40
@rosssmyth:matrix.orgrosssmyth If you want to see where it is used just run rg mcfgthreads 20:33:19
@emilazy:matrix.orgemilyyeah I have run into that before because of … GCC stuff or whatever20:33:32
@emilazy:matrix.orgemilyand been like what is this20:33:35
@emilazy:matrix.orgemily
  threads =
    lib.optionalAttrs (stdenv.hostPlatform.isMinGW && !(stdenv.hostPlatform.useLLVM or false))
      {
        # other possible values: win32 or posix
        model = "mcf";
        # For win32 or posix set this to null
        package = windows.mcfgthreads;
      };

are you sure this isn't used?

20:34:06
@dramforever:matrix.orgdramforeveri am so confused20:34:07
@emilazy:matrix.orgemily I think threads is a load-bearing part of the bootstarp 20:34:15
@rosssmyth:matrix.orgrosssmythProbably!20:34:25
@emilazy:matrix.orgemily
            threadsCross =
              if !lib.systems.equals stdenv.targetPlatform stdenv.buildPlatform then
                targetPackages.threads or pkgs.threads
              else
                { };
20:34:43

Show newer messages


Back to Room ListRoom Version: 6