-
Notifications
You must be signed in to change notification settings - Fork 509
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
Compatibility issue between QEMU and Linux kernel cause buildx failing #2841
Comments
Defining |
We run into a very similar issue when trying to build jemalloc with Alpine 3.20. The build pipeline used to work three weeks ago with
I suspect the runner image is the culprit, the build which worked three weeks ago was using |
From Debian sources it seems that |
FWIW, at least in our case this seemed to be related to the segfaults described in tonistiigi/binfmt#215 (comment), which were caused by a kernel hardening patch which got backported to stable kernels. It seems that this triggers a QEMU bug. |
Contributing guidelines
I've found a bug and checked that ...
Description
Our team has been using
buildx
to build multi-arch fluent-bit image long time ago. However, the build for ARM64 image ondebian:bullseye
started to failing two months ago with following error:After a lot of troubleshooting steps, we noticed there is some compatibility issue between QEMU and Debian kernel
5.10.0-33-cloud-amd64/5.10.0-33-debian-amd64
. We used following approach to setup QEMU for buildx:And we tried different version of QEMU including 6.2, 7.0, 8.2 and 9.2.1 (latest) but none of them works with this kernel. As soon as I downgrade the kernel version to
5.10.0-32-cloud-amd64
, the build starts to work again.Since changing kernel version, native build and cross-compiling are not options for our CI//CD pipeline, we are wondering how can we move forward to address this problem.
Expected behaviour
The build succeeds.
Actual behaviour
The build failed with
internal compiler error
.Buildx version
github.com/docker/buildx v0.17.1 257815a
Docker info
Builders list
Configuration
https://github.com/fluent/fluent-bit/blob/master/dockerfiles/Dockerfile
docker buildx build --platform=linux/arm64 -f ./dockerfiles/Dockerfile .
Build logs
Additional info
No response
The text was updated successfully, but these errors were encountered: