-
Notifications
You must be signed in to change notification settings - Fork 384
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
Cross-compile for Raspberry Pi Zero W produces segmentation fault #391
Comments
What is the process to be able to make use of this update? I'm trying to compile for Raspberry Pi and also getting a segmentation fault. thanks |
For some reason, Try adding the following [target.arm-unknown-linux-gnueabihf]
image = "rustembedded/cross:arm-unknown-linux-gnueabihf" |
Hello thanks for your reply where should I place the Cross.toml file? Regarding the tag, will this be fixed in a future release? thanks |
At the same level as your |
@Darneas Somehow |
The |
for newer folks here, I was able to use |
I have the minimal Rust hello world example and use
cross
to compile it forarm-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.The text was updated successfully, but these errors were encountered: