-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
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
zenith: re-enable aarch64 #88616
zenith: re-enable aarch64 #88616
Conversation
No, you need to put in this PR only the commit:
And if this doesn't work yet, put a |
In addition to stating in this PR's text that it depends on #88185 . |
Can I base this PR on the other one? 0.8.2 won't build with aarch64. Only 0.9.0 has the fix.
Done. I did a draft PR at first but I thought maybe the bot wouldn't build it. |
Like I already did? |
Yea yea, I just wanted to make sure you won't remove it LOL.
Well I guess it is more comfortable to test this PR with that update commit included but just don't forget to remove it once you'll succeed in making this build work. You can try and use this text in commits to test the build: @GrahamcOfBorg build zenith Are you using an aarch64 machine? |
Thanks :)
I thought I needed some special permissions to use that.
👍
I don't have access to an aarch64 machine. Well except my phone or with qemu but that would be slow. |
IIRC that every member of |
It took a couple of minutes before the bot started to run the stuff for the other PR, maybe it has a lot of work to do. |
I rebased the PR. @GrahamcOfBorg build zenith |
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: |
@GrahamcOfBorg build zenith |
@GrahamcOfBorg build zenith |
@GrahamcOfBorg build zenith |
OK, it seems my "fix" works. I guess this PR is ready for reviews. |
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/prs-ready-for-review-may-2019/3032/168 |
I give up due to lack of interest. |
@@ -15,12 +15,15 @@ rustPlatform.buildRustPackage rec { | |||
|
|||
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ IOKit ]; | |||
|
|||
preBuild = '' | |||
export CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER=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.
Instead of using preBuild
, I believe you can simply write
CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER = "gcc";
and the call to mkDerivation
underlying buildRustPackage
will interpret it as setting an environment variable for the build process.
Let's not be too hasty in assuming people aren't interested. I know it can seem like ages when you're waiting for a response, but unfortunately, it can take a while for the right person to see a PR, and might take even longer for them to find the time to review it. This is especially true for less widely used platforms such as aarch64. I built this on my aarch64 system and ran the result. It appears to work fine. I'd be interested to understand more about why the Other than the minor change I suggested in how the environment variable is set, this looks good to me if you're willing to reopen it! 👍 |
This is due to the fact we always pass The fix is to delete the cross compilation configuration as in #107237, we configure cross compilation differently in nixpkgs anyway. |
I will open a separate issue to see if we can generalise the fix. |
This depends on #88185
The only change from that PR is
platforms = platforms.all;
.Motivation for this change
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)