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

Adding necessary bits for cross-compiling to aarch64-unknown-linux-gnu to CI/CD #73

Open
PLeVasseur opened this issue Mar 28, 2024 · 5 comments

Comments

@PLeVasseur
Copy link
Contributor

I got this working locally by:

$ rustup target add aarch64-unknown-linux-gnu
$ sudo apt-get install gcc-aarch64-linux-gnu g++-aarch64-linux-gnu

then adding to .cargo/config.toml:

[target.aarch64-unknown-linux-gnu]
linker = "aarch64-linux-gnu-gcc"

then I could

$ cargo build --target=aarch64-unknown-linux-gnu

Could we add this to the CI/CD pipeline?

Any thoughts from folks? Tagging in @AnotherDaniel, @sophokles73

@PLeVasseur PLeVasseur changed the title Adding necessary bits for cross-compiling to aarch64-unknown-linux-gnu Adding necessary bits for cross-compiling to aarch64-unknown-linux-gnu to CI/CD Mar 28, 2024
@AnotherDaniel
Copy link
Contributor

Is this now solved by #72? Or do you have any additional ideas?

I think this x-compilation is purely for academical purposes at the moment - there is nothing in this crate where the target arch should make a difference.

@PLeVasseur
Copy link
Contributor Author

@AnotherDaniel and me had a quick sync-up. He'd like to review the issue more and address this in a follow-up PR when #72 is merged to add cross-compilation.

@AnotherDaniel
Copy link
Contributor

... and while we're on it:
Is x-compiling from x86_64 (I assume?) to aarch64 the only relevant scenario? Are there more?

@PLeVasseur
Copy link
Contributor Author

... and while we're on it: Is x-compiling from x86_64 (I assume?)

You assume correctly!

only relevant scenario? Are there more?

If you wanted bonus points, I know in Automotive using QNX is pretty common (and on the roadmap for Ferrocene), so we could also try to get *-nto-qnx-* working

Have to build the compiler from source and need a QNX fork of gcc called qcc to link tho... so maybe not in the open source, unless there's a way to get a QNX license for open source work. 🙂

Tagging @stevenhartley for above point 👆

@AnotherDaniel
Copy link
Contributor

Uh... you know, that is something I'll leave up to the BB QNX guys to look into ;-)

For now - waiting to get these required-workflow-blockers out of the way, then I'll set up the x64-arm64 x-compile on ubuntu, to meet your needs there. The rest can follow later...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants