| 12 Nov 2025 |
| @generationz777:matrix.org removed their display name genz. | 04:30:14 |
| @generationz777:matrix.org left the room. | 04:30:40 |
| Inayet changed their display name from inayet to Inayet. | 12:38:32 |
| 14 Nov 2025 |
Grimmauld (any/all) | seems libdc1394 is broken on llvm, and thus gst-plugins-bad is broken (and a whole lot of other stuff depending on that). It might make sense to disable that plugin on llvm | 17:34:38 |
Grimmauld (any/all) | but i am making progress on building my musl VM with llvm, there is only a few fails remaining (though those will be painful) | 17:35:20 |
Grimmauld (any/all) |  Download image.png | 17:35:21 |
Alyssa Ross | or fix it :P | 17:51:58 |
| 15 Nov 2025 |
Grimmauld (any/all) | https://github.com/NixOS/nixpkgs/blob/ce944e8d76f74336dbf6725c87ca2539b0653c30/pkgs/build-support/rust/lib/default.nix#L58-L82 This doesn't look quite right to me...
The build hook used in my builds contains this:
` "CCX8664UNKNOWNLINUX_MUSL=/nix/store/wrhxx96lh48nsv9a6p38b3x4r2fskwwm-gcc-wrapper-14.3.0/bin/cc" \ "CXXX8664UNKNOWNLINUX_MUSL=/nix/store/wrhxx96lh48nsv9a6p38b3x4r2fskwwm-gcc-wrapper-14.3.0/bin/c++" \ "CARGOTARGETX8664UNKNOWNLINUXMUSL_LINKER=/nix/store/wrhxx96lh48nsv9a6p38b3x4r2fskwwm-gcc-wrapper-14.3.0/bin/cc" \ "CARGOBUILDTARGET=x86_64-unknown-linux-musl" \ "HOST_CC=/nix/store/wrhxx96lh48nsv9a6p38b3x4r2fskwwm-gcc-wrapper-14.3.0/bin/cc" \ "HOST_CXX=/nix/store/wrhxx96lh48nsv9a6p38b3x4r2fskwwm-gcc-wrapper-14.3.0/bin/c++" \ "CCX8664UNKNOWNLINUX_MUSL=/nix/store/wrhxx96lh48nsv9a6p38b3x4r2fskwwm-gcc-wrapper-14.3.0/bin/cc" \ "CXXX8664UNKNOWNLINUX_MUSL=/nix/store/wrhxx96lh48nsv9a6p38b3x4r2fskwwm-gcc-wrapper-14.3.0/bin/c++" \ "CARGOTARGETX8664UNKNOWNLINUXMUSL_LINKER=/nix/store/wrhxx96lh48nsv9a6p38b3x4r2fskwwm-gcc-wrapper-14.3.0/bin/cc" \
`, | 16:25:31 |
Grimmauld (any/all) | https://github.com/NixOS/nixpkgs/blob/ce944e8d76f74336dbf6725c87ca2539b0653c30/pkgs/build-support/rust/lib/default.nix#L58-L82 This doesn't look quite right to me...
The build hook used in my builds contains this:
"CC_X86_64_UNKNOWN_LINUX\_MUSL=/nix/store/wrhxx96lh48nsv9a6p38b3x4r2fskwwm-gcc-wrapper-14.3.0/bin/cc" \
"CXX_X86_64_UNKNOWN_LINUX\_MUSL=/nix/store/wrhxx96lh48nsv9a6p38b3x4r2fskwwm-gcc-wrapper-14.3.0/bin/c++" \
"CARGO_TARGET_X86_64_UNKNOWN_LINUX_MUSL\_LINKER=/nix/store/wrhxx96lh48nsv9a6p38b3x4r2fskwwm-gcc-wrapper-14.3.0/bin/cc" \
"CARGO_BUILD_TARGET=x86\_64-unknown-linux-musl" \
"HOST\_CC=/nix/store/wrhxx96lh48nsv9a6p38b3x4r2fskwwm-gcc-wrapper-14.3.0/bin/cc" \
"HOST\_CXX=/nix/store/wrhxx96lh48nsv9a6p38b3x4r2fskwwm-gcc-wrapper-14.3.0/bin/c++" \
"CC_X86_64_UNKNOWN_LINUX\_MUSL=/nix/store/wrhxx96lh48nsv9a6p38b3x4r2fskwwm-gcc-wrapper-14.3.0/bin/cc" \
"CXX_X86_64_UNKNOWN_LINUX\_MUSL=/nix/store/wrhxx96lh48nsv9a6p38b3x4r2fskwwm-gcc-wrapper-14.3.0/bin/c++" \
"CARGO_TARGET_X86_64_UNKNOWN_LINUX_MUSL\_LINKER=/nix/store/wrhxx96lh48nsv9a6p38b3x4r2fskwwm-gcc-wrapper-14.3.0/bin/cc" \
```,
but my platform definition is
nixpkgs.buildPlatform = (inputs.nixpkgs.lib.systems.elaborate "x86_64-unknown-linux-musl"); nixpkgs.hostPlatform = inputs.nixpkgs.lib.recursiveUpdate (inputs.nixpkgs.lib.systems.elaborate "x86_64-unknown-linux-musl") { useLLVM = true; linker = "lld"; config = "x86_64-unknown-linux-musl"; };
`
So i'd have expected lld and clang in there | 16:25:42 |
Grimmauld (any/all) | https://github.com/NixOS/nixpkgs/blob/ce944e8d76f74336dbf6725c87ca2539b0653c30/pkgs/build-support/rust/lib/default.nix#L58-L82 This doesn't look quite right to me...
The build hook used in my builds contains this:
"CC_X86_64_UNKNOWN_LINUX\_MUSL=/nix/store/wrhxx96lh48nsv9a6p38b3x4r2fskwwm-gcc-wrapper-14.3.0/bin/cc" \
"CXX_X86_64_UNKNOWN_LINUX\_MUSL=/nix/store/wrhxx96lh48nsv9a6p38b3x4r2fskwwm-gcc-wrapper-14.3.0/bin/c++" \
"CARGO_TARGET_X86_64_UNKNOWN_LINUX_MUSL\_LINKER=/nix/store/wrhxx96lh48nsv9a6p38b3x4r2fskwwm-gcc-wrapper-14.3.0/bin/cc" \
"CARGO_BUILD_TARGET=x86\_64-unknown-linux-musl" \
"HOST\_CC=/nix/store/wrhxx96lh48nsv9a6p38b3x4r2fskwwm-gcc-wrapper-14.3.0/bin/cc" \
"HOST\_CXX=/nix/store/wrhxx96lh48nsv9a6p38b3x4r2fskwwm-gcc-wrapper-14.3.0/bin/c++" \
"CC_X86_64_UNKNOWN_LINUX\_MUSL=/nix/store/wrhxx96lh48nsv9a6p38b3x4r2fskwwm-gcc-wrapper-14.3.0/bin/cc" \
"CXX_X86_64_UNKNOWN_LINUX\_MUSL=/nix/store/wrhxx96lh48nsv9a6p38b3x4r2fskwwm-gcc-wrapper-14.3.0/bin/c++" \
"CARGO_TARGET_X86_64_UNKNOWN_LINUX_MUSL\_LINKER=/nix/store/wrhxx96lh48nsv9a6p38b3x4r2fskwwm-gcc-wrapper-14.3.0/bin/cc" \
```,
but my platform definition is
```nix
nixpkgs.buildPlatform = (inputs.nixpkgs.lib.systems.elaborate "x86\_64-unknown-linux-musl");
nixpkgs.hostPlatform =
inputs.nixpkgs.lib.recursiveUpdate
(inputs.nixpkgs.lib.systems.elaborate "x86\_64-unknown-linux-musl")
{
useLLVM = true;
linker = "lld";
config = "x86\_64-unknown-linux-musl";
};
So i'd have expected lld and clang in there | 16:25:50 |
Grimmauld (any/all) | https://github.com/NixOS/nixpkgs/blob/ce944e8d76f74336dbf6725c87ca2539b0653c30/pkgs/build-support/rust/lib/default.nix#L58-L82 This doesn't look quite right to me...
The build hook used in my builds contains this:
"CC_X86_64_UNKNOWN_LINUX\_MUSL=/nix/store/wrhxx96lh48nsv9a6p38b3x4r2fskwwm-gcc-wrapper-14.3.0/bin/cc" \
"CXX_X86_64_UNKNOWN_LINUX\_MUSL=/nix/store/wrhxx96lh48nsv9a6p38b3x4r2fskwwm-gcc-wrapper-14.3.0/bin/c++" \
"CARGO_TARGET_X86_64_UNKNOWN_LINUX_MUSL\_LINKER=/nix/store/wrhxx96lh48nsv9a6p38b3x4r2fskwwm-gcc-wrapper-14.3.0/bin/cc" \
"CARGO_BUILD_TARGET=x86\_64-unknown-linux-musl" \
"HOST\_CC=/nix/store/wrhxx96lh48nsv9a6p38b3x4r2fskwwm-gcc-wrapper-14.3.0/bin/cc" \
"HOST\_CXX=/nix/store/wrhxx96lh48nsv9a6p38b3x4r2fskwwm-gcc-wrapper-14.3.0/bin/c++" \
"CC_X86_64_UNKNOWN_LINUX\_MUSL=/nix/store/wrhxx96lh48nsv9a6p38b3x4r2fskwwm-gcc-wrapper-14.3.0/bin/cc" \
"CXX_X86_64_UNKNOWN_LINUX\_MUSL=/nix/store/wrhxx96lh48nsv9a6p38b3x4r2fskwwm-gcc-wrapper-14.3.0/bin/c++" \
"CARGO_TARGET_X86_64_UNKNOWN_LINUX_MUSL\_LINKER=/nix/store/wrhxx96lh48nsv9a6p38b3x4r2fskwwm-gcc-wrapper-14.3.0/bin/cc" \
but my platform definition is
nixpkgs.buildPlatform = (inputs.nixpkgs.lib.systems.elaborate "x86\_64-unknown-linux-musl");
nixpkgs.hostPlatform =
inputs.nixpkgs.lib.recursiveUpdate
(inputs.nixpkgs.lib.systems.elaborate "x86\_64-unknown-linux-musl")
{
useLLVM = true;
linker = "lld";
config = "x86\_64-unknown-linux-musl";
};
So i'd have expected lld and clang in there | 16:26:02 |
Grimmauld (any/all) | https://github.com/NixOS/nixpkgs/blob/ce944e8d76f74336dbf6725c87ca2539b0653c30/pkgs/build-support/rust/lib/default.nix#L58-L82 This doesn't look quite right to me...
The build hook used in my builds contains this:
"CC_X86_64_UNKNOWN_LINUX\_MUSL=/nix/store/wrhxx96lh48nsv9a6p38b3x4r2fskwwm-gcc-wrapper-14.3.0/bin/cc" \
"CXX_X86_64_UNKNOWN_LINUX\_MUSL=/nix/store/wrhxx96lh48nsv9a6p38b3x4r2fskwwm-gcc-wrapper-14.3.0/bin/c++" \
"CARGO_TARGET_X86_64_UNKNOWN_LINUX_MUSL\_LINKER=/nix/store/wrhxx96lh48nsv9a6p38b3x4r2fskwwm-gcc-wrapper-14.3.0/bin/cc" \
"CARGO_BUILD_TARGET=x86\_64-unknown-linux-musl" \
"HOST\_CC=/nix/store/wrhxx96lh48nsv9a6p38b3x4r2fskwwm-gcc-wrapper-14.3.0/bin/cc" \
"HOST\_CXX=/nix/store/wrhxx96lh48nsv9a6p38b3x4r2fskwwm-gcc-wrapper-14.3.0/bin/c++" \
"CC_X86_64_UNKNOWN_LINUX\_MUSL=/nix/store/wrhxx96lh48nsv9a6p38b3x4r2fskwwm-gcc-wrapper-14.3.0/bin/cc" \
"CXX_X86_64_UNKNOWN_LINUX\_MUSL=/nix/store/wrhxx96lh48nsv9a6p38b3x4r2fskwwm-gcc-wrapper-14.3.0/bin/c++" \
"CARGO_TARGET_X86_64_UNKNOWN_LINUX_MUSL\_LINKER=/nix/store/wrhxx96lh48nsv9a6p38b3x4r2fskwwm-gcc-wrapper-14.3.0/bin/cc" \
but my platform definition is
nixpkgs.buildPlatform = (inputs.nixpkgs.lib.systems.elaborate "x86_64-unknown-linux-musl");
nixpkgs.hostPlatform =
inputs.nixpkgs.lib.recursiveUpdate
(inputs.nixpkgs.lib.systems.elaborate "x86_64-unknown-linux-musl")
{
useLLVM = true;
linker = "lld";
config = "x86_64-unknown-linux-musl";
};
So i'd have expected lld and clang in there | 16:26:23 |
Grimmauld (any/all) | https://github.com/NixOS/nixpkgs/blob/ce944e8d76f74336dbf6725c87ca2539b0653c30/pkgs/build-support/rust/lib/default.nix#L58-L82 This doesn't look quite right to me...
The build hook used in my builds contains this:
"CC_X86_64_UNKNOWN_LINUX_MUSL=/nix/store/wrhxx96lh48nsv9a6p38b3x4r2fskwwm-gcc-wrapper-14.3.0/bin/cc" \
"CXX_X86_64_UNKNOWN_LINUX_MUSL=/nix/store/wrhxx96lh48nsv9a6p38b3x4r2fskwwm-gcc-wrapper-14.3.0/bin/c++" \
"CARGO_TARGET_X86_64_UNKNOWN_LINUX_MUSL_LINKER=/nix/store/wrhxx96lh48nsv9a6p38b3x4r2fskwwm-gcc-wrapper-14.3.0/bin/cc" \
"CARGO_BUILD_TARGET=x86_64-unknown-linux-musl" \
"HOST_CC=/nix/store/wrhxx96lh48nsv9a6p38b3x4r2fskwwm-gcc-wrapper-14.3.0/bin/cc" \
"HOST_CXX=/nix/store/wrhxx96lh48nsv9a6p38b3x4r2fskwwm-gcc-wrapper-14.3.0/bin/c++" \
"CC_X86_64_UNKNOWN_LINUX_MUSL=/nix/store/wrhxx96lh48nsv9a6p38b3x4r2fskwwm-gcc-wrapper-14.3.0/bin/cc" \
"CXX_X86_64_UNKNOWN_LINUX_MUSL=/nix/store/wrhxx96lh48nsv9a6p38b3x4r2fskwwm-gcc-wrapper-14.3.0/bin/c++" \
"CARGO_TARGET_X86_64_UNKNOWN_LINUX_MUSL_LINKER=/nix/store/wrhxx96lh48nsv9a6p38b3x4r2fskwwm-gcc-wrapper-14.3.0/bin/cc" \
cargo build "${flagsArray[@]}"
but my platform definition is
nixpkgs.buildPlatform = (inputs.nixpkgs.lib.systems.elaborate "x86_64-unknown-linux-musl");
nixpkgs.hostPlatform =
inputs.nixpkgs.lib.recursiveUpdate
(inputs.nixpkgs.lib.systems.elaborate "x86_64-unknown-linux-musl")
{
useLLVM = true;
linker = "lld";
config = "x86_64-unknown-linux-musl";
};
So i'd have expected lld and clang in there | 16:26:43 |
Grimmauld (any/all) | and i am getting cryptic linker failures with that platform combination on rust things, such as alacritty or clippy | 16:32:31 |
dramforever | oh no, same "triple" cross compilation | 17:00:31 |
dramforever | * oh no, same-"triple" cross compilation | 17:01:15 |
Grimmauld (any/all) | qt6 was very confused about these platform shenanigans, but that was at least fixable with hacks | 17:04:40 |
Grimmauld (any/all) | jq and the rust things that require linking are giving me HELL | 17:04:52 |
Grimmauld (any/all) | with jq i can at least switch to yq-go, but i am at a loss about what to do with the rust things | 17:05:16 |
dramforever | you can't really fix this | 17:06:31 |
dramforever | and honestly our own cc-wrapper environment variables sort of have the same problem | 17:06:47 |
Grimmauld (any/all) | setting the same platform definition as i have on host into build has other errors | 17:07:52 |
dramforever | one cursed solution is to cross to x86_64-cross-linux-musl but this still doesn't fix rust... unless you're interested in doing custom targets | 17:08:03 |
Grimmauld (any/all) | oh god | 17:08:18 |
Grimmauld (any/all) | Setting this:
let
musl-gcc = inputs.nixpkgs.lib.systems.elaborate "x86_64-unknown-linux-musl";
musl-llvm = inputs.nixpkgs.lib.recursiveUpdate musl-gcc {
useLLVM = true;
linker = "lld";
config = "x86_64-unknown-linux-musl";
};
in
{
nixpkgs.buildPlatform = musl-llvm;
nixpkgs.hostPlatform = musl-llvm;
}
breaks too:
fetching git input 'git+file:///home/grimmauld/musl-vm'
error:
… while calling the 'seq' builtin
at /nix/store/dndmsb8w6cxy8qncmkigdy2pii16j07x-nixpkgs-patched/lib/modules.nix:361:18:
360| options = checked options;
361| config = checked (removeAttrs config [ "_module" ]);
| ^
362| _module = checked (config._module);
… while evaluating the attribute 'unmatchedDefns'
at /nix/store/dndmsb8w6cxy8qncmkigdy2pii16j07x-nixpkgs-patched/lib/modules.nix:894:7:
893| # Transforms unmatchedDefnsByName into a list of definitions
894| unmatchedDefns =
| ^
895| if configs == [ ] then
(stack trace truncated; use '--show-trace' to show the full trace)
error: attribute 'version' missing
at /nix/store/dndmsb8w6cxy8qncmkigdy2pii16j07x-nixpkgs-patched/pkgs/stdenv/linux/default.nix:560:51:
559| pname = prevStage.bintools.bintools.pname + "-patchelfed-ld";
560| inherit (prevStage.bintools.bintools) version;
| ^
561| passthru = { inherit (prevStage.bintools.passthru) isFromBootstrapFiles; };
So thats no option either | 17:10:13 |
dramforever | that's... interesting | 17:11:31 |
dramforever | although it makes sense, it's no longer cross, and we don't have musl-llvm bootstrap files | 17:11:47 |
Grimmauld (any/all) | thats fair i guess | 17:11:58 |
dramforever | although | 17:13:33 |
dramforever | how bad would it be if we remove the lib.optionalString (rustTargetPlatform != rustHostPlatform) condition | 17:13:58 |