!ayCRiZriCVtuCUpeLp:nixos.org

Nix Cross Compiling

580 Members
126 Servers

Load older messages


SenderMessageTime
18 Jun 2025
@rosssmyth:matrix.orgrosssmyth

I've been doing some work toward cross-compiling for MSVC. Mainly because I have some software I build at work that I build for Linux and mingw, but MSVC would be preferable for interop with other software we have. Got some basic stuff going.

  1. Create essentially a fetcher for the SDK
  2. Download the SDK and fix it up
  3. Wrap clang-cl
  4. Wrap rustc

Can compile hello world. I've not tested it on anything more complicated yet.
https://github.com/RossSmyth/msvcNix

18:05:20
@lukas.voreck:matrix.studverthi.deLukas(THI) changed their display name from Lukas Voreck to Lukas(THI).22:19:46
19 Jun 2025
@greg:thehellings.comGreg Hellings Hey y'all, cross-compiling pkgsCross.ucrtAarch64.stdenv.cc for Windows on Arm has been broken for about a month. A quick bisect points to commit 4f8431266ce9a84b5c524a310e931681b2d7db5a 04:27:43
@greg:thehellings.comGreg Hellings Seems to make sense, as that change specifically creates a symlink between libunwind.so and libgcc_s.so files, which are notably absent in the ucrtAarch64 target, as it is a purely LLVM environment with no gcc present 04:29:07
@greg:thehellings.comGreg Hellings Nope, looks like the problem is the file paths. Windows keeps its shared libraries under /bin/ with a .dll extension whereas on other platforms they tend to be .so files in /lib/ 04:38:50
@dramforever:matrix.orgdramforeverhttps://github.com/NixOS/nixpkgs/pull/41775707:18:31
@fliegendewurst:matrix.orgFliegendeWurst changed their display name from FliegendeWurst to FliegendeWurst (@GPN23).12:29:29
20 Jun 2025
@greg:thehellings.comGreg Hellingshttps://github.com/NixOS/nixpkgs/pull/41805413:07:56
@thenextusername:matrix.orgthenextusername joined the room.14:15:51
22 Jun 2025
@ss:someonex.netSomeoneSerge (back on matrix) changed their display name from SomeoneSerge (UTC+U[-12,12]) to SomeoneSerge (Ever OOMed by Element).12:13:58
@pakt:nope.chat@pakt:nope.chat joined the room.21:37:44
@pakt:nope.chat@pakt:nope.chat 21:44:08
@pakt:nope.chat@pakt:nope.chat removed their display name pakt.21:44:09
@pakt:nope.chat@pakt:nope.chat left the room.21:44:12
23 Jun 2025
@ytr:tchncs.deytr joined the room.04:18:00
@wulpine:matrix.orgWulpey joined the room.22:33:43
25 Jun 2025
@hxr404:tchncs.dehxr404 ✨ [she/her] changed their display name from hxr404 ✨ [it/she] to hxr404 ✨ [she/her].12:34:05
@freexploit:trafkin.com@freexploit:trafkin.com joined the room.16:28:30
@greg:thehellings.comGreg HellingsThat PR from last week is still looking for some input on the best way to handle Windows' special paths and filenames, if anyone wants to weigh in on it. https://github.com/NixOS/nixpkgs/pull/41805418:16:26
26 Jun 2025
@kernz9:matrix.orgkernz9 joined the room.05:38:53
@zekeriyaoz:matrix.orgmao zedong changed their profile picture.21:43:05
@zekeriyaoz:matrix.orgmao zedong changed their display name from nixosfanboy to liselifilozof.21:44:08
27 Jun 2025
@redstone-menace:matrix.orgR̴̨͕͇͍̞̮̐̅͆̌̀̉̐͋̈́̃̀͒́̎̅̚̚̚͠͝Ĕ̵̡̛͖͖̟̙̫̱͈̘̞̭͍͍͑̌̄͑̓̋̓̀̈̏̈́͊̇͊͆̉͂̏̀̃̚͘͝͝ͅͅD̶̡̢͔̱̖̮͙͉̘̺͓͍̩̮͈͍͗̃̀̏͌͘͜ͅŚ̸̬̭̯̬͙͇͓̬̩̳̤͚͓̤̩̺͉͖̉͛̓̿̎͊̿̆́̐͂̇͌̄̇̓͘ͅͅT̴̞̫̘̝͇͔̟̪̪̦͂̔̎̀̎ͅŎ̷̡̬̹̪͈̭̣͈̭̭͉̦̖̝̘̪͖͔̥̦̘̻̳Ṋ̶̛̫͈̳̘͚̜̔̋͆̅̈́͊̑͊̉̌̈́̾͑̈́̚ͅË̸̡̨̨̛͇̜̖͔͖̻̟̗̠̙͓̘̗̥͉͇̜͑͆͊͑͑̀̓͒͜͝͝ changed their display name from Redstone to R̴̨͕͇͍̞̮̐̅͆̌̀̉̐͋̈́̃̀͒́̎̅̚̚̚͠͝Ĕ̵̡̛͖͖̟̙̫̱͈̘̞̭͍͍͑̌̄͑̓̋̓̀̈̏̈́͊̇͊͆̉͂̏̀̃̚͘͝͝ͅͅD̶̡̢͔̱̖̮͙͉̘̺͓͍̩̮͈͍͗̃̀̏͌͘͜ͅŚ̸̬̭̯̬͙͇͓̬̩̳̤͚͓̤̩̺͉͖̉͛̓̿̎͊̿̆́̐͂̇͌̄̇̓͘ͅͅT̴̞̫̘̝͇͔̟̪̪̦͂̔̎̀̎ͅŎ̷̡̬̹̪͈̭̣͈̭̭͉̦̖̝̘̪͖͔̥̦̘̻̳Ṋ̶̛̫͈̳̘͚̜̔̋͆̅̈́͊̑͊̉̌̈́̾͑̈́̚ͅË̸̡̨̨̛͇̜̖͔͖̻̟̗̠̙͓̘̗̥͉͇̜͑͆͊͑͑̀̓͒͜͝͝.00:55:01
@redstone-menace:matrix.orgR̴̨͕͇͍̞̮̐̅͆̌̀̉̐͋̈́̃̀͒́̎̅̚̚̚͠͝Ĕ̵̡̛͖͖̟̙̫̱͈̘̞̭͍͍͑̌̄͑̓̋̓̀̈̏̈́͊̇͊͆̉͂̏̀̃̚͘͝͝ͅͅD̶̡̢͔̱̖̮͙͉̘̺͓͍̩̮͈͍͗̃̀̏͌͘͜ͅŚ̸̬̭̯̬͙͇͓̬̩̳̤͚͓̤̩̺͉͖̉͛̓̿̎͊̿̆́̐͂̇͌̄̇̓͘ͅͅT̴̞̫̘̝͇͔̟̪̪̦͂̔̎̀̎ͅŎ̷̡̬̹̪͈̭̣͈̭̭͉̦̖̝̘̪͖͔̥̦̘̻̳Ṋ̶̛̫͈̳̘͚̜̔̋͆̅̈́͊̑͊̉̌̈́̾͑̈́̚ͅË̸̡̨̨̛͇̜̖͔͖̻̟̗̠̙͓̘̗̥͉͇̜͑͆͊͑͑̀̓͒͜͝͝ changed their profile picture.00:56:14
@zekeriyaoz:matrix.orgmao zedong changed their profile picture.20:27:45
@zekeriyaoz:matrix.orgmao zedong changed their display name from liselifilozof to mao zedong.20:28:05
28 Jun 2025
@electro__:matrix.orgElectro joined the room.22:37:48
29 Jun 2025
@fzdslr:converser.euFZDSLR joined the room.11:20:41
@electro__:matrix.orgElectro Does anyone have a shell.nix that just works for cross compiling the linux kernel? Trying to do an arm64 build, but struggling getting things to work, since linux doesn't not expect LLVM tools to need something like the aarch64-unknown-linux-gnu- prefix that nix provides... 16:57:58
@k900:0upti.meK900 nix-shell -A pkgsCross.aarch64-multiplatform.linux should work 16:58:47

Show newer messages


Back to Room ListRoom Version: 6