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

ci: Native ARM64 jobs #1163

Conversation

real-or-random
Copy link
Contributor

No description provided.

@real-or-random real-or-random linked an issue Nov 29, 2022 that may be closed by this pull request
@real-or-random
Copy link
Contributor Author

CI even fails to start:

     Error while loading tasks: UNIMPLEMENTED: Dockerfile as CI environment is not yet supported for Arm containers!!

(https://cirrus-ci.com/build/4859893270708224).

So this is going to be much more difficult, closing for now...

@real-or-random real-or-random marked this pull request as ready for review June 28, 2023 15:45
@real-or-random
Copy link
Contributor Author

Let's see what CI is doing here after support for Dockerfile CI on ARM has been added. #1153 (comment)

@real-or-random real-or-random marked this pull request as draft June 28, 2023 15:48
@real-or-random
Copy link
Contributor Author

real-or-random commented Jun 30, 2023

Okay, so ARM64 builds work!

But ARM32 builds do not run. I tried to play around with this a bit using the Cirrus CI terminal, and I can't make it work. Giving up for now, but here are some notes:

  • Error message was Cannot execute binary file: Exec format error
  • This indicates that the CPU simply does not support AArch32.
  • Indeed, not all ARM64 CPUs are backwards-compatible, but the one the task was running on is a Neoverse N1 and that one has AArch32 support. (https://developer.arm.com/documentation/100616/0301/functional-description/introduction/features)
  • We need CONFIG_COMPAT in the kernel, but this was set.
  • I've seen suggestions to use setarch linux32 -B [cmd] to run binaries, but this not possible from within unprivileged Docker...

I'll rework this to use only ARM64 then.

@real-or-random
Copy link
Contributor Author

I'm currently looking into this.

@maflcko
Copy link
Contributor

maflcko commented Oct 1, 2023

I think this can be closed now?

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

Successfully merging this pull request may close these issues.

More ARM Linux builds, fewer MacOS builds
2 participants