-
Notifications
You must be signed in to change notification settings - Fork 1.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
userland: build pass on arm64 #507
Conversation
# Native compile on the Raspberry Pi | ||
mkdir -p build/raspberry/$BUILDSUBDIR | ||
pushd build/raspberry/$BUILDSUBDIR | ||
cmake -DCMAKE_BUILD_TYPE=$BUILDTYPE ../../.. | ||
if [ "aarch64" = `arch` ]; then |
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.
Might be worth tweaking this script to not call the arch
command multiple times, by storing the result in a variable?
I'm reworking this as we really want cross-compiling support as well. |
Actually the original patch is not valid. You can boot a 64 bit kernel and hence have arch report aarch64, but want a 32bit userspace as it will support all the features as per armv6l and armv7l. Switching to a 64bit build needs to be off a further build switch, unless there is some other flag to signal the userspace in use. |
Could you test #538? I don't have a 64bit userspace system immediately to hand, therefore it's not so easy to test. |
Just because I was curious, I googled and found this, which I found quite enlightening 🙂 |
#538 is now merged and builds on aarch64. |
And for a debug build, make sure |
With
-DARM64=ON
cmake option, build (natively) successfully on arm64 based debian (others distribution not test jet) , or fail with those error message: