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
gcc-arm-bin: init at 9.2-2019.12 #78712
Conversation
Provide (official) prebuilt cross-compilers for Arm Cortex-A platform similar to those for Cortex-R/M provided as gcc-arm-embedded.
Ping @prusnak as maintainer of the |
@@ -8232,6 +8232,13 @@ in | |||
gcc-arm-embedded-9 = callPackage ../development/compilers/gcc-arm-embedded/9 {}; | |||
gcc-arm-embedded = gcc-arm-embedded-9; | |||
|
|||
gcc-arm-bin-9 = { target } : callPackage ../development/compilers/gcc-arm-bin/9 { target = target; }; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the difference between the precompiled ones and pkgsCross.armv7l-hf-multiplatform.buildPackages.gcc
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The precompiled ones are sort of "golden reference" versions provided by Arm (regarding exact compiler version, flags etc.). Some projects (e.g. OP-TEE) would download them, but I'm more comfortable with keeping such stuff in the nix store instead of copies cluttering my home.
I can't say I am a big fan of this. @matthewbauer did good work removing rebuilt GCCs and proving nice platform cross support. Is there a problem with the cross compilers we build from source? |
No, absolutely not. Would you suggest moving this to NUR instead? |
@wamserma In case you do put in NUR, you can drop a link in https://nixos.wiki/wiki/Cross_Compiling for better discovery. |
Moved the PR here: wamserma/nur-packages#2, so anyone still interested can pick it up from there. |
Motivation for this change
Provide (official) prebuilt cross-compilers for Arm Cortex-A platform
similar to those for Cortex-R/M provided as gcc-arm-embedded.
Please help with testing, especially on AArch64-hosts.
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)