You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
... the documentation does not mention anything about my problem
... there are no open or closed issues that are related to my problem
Description
Our team has been using buildx to build multi-arch fluent-bit image long time ago. However, the build for ARM64 image on debian:bullseye started to failing two months ago with following error:
#39 249.8 ===============================================================================
#39 250.9 [ 27%] Performing build step for 'jemalloc'
#39 251.5 gcc: internal compiler error: Segmentation fault signal terminated program cc1
#39 251.5 Please submit a full bug report,
#39 251.5 with preprocessed source if appropriate.
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:
sudo docker run --privileged --rm tonistiigi/binfmt:qemu --install all
sudo docker buildx create --name builder --use
sudo docker buildx inspect --bootstrap
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.
Defining ENV QEMU_STRACE=1 will show you trace of syscalls proxied by the emulator and may point to potential issue. If that works you can try to submit your findings to qemu upstream tracker.
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: