Building docker images fails

Summary

Build fails.

Steps to reproduce

I'm following the guide at https://docs.gitlab.com/runner/development/. Everything up to https://docs.gitlab.com/runner/development/#building-the-docker-images works. At that point, the build fails.

Actual behavior

When running the build as follows:

$ make runner-and-helper-docker-host

, the error output is:

Invalid package configuration: Cannot package the path 'out/helper-images/prebuilt-alpine-arm.tar.xz', does it exist? {:level=>:error}

When running the build instead with:

$ make all

, the error looks a bit different:

error: failed to solve: process "/dev/.buildkit_qemu_emulator /bin/sh -c apk add --no-cache bash ca-certificates dumb-init git git-lfs miniperl     && ln -s miniperl /usr/bin/perl" did not complete successfully: exit code: 2

Expected behavior

Build should pass.

Relevant logs and/or screenshots

Full log for make runner-and-helper-docker-host: make_docker_failure.txt

Full log for make all: make_all_failure.txt

Environment description

Ubuntu 18.04 LTS. Go was installed from go1.17.3.linux-amd64.tar.gz.

Used GitLab Runner version

I'm trying to build gitlab-runner from the git commit tagged with v14.5.0.