-
-
Notifications
You must be signed in to change notification settings - Fork 44
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
Long build times caused by full rebuild of rustc and llvm #199
Comments
You want to use nixos-23.05 instead of the small variant to avoid cache misses. Also using nixos-unstable could also increase cache hits. It could still be that this is not cached but using those channels could improve the situation. |
Oh duh! Forgot I switched it to the stable release. I should have checked that first. Looks like llvm is covered by nixos-unstable-small at least. Might need to switch over to nixos-unstable still. Thanks! |
Also, @kjhoerr I advise you to track a stable tag of Lanzaboote rather than the master branch for now. :) |
That is in flakes how? There is not stable branch. |
This is a stable reference: https://github.com/nix-community/lanzaboote/releases/tag/v0.3.0 |
So I can just use |
Correct! |
TIL |
Please correct me if I'm wrong but it's been a month since this was reported so binary cache for both LLVM and rustc should be available by now. And although I can confirm that this is the case (I run After telling Nix to use These are my two cents. |
It was always from the very start, but not in cache.nixos.org. It is in the nix-community's cache.
Yes, this is expected.
This is solved by not using the master branch of lanzaboote, except if you are a developer and you know what you are doing, in that case, you know how to add the nix-community cache and sidesteps this problem. Otherwise, you should avoid running the master branch in the time being. |
After #147 was merged I noticed system upgrades were taking a long time and using a lot of resources. Locally this pushes my upgrade times from ~2 minutes to an hour or more, depending on the machine. Per GH actions doing a build of all systems used to take about 20 minutes but now times out at 6 hours.
https://github.com/kjhoerr/dotfiles/actions/runs/5251351652/jobs/9486211349
I was able to revert the selected lanzaboote revision to prior #147 and build times went back to normal. All my inputs are available here in case this is an isolated issue.
Looking at the derivations it looks like it's building x86_64-windows-rustc as a dependency for lanzaboote - cross dependency issue potentially?
The text was updated successfully, but these errors were encountered: