Skip to content
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

Closed
zzywysm opened this issue Jul 16, 2022 · 4 comments
Closed

build the kernel with a newer gcc #11

zzywysm opened this issue Jul 16, 2022 · 4 comments

Comments

@zzywysm
Copy link
Contributor

zzywysm commented Jul 16, 2022

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.

@tpwrules
Copy link
Owner

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.

@zzywysm
Copy link
Contributor Author

zzywysm commented Nov 28, 2022

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.)

@zzywysm
Copy link
Contributor Author

zzywysm commented Nov 28, 2022

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#36947
NixOS/nixpkgs#36948
NixOS/nixpkgs#40797

NixOS/nixpkgs#108111
NixOS/nixpkgs#108305
NixOS/nixpkgs#187225

@zzywysm
Copy link
Contributor Author

zzywysm commented Jan 21, 2023

This will eventually get fixed with NixOS/nixpkgs#209870 so closing.

@zzywysm zzywysm closed this as completed Jan 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants