-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[WIP] rust: enable for clangarm64 #10423
Conversation
You need working AArch64 toolchain so you cannot easily cross compile it using x86_64 system. Details
They won't help building this on x86_64 machine but with more tweaking (like adding both
Actually the most helpful thing here is the backtrace printed at the end. Especially these 2 lines:
Here Rust asks C compiler where to find "crt2.o" and "dllcrt2.o", there is possibility this will work on AArch64 machine (on x86_64 you'd need cross compiler for AArch64) but I think it'll need patching. |
I'll close this PR for now for the following reason:
Following up in dennisameling/rust#1 instead. Have been making some progress there. I'm not in a rush to get Rust to work as I've got all the dependencies I need now, but would like to slowly continue contributing in this area wherever possible. |
Related to #9046
I'm currently doing this work on an 8-core Intel i7-9700 with 32GB RAM instead of my Surface Pro X because of the project size and long build times
This is some first work to get Rust to compile for Windows arm64. This is a bit tricky as it's a massive project to build (and I ran into long path issues as well - moved the project to
C:\_
for that). I learned the following about the Rust build process so far:mingw-w64-rust\src\rustc-1.57.0-src\src\stage0.json
. In this case it downloadsdist/2021-11-01/cargo-1.56.1-x86_64-pc-windows-gnu.tar.gz
x86_64-pc-windows-gnu
aarch64-pc-windows-gnu
The build currently fails at the last step where it tries to find
crt2.o
but fails. I added theCOPYING {} TO {}
manually as I only saw the panic show up without any further context or details.