-
Notifications
You must be signed in to change notification settings - Fork 107
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
build the kernel with a newer gcc #11
Comments
Nixpkgs still uses gcc-9.3 for aarch64. There have been efforts to upgrade it but they didn't pan out. I'm not sufficiently competent in that area to figure out why. Is there some benefit to using gcc 11 or 12 just for the kernel? That would require compiling another compiler. |
Here is a proposed fix from another author, which I'm going to try out on my own Mac: https://github.com/helsinki-systems/nixpkgs/tree/fix/aarch64-linux-gcc10 (Contrary to the branch name, it looks like this would move nixpkgs to gcc-11.x for aarch64.) |
The root cause seems to be that this file hasn't been updated in a while: https://github.com/NixOS/nixpkgs/commits/master/pkgs/stdenv/linux/bootstrap-files/aarch64.nix ...and it defines where the bootstrap files get copied from. Because the file is out of date, it's incompatible with newer gcc (and glibc?) References: NixOS/nixpkgs#108111 |
This will eventually get fixed with NixOS/nixpkgs#209870 so closing. |
At the moment, the kernel gets built with gcc-9.3. It would be nice if the kernel were built with gcc 11 or gcc 12 instead.
The text was updated successfully, but these errors were encountered: