!ayCRiZriCVtuCUpeLp:nixos.org

Nix Cross Compiling

564 Members
119 Servers

You have reached the beginning of time (for this room).


SenderMessageTime
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

Show newer messages


Back to Room ListRoom Version: 6