Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 921531

Summary: sys-cluster/kubectl-1.28.5 does not compile with dev-lang/go-1.21.5
Product: Gentoo Linux Reporter: smellyfis <dylan.thies>
Component: Current packagesAssignee: William Hubbs <williamh>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge --info

Description smellyfis 2024-01-07 00:23:33 UTC
when emerging kubectl it does not find go.

Reproducible: Always

Steps to Reproduce:
1.emerge -1qv =dev-lang/go-1.21.5
2.emerge -1qv =sys-cluster/kubectl-1.28.5
Actual Results:  
 /var/tmp/portage # emerge -1qv kubectl

 * IMPORTANT: 1 news items need reading for repository 'gentoo'.
 * Use eselect news read to view new items.

>>> Verifying ebuild manifests
>>> Emerging (1 of 1) sys-cluster/kubectl-1.28.5::gentoo
>>> Failed to emerge sys-cluster/kubectl-1.28.5, Log file:
>>>  '/var/tmp/portage/sys-cluster/kubectl-1.28.5/temp/build.log'
>>> Jobs: 0 of 1 complete, 1 failed                 Load avg: 3.24, 2.62, 1.37
 * Package:    sys-cluster/kubectl-1.28.5:0
 * Repository: gentoo
 * Maintainer: williamh@gentoo.org
 * USE:        abi_x86_64 amd64 elibc_glibc kernel_linux
 * FEATURES:   ccache network-sandbox preserve-libs sandbox userpriv usersandbox
I don't have any idea what to do with '1.20.12'.
  (using download type 'auto')
+++ [0106 19:13:08] Building go targets for linux/amd64
    k8s.io/kubernetes/cmd/kubectl (static)
go: downloading go1.20.12 (linux/amd64)
go: download go1.20.12 for linux/amd64: toolchain not available
!!! [0106 19:13:08] Call tree:
!!! [0106 19:13:08]  1: /var/tmp/portage/sys-cluster/kubectl-1.28.5/work/kubernetes-1.28.5/hack/lib/golang.sh:787 kube::golang::build_some_binaries(...)
!!! [0106 19:13:08]  2: /var/tmp/portage/sys-cluster/kubectl-1.28.5/work/kubernetes-1.28.5/hack/lib/golang.sh:957 kube::golang::build_binaries_for_platform(...)
!!! [0106 19:13:08]  3: hack/make-rules/build.sh:27 kube::golang::build_binaries(...)
!!! [0106 19:13:08] Call tree:
!!! [0106 19:13:08]  1: hack/make-rules/build.sh:27 kube::golang::build_binaries(...)
!!! [0106 19:13:08] Call tree:
!!! [0106 19:13:08]  1: hack/make-rules/build.sh:27 kube::golang::build_binaries(...)
make: *** [Makefile:92: all] Error 1
 * ERROR: sys-cluster/kubectl-1.28.5::gentoo failed (compile phase):
 *   emake failed
 *
 * If you need support, post the output of `emerge --info '=sys-cluster/kubectl-1.28.5::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=sys-cluster/kubectl-1.28.5::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/sys-cluster/kubectl-1.28.5/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-cluster/kubectl-1.28.5/temp/environment'.
 * Working directory: '/var/tmp/portage/sys-cluster/kubectl-1.28.5/work/kubernetes-1.28.5'
 * S: '/var/tmp/portage/sys-cluster/kubectl-1.28.5/work/kubernetes-1.28.5'

 * Messages for package sys-cluster/kubectl-1.28.5:

 * ERROR: sys-cluster/kubectl-1.28.5::gentoo failed (compile phase):
 *   emake failed
 *
 * If you need support, post the output of `emerge --info '=sys-cluster/kubectl-1.28.5::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=sys-cluster/kubectl-1.28.5::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/sys-cluster/kubectl-1.28.5/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-cluster/kubectl-1.28.5/temp/environment'.
 * Working directory: '/var/tmp/portage/sys-cluster/kubectl-1.28.5/work/kubernetes-1.28.5'
 * S: '/var/tmp/portage/sys-cluster/kubectl-1.28.5/work/kubernetes-1.28.5'

Expected Results:  
/var/tmp/portage # emerge -1qv kubectl

 * IMPORTANT: 1 news items need reading for repository 'gentoo'.
 * Use eselect news read to view new items.

>>> Verifying ebuild manifests
>>> Emerging (1 of 1) sys-cluster/kubectl-1.28.5::gentoo
>>> Installing (1 of 1) sys-cluster/kubectl-1.28.5::gentoo
>>> Completed (1 of 1) sys-cluster/kubectl-1.28.5::gentoo
>>> Jobs: 1 of 1 complete                           

if i downgrade go 1.20.12, install kubectl 1.28.5, upgrade go 1.21.5 it installs fine
Comment 1 smellyfis 2024-01-07 00:25:09 UTC
Created attachment 881580 [details]
emerge --info
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-01-07 07:57:46 UTC
>Timestamp of repository gentoo: Tue, 02 Jan 2024 23:30:02 +0000
>Head commit of repository gentoo: 2ed0c93ba964e9b96aedbdc9f33cfdc42c050357

dupe I think, please sync

*** This bug has been marked as a duplicate of bug 921231 ***