-
Notifications
You must be signed in to change notification settings - Fork 423
Description
I have the minimal Rust hello world example and use cross
to compile it for arm-unknown-linux-gnueabihf
:
cross build --release --target=arm-unknown-linux-gnueabihf
When I deploy the file to the Pi Zero W, it produces a segmentation fault.
I have a working cross-compilation setup using this other toolchain repo but I would really love to use cross
instead. What I read there was that GCC versions before GCC8 would produce bad binaries for the Raspi. This is also confirmed by that fact that I tried various other toolchains, but only few worked.
Could we maybe update the related Dockerfile accordingly and use a newer GCC? I saw that the linaro repo unfortunately does not provide it yet but instead they are now hosted by ARM themselves.
I would be happy to create a pull-request for this, but need a bit of guidance to make it fit into the overall cross
project.