-
Notifications
You must be signed in to change notification settings - Fork 67
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
Building for aarch64 using the aarch64-none-elf-gcc cross-compiler. #191
Comments
Sorry for the delay. It is not ready, but I thought it was more ready than that. I will need to go over my branches this week, maybe I missed a merge. |
I am also ordering an M1 Mac Mini, so I will have an an aarch64 system to play with soon. |
No worries! Were you able to find this branch? :)
Exciting! Let me know if you need a hand with testing. I'm pretty keen to have this working on aarch64 mainly because I'd like to use your Is the main outstanding item to ensure all the files in |
Building with clang is fairly broken too
|
I don't expect Clang to be any different really. Good news is that I received an m2 machine last week, got it set up, and revived my old branch. Have a couple of last issues to get through but expecting to get initial aarch64 support out sometime this week. |
Master now has initial aarch64 support. I have built with XCode's clang, "real" clang, and GCC-13. I haven't tried cross-compilation yet, but I don't anticipate any problems given that it works with GCC on an arm64. For now, crt0.S is not being built at all. For MacOS, it's not necessary. I'm unclear whether it's really needed on Linux or not - haven't set up a linux environment for testing yet. It would be needed for bare metal, but that would surprise me somewhat if that's what y'all were doing with the arm64 :) |
I'm trying to build this libc implementation for aarch64 using the
aarch64-none-elf-gcc
cross-compiler.I modified the
arm.txt
cross-compiler file in the following (quick and dirty) way:I then ran the following command:
And then I ran:
However, I got the following compiler error:
As per the the compiler error, it seems that the assembly code in
crt0.S
is invalid foraarch64
.I then came across the following issues regarding aarch64:
#133
#131
Is my understanding correct that this repo isn't ready to be built for aarch64 yet? If it is possible to compile for aarch64, I would really appreciate it if you could let me know how!
The text was updated successfully, but these errors were encountered: