!ayCRiZriCVtuCUpeLp:nixos.org

Nix Cross Compiling

565 Members
118 Servers

Load older messages


SenderMessageTime
26 Feb 2026
@dramforever:matrix.orgdramforever but if you're using not pkgsCross.<target>.stdenv the splicing is probably wrong 20:52:39
@rosssmyth:matrix.org@rosssmyth:matrix.org So the answer to "why doesn't this always work" is "shrug the linker should be able to find it" 20:53:12
@dramforever:matrix.orgdramforeveri'm so utterly confused20:53:48
@dramforever:matrix.orgdramforeverdo you have a nixpkgs commit where pkgsCross.mingwW64.ripgrep is broken?20:54:04
@rosssmyth:matrix.org@rosssmyth:matrix.orgNo, because it isn't always broken even on the same commit20:55:20
@rosssmyth:matrix.org@rosssmyth:matrix.orgThere is some impurity 20:55:28
@rosssmyth:matrix.org@rosssmyth:matrix.orghttps://github.com/NixOS/nixpkgs/issues/139966#issuecomment-266059488920:55:42
@rosssmyth:matrix.org@rosssmyth:matrix.orgThe issue author says it is because a different pthread library is being picked up20:56:32
@rosssmyth:matrix.org@rosssmyth:matrix.orgBut that is the error that occurs20:57:02
@dramforever:matrix.orgdramforeverso there are two screenshots20:58:00
@dramforever:matrix.orgdramforeverthe first one is using the wrong ld which we can just ignore20:58:13
@dramforever:matrix.orgdramforeverand the second one is also using the wrong ld20:59:39
@dramforever:matrix.orgdramforeverit's the unwrapped ld20:59:46
@dramforever:matrix.orgdramforeveroh no20:59:47
@emilazy:matrix.orgemilydo I get points for guessing right?21:02:18
@dramforever:matrix.orgdramforeverno because i can't reproduce it21:04:14
@dramforever:matrix.orgdramforever* not yet because i can't reproduce it21:04:19
@reckenrode:matrix.orgRandy Eckenrode Does it do the right thing if I add pkgsCross.<target>.package to buildInputs? 21:14:08
@reckenrode:matrix.orgRandy Eckenrode * Does it do the right thing if I add pkgsCross.<target>.<package> to buildInputs? 21:14:21
@artturin:matrix.orgArtturin Yeah since buildInputs is __spliced.hostTarget 21:15:37
@dramforever:matrix.orgdramforever rosssmyth: do you still have some exact log of pkgsCross.mingwW64.ripgrep failing? 21:15:42
@dramforever:matrix.orgdramforever instead of just > Failure 21:16:22
@artturin:matrix.orgArtturin *

Yeah since buildInputs is __spliced.hostTarget

Any further issues caused by dependencies for the wrong system in the dep attributes aren't splicing issues

21:16:42
@dramforever:matrix.orgdramforevermy "favorite" part is that this is also clearly not broken for what we've seen above where this started21:20:28
@dramforever:matrix.orgdramforeverwait nevermind that's just crane21:21:07
@rosssmyth:matrix.org@rosssmyth:matrix.orgI don't think so :( Last time I looked into this was a while ago. 21:21:54
@rosssmyth:matrix.org@rosssmyth:matrix.orgI'll post on that issue to see if other people can supply it21:22:05
@rosssmyth:matrix.org@rosssmyth:matrix.orgIf it is still an issue21:22:11
@dramforever:matrix.orgdramforeveri can't reproduce this on the base of https://github.com/NixOS/nixpkgs/pull/457066 either21:23:06
@rosssmyth:matrix.org@rosssmyth:matrix.orgYeah I can't either21:23:51

Show newer messages


Back to Room ListRoom Version: 6