-
-
Notifications
You must be signed in to change notification settings - Fork 14.2k
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
volk: fix build for apple silicon #160152
Conversation
pkgs/development/libraries/volk/cpu-features-apple-silicon.patch
Outdated
Show resolved
Hide resolved
FYI Volk 2.5.1 was recently released that allows for either an external |
Ah nice! I think we have a PR for updating volk somewhere. I know that |
10b5310
to
d43b1c0
Compare
d43b1c0
to
a67172e
Compare
@hexagonal-sun or @michaelld , could either of you check whether the volk from #160121 passes a build at your M1 computers? I noticed that even with volk 2.5.1 the build fails according to ofborg. If I understand correctly, you are saying that I shouldn't apply the patch? Or should we package cpu-features and only then it will be fixed? You are welcome to send a PR to my |
@SuperSandro2000 it'd have been nice if you had read the comment I left, indicating that perhaps this PR could have been superseded by #160121. Plus, the ofborg build for volk on aarch64-darwin failed. |
@doronbehar Ah, sorry this got merged. Feel free to revert. Yes, I think we may as well target this at |
I thought this was somehow about gnuradio, unrelated to this one. |
@doronbehar @michaelld I've just checked #160121 and it doesn't build on |
@hexagonal-sun well drat ... I haven't had time to look at cpu_features since they closed the "support for M1" PR ... guess I need to get there sooner rather than later, as I need to update the Volk port in MacPorts & this will require either an external cpu_features or patching the submodule version |
It's OK, perhaps I should have been more clear in the PR title. Also it seems that the volk update should be halted for now, according to reports by @hexagonal-sun and @michaelld , thanks for your help. |
FYI, I updated to volk 3.0.0 for non aarch64-darwin platforms only at: #219179 |
Motivation for this change
This fixes the build of volk for apple M1 machines. Until
cpu_features
gains darwin support, there is no prospect of running gnuradio with Nix on apple silicon. Credit to @michaelld who's work this is based on.Things done
sandbox = true
set innix.conf
? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)nixos/doc/manual/md-to-db.sh
to update generated release notes