-
Notifications
You must be signed in to change notification settings - Fork 38
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
Fail to build on arm64 #453
Comments
Hi @jerry-xie-000 looks like you're going to cross-compile from arm to x86_64, but you use the compiler for
|
It seems not suit to my question. I try to cross-compile from x86_64 to arm64. The host machine is x86_64 ubuntu 22.04, and need to cross-compile the source, and then run on arm64 linux. |
Cross compilation is not yet fully tested with the cmake build. There is an option to tell cmake the Rust target, though. Have you tried specifying RUST_TARGET_TRIPLET? |
I try to use RUST_TARGET_TRIPLET when cmake, but my cross-compiler is:
Not in the support list by
How to add |
@jerry-xie-000 From here: https://rust-lang.github.io/rustup/cross-compilation.html Try out: |
Not support:
|
@jerry-xie-000 I think |
@jerry-xie-000 did you have time to try my suggestion from above? |
Try it, and meet another problem:
I haven't build the rust for arm before, so I have no idea how to fix these errors. It seems rust doesn't find 'bits/wordsize.h' in the arm64 sysroot path. My arm64 sysroot path does include this file. |
@jerry-xie-000 can you try using the |
Great, it build successfully after I set the Another small issue, when I run |
You can incorporate the build and install of these components into your build system separately using these instructions: https://github.com/eclipse-iceoryx/iceoryx2/tree/main/iceoryx2-ffi/cxx |
@jerry-xie-000 could you please compile all the steps you did to make cross-compilation work with buildroot and put it under |
Ok. I create pr: #502 |
Before posting the bug, take a look at the
FAQ
for a possible solution.
Required information
Operating system:
HOST: Linux UBUNTU2204_ROCKCHIP_DOCKER 5.15.146.1-microsoft-standard-WSL2 #1 SMP Thu Jan 11 04:09:03 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
TARGET: Linux rk3588 5.10.198 #206 SMP Thu Aug 29 06:05:00 UTC 2024 aarch64 GNU/Linux
Rust version:
rustc 1.81.0 (eeb90cda1 2024-09-04)
Cargo version:
cargo 1.81.0 (2dbb1af80 2024-08-20)
iceoryx2 version:
main
branchObserved result or behaviour:
workflow:
It seems need to remove the "-m64". How to remove it ?
The text was updated successfully, but these errors were encountered: