-
Notifications
You must be signed in to change notification settings - Fork 108
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
Host assembly file used when cross-compiling for aarch64 #761
Comments
It looks like you are having a problem with one of the dependencies: aws-lc Looking on through the aws-lc build docs, they mention an additional cmake parameter that you might want to pass:
I would try adding that to your cmake command and see if that works. Also seeing if you can cross compile aws-lc in your environment on it's own would be helpful. |
@jmklix Thanks! I just treat the whole repo as one self-contained project so I didn't even think to check for a README in aws-lc lib. :)
I was about to try it but looking at the content of that .cmake file being passed, it is only setting cmake variables, just like I am in my command. So that can't work (especially since that's setting the arch to be 32-bit x86, while I'm targetting 64-bit ARM).
I'm trying that right now. It's not trivial though since for some reason, it starts to require Go compiler if I build it standalone. |
The Go compiler was too old for this to work. I instead went for building against the system openssl and that seems to work. Thanks again for your time. |
This issue is now closed. Comments on closed issues are hard for our team to see. |
Can you share how you got it working with openssl? In case someone in the future runs across this issue and is trying to do the same thing |
Actually, it turns out that I only got it to build (by setting
even though |
Seems like each time, I comment here things change immediately after. :) If I link my library against another (Rust) binary, it seems to work just fine. 🤷 |
Describe the bug
While trying to cross-compile for aarch64 on an x86-64 Linux machine, it seems that wrong assembly files get copied over and compilation fails with a huge amount of errors:
The cmake command is:
Is it possible there is some cmake variable that is needed to be set?
Expected Behavior
The right assembly files dir is copied over and build succeeds.
Current Behavior
Incorrect assembly files get copied and compilation fails.
Reproduction Steps
Run the cmake command in the description above.
Possible Solution
Document how to cross-build in the README or make the build work with the command specified in the description.
Additional Information/Context
No response
SDK version used
1.34 (git revision: 602121d)
Environment details (OS name and version, etc.)
Fedora 40, building under Cargo cross container env (uses Ubuntu images)
The text was updated successfully, but these errors were encountered: