!ayCRiZriCVtuCUpeLp:nixos.org

Nix Cross Compiling

535 Members
110 Servers

Load older messages


SenderMessageTime
18 Oct 2025
@matthewcroughan:defenestrate.itmatthewcroughanlike in this case valgrind is pretty heavy and maybe not all platforms should include valgrind12:24:04
@qyliss:fairydust.spaceAlyssa Rossif there's a principled criteria for that, sure12:24:18
@qyliss:fairydust.spaceAlyssa Rossbut there's no fundamental reason we should include valgrind for GCC builds and not LLVM ones12:24:44
@matthewcroughan:defenestrate.itmatthewcroughan

Sure, my discovery has highlighted two things:

  1. An issue with valgrind that needs to be fixed upstream
  2. Maybe valgrind is really heavy and we don't need it in mesa for all platforms
12:25:44
@matthewcroughan:defenestrate.itmatthewcroughanThe reason Alpine has things working with mesa across the board is because they're compiling with less deps in general, so we're probably not going to have working musl for years unless we did the same12:26:24
@qyliss:fairydust.spaceAlyssa Rosswe have a "working musl"12:26:36
@matthewcroughan:defenestrate.itmatthewcroughanNot always, I know my issue here is LLVM related only, but I've had similar circumstances 12:26:57
@qyliss:fairydust.spaceAlyssa Rossyes, packages are broken sometimes12:27:21
@matthewcroughan:defenestrate.itmatthewcroughanLike let's say we want to compile Blender with Musl, alpine seems to have that working, but we probably won't due to our enablement of every dep and feature12:27:24
@matthewcroughan:defenestrate.itmatthewcroughanAnd it may be that upstream patching is needed, but it's also the case that we could just compile a more minimal blender.12:28:13
@qyliss:fairydust.spaceAlyssa Rosswhich you can do with overrides12:28:31
@matthewcroughan:defenestrate.itmatthewcroughanAh okay that's the solution then12:28:39
@matthewcroughan:defenestrate.itmatthewcroughanif something is for some reason not optional, enough to make it able to be compiled with musl, then that is the bug12:28:54
@dramforever:matrix.orgdramforeverwe don't have to do everything in upstream nixpkgs12:28:57
@qyliss:fairydust.spaceAlyssa Rossas a user, you probably don't actually want silent differences in feature support on different platforms for non-fundamental reasons every time somebody didn't feel like fixing something properly12:29:08
@dramforever:matrix.orgdramforeverlike this is the thing you need to lay off the gas on12:29:08
@matthewcroughan:defenestrate.itmatthewcroughanA lot of what I have found is not optional and not fixable outside of nixpkgs12:29:33
@matthewcroughan:defenestrate.itmatthewcroughanSo in that case it does need to be done 12:29:42
@dramforever:matrix.orgdramforeveryou can just maintain a fork of nixpkgs that works for musl12:29:51
@matthewcroughan:defenestrate.itmatthewcroughanhttps://github.com/NixOS/nixpkgs/pull/45273812:29:58
@dramforever:matrix.orgdramforeverand then push stuff either into nixpkgs or upstream12:30:01
@dramforever:matrix.orgdramforeveras maint goes on12:30:07
@dramforever:matrix.orgdramforeverexample: https://github.com/loongson-community/nixpkgs12:30:23
@matthewcroughan:defenestrate.itmatthewcroughanYeah I have been, and then submitting PRs 12:30:29
@matthewcroughan:defenestrate.itmatthewcroughanLike my flake right now is depending on my own fork12:30:38
@qyliss:fairydust.spaceAlyssa Rossthat's the way12:30:43
@qyliss:fairydust.spaceAlyssa Rossover time the diff reduces12:30:48
@qyliss:fairydust.spaceAlyssa Rossand then your fork fades away12:30:51
@dramforever:matrix.orgdramforeveryeah just do that12:30:54
@qyliss:fairydust.spaceAlyssa Rossthat's what happened with my own musl work12:30:55

Show newer messages


Back to Room ListRoom Version: 6