!ayCRiZriCVtuCUpeLp:nixos.org

Nix Cross Compiling

581 Members
127 Servers

Load older messages


SenderMessageTime
26 Jun 2025
@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
@emilazy:matrix.orgemilyis LLVM a requirement?16:59:43
@electro__:matrix.orgElectro Yes, I would like to enable rust and also generate a compile_commands.json for the C code, and clang plays way nicer with it. 17:00:57
@k900:0upti.meK900 LLVM isn't a requirement for Rust 17:04:16
@k900:0upti.meK900 But if you want an LLVM built kernel, you're on your own right now really 17:04:41
@k900:0upti.meK900 We don't support that configuration 17:04:47
@electro__:matrix.orgElectroOof17:04:59
@rosscomputerguy:matrix.orgTristan RossI have a fix, just waiting review lol17:05:13
@electro__:matrix.orgElectroIt's broken?17:05:24
@rosscomputerguy:matrix.orgTristan Ross Yes, it pulls in GCC instead 17:05:35
@rosscomputerguy:matrix.orgTristan RossBut the PR properly pulls in clang17:05:48
@k900:0upti.meK900 It's unsupported, which means it's not something we test or generally care about 17:05:48
@rosscomputerguy:matrix.orgTristan RossTbf, I have been working on fixing pkgsLLVM to work better.17:08:21
@electro__:matrix.orgElectro Is there a reason the wrapped clang adds --target automatically? Isn't clang supposed to be a cross-compiler? Some constraint from working with nix? 17:10:14
@rosscomputerguy:matrix.orgTristan Ross It's because clang uses your host target by default 17:10:35
@emilazy:matrix.orgemilyour wrappers are target-specific17:10:45
@emilazy:matrix.orgemilyand inject lots of target-specific things17:10:48
@rosscomputerguy:matrix.orgTristan Ross Our wrapper and a lot of nixpkgs isn't built for multitarget 17:10:50
@emilazy:matrix.orgemilyit is possible to fix this and eliminate our wrappers entirely for LLVM but takes a lot of work17:11:02
@emilazy:matrix.orgemily (I outlined a plan for it in #stdenv:nixos.org yesterday) 17:11:10
@emilazy:matrix.orgemily you can use clang-unwrapped if you don't need Nixpkgs dependencies, otherwise you need a proper cross package set 17:11:26
@rosscomputerguy:matrix.orgTristan RossYeah, it's something I would like to see but just isn't there yet.17:11:36

Show newer messages


Back to Room ListRoom Version: 6