Multi-architecture docker build produces binary that fails to execute due to QEMU lib error #4552
-
I ended up at this issue when I could not get my .net 7.0 builds to compile using amd64 and arm64 environments. I followed the mixture of advice in the issue and this blog post, and I am now building using .NET SDK 8.0 preview nightly builds. I am at a loss of figuring out why I tested with Docker Desktop for Windows, that I believe has the QEMU bits baked in, and I tested with Github Actions and with QEMU and BuildX configured for cross platform environments (i.e. installing If I had to guess I'd say it is a problem related to the Here is a failing build run. Interesting bits:
Any ideas? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 16 replies
-
@richlander for input please? |
Beta Was this translation helpful? Give feedback.
-
Related to this? docker/buildx#1222 In general, we don't support QEMU, but this may be a separate issue, since that error seems to have a fair number of hits. |
Beta Was this translation helpful? Give feedback.
-
Hello @ptr727 The link above is dead? Regards |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
.NET runs in some scenarios under QEMU. I'm just saying we don't generally support it or define which scenarios work and which don't.
This is the reason for getting the SDK to run under
$BUILDPLATFORM
. That way the SDK runs NOT under QEMU.You are right that we don't have a way of running tests under emulation.
FYI: https://gitlab.com/qemu-project/qemu/-/issues/249