Skip to content

Cross-compile for Raspberry Pi Zero W produces segmentation fault #391

@netzdoktor

Description

@netzdoktor

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions