Skip to content

Cross compilation to arm64 #134

Description

@tmehr-enqt

Hi, I'm trying to cross compile to arm64 and fail at it.

Lets assume I have a sysroot of may arm system at $ARM_SYSROOT.

When I just set the linker in the Config.toml
[target.aarch64-unknown-linux-gnu]
linker = "aarch64-linux-gnu-gcc"

I get lots of skipped incompatible messages in the final link step as I would expect.

However when I specify the paths via the usual PGK_CONFIG variables I get an error while compiling r2r, namely that linking with "cc" failed because the libs in my sysroot are not x86-64.

My guess is it tries to link something for the build.rs with the host cc and uses the paths for the cross build.

Could you give me guidance on how to do this? I would like to if possible, avoid qemu.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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