Skip to content
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

Add documentation for cross-compiling to AWS arm #293

Open
vultix opened this issue Dec 2, 2024 · 1 comment
Open

Add documentation for cross-compiling to AWS arm #293

vultix opened this issue Dec 2, 2024 · 1 comment
Labels
documentation Improvements or additions to documentation

Comments

@vultix
Copy link

vultix commented Dec 2, 2024

When cross-compiling for AWS graviton Arm processors, you have to specify the appropriate target CPU or you may end up getting a hard-to-diagnose Illegal Instruction (SIGILL, exit code 132) error.

As this is a common use case, a note in the readme would be helpful.

Example:

RUSTFLAGS='-C target-cpu=neoverse-n1' cargo zigbuild --release --target aarch64-unknown-linux-gnu.2.34
@messense
Copy link
Member

Pull requests are welcome!

@messense messense added the documentation Improvements or additions to documentation label Dec 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants