Open spowelljr opened 1 week ago
I think you need to build this on a real ARM machine (or cross-compile), instead of using docker and qemu.
$ arch
aarch64
$ BUILD_IN_DOCKER=n make out/docker-machine-driver-kvm2-arm64
GOARCH=arm64 \
go build \
-buildvcs=false \
-installsuffix "static" \
-ldflags="-X k8s.io/minikube/pkg/drivers/kvm.version=v1.34.0 -X k8s.io/minikube/pkg/drivers/kvm.gitCommitID="5ef41d2dc83b805dcb173a98efd21cbb63f0b795"" \
-tags "libvirt_without_lxc" \
-o out/docker-machine-driver-kvm2-arm64 \
k8s.io/minikube/cmd/drivers/kvm
chmod +X out/docker-machine-driver-kvm2-arm64
It should be mostly about setting the CC
compiler (to aarch64-linux-gnu-gcc
) and installing packages?
/usr/local/go/pkg/tool/linux_amd64/link: running aarch64-linux-gnu-gcc failed: exit status 1
/usr/lib/gcc-cross/aarch64-linux-gnu/9/../../../../aarch64-linux-gnu/bin/ld: cannot find -lvirt-qemu
/usr/lib/gcc-cross/aarch64-linux-gnu/9/../../../../aarch64-linux-gnu/bin/ld: cannot find -lvirt-qemu
/usr/lib/gcc-cross/aarch64-linux-gnu/9/../../../../aarch64-linux-gnu/bin/ld: cannot find -lvirt-qemu
/usr/lib/gcc-cross/aarch64-linux-gnu/9/../../../../aarch64-linux-gnu/bin/ld: cannot find -lvirt
collect2: error: ld returned 1 exit status
Recently, running
BUILD_IN_DOCKER=y make out/docker-machine-driver-kvm2-arm64
has failed with the error below. This is blocking all integration testing. The current plan is to disable KVM support on arm64 until this is resolved.