Skip to content

Error while building the minikube ISO #20382

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
mfvitale opened this issue Feb 10, 2025 · 7 comments
Open

Error while building the minikube ISO #20382

mfvitale opened this issue Feb 10, 2025 · 7 comments
Labels
kind/support Categorizes issue or PR as a support question.

Comments

@mfvitale
Copy link

What Happened?

Hi,

I was trying to build the ISO since I would like to test a new feature the is on cri-o runtime 1.31.

go version go1.23.6 linux/amd64

GNU Make 4.4.1
Built for x86_64-redhat-linux-gnu
Copyright (C) 1988-2023 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

So I changed the version in deploy/iso/minikube-iso/package/crio-bin/crio-bin.mk and the

make buildroot-image

that ends correctly but then the following

make out/minikube-amd64.iso

ends with this error

go: downloading github.com/josharian/intern v1.0.0
echo "{\"iso_version\": \"v1.35.0\", \"kicbase_version\": \"v0.0.46\", \"minikube_version\": \"v1.35.0\", \"commit\": \"cf3ab2afdf2ac4e1237a74407360187452b2cb6c-dirty\"}" > deploy/iso/minikube-iso/board/minikube/x86_64/rootfs-overlay/version.json
echo v1.35.0 > deploy/iso/minikube-iso/board/minikube/x86_64/rootfs-overlay/etc/VERSION
cp deploy/iso/minikube-iso/arch/x86_64/Config.in.tmpl deploy/iso/minikube-iso/Config.in
if [ ! -d /mnt/out/buildroot ]; then \
	mkdir -p /mnt/out; \
	git clone --depth=1 --branch=2023.02.9 https://github.com/buildroot/buildroot /mnt/out/buildroot; \
	perl -pi -e 's@\s+source "package/sysdig/Config\.in"\n@@;' /mnt/out/buildroot/package/Config.in; \
	rm -r /mnt/out/buildroot/package/sysdig; \
	cp deploy/iso/minikube-iso/go.hash /mnt/out/buildroot/package/go/go.hash; \
	git --git-dir=/mnt/out/buildroot/.git config user.email "[email protected]"; \
	git --git-dir=/mnt/out/buildroot/.git config user.name "Random developer"; \
fi;
/usr/bin/make -C /mnt/out/buildroot BR2_EXTERNAL=../../deploy/iso/minikube-iso GO_VERSION=1.21.6 GO_HASH_FILE=/mnt/deploy/iso/minikube-iso/go.hash O=/mnt/out/buildroot/output-x86_64 minikube_x86_64_defconfig
make[1]: Entering directory '/mnt/out/buildroot'
  GEN     /mnt/out/buildroot/output-x86_64/Makefile
#
# configuration written to /mnt/out/buildroot/output-x86_64/.config
#
make[1]: Leaving directory '/mnt/out/buildroot'
/usr/bin/make -C /mnt/out/buildroot BR2_EXTERNAL=../../deploy/iso/minikube-iso GO_VERSION=1.21.6 GO_HASH_FILE=/mnt/deploy/iso/minikube-iso/go.hash O=/mnt/out/buildroot/output-x86_64 host-python3
make[1]: Entering directory '/mnt/out/buildroot'
/usr/bin/make -j1  O=/mnt/out/buildroot/output-x86_64 HOSTCC="/usr/bin/gcc" HOSTCXX="/usr/bin/g++" syncconfig
make[2]: Entering directory '/mnt/out/buildroot'
  GEN     /mnt/out/buildroot/output-x86_64/Makefile
make[2]: Leaving directory '/mnt/out/buildroot'
make[1]: Leaving directory '/mnt/out/buildroot'
/usr/bin/make -C /mnt/out/buildroot BR2_EXTERNAL=../../deploy/iso/minikube-iso GO_VERSION=1.21.6 GO_HASH_FILE=/mnt/deploy/iso/minikube-iso/go.hash O=/mnt/out/buildroot/output-x86_64
make[1]: Entering directory '/mnt/out/buildroot'
>>> host-go 1.21.6 Building
cd /mnt/out/buildroot/output-x86_64/build/host-go-1.21.6/src && GO111MODULE=off GOCACHE=/mnt/out/buildroot/output-x86_64/host/share/host-go-cache GOROOT_BOOTSTRAP=/mnt/out/buildroot/output-x86_64/host/lib/go-1.19.11 GOROOT_FINAL=/mnt/out/buildroot/output-x86_64/host/lib/go GOROOT="/mnt/out/buildroot/output-x86_64/build/host-go-1.21.6" GOBIN="/mnt/out/buildroot/output-x86_64/build/host-go-1.21.6/bin" GOOS=linux CC=/usr/bin/gcc CXX=/usr/bin/g++ CGO_ENABLED=1 CC_FOR_TARGET="/mnt/out/buildroot/output-x86_64/host/bin/x86_64-minikube-linux-gnu-gcc" CXX_FOR_TARGET="/mnt/out/buildroot/output-x86_64/host/bin/x86_64-minikube-linux-gnu-g++" GOOS="linux" GOARCH=amd64   GO_ASSUME_CROSSCOMPILING=1 ./make.bash 
Building Go cmd/dist using /mnt/out/buildroot/output-x86_64/host/lib/go-1.19.11. (go1.19.11 linux/amd64)
Building Go toolchain1 using /mnt/out/buildroot/output-x86_64/host/lib/go-1.19.11.
Building Go bootstrap cmd/go (go_bootstrap) using Go toolchain1.
Building Go toolchain2 using go_bootstrap and Go toolchain1.
go: downloading go1.23.4 (linux/amd64)
go: download go1.23.4: golang.org/[email protected]: no http in bootstrap go command
go tool dist: FAILED: /mnt/out/buildroot/output-x86_64/build/host-go-1.21.6/pkg/tool/linux_amd64/go_bootstrap install -pgo=off cmd/asm cmd/cgo cmd/compile cmd/link: exit status 1
make[1]: *** [package/pkg-generic.mk:283: /mnt/out/buildroot/output-x86_64/build/host-go-1.21.6/.stamp_built] Error 2
make[1]: Leaving directory '/mnt/out/buildroot'
make: *** [Makefile:313: minikube-iso-x86_64] Error 2
rm deploy/iso/minikube-iso/board/minikube/x86_64/rootfs-overlay/usr/bin/auto-pause
make: *** [Makefile:345: out/minikube-amd64.iso] Error 2

Can someone help with it?

Attach the log file

The issue refers to the image build

Operating System

Redhat/Fedora

Driver

None

@Ruchi1499
Copy link

The error

go: downloading go1.23.4 (linux/amd64)
go: download go1.23.4: golang.org/[email protected]: no http in bootstrap go command

suggests that Go 1.23.4 is being fetched, but the actual setup uses Go 1.21.6. There might be a misalignment between the expected and actual Go version, which is creating the problem.

@Ruchi1499
Copy link

For solving this you can make sure go version consistency in all relevant files (like go.hash, go.mk) and also ensure environment variable GOROOT_BOOTSTRAP is set correctly.

@Ruchi1499
Copy link

/kind support

@k8s-ci-robot k8s-ci-robot added the kind/support Categorizes issue or PR as a support question. label Mar 11, 2025
@mfvitale
Copy link
Author

Hi @Ruchi1499 thanks for answering.

This is what I have on the ./deploy/iso/minikube-iso/go.hash

cat ./deploy/iso/minikube-iso/go.hash
# From https://go.dev/dl/
sha256  2d36597f7117c38b006835ae7f537487207d8ec407aa9d9980794b2030cbc067  LICENSE
sha256  3a70e5055509f347c0fb831ca07a2bf3b531068f349b14a3c652e9b5b67beb5d  go1.17.src.tar.gz
sha256  0012386ddcbb5f3350e407c679923811dbd283fcdc421724931614a842ecbc2d  go1.18.3.src.tar.gz
sha256  27871baa490f3401414ad793fba49086f6c855b1c584385ed7771e1204c7e179  go1.19.1.src.tar.gz
sha256  2ce930d70a931de660fdaf271d70192793b1b240272645bf0275779f6704df6b  go1.19.2.src.tar.gz
sha256  18ac263e39210bcf68d85f4370e97fb1734166995a1f63fb38b4f6e07d90d212  go1.19.3.src.tar.gz
sha256  8e486e8e85a281fc5ce3f0bedc5b9d2dbf6276d7db0b25d3ec034f313da0375f  go1.19.5.src.tar.gz
sha256  d7f0013f82e6d7f862cc6cb5c8cdb48eef5f2e239b35baa97e2f1a7466043767  go1.19.6.src.tar.gz
sha256  775bdf285ceaba940da8a2fe20122500efd7a0b65dbcee85247854a8d7402633  go1.19.7.src.tar.gz
sha256  1d7a67929dccafeaf8a29e55985bc2b789e0499cb1a17100039f084e3238da2f  go1.19.8.src.tar.gz
sha256  131190a4697a70c5b1d232df5d3f55a3f9ec0e78e40516196ffb3f09ae6a5744  go1.19.9.src.tar.gz
sha256  3a29ff0421beaf6329292b8a46311c9fbf06c800077ceddef5fb7f8d5b1ace33  go1.20.src.tar.gz
sha256  b5c1a3af52c385a6d1c76aed5361cf26459023980d0320de7658bae3915831a2  go1.20.1.src.tar.gz
sha256  4d0e2850d197b4ddad3bdb0196300179d095bb3aefd4dfbc3b36702c3728f8ab  go1.20.2.src.tar.gz
sha256  e447b498cde50215c4f7619e5124b0fc4e25fb5d16ea47271c47f278e7aa763a  go1.20.3.src.tar.gz
sha256  9f34ace128764b7a3a4b238b805856cc1b2184304df9e5690825b0710f4202d6  go1.20.4.src.tar.gz
sha256  9a15c133ba2cfafe79652f4815b62e7cfc267f68df1b9454c6ab2a3ca8b96a88  go1.20.5.src.tar.gz
sha256  62ee5bc6fb55b8bae8f705e0cb8df86d6453626b4ecf93279e2867092e0b7f70  go1.20.6.src.tar.gz
sha256  2c5ee9c9ec1e733b0dbbc2bdfed3f62306e51d8172bf38f4f4e542b27520f597  go1.20.7.src.tar.gz
sha256  bfa36bf75e9a1e9cbbdb9abcf9d1707e479bd3a07880a8ae3564caee5711cb99  go1.21.1.src.tar.gz
sha256  45e59de173baec39481854490d665b726cec3e5b159f6b4172e5ec7780b2c201  go1.21.2.src.tar.gz
sha256  186f2b6f8c8b704e696821b09ab2041a5c1ee13dcbc3156a13adcf75931ee488  go1.21.3.src.tar.gz
sha256  47b26a83d2b65a3c1c1bcace273b69bee49a7a7b5168a7604ded3d26a37bd787  go1.21.4.src.tar.gz
sha256  285cbbdf4b6e6e62ed58f370f3f6d8c30825d6e56c5853c66d3c23bcdb09db19  go1.21.5.src.tar.gz
sha256  124926a62e45f78daabbaedb9c011d97633186a33c238ffc1e25320c02046248  go1.21.6.src.tar.gz
sha256  4d196c3d41a0d6c1dfc64d04e3cc1f608b0c436bd87b7060ce3e23234e1f4d5c  go1.22.0.src.tar.gz
sha256  79c9b91d7f109515a25fc3ecdaad125d67e6bdb54f6d4d98580f46799caea321  go1.22.1.src.tar.gz
sha256  80648ef34f903193d72a59c0dff019f5f98ae0c9aa13ade0b0ecbff991a76f68  go1.22.3.src.tar.gz
sha256  fed720678e728a7ca30ba8d1ded1caafe27d16028fab0232b8ba8e22008fb784  go1.22.4.src.tar.gz
sha256  ac9c723f224969aee624bc34fd34c9e13f2a212d75c71c807de644bb46e112f6  go1.22.5.src.tar.gz
sha256  42b7a8e80d805daa03022ed3fde4321d4c3bf2c990a144165d01eeecd6f699c6  go1.23.0.src.tar.gz
sha256  6ee44e298379d146a5e5aa6b1c5b5d5f5d0a3365eabdd70741e6e21340ec3b0d  go1.23.1.src.tar.gz
sha256  36930162a93df417d90bd22c6e14daff4705baac2b02418edda671cdfa9cd07f  go1.23.2.src.tar.gz
sha256  8d6a77332487557c6afa2421131b50f83db4ae3c579c3bc72e670ee1f6968599  go1.23.3.src.tar.gz
sha256  ad345ac421e90814293a9699cca19dd5238251c3f687980bbcae28495b263531  go1.23.4.src.tar.gz

But I'm unable to find any go.mk file. In addition the GOROOT_BOOTSTRAP is not set.

Which go version do you suggest to use?

@Ruchi1499
Copy link

Hii @mfvitale, Most welcome!
Since multiple version listed in go.hash so you can use any latest stable version like go1.23.4 or go1.22.5 also if not sure.
go.mk file is used in some build setups but may not be present in all Go projects you can check in ./deploy/iso/minikube-iso/ to see if it manually added or not.

@mfvitale
Copy link
Author

Hi @Ruchi1499
I have tried with 1.23.4 without success and then I also tried with 1.21.6

make out/minikube-amd64.iso
docker run --rm --workdir /mnt --volume /home/mvitale/Experiments/minikube:/mnt  \
	--user 4212634:4212634 --env HOME=/tmp --env IN_DOCKER=1 \
	gcr.io/k8s-minikube/buildroot-image /bin/bash -lc '/usr/bin/make minikube-iso-amd64'
GOOS=linux GOARCH=amd64 go build -o deploy/iso/minikube-iso/board/minikube/x86_64/rootfs-overlay/usr/bin/auto-pause cmd/auto-pause/auto-pause.go
go: downloading k8s.io/klog/v2 v2.130.1
go: downloading github.com/blang/semver/v4 v4.0.0
go: downloading github.com/cloudevents/sdk-go/v2 v2.15.2
go: downloading github.com/minikube-machine/machine v0.0.0-20240815173309-ffb6b643c381
go: downloading github.com/pkg/errors v0.9.1
go: downloading github.com/spf13/viper v1.19.0
go: downloading github.com/docker/go-units v0.5.0
go: downloading github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51
go: downloading golang.org/x/crypto v0.32.0
go: downloading golang.org/x/sync v0.10.0
go: downloading golang.org/x/term v0.28.0
go: downloading github.com/Xuanwo/go-locale v1.1.3
go: downloading golang.org/x/text v0.21.0
go: downloading github.com/Delta456/box-cli-maker/v2 v2.3.0
go: downloading github.com/alonyb/spinner v1.12.7
go: downloading github.com/mattn/go-isatty v0.0.20
go: downloading github.com/spf13/pflag v1.0.6
go: downloading github.com/juju/mutex/v2 v2.0.0
go: downloading github.com/otiai10/copy v1.14.1
go: downloading k8s.io/apimachinery v0.32.0
go: downloading k8s.io/client-go v0.31.3
go: downloading k8s.io/api v0.31.3
go: downloading github.com/opencontainers/runc v1.2.4
go: downloading github.com/google/uuid v1.6.0
go: downloading github.com/juju/clock v1.1.1
go: downloading github.com/cenkalti/backoff/v4 v4.3.0
go: downloading github.com/distribution/reference v0.6.0
go: downloading github.com/docker/docker v27.4.1+incompatible
go: downloading github.com/olekukonko/tablewriter v0.0.5
go: downloading github.com/juju/fslock v0.0.0-20160525022230-4d5c94c67b4b
go: downloading github.com/shirou/gopsutil/v3 v3.24.5
go: downloading gopkg.in/yaml.v2 v2.4.0
go: downloading github.com/icza/dyno v0.0.0-20230330125955-09f820a8d9c0
go: downloading github.com/opencontainers/go-digest v1.0.0
go: downloading github.com/google/go-containerregistry v0.20.2
go: downloading cloud.google.com/go/storage v1.48.0
go: downloading github.com/cheggaaa/pb/v3 v3.1.5
go: downloading github.com/hashicorp/go-getter v1.7.8
go: downloading google.golang.org/api v0.217.0
go: downloading github.com/go-logr/logr v1.4.2
go: downloading github.com/fsnotify/fsnotify v1.7.0
go: downloading github.com/mitchellh/mapstructure v1.5.0
go: downloading github.com/sagikazarmark/slog-shim v0.1.0
go: downloading github.com/spf13/afero v1.11.0
go: downloading github.com/spf13/cast v1.6.0
go: downloading github.com/klauspost/cpuid v1.2.0
go: downloading golang.org/x/sys v0.29.0
go: downloading cloud.google.com/go v0.116.0
go: downloading github.com/hectane/go-acl v0.0.0-20190604041725-da78bae5fc95
go: downloading github.com/moby/term v0.5.0
go: downloading k8s.io/cluster-bootstrap v0.22.4
go: downloading k8s.io/utils v0.0.0-20241104100929-3ea5e8cea738
go: downloading github.com/fatih/color v1.16.0
go: downloading github.com/juju/errors v0.0.0-20220203013757-bd733f3c86b9
go: downloading github.com/cyphar/filepath-securejoin v0.3.5
go: downloading github.com/moby/sys/userns v0.1.0
go: downloading github.com/moby/sys/mountinfo v0.7.1
go: downloading github.com/sirupsen/logrus v1.9.3
go: downloading github.com/GoogleCloudPlatform/opentelemetry-operations-go/exporter/trace v1.25.0
go: downloading go.opentelemetry.io/otel v1.33.0
go: downloading go.opentelemetry.io/otel/sdk v1.33.0
go: downloading go.opentelemetry.io/otel/trace v1.33.0
go: downloading github.com/gogo/protobuf v1.3.2
go: downloading sigs.k8s.io/structured-merge-diff/v4 v4.4.2
go: downloading github.com/google/gofuzz v1.2.0
go: downloading github.com/sayboras/dockerclient v1.0.0
go: downloading github.com/gookit/color v1.5.2
go: downloading github.com/huandu/xstrings v1.3.2
go: downloading github.com/mattn/go-runewidth v0.0.15
go: downloading github.com/muesli/reflow v0.3.0
go: downloading github.com/xo/terminfo v0.0.0-20220910002029-abceb7e1c41e
go: downloading github.com/tklauser/go-sysconf v0.3.12
go: downloading github.com/imdario/mergo v0.3.12
go: downloading github.com/docker/cli v27.4.1+incompatible
go: downloading github.com/mitchellh/go-homedir v1.1.0
go: downloading github.com/containerd/stargz-snapshotter/estargz v0.14.3
go: downloading gopkg.in/yaml.v3 v3.0.1
go: downloading gopkg.in/ini.v1 v1.67.0
go: downloading github.com/subosito/gotenv v1.6.0
go: downloading github.com/hashicorp/hcl v1.0.0
go: downloading github.com/magiconair/properties v1.8.7
go: downloading github.com/pelletier/go-toml/v2 v2.2.2
go: downloading github.com/VividCortex/ewma v1.2.0
go: downloading github.com/mattn/go-colorable v0.1.13
go: downloading github.com/docker/go-connections v0.5.0
go: downloading go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.55.0
go: downloading github.com/opencontainers/image-spec v1.1.0-rc3
go: downloading go.uber.org/zap v1.27.0
go: downloading github.com/json-iterator/go v1.1.12
go: downloading golang.org/x/net v0.34.0
go: downloading k8s.io/component-base v0.31.3
go: downloading github.com/aws/aws-sdk-go v1.44.122
go: downloading github.com/bgentry/go-netrc v0.0.0-20140422174119-9fd32a8b3d3d
go: downloading github.com/hashicorp/go-cleanhttp v0.5.2
go: downloading github.com/hashicorp/go-safetemp v1.0.0
go: downloading github.com/hashicorp/go-version v1.6.0
go: downloading github.com/klauspost/compress v1.17.2
go: downloading github.com/mitchellh/go-testing-interface v1.14.1
go: downloading github.com/ulikunitz/xz v0.5.10
go: downloading golang.org/x/oauth2 v0.25.0
go: downloading github.com/coreos/go-systemd/v22 v22.5.0
go: downloading github.com/opencontainers/runtime-spec v1.2.0
go: downloading cloud.google.com/go/compute/metadata v0.6.0
go: downloading cloud.google.com/go/iam v1.2.2
go: downloading github.com/GoogleCloudPlatform/opentelemetry-operations-go/exporter/metric v0.48.1
go: downloading github.com/googleapis/gax-go/v2 v2.14.1
go: downloading go.opentelemetry.io/contrib/detectors/gcp v1.31.0
go: downloading go.opentelemetry.io/otel/sdk/metric v1.31.0
go: downloading google.golang.org/genproto v0.0.0-20241118233622-e639e219e697
go: downloading google.golang.org/grpc v1.69.4
go: downloading google.golang.org/protobuf v1.36.3
go: downloading sigs.k8s.io/json v0.0.0-20241010143419-9aa6b5e7a4b3
go: downloading go.opentelemetry.io/otel/metric v1.33.0
go: downloading gopkg.in/inf.v0 v0.9.1
go: downloading sigs.k8s.io/yaml v1.4.0
go: downloading github.com/golang/protobuf v1.5.4
go: downloading github.com/google/gnostic-models v0.6.8
go: downloading cloud.google.com/go/trace v1.11.2
go: downloading github.com/GoogleCloudPlatform/opentelemetry-operations-go/internal/resourcemapping v0.49.0
go: downloading google.golang.org/genproto/googleapis/rpc v0.0.0-20250106144421-5f5ef82da422
go: downloading golang.org/x/time v0.9.0
go: downloading github.com/rivo/uniseg v0.2.0
go: downloading github.com/tklauser/numcpus v0.6.1
go: downloading github.com/docker/distribution v2.8.3+incompatible
go: downloading github.com/moby/docker-image-spec v1.3.1
go: downloading github.com/vbatts/tar-split v0.11.3
go: downloading github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc
go: downloading go.uber.org/multierr v1.11.0
go: downloading github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd
go: downloading github.com/modern-go/reflect2 v1.0.2
go: downloading github.com/felixge/httpsnoop v1.0.4
go: downloading github.com/godbus/dbus/v5 v5.1.0
go: downloading google.golang.org/genproto/googleapis/api v0.0.0-20250106144421-5f5ef82da422
go: downloading go.opencensus.io v0.24.0
go: downloading cloud.google.com/go/monitoring v1.21.2
go: downloading github.com/GoogleCloudPlatform/opentelemetry-operations-go/detectors/gcp v1.24.2
go: downloading cloud.google.com/go/auth v0.14.0
go: downloading cloud.google.com/go/auth/oauth2adapt v0.2.7
go: downloading github.com/fxamacker/cbor/v2 v2.7.0
go: downloading github.com/go-logr/stdr v1.2.2
go: downloading go.opentelemetry.io/auto/sdk v1.1.0
go: downloading k8s.io/kube-openapi v0.0.0-20241105132330-32ad38e42d3f
go: downloading github.com/docker/docker-credential-helpers v0.7.0
go: downloading github.com/google/go-cmp v0.6.0
go: downloading go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.54.0
go: downloading github.com/jmespath/go-jmespath v0.4.0
go: downloading github.com/google/s2a-go v0.1.9
go: downloading github.com/googleapis/enterprise-certificate-proxy v0.3.4
go: downloading github.com/envoyproxy/go-control-plane v0.13.1
go: downloading github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da
go: downloading github.com/prometheus/client_golang v1.19.1
go: downloading github.com/prometheus/client_model v0.6.1
go: downloading github.com/prometheus/procfs v0.15.1
go: downloading github.com/x448/float16 v0.8.4
go: downloading github.com/cespare/xxhash/v2 v2.3.0
go: downloading github.com/cncf/xds/go v0.0.0-20240905190251-b4127c9b8d78
go: downloading github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822
go: downloading github.com/go-openapi/swag v0.23.0
go: downloading github.com/go-openapi/jsonreference v0.20.2
go: downloading github.com/beorn7/perks v1.0.1
go: downloading github.com/prometheus/common v0.55.0
go: downloading cel.dev/expr v0.16.2
go: downloading github.com/envoyproxy/protoc-gen-validate v1.1.0
go: downloading github.com/emicklei/go-restful/v3 v3.11.0
go: downloading github.com/census-instrumentation/opencensus-proto v0.4.1
go: downloading github.com/go-openapi/jsonpointer v0.21.0
go: downloading github.com/mailru/easyjson v0.7.7
go: downloading github.com/josharian/intern v1.0.0
echo "{\"iso_version\": \"v1.35.0\", \"kicbase_version\": \"v0.0.46\", \"minikube_version\": \"v1.35.0\", \"commit\": \"cf3ab2afdf2ac4e1237a74407360187452b2cb6c-dirty\"}" > deploy/iso/minikube-iso/board/minikube/x86_64/rootfs-overlay/version.json
echo v1.35.0 > deploy/iso/minikube-iso/board/minikube/x86_64/rootfs-overlay/etc/VERSION
cp deploy/iso/minikube-iso/arch/x86_64/Config.in.tmpl deploy/iso/minikube-iso/Config.in
if [ ! -d /mnt/out/buildroot ]; then \
	mkdir -p /mnt/out; \
	git clone --depth=1 --branch=2023.02.9 https://github.com/buildroot/buildroot /mnt/out/buildroot; \
	perl -pi -e 's@\s+source "package/sysdig/Config\.in"\n@@;' /mnt/out/buildroot/package/Config.in; \
	rm -r /mnt/out/buildroot/package/sysdig; \
	cp deploy/iso/minikube-iso/go.hash /mnt/out/buildroot/package/go/go.hash; \
	git --git-dir=/mnt/out/buildroot/.git config user.email "[email protected]"; \
	git --git-dir=/mnt/out/buildroot/.git config user.name "Random developer"; \
fi;
/usr/bin/make -C /mnt/out/buildroot BR2_EXTERNAL=../../deploy/iso/minikube-iso GO_VERSION=1.21.6 GO_HASH_FILE=/mnt/deploy/iso/minikube-iso/go.hash O=/mnt/out/buildroot/output-x86_64 minikube_x86_64_defconfig
make[1]: Entering directory '/mnt/out/buildroot'
  GEN     /mnt/out/buildroot/output-x86_64/Makefile
#
# configuration written to /mnt/out/buildroot/output-x86_64/.config
#
make[1]: Leaving directory '/mnt/out/buildroot'
/usr/bin/make -C /mnt/out/buildroot BR2_EXTERNAL=../../deploy/iso/minikube-iso GO_VERSION=1.21.6 GO_HASH_FILE=/mnt/deploy/iso/minikube-iso/go.hash O=/mnt/out/buildroot/output-x86_64 host-python3
make[1]: Entering directory '/mnt/out/buildroot'
/usr/bin/make -j1  O=/mnt/out/buildroot/output-x86_64 HOSTCC="/usr/bin/gcc" HOSTCXX="/usr/bin/g++" syncconfig
make[2]: Entering directory '/mnt/out/buildroot'
  GEN     /mnt/out/buildroot/output-x86_64/Makefile
make[2]: Leaving directory '/mnt/out/buildroot'
make[1]: Leaving directory '/mnt/out/buildroot'
/usr/bin/make -C /mnt/out/buildroot BR2_EXTERNAL=../../deploy/iso/minikube-iso GO_VERSION=1.21.6 GO_HASH_FILE=/mnt/deploy/iso/minikube-iso/go.hash O=/mnt/out/buildroot/output-x86_64
make[1]: Entering directory '/mnt/out/buildroot'
>>> host-go 1.21.6 Building
cd /mnt/out/buildroot/output-x86_64/build/host-go-1.21.6/src && GO111MODULE=off GOCACHE=/mnt/out/buildroot/output-x86_64/host/share/host-go-cache GOROOT_BOOTSTRAP=/mnt/out/buildroot/output-x86_64/host/lib/go-1.19.11 GOROOT_FINAL=/mnt/out/buildroot/output-x86_64/host/lib/go GOROOT="/mnt/out/buildroot/output-x86_64/build/host-go-1.21.6" GOBIN="/mnt/out/buildroot/output-x86_64/build/host-go-1.21.6/bin" GOOS=linux CC=/usr/bin/gcc CXX=/usr/bin/g++ CGO_ENABLED=1 CC_FOR_TARGET="/mnt/out/buildroot/output-x86_64/host/bin/x86_64-minikube-linux-gnu-gcc" CXX_FOR_TARGET="/mnt/out/buildroot/output-x86_64/host/bin/x86_64-minikube-linux-gnu-g++" GOOS="linux" GOARCH=amd64   GO_ASSUME_CROSSCOMPILING=1 ./make.bash 
Building Go cmd/dist using /mnt/out/buildroot/output-x86_64/host/lib/go-1.19.11. (go1.19.11 linux/amd64)
Building Go toolchain1 using /mnt/out/buildroot/output-x86_64/host/lib/go-1.19.11.
Building Go bootstrap cmd/go (go_bootstrap) using Go toolchain1.
Building Go toolchain2 using go_bootstrap and Go toolchain1.
go: downloading go1.23.4 (linux/amd64)
go: download go1.23.4: golang.org/[email protected]: no http in bootstrap go command
go tool dist: FAILED: /mnt/out/buildroot/output-x86_64/build/host-go-1.21.6/pkg/tool/linux_amd64/go_bootstrap install -pgo=off cmd/asm cmd/cgo cmd/compile cmd/link: exit status 1
make[1]: *** [package/pkg-generic.mk:283: /mnt/out/buildroot/output-x86_64/build/host-go-1.21.6/.stamp_built] Error 2
make[1]: Leaving directory '/mnt/out/buildroot'
make: *** [Makefile:313: minikube-iso-x86_64] Error 2
rm deploy/iso/minikube-iso/board/minikube/x86_64/rootfs-overlay/usr/bin/auto-pause
make: *** [Makefile:345: out/minikube-amd64.iso] Error 2

@Ruchi1499
Copy link

Hii @mfvitale
It seems the build process is downloading all dependencies but is failing at some point, although I am not able to see the actual error in the provided logs. If possible please check actual failure point.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/support Categorizes issue or PR as a support question.
Projects
None yet
Development

No branches or pull requests

3 participants