fix: nix-shell environment for building spdk on arm #72
+16
−12
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR documents the changes needed to get the ARM64 build working and some of the issues encountered along the way.
Debugging the ARM Build
arm64
machine on Hetzner and debugged the install process step by step.nix-shell
without SPDK and hit issues withpyelf
. Replacingpython3.withPackages
withpkgs.python3Packages.pyelftools
fixed that.Key Issue
-msse4
flag, which is forx86
extended instruction sets and doesn’t work on ARM.nix-shell
compiler flags into configurable strings so we can set optimization flags per architecture.nix-shell
spdk
configure and build, Clang was the default compiler, this led to SVE compilation issues. In the "no-spdk-installed" nix environment, I noticed I was getting success w/ GCC, so migrated the nix script to remove Clang and use GCC by default. I don't want to get presumptuous that this is the best solution, very open to feedback on this.Context
arm64
Deployments openebs#3817), the goal here is just to make ARM builds possible—not optimized.Addresses
Please let me know if you'd rather me focus on getting the OEP to implementable rather than starting to implement fixes!