!UNVBThoJtlIiVwiDjU:nixos.org

Staging

290 Members
Staging merges | Running staging cycles: https://github.com/NixOS/nixpkgs/pulls?q=is%3Apr+is%3Aopen+head%3Astaging-next+head%3Astaging-next-25.05 | Review Reports: https://malob.github.io/nix-review-tools-reports/102 Servers

Load older messages


SenderMessageTime
14 Sep 2025
@emilazy:matrix.orgemilyalso, uh19:31:45
@emilazy:matrix.orgemily surely it shouldn't be _FOR_TARGET in buildGoModule? 19:31:54
@emilazy:matrix.orgemilyunless Go's splicing is just completely screwy?19:32:11
@emilazy:matrix.orgemilydoesn't that imply every dependency of a cross Go package will be spliced wrong…19:32:27
@lt1379:matrix.orgLun nope. https://github.com/NixOS/nixpkgs/pull/442965 is the current state, I don't think I have enough of an understanding of how cross to reason about what is going on as demonstrated above by looking at the wrong .go package 19:34:40
@lt1379:matrix.orgLun* nope. https://github.com/NixOS/nixpkgs/pull/442965 is the current state, I don't think I have enough of an understanding of how cross should be to reason about what is going on as demonstrated above by looking at the wrong .go package19:35:06
@jbow:matrix.orgjbow joined the room.20:17:13
@emilazy:matrix.orgemilyoh sorry20:17:59
@emilazy:matrix.orgemily by "now" I mean on master 20:18:02
@emilazy:matrix.orgemilyit sounded like the kind of thing that might just, already be broken20:18:09
@emilazy:matrix.orgemily pkgsCross.aarch64-multiplatform.go is a Go compiler that runs on aarch64-linux and produces executables for aarch64-linux 20:18:27
@emilazy:matrix.orgemily pkgsCross.aarch64-multiplatform.buildPackages.go is a Go compiler that runs on (your build platform) and produces executables for aarch64-linux 20:18:39
@emilazy:matrix.orgemily usually you want buildPackages. for a compiler, when doing cross. pkgsCross.aarch64-multiplatform.foo will have go in its nativeBuildInputs giving you buildPackages.go 20:19:01
@lt1379:matrix.orgLun ah, pkgsCross.aarch64-multiplatform.go does build there 20:21:39
@emilazy:matrix.orgemilygotcha, ok20:21:46
@emilazy:matrix.orgemilyso I think what's happening now is that the intermediate build results aren't PIE etc., so they are static, no linker20:22:05
@emilazy:matrix.orgemily and if they were -linkmode=external they would be using FHS paths already and breaking 20:22:14
@emilazy:matrix.orgemily*no loader20:22:32
@emilazy:matrix.orgemilyso we're in an awkward situation where it's now caring about the dynamic loader for the intermediate builds and we have no way to tell it a value that'll work for all of them20:22:41
@emilazy:matrix.orgemilyhmmmmmmm20:23:58
@emilazy:matrix.orgemily I'm thinking of simple fixes but also they have CC_FOR_${GOOS}_${GOARCH} I wonder if we can just convince them to GO_LDSO_FOR_… 20:26:00
@emilazy:matrix.orgemilyhttps://github.com/golang/go/blob/ac803b5949f6dbc5bfa559afe506d35f9e1b3195/src/cmd/dist/build.go#L28120:26:16
@emilazy:matrix.orgemily this is annoyingly not part of go(1) itself… 20:26:33
@emilazy:matrix.orgemily Lun: shot in the dark, but BOOT_GO_GCFLAGS=-buildmode=exe…? 20:28:28
@emilazy:matrix.orgemilysorry this has been a pain. will think more about what would be simple + good to do here20:30:29
@emilazy:matrix.orgemily ummmm. pkgs/by-name/ms/msgpack is pkgs/by-name/ms/msgpack-cxx except years old 20:39:53
@emilazy:matrix.orgemilywonderful20:39:54
@lt1379:matrix.orgLun
In reply to @emilazy:matrix.org
Lun: shot in the dark, but BOOT_GO_GCFLAGS=-buildmode=exe…?
will give it a try when i'm next at my pc
idea is we force it to make a static bootstrap go again so LDSO doesn't matter?
20:41:19
@emilazy:matrix.orgemilyright. or something.20:42:52
@emilazy:matrix.orgemilyit's not clear to me exactly what stage is getting broken20:42:58

Show newer messages


Back to Room ListRoom Version: 6