Open xin3liang opened 2 years ago
Maybe it needs to add path access into NixOS for '/sys/devices/system/cpu/cpu0/regs/identification/midr_el1'. How?
These are the kind of things that should not be detected from the machine it's running on. Otherwise the build is different depending on what machine runs it!
So adding access to the path in the sandbox is not the solution.
Though I don't have a solution for this.
It looks like this would be mainly used to optimize the binaries for a specific microarchitecture:
Packages in Nixpkgs must be generic for the platform.
I am not adept at meson, but it looks like there's a way to select a generic "soc":
I suspect it would be by adding -Dplatform=generic
:
This was already fixed in https://github.com/NixOS/nixpkgs/commit/5ff289f39e7e3a30298ea7920337480d00988510. Try updating your channels?
This was already fixed in 5ff289f. Try updating your channels?
Thanks for your reply. Yeah, I just see it from the source code. I am newbie to NixOS, how to update the channel?
Try nix-channel --update
. I just tested that the patch fixes aarch64-linux build on the stable 21.11 channel as well, so let's also backport it.
Try
nix-channel --update
. I just tested that the patch fixes aarch64-linux build on the stable 21.11 channel as well, so let's also backport it.
Thanks for doing this. Really appreciated. 👍
Describe the bug
DPDK building fails on arm64.
Steps To Reproduce
Steps to reproduce the behavior:
$ nix-build -A dpdk
Expected behavior
Build success
Additional context
config/arm/meson.build reelate code
File armv8_machine.py
Notify maintainers
Metadata
Please run
nix-shell -p nix-info --run "nix-info -m"
and paste the result.