!OqhvaDMJdKYUicLDiE:nixos.org

Nixpkgs Stdenv

210 Members
66 Servers

Load older messages


SenderMessageTime
3 Sep 2025
@winter:catgirl.cloudWinter* i'm attempting to make a stdenv that uses an old (incompatible with our bootstrap tools) glibc -- i've tried to do things like "fake" cross to work around the issue, but always get stuck in some bootstrapping stage (either 3 or 4 depending on the strategy) because binutils from the previous stage still depends on new glibc, so e.g. expand-response-param can never get compiled. is my best bet for now to maybe create a custom stdenv that somehow bootstraps binutils from newer glibc -> older glibc? i can compile old glibc with new glibc but binutils is where it gets fun :/15:16:53
@winter:catgirl.cloudWinterobviously the easiest route may be to just make bootstrap tools, but that'll require me downgrading to a nixpkgs rev and then probably get stuck in a bootstrapping-induced loop15:22:51
@winter:catgirl.cloudWinter not sure if i can even do this in one stage but replaceStdenv only lets me use one stage :-/ 15:37:06
@winter:catgirl.cloudWinterguess i can make it let me use multiple15:37:13
@winter:catgirl.cloudWinteri suppose the ~nicest?? way to do it will be to modify stage1 (or add a stage between 0 and 1) to rebuild binutils15:48:53
@winter:catgirl.cloudWinter* i suppose the ~nicest?? way to do it will be to modify stage215:52:02
@winter:catgirl.cloudWinterbut then you get stuck in another loop because xgcc is incompatible with old glibc... so then you can't even build another gcc or another xgcc19:01:56
@winter:catgirl.cloudWinter tried doing the cursed thing of:
  1. build old glibc in stage2

  2. build new xgcc in a subsequent stage, using the old xgcc's stdenv, but pointing to the old glibc as build sysroot

  3. use that xgcc like nothing has changed


but that also blows up, i guess expectedly
19:46:01
@winter:catgirl.cloudWinter tried doing the cursed thing of:
  1. build old glibc in stage2

  2. build new xgcc in a subsequent stage, using the old xgcc's stdenv, but pointing to the old glibc as build sysroot

  3. use that xgcc like nothing has changed

but that also blows up, i guess expectedly
19:47:15
@winter:catgirl.cloudWinteri guess there is really no nice way forward here lol19:47:30
@winter:catgirl.cloudWinter(i really don't wanna use an old nixpkgs!)19:47:37
@winter:catgirl.cloudWintercuriously, it also seems like my xgcc in between stages 2/3 and the binutils in stage4 can build at the same time?!19:52:01
@winter:catgirl.cloudWinteri have no clue how on earth that's possible19:52:46
@pyrox:pyrox.devdish [Fox/It/She]ugh why is our bootstrap not following the live-bootstrap build chain19:54:43
@winter:catgirl.cloudWinter🤔19:55:08
@winter:catgirl.cloudWinterimage.png
Download image.png
19:55:09
@pyrox:pyrox.devdish [Fox/It/She] talking about minimal-bootstrap which is fully from source and should be(but clearly isn't) following the build chain that live-bootstrap establishes 19:56:12
@pyrox:pyrox.devdish [Fox/It/She]sorry if that was confusing19:56:26
@pyrox:pyrox.devdish [Fox/It/She]* sorry if that was confusing and/or not what you were talking about19:56:32
@winter:catgirl.cloudWinterit's not19:56:48
@winter:catgirl.cloudWinteri am talking about our normal bootstrapping process19:57:05
@winter:catgirl.cloudWinterperhaps minimal, if it actually works (last i heard it doesn't?), would be nicer for my crimes19:57:27
@pyrox:pyrox.devdish [Fox/It/She]it doesn't19:57:42
@pyrox:pyrox.devdish [Fox/It/She]im trying to fix and update it19:57:47
@pyrox:pyrox.devdish [Fox/It/She]* it doesn't afaik19:57:51
@pyrox:pyrox.devdish [Fox/It/She]so we can start the transition to using minimal-bootstrap as our regular bootstrap19:58:06
@emilazy:matrix.orgemily our thing isn't live-bootstrap 20:14:50
@emilazy:matrix.orgemily live-bootstrap is a newer thing that goes via a billion OSes etc. 20:14:58
@emilazy:matrix.orgemilyour thing is the older Linux-only thing, I think based on the Guix chain20:15:09
@winter:catgirl.cloudWinteryep ^^20:16:31

Show newer messages


Back to Room ListRoom Version: 9