!UNVBThoJtlIiVwiDjU:nixos.org

Staging

294 Members
Staging merges | Find currently open staging-next PRs: https://github.com/NixOS/nixpkgs/pulls?q=is%3Apr+sort%3Aupdated-desc+head%3Astaging-next+head%3Astaging-next-21.05+is%3Aopen102 Servers

Load older messages


SenderMessageTime
13 Sep 2025
@emilazy:matrix.orgemilythis is going to produce probably the exact bootstrapping unhappiness you saw19:53:19
@emilazy:matrix.orgemily(what a pain huh)19:54:34
@emilazy:matrix.orgemily(bootstrapping…)19:54:36
@emilazy:matrix.orgemilyanyway I think if you just make that conditional match it should go through19:59:32
@emilazy:matrix.orgemilyhopefully!19:59:35
@emilazy:matrix.orgemilyalso wait19:59:57
@emilazy:matrix.orgemily
		case "ppc64":
			// Big Endian PPC64 cgo internal linking is not implemented for aix or linux.
			if goos == "aix" || goos == "linux" {
20:00:00
@emilazy:matrix.orgemilyI thought it was external linking that was broken???20:00:04
@emilazy:matrix.orgemilyoh right because cgo is just broken there20:00:13
@emilazy:matrix.orgemilyfun20:00:14
@emilazy:matrix.orgemily omg they have three copies of MustLinkExternal 20:01:15
@emilazy:matrix.orgemilyawesome20:01:20
@emilazy:matrix.orgemily I do wonder if this means that CGO_ENABLED=0 will end up broken. blah sorry I must resist the temptation to clone the Go code and start writing my own patch 20:02:19
@emilazy:matrix.orgemilyI can review whatever you come up with and whatever problems it runs into20:02:33
@emilazy:matrix.orgemily aloisw: btw is there any reason we couldn't just teach Go about our dynamic linker path… 20:03:26
@emilazy:matrix.orgemilyhttps://github.com/search?q=repo%3Agolang%2Fgo%20linuxdynld&type=code20:03:48
@emilazy:matrix.orgemilyI guess we'd have to make it runtime-dynamic which would be annoying20:03:59
14 Sep 2025
@emma:rory.gayEmma [it/its] joined the room.08:40:01
@emilazy:matrix.orgemily Lun: sorry for sending you on rob pike's wild ride :) 14:06:34
@emilazy:matrix.orgemily teaching the internal linker to do the right thing does seem like a good idea if it's only a matter of helping it find the interpreter. I interpreted aloisw as saying there was more of an obstacle, but if there's not then that is probably a good path. I think we need to do it at runtime because it can depend on $NIX_CC but it might be easy enough 14:07:25
@emilazy:matrix.orgemilyI think we'd still need to use the external linker to get static PIEs working, but that's Future Work14:07:38
@emilazy:matrix.orgemily btw, we should not make it Linux-specific in DefaultPIE, since the GCC setting isn't. we should just keep the one explicit Windows + isRace carveout there, probably add the PPC64 one, and otherwise make it true 14:08:55
@emilazy:matrix.orgemilyso wait did you solve the bootstrapping issue?14:09:02
@lt1379:matrix.orgLunI'm not sure solve is the right word but it bootstraps14:10:09
@emilazy:matrix.orgemilyI can't tell what actually changed in the diff :)14:10:23
@emilazy:matrix.orgemily btw it's so disappointing that Go makes a point about being multi-target and then has things like if interpreter == "" && buildcfg.GOOS == runtime.GOOS && buildcfg.GOARCH == runtime.GOARCH && buildcfg.GO_LDSO != "" { 14:10:40
@emilazy:matrix.orgemilyso you just can't make it do the right thing for cross14:10:44
@emilazy:matrix.orgemilymore software engineering please 😔14:10:59
@lt1379:matrix.orgLun https://github.com/LunNova/nixpkgs/activity?ref=lunnova/drop-pie-hardening-flag should have the diffs somewhere14:11:42
@emilazy:matrix.orgemilyimage.png
Download image.png
14:12:32

Show newer messages


Back to Room ListRoom Version: 6