!pbdtvoHxUGLhcEvnlu:nixos.org

Exotic Nix Targets

305 Members
94 Servers

Load older messages


SenderMessageTime
27 Aug 2025
@marie:marie.cologneMarieSo this platform has a CPU bug which needs a gcc and glibc patch for SMP to work reliably, is there a way to apply these without ending up in override hell?10:30:44
@alex:tunstall.xyzAlex
In reply to @marie:marie.cologne
So this platform has a CPU bug which needs a gcc and glibc patch for SMP to work reliably, is there a way to apply these without ending up in override hell?

Are the bootstrap tools functional despite the bug?

If not, good luck.

12:05:43
@opna2608:matrix.orgPunaprolly bite the bullet and submit staging PRs to add those patches to the gcc & glibc expressions. and for functional bootstrap tools, wait for staging to hit master12:13:22
@marie:marie.cologneMarie I'm only trying to do cross right now, I don't think we even have bootstrap tools for powerpc 12:16:34
@alex:tunstall.xyzAlex Ah, that ought to simplify matters a bit, since you don't even need to override stdenv. 12:17:18
@marie:marie.cologneMarieand these patches are very specific for this cpu, not sure how upstreamable they are12:17:26
@marie:marie.cologneMarie(https://gitlab.com/linux-wiiu/smp-patches)12:17:51
@alex:tunstall.xyzAlex I suspect that overriding pkgsCross.whatever.stdenv.cc is sufficient, though I can't remember how.
Maybe replaceStdenv?
12:18:41
@opna2608:matrix.orgPunai don't see why they shouldn't be upstreamable. prolly just a matter of "someone needs to find the time to submit them to those upstreams"?12:21:47
@opna2608:matrix.orgPuna* i don't see why they shouldn't be upstreamable. prolly just a matter of "someone (ideally the patch author) needs to find the time to submit them to those upstreams"?12:22:26
@alex:tunstall.xyzAlexThere can be many good reasons, e.g. "it's a big hack and would negatively impact all other CPUs"12:22:54
@opna2608:matrix.orgPunahave you looked at the patches?12:23:17
@k900:0upti.meK900Those are all conditional though?12:23:19
@k900:0upti.meK900Like, all the hacks are ifdef'ed12:23:26
@dramforever:matrix.orgdramforever seems like those patches would be conditional on -mcpu=espresso 12:23:48
@alex:tunstall.xyzAlexSo they are.12:24:01
@marie:marie.cologneMarie I was more worried about if upstream would include such hacks for such specific CPU bugs 12:25:20
@marie:marie.cologneMarieI think I'll ask the author if they have plans for upstreaming12:25:36
@dramforever:matrix.orgdramforevergcc does this all the time12:25:36
@k900:0upti.meK900Eh, I'm pretty sure glibc still ships fdiv errata workarounds12:25:37
@k900:0upti.meK900So I don't think this is even particularly bad12:25:45
@dramforever:matrix.orgdramforeverglibc i haven't checked12:25:47
@marie:marie.cologneMarieThere's also a WIP patch for LLVM afaik12:25:55
@opna2608:matrix.orgPunathey definitely care about hacks for exotic hardware12:26:27
@opna2608:matrix.orgPunai was exchanging mails with various GNU projects earlier this year about bugs with the abomination that is double-double long double on powerpc64, and those all got addressed fairly quickly12:28:13
@matthewcroughan:defenestrate.itmatthewcroughan changed their display name from matthewcroughan to matthewcroughan @ nix.camp.18:55:11
@chrillefkr:matrix.orgchrillefkr joined the room.21:46:14
28 Aug 2025
@sbc64:matrix.orgsbc64 changed their profile picture.14:23:15
29 Aug 2025
@dithpri:matrix.orgdithpri joined the room.01:44:27
@luna-null:matrix.org@luna-null:matrix.org left the room.02:40:31

Show newer messages


Back to Room ListRoom Version: 6