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

Builds for arm64 hosts #54

Open
rgov opened this issue Nov 23, 2022 · 10 comments
Open

Builds for arm64 hosts #54

rgov opened this issue Nov 23, 2022 · 10 comments

Comments

@rgov
Copy link

rgov commented Nov 23, 2022

With the availability of ARM-based Macs, Chromebooks, Raspberry Pis, etc., it would be useful to have the toolchains released for arm64 hosts.

@jarkkojs
Copy link

Asahi Linux is starting to super-solid distribution for M1/M2/M3 Macs. Also Lenovo has been pushing Snapdragon powered laptops for two generations now already.

@jarkkojs
Copy link

And when compiling systemd-enabled BuildRoot image, I've never been successful using self-bootstrapped toolchain. I.e. sometimes this can be a real functional blocker..

@tpetazzoni
Copy link
Contributor

@jarkkojs could you clarify which issues you've encountered when trying to use self-bootstrapped toolchains with Buildroot? Because if that doesn't work on ARM64, toolchains-builder won't be able to build toolchains for ARM64 hosts... as toolchains-builder uses Buildroot to build its toolchains.

@tpetazzoni
Copy link
Contributor

@rgov the problem is that in order to provide this, we would need access to ARM64 hosts machines that can run gitlab-runner, and be ready to build ~200 toolchains (it takes quite some time)

@rgov
Copy link
Author

rgov commented Jul 16, 2024

Arm64 runners are publicly available for GitHub Actions as of June 2024, but understandably this would be a significant change to your CI system.

Could you not use your own cross-compile toolchains to target Arm64 binaries on an x86 build system, with qemu-user-static / binfmt_misc available to run any Arm64 binaries that are needed for the build process?

I don't know how the Docker containers factor into your build system, but Docker has pretty good support for non-native containers (using the same qemu-user-static) although at a larger performance cost.

@p-linnane
Copy link

@rgov Pointed me to this thread when I mentioned having an M1 Mac mini gathering dust. @tpetazzoni I'm happy to volunteer said device as a runner for Bootlin. Just let me know if you're interested.

@tpetazzoni
Copy link
Contributor

Hello @p-linnane, interesting! Could you perhaps drop me an e-mail so that we can see how this could work? You can reach me at thomas.petazzoni AT bootlin.com.

@jarkkojs
Copy link

@tpetazzoni I can after next week I'm on holiday for this week still and try to stay off the grid ;-) But yes, I can provide an example for sure.

@tpetazzoni
Copy link
Contributor

@rgov @jarkkojs you confirm that here we are talking about toolchains for Linux ARM64 hosts, not MacOS X ARM64 hosts, correct ?

@rgov
Copy link
Author

rgov commented Jul 30, 2024

you confirm that here we are talking about toolchains for Linux ARM64 hosts, not MacOS X ARM64 hosts, correct ?

Correct. When I filed the bug I was using the toolchain within a Linux VM on Arm64 hardware while working with the Nvidia Jetson SDK.

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

4 participants