b2 icon indicating copy to clipboard operation
b2 copied to clipboard

Raspberry Pi: Make it compile OOB on AArch64

Open egrath opened this issue 2 years ago • 1 comments
trafficstars

Behavior: Does not compile out of the box on Raspberry Pi OS 64-bit because AArch64 isn't handled correctly in the build system

How to reproduce: Install Raspberry Pi Os 64-bit and follow the build instructions, it will fail with some unknown CPU error

Workaround: Tweak the file shared/h/shared/system.h by replacing:

#elif (defined __arm__)

with

#elif (defined __arm__ || defined __aarch64__)

egrath avatar Apr 03 '23 13:04 egrath

Excellent, thank you. I'll make this change.

tom-seddon avatar Apr 10 '23 20:04 tom-seddon

Can confirm that git clone --recursive --branch 'wip/master' https://github.com/tom-seddon/b2.git then the usual build process produces a working b2 setup on a 64-bit Raspberry Pi 5

scruss avatar Mar 08 '24 19:03 scruss