It's still an issue using qemu-6.0.0-rc4. If you remove the environment variable ENV GOPROXY="https://proxy.golang.org|direct" you get a different error:
=> ERROR [6/6] RUN go build . 5.8s ------ > [6/6] RUN go build .: #10 0.854 go: finding module for package rsc.io/quote #10 4.138 fatal error: grew heap, but no adequate free space found #10 4.159 #10 4.159 runtime stack: #10 4.163 runtime.throw(0x62abce, 0x2b) #10 4.172 /usr/local/go/src/runtime/panic.go:1116 +0x70 #10 4.183 runtime.(*mheap).allocSpan(0x9d5c60, 0x10000, 0x100000000000000, 0x9f1920, 0x96c720) #10 4.199 /usr/local/go/src/runtime/mheap.go:1166 +0x896 -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1893040 Title: External modules retreval using Go1.15 on s390x appears to have checksum and ECDSA verification issues Status in QEMU: New Bug description: We are observing issue while building go-runner image and we suspect it is due to QEMU version being used. As referred in below issue: https://github.com/golang/go/issues/40949 We tried to build go-runner image using go1.15 and register QEMU (docker run --rm --privileged multiarch/qemu-user- static@sha256:c772ee1965aa0be9915ee1b018a0dd92ea361b4fa1bcab5bbc033517749b2af4 --reset -p yes) as mentioned in PR https://github.com/kubernetes/release/pull/1499. We observed below failure during build: --------------------------------------------------------------------------------- ERROR: executor failed running [/bin/sh -c CGO_ENABLED=0 GOOS=linux GOARCH=${ARCH} go build -ldflags '-s -w -buildid= -extldflags "-static"' -o go-runner ${package}]: buildkit-runc did not terminate successfully ------ > [builder 7/7] RUN CGO_ENABLED=0 GOOS=linux GOARCH=${ARCH} go build -ldflags '-s -w -buildid= -extldflags "-static"' -o go-runner .: ------ failed to solve: rpc error: code = Unknown desc = executor failed running [/bin/sh -c CGO_ENABLED=0 GOOS=linux GOARCH=${ARCH} go build -ldflags '-s -w -buildid= -extldflags "-static"' -o go-runner ${package}]: buildkit-runc did not terminate successfully Makefile:52: recipe for target 'container' failed make: *** [container] Error 1 --------------------------------------------------------------------------------- To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/1893040/+subscriptions