!ayCRiZriCVtuCUpeLp:nixos.org

Nix Cross Compiling

581 Members
128 Servers

Load older messages


SenderMessageTime
18 Jul 2025
@emilazy:matrix.orgemilyno20:59:21
@emilazy:matrix.orgemilyit has no notion of build or host20:59:23
@emilazy:matrix.orgemilyAFAICT20:59:27
@emilazy:matrix.orgemilylike20:59:30
@emilazy:matrix.orgemilyas in20:59:30
@emilazy:matrix.orgemily the API will always look for host platform deps 20:59:37
@dramforever:matrix.orgdramforeveroh so you just can't get build pkg-config20:59:42
@emilazy:matrix.orgemilyyeah, only via dev deps20:59:52
@emilazy:matrix.orgemily it just will adjust whether it looks at HOST_* or TARGET_* based on whether the current build is cross 21:00:02
@emilazy:matrix.orgemily so you can mix multiple pkg-config in a single cargo build 21:00:10
@emilazy:matrix.orgemily but each build script only sees one platform for pkg-config purposes 21:00:20
@emilazy:matrix.orgemilyanyway it's bad and I hate it21:00:37
@dramforever:matrix.orgdramforeverthis is cursed but i can't think of anything off the top of my head that really needs the other21:01:32
@dramforever:matrix.orgdramforeverso whatever21:01:35
@emilazy:matrix.orgemilywell21:03:41
@emilazy:matrix.orgemilythe package we are trying to fix is sort of one of them21:03:47
@emilazy:matrix.orgemilykind of?21:03:48
@emilazy:matrix.orgemilyit's weird21:03:49
@emilazy:matrix.orgemilyI really think the GNU target-specific cross model ruined everything forever.21:04:24
@emilazy:matrix.orgemilyif Plan 9 had won everyone would be much less confused about cross.21:04:36
@dramforever:matrix.orgdramforeverit always bothers me how gnu toolchains just does this21:05:32
@dramforever:matrix.orgdramforeveri guess it was designed in an era where every different platform is weird21:06:27
@dramforever:matrix.orgdramforever like -z pack-relative-relocs, "Supported for i386 and x86-64." 21:07:08
@dramforever:matrix.orgdramforeverhow do you even make this architecture specific21:07:15
@dramforever:matrix.orgdramforeverthere's literally one RELR format for all of ELF21:07:24
@dramforever:matrix.orgdramforevertwo if you have to split 32 and 6421:07:37
@dramforever:matrix.orgdramforeveranyway </rant>21:07:41
@emilazy:matrix.orgemilyI assume from their perspective they were innovating by not having entirely separate compiler codebases for every architecture/21:10:56
@emilazy:matrix.orgemily* I assume from their perspective they were innovating by not having entirely separate compiler codebases for every architecture?21:10:57
@emilazy:matrix.orgemilythough I don't know what the pre-GCC landscape was like21:11:07

Show newer messages


Back to Room ListRoom Version: 6