-
Notifications
You must be signed in to change notification settings - Fork 13k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bootstrap rustNightly from rustBeta never works with the 'correct' channels #38026
Comments
(I've seen this before and the following is my recollection, so it might not be completely correct) This happens when there's a mismatch between the version used to bootstrap the compiler and what the compiler being bootstrapped expects. The current build system uses a secret to enable unstable features for stable compilers. For a given compiler to bootstrap correctly you need to bootstrap it with the versions/snapshots specified in https://github.com/rust-lang/rust/blob/master/src/stage0.txt in the source tree of the compiler being built. The link above specifies |
Also note that it could be related to #34722 - but that would be a rather fringe case (and I added a big fat warning to our build code to not use My bet is on the beta/stage0.txt mismatch. |
@alexcrichton do you have an idea? |
@qknight Did you try my suggestion above? I'm pretty sure it's related to the (likely) usage of incompatible versions used for bootstrapping. On another note: @alexcrichton: We ran into this error twice now - is it possible to extend the build system of |
Relevant recent changes to bootstrap key logic: #37265 #37566. If I count the releases correctly, then it should be possible to bootstrap nightly with beta just by setting EDIT: indeed, it works
|
@nagisa Thanks for the pointers! :) I just enabled this proactively in our tree in NixOS/nixpkgs@bfc187f @qknight Can you rebase/merge current master into your branch and give it a try? It should be fine now if |
@the-kenny i will play with your advice in a bit, thanks very much! for now i plan to include this commit into nixpkgs: why is this cool? this expression downloads a |
+1 from my side, but other people's opinion might differ. Please note
that there's also a (dev-only, not for nixpkgs) expression that fetches
*todays* nightly every time it's run. Great for development :)
Shall we move this discussion over to nixpkgs?
Joachim Schiele <notifications@github.com> writes:
… @the-kenny i will play with your advice in a bit, thanks very much!
for now i plan to include this commit into nixpkgs:
* nixcloud/nixpkgs@d695f11
why is this cool? this expression downloads a `nightly` rustc (no cargo) and totally bypasses hydra! this way everyone might be happy. installation in less time than a 100 mb download ;-)
--
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub:
#38026 (comment)
--
|
Was the bootstrap logic resolved here as well? Is this closed now? |
thanks a lot everyone! this bug-hunt was amazing! |
what we want
hey,
on NixOS we want to have
stable
,beta
andnightly
built as according to the docs of rust but we tried many different versions and it always fails with errors like this:https://gist.github.com/qknight/15550e3b24b8a503897ac92fffe88804
or in short:
that said have a look at these files:
https://github.com/nixcloud/nixpkgs/blob/experimentalUpdate/pkgs/development/compilers/rust/default.nix
https://github.com/nixcloud/nixpkgs/blob/experimentalUpdate/pkgs/development/compilers/rust/beta.nix
https://github.com/nixcloud/nixpkgs/blob/experimentalUpdate/pkgs/development/compilers/rust/nightly.nix
we use these channels:
stable
beta
fromstable
nightly
frombeta
and then it fails.
if we do this:
stable
,beta
andnightly
we don't see thechannel
errors listed above.what is going wrong here?
The text was updated successfully, but these errors were encountered: