-
-
Notifications
You must be signed in to change notification settings - Fork 14.1k
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
Cross compilation from x86_64 to x86_64 with custom gcc arch/tune fails #268767
Comments
Dupe of #243164 localSystem should work https://github.com/search?q=%2Fgcc%5C.tune%2F+lang%3Anix+NOT+is%3Afork&type=code There's a simpler way to add flags than what you're doing nixpkgs/pkgs/stdenv/adapters.nix Line 287 in 4ccb3e0
https://github.com/search?q=withCFlags+lang%3Anix+NOT+is%3Afork&type=code |
@Artturin stdenv adapters stuff seems to be broken. Doing it this way in latest nixos-unstable (global overlay):
always results in error
I've tried other adapters mentioned here, it's all the same As for But anyways,
It implies that |
This is because something is setting Found a issue #269539 Answer before realizing the error was about overlapping attrsWorks fine here
because nixpkgs/pkgs/stdenv/adapters.nix Line 290 in 3ccf65f
however it fails with stuff like
(likely related #253713) To avoid the bootstrapping stuff do This still fails with errors like
|
Steps to reproduce
I have small VPS which could benefit greatly from AES-NI and other fancy instructions. It can't be used for building due to load limitations, so I've attempted to do compilation on local machine and push that on remote target:
nixos-rebuild --flake .#myServer \ --target-host servername \ --build-host localhost \ boot
Wiki suggest tweaking configuration for such scenario in this way:
However it fails while trying to compile bash:
After that I've tried alternative approach that doesn't touch
localSystem
/crossSystem
and modifies compiler wrapper instead:Sadly that failed on python (bash worked though):
Notify maintainers
I've seen @amjoseph-nixpkgs working on cross compilation a lot, I assume it's his area of expertise
Metadata
The text was updated successfully, but these errors were encountered: