Closed trickert76 closed 7 months ago
I'm getting always a compile error on the "other architecture". When I run buildx on an Intel system, I'm getting an error on build for ARM and when I run it on a M1, I'm getting an error for AMD64.
This bit makes me think it's most likely an issue with the (transparent) QEMU emulation that enables building both on non-native architectures. I would suggest looking into buildx's "multi-node" support (https://docs.docker.com/engine/reference/commandline/buildx_create/#append) so you can add each native node to the same "builder" and have them build natively instead.
Thanks, I‘m sure, that will work, when my build environment would support both platforms. But the ARM is my local machine and not a node. I think, this is a combination of gcc and qemu and maybe not a problem of PHP build scripts. Maybe someone else also had the problems. Especially because it isnt 100% reproducable, makes it difficult to find the issue. Maybe I check the buildx issue list for a similar problem. Thanks. Am 12.07.2023 um 00:24 schrieb Tianon Gravi @.***>:
I'm getting always a compile error on the "other architecture". When I run buildx on an Intel system, I'm getting an error on build for ARM and when I run it on a M1, I'm getting an error for AMD64.
This bit makes me think it's most likely an issue with the (transparent) QEMU emulation that enables building both on non-native architectures. I would suggest looking into buildx's "multi-node" support (https://docs.docker.com/engine/reference/commandline/buildx_create/#append) so you can add each native node to the same "builder" and have them build natively instead.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>
Try turning off rosetta emulation in docker. It's slower, but it might work for you.
This isn't something we can fix in the Docker image (it's going to require environment or emulator changes). Building on cloud resources is a pretty straightforward workaround for those affected.
I've a strange problem with the combination of docker-php-ext-install and buildx. When I run
with a Dockerfile for PHP 7.4 or PHP 8.2 (I think, the version is not important), like
I'm getting always a compile error on the "other architecture". When I run buildx on an Intel system, I'm getting an error on build for ARM and when I run it on a M1, I'm getting an error for AMD64. When I run a normal docker build (without x), it always works. Also, sometimes it works on both architectures at the same time. But it feels a little bit like "don't touch a running system" then, because the next run (clearing all caches) breakes again.
The error itself differs from time to time. This time it's
or
Thats completely strange to me. I don't have an idea, what to do. I'm using different docker version, this one, I tried 23.0.5 and/or 24.0.3