Skip to content

Commit 827509e

Browse files
committed
Use binutils-gold in builder image
There seems to have been a change in the dependencies that now causes ARMv7 builds to fail: ``` sigs.k8s.io/kustomize/kyaml/yaml/merge3=$WORK/b742/_pkg_.a sigs.k8s.io/kustomize/kyaml/yaml/internal/k8sgen/pkg/util/errors=$WORK/b678/_pkg_.a -importcfg $WORK/b001/importcfg.link -buildmode=exe -buildid=YHfd11eGufJ7RVGSGz2z/H9JgY3lbjsdhQ8_r06Gz/HiYQEtSgCAIHJ7rrNYN6/YHfd11eGufJ7RVGSGz2z -extld=gcc $WORK/b001/_pkg_.a exit status 1 -c CGO_ENABLED=1 go build -x -o source-controller main.go]: exit code: 2 ``` After trying various things, including downgrading Go, using packages from `edge`, using `gcc-go` to get a "grouped" version of the dependencies, it seems that using `binutils-gold` solves the issue and produces a working build for all our target architectures. Signed-off-by: Hidde Beydals <hello@hidde.co>
1 parent a0c0423 commit 827509e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Dockerfile

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
# Docker buildkit multi-arch build requires golang alpine
22
FROM golang:1.16-alpine as builder
33

4-
RUN apk add gcc pkgconfig libc-dev
5-
RUN apk add --no-cache musl~=1.2 libgit2-dev~=1.1
4+
RUN apk add --no-cache gcc pkgconfig libc-dev binutils-gold musl~=1.2 libgit2-dev~=1.1
65

76
WORKDIR /workspace
87

0 commit comments

Comments
 (0)