Skip to content

Runner build silently fails on linux/ppc64le

When attempting to build the Gitlab runner on Debian Sid linux/ppc64le with make runner-and-helper-deb-host, the build silently fails:

make runner-and-helper-deb-host
# Building gitlab-runner in version 15.10.1 for host platform
make runner-bin BUILD_PLATFORMS="-osarch=linux/ppc64le"
make[1]: Entering directory '/home/gitlab/src/gitlab-runner'
go install github.com/mitchellh/gox@v1.0.1
go: downloading github.com/mitchellh/gox v1.0.1
go: downloading github.com/mitchellh/iochan v1.0.0
go: downloading github.com/hashicorp/go-version v1.0.0
# Building gitlab-runner in version 15.10.1 for -osarch=linux/ppc64le
gox -osarch=linux/ppc64le \
           -ldflags "-X gitlab.com/gitlab-org/gitlab-runner/common.NAME=gitlab-runner -X gitlab.com/gitlab-org/gitlab-runner/common.VERSION=15.10.1 -X gitlab.com/gitlab-org/gitlab-runner/common.REVISION=dcfb4b66 -X gitlab.com/gitlab-org/gitlab-runner/common.BUILT=2023-04-17T19:59:05+0000 -X gitlab.com/gitlab-org/gitlab-runner/common.BRANCH= -w" \
           -output="out/binaries/gitlab-runner-{{.OS}}-{{.Arch}}" \
           gitlab.com/gitlab-org/gitlab-runner
Number of parallel builds: 24

make[1]: Leaving directory '/home/gitlab/src/gitlab-runner'
cp -f "out/binaries/gitlab-runner-linux-ppc64le" out/binaries/gitlab-runner
cp: cannot stat 'out/binaries/gitlab-runner-linux-ppc64le': No such file or directory
make: *** [Makefile.build.mk:42: runner-bin-host] Error 1

gox exists within a couple of seconds and never attempts the build. go version is 1.19, gox version is 0.3.0.