Skip to content

Recent Kubernetes tarballs from GitHub don't build using make (wrong linker args?) #56346

Closed
@mati865

Description

/kind bug

What happened:

+++ [1124 14:16:45] Building the toolchain targets:
    k8s.io/kubernetes/hack/cmd/teststale
    k8s.io/kubernetes/vendor/github.com/jteeuwen/go-bindata/go-bindata
# k8s.io/kubernetes/vendor/github.com/jteeuwen/go-bindata/go-bindata
usage: link [options] main.o
(list of possible link args)
# k8s.io/kubernetes/hack/cmd/teststale
usage: link [options] main.o
(list of possible link args)
!!! [1124 14:16:46] Call tree:
!!! [1124 14:16:46]  1: /home/builder/aports/community/kubernetes/src/kubernetes-1.8.4/hack/lib/golang.sh:683 kube::golang::build_kube_toolchain(...)
!!! [1124 14:16:46]  2: hack/make-rules/build.sh:27 kube::golang::build_binaries(...)
!!! [1124 14:16:46] Call tree:
!!! [1124 14:16:46]  1: hack/make-rules/build.sh:27 kube::golang::build_binaries(...)
make[1]: *** [Makefile.generated_files:322: _output/local/go/bin/deepcopy-gen] Error 1
make: *** [Makefile:512: generated_files] Error 2

What you expected to happen:
Working build.

How to reproduce it (as minimally and precisely as possible):
Run make -j1 in Kubernetes 1.8.4 source unpacked from tarball.

Anything else we need to know?:
Kubernetes 1.8.3 tarball and git v1.8.4 tag build fine.
Link to tarball: https://github.com/kubernetes/kubernetes/archive/v1.8.4.tar.gz

Environment:

  • Kubernetes version (use kubectl version): 1.8.4
  • Cloud provider or hardware configuration:
  • OS (e.g. from /etc/os-release): Alpine 3.6 and Ubuntu 17.10
  • Kernel (e.g. uname -a): Linux ubuntu-artful 4.13.0-16-generic #19-Ubuntu SMP Wed Oct 11 18:35:14 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
  • Install tools: Alpine: go 1.8.4; Ubuntu: go 1.8.3, 1.9.1
  • Others:

Metadata

Assignees

Labels

area/build-releasekind/bugCategorizes issue or PR as related to a bug.sig/testingCategorizes an issue or PR as relevant to SIG Testing.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions