wildsebastian has quit [Ping timeout: 272 seconds]
wildsebastian has joined #nix-darwin
<thefloweringash>
I would love some documentation on stdenv bootstrapping. I can eventually figure out the "what", but the "why" is much harder.
<thefloweringash>
regenerating bootstrap tools upgrades clang 4 -> clang 7, and the current bootstrap unpack doesn't seem to handle it. one of the curls built from stage-1 has ___isOSVersionAtLeast undefined. this is meant to come from compiler-rt
<thefloweringash>
I can hack up something that works (ie, put compiler-rt into the bootstrap tarball and hook it up like the main clang cc-wrapper wrapper), but without knowing the intent behind the bootstrap stages I don't know if it's rebuilding compiler-rt at the right time(s?)
<Mic92>
Who maintained these bootstrap archives before?
jhuizy has quit [Quit: Ping timeout (120 seconds)]
jhuizy has joined #nix-darwin
infinisil has quit [Quit: Configuring ZNC, sorry for the joins/quits!]
infinisil has joined #nix-darwin
<thefloweringash>
that would be the sensible way: open a PR and ping the previous committers so they can tell me the right way :-)
<LnL>
adding compiler-rt to the bootstrap tarball is fine in principle, but this seems more like a bootstrapping issue
<thefloweringash>
so the curl is definitely broken, but we might be able to not reference that libcurl?
<LnL>
yeah it might be using curl from a stage that's too early
<thefloweringash>
it might be the curl that's part of swift-corefoundation built from the stage-1 stdenv
<thefloweringash>
haven't figured out why something how something that seems higher level like perlPackages.LocaleGettext is using a lower level corefoundation
<thefloweringash>
I'm bit inclined to say that shipping a slightly broken toolchain is a footgun we don't want, even if there's also some ordering bug in the bootstrap stages
<thefloweringash>
I'll have to dig into the details of this perl/curl thing later
__monty__ has joined #nix-darwin
<thefloweringash>
correcting myself: the broken curl is using stage 4 stdenv, which should be after compiler-rt is built