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
Hi, I have a Go program that builds fine on both linux/amd64 and linux/arm64 when using golang:1.23.4-bookworm as base, but when bumping to golang:1.23.5-bookworm I'm getting this error:
#35 [linux/arm64 builder 11/12] RUN go build -ldflags "-linkmode=external -extldflags=-static -w" -o /controller -trimpath main.go
#35 232.4 # crypto/internal/boring
#35 232.4 gcc: internal compiler error: Segmentation fault signal terminated program cc1
#35 232.4 Please submit a full bug report, with preprocessed source (by using -freport-bug).
#35 232.4 See <file:///usr/share/doc/gcc-12/README.Bugs> for instructions.
#35 ERROR: process "/bin/sh -c go build -ldflags \"-linkmode=external -extldflags=-static -w\" -o /controller -trimpath main.go" did not complete successfully: exit code: 1
And this happens only in linux/arm64. For linux/amd64 it builds fine.
This is the relevant part of the Dockerfile:
ENV CGO_ENABLED=1
ENV GOEXPERIMENT=boringcrypto
RUN go build -ldflags "-linkmode=external -extldflags=-static -w" -o /controller -trimpath main.go
Any ideas? 🙏
The text was updated successfully, but these errors were encountered:
If it is a qemu user-mode issue, then there is nothing we can do from the image.
I recommend building on the target architecture, for example GitHub's arm64 runners, AWS graviton, or similar. And if you don't have access to an arm64v8 host, then even a full qemu system emulation VM is less likely to run into these user-mode issues.
Hi, I have a Go program that builds fine on both
linux/amd64
andlinux/arm64
when usinggolang:1.23.4-bookworm
as base, but when bumping togolang:1.23.5-bookworm
I'm getting this error:And this happens only in
linux/arm64
. Forlinux/amd64
it builds fine.This is the relevant part of the Dockerfile:
Any ideas? 🙏
The text was updated successfully, but these errors were encountered: