Uploaded image for project: 'Funtoo Linux'
  1. Funtoo Linux
  2. FL-11917

[core-kit] sys-cluster/kubectl-1.29.x fails to install, needs Go 1.22.0

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical (Application) Critical (Application)
    • None
    • None
    • Hide
      Make sure dev-lang/go-1.21.3 is installed
      sudo emerge -av1 =sys-cluster/kubectl-1.29.0
      Show
      Make sure dev-lang/go-1.21.3 is installed sudo emerge -av1 =sys-cluster/kubectl-1.29.0

      During a recent system update I discovered the recently autogenned sys-cluster/kubectl-1.29.0 does not install properly:

      >>> Failed to emerge sys-cluster/kubectl-1.29.0, Log file:
      >>>  '/var/tmp/portage/sys-cluster/kubectl-1.29.0/temp/build.log'
      >>> Jobs: 0 of 1 complete, 1 failed                 Load avg: 0.62, 0.55, 0.49
       * Package:    sys-cluster/kubectl-1.29.0/12/2023 -> 0.9.28): Cargo applet to build and install C-ABI compatible dynamic and static libraries
       * Repository: core-kit
       * USE:        amd64 elibc_glibc kernel_linux userland_GNU
       * FEATURES:   network-sandbox preserve-libs sandbox userpriv usersandbox
      >>> Unpacking source...
      >>> Unpacking kubernetes-1.29.0.tar.gz to /var/tmp/portage/sys-cluster/kubectl-1.29.0/work
      >>> Source unpacked in /var/tmp/portage/sys-cluster/kubectl-1.29.0/work
      >>> Preparing source in /var/tmp/portage/sys-cluster/kubectl-1.29.0/work/kubectl-1.29.0 ...
      >>> Source prepared.
      >>> Configuring source in /var/tmp/portage/sys-cluster/kubectl-1.29.0/work/kubectl-1.29.0 ...
      >>> Source configured.
      >>> Compiling source in /var/tmp/portage/sys-cluster/kubectl-1.29.0/work/kubectl-1.29.0 ...
      make -j30 -j1 GOFLAGS= GOLDFLAGS= LDFLAGS= WHAT=cmd/kubectl
      I don't have any idea what to do with '1.21.5'.
        (using download type 'auto')
      +++ [1223 14:13:36] Building go targets for linux/amd64
          k8s.io/kubernetes/cmd/kubectl (static)
      go: downloading go1.21.5 (linux/amd64)
      go: download go1.21.5 for linux/amd64: toolchain not available
      !!! [1223 14:13:36] Call tree:
      !!! [1223 14:13:36]  1: /var/tmp/portage/sys-cluster/kubectl-1.29.0/work/kubectl-1.29.0/hack/lib/golang.sh:788 kube::golang::build_some_binaries(...)
      !!! [1223 14:13:36]  2: /var/tmp/portage/sys-cluster/kubectl-1.29.0/work/kubectl-1.29.0/hack/lib/golang.sh:958 kube::golang::build_binaries_for_platform(...)
      !!! [1223 14:13:36]  3: hack/make-rules/build.sh:27 kube::golang::build_binaries(...)
      !!! [1223 14:13:36] Call tree:
      !!! [1223 14:13:36]  1: hack/make-rules/build.sh:27 kube::golang::build_binaries(...)
      !!! [1223 14:13:36] Call tree:
      !!! [1223 14:13:36]  1: hack/make-rules/build.sh:27 kube::golang::build_binaries(...)
      make: *** [Makefile:92: all] Error 1
       * ERROR: sys-cluster/kubectl-1.29.0::core-kit failed (compile phase):
       *   emake failed

      We currently do not have Go 1.21.5 in the Funtoo tree. Getting that in the tree and updated the DEPENDS of kubectl should fix this.

            siris siris
            siris siris
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: