Last active
March 13, 2018 22:23
-
-
Save brandonweeks/8b6c512fb743813d3f001f10528bf53f to your computer and use it in GitHub Desktop.
kubernetes make release output
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ make release | |
build/release.sh | |
+++ [0426 01:54:18] Verifying Prerequisites.... | |
+++ [0426 01:54:18] No docker host is set. Checking options for setting one... | |
+++ [0426 01:54:18] docker-machine was found. | |
Host does not exist: "kube-dev" | |
+++ [0426 01:54:18] Creating a machine to build Kubernetes | |
Machine "kube-dev" is already running. | |
build/../build/common.sh: line 205: DOCKER_MACHINE_NAME: readonly variable | |
+++ [0426 01:55:21] A Docker host using docker-machine named 'kube-dev' is ready to go! | |
+++ [0426 01:55:24] Building Docker image kube-build:build-8ee76845cc. | |
+++ [0426 01:56:45] Running build command.... | |
+++ [0426 01:56:45] Creating data container | |
Go version: go version go1.6 linux/amd64 | |
+++ [0426 08:56:42] Multiple platforms requested, but available 0G < threshold 11G, building platforms in serial | |
+++ [0426 08:56:42] Building go targets for linux/amd64: | |
cmd/kube-proxy | |
cmd/kube-apiserver | |
cmd/kube-controller-manager | |
cmd/kubelet | |
cmd/kubemark | |
cmd/hyperkube | |
federation/cmd/federated-apiserver | |
plugin/cmd/kube-scheduler | |
# k8s.io/kubernetes/cmd/kubelet | |
/usr/local/go/pkg/tool/linux_amd64/link: running gcc failed: fork/exec /usr/bin/gcc: cannot allocate memory | |
# k8s.io/kubernetes/cmd/kubemark | |
/usr/local/go/pkg/tool/linux_amd64/link: running gcc failed: fork/exec /usr/bin/gcc: cannot allocate memory | |
# k8s.io/kubernetes/cmd/hyperkube | |
/usr/local/go/pkg/tool/linux_amd64/link: running gcc failed: fork/exec /usr/bin/gcc: cannot allocate memory | |
# k8s.io/kubernetes/federation/cmd/federated-apiserver | |
/usr/local/go/pkg/tool/linux_amd64/link: running gcc failed: fork/exec /usr/bin/gcc: cannot allocate memory | |
!!! Error in /go/src/k8s.io/kubernetes/hack/lib/golang.sh:435 | |
'go install "${goflags[@]:+${goflags[@]}}" -ldflags "${goldflags}" "${nonstatics[@]:+${nonstatics[@]}}"' exited with status 2 | |
Call stack: | |
1: /go/src/k8s.io/kubernetes/hack/lib/golang.sh:435 kube::golang::build_binaries_for_platform(...) | |
2: /go/src/k8s.io/kubernetes/hack/lib/golang.sh:578 kube::golang::build_binaries(...) | |
3: hack/build-cross.sh:28 main(...) | |
Exiting with status 1 | |
!!! Error in /go/src/k8s.io/kubernetes/hack/lib/golang.sh:498 | |
'( kube::golang::setup_env; echo "Go version: $(go version)"; local host_platform; host_platform=$(kube::golang::host_platform); local goflags goldflags; eval "goflags=(${KUBE_GOFLAGS:-})"; goldflags="${KUBE_GOLDFLAGS:-} $(kube::version::ldflags)"; local use_go_build; local -a targets=(); local arg; for arg in "$@"; | |
do | |
if [[ "${arg}" == "--use_go_build" ]]; then | |
use_go_build=true; | |
else | |
if [[ "${arg}" == -* ]]; then | |
goflags+=("${arg}"); | |
else | |
targets+=("${arg}"); | |
fi; | |
fi; | |
done; if [[ ${#targets[@]} -eq 0 ]]; then | |
targets=("${KUBE_ALL_TARGETS[@]}"); | |
fi; local -a platforms=("${KUBE_BUILD_PLATFORMS[@]:+${KUBE_BUILD_PLATFORMS[@]}}"); if [[ ${#platforms[@]} -eq 0 ]]; then | |
platforms=("${host_platform}"); | |
fi; local binaries; binaries=($(kube::golang::binaries_from_targets "${targets[@]}")); local parallel=false; if [[ ${#platforms[@]} -gt 1 ]]; then | |
local gigs; gigs=$(kube::golang::get_physmem); if [[ ${gigs} -ge ${KUBE_PARALLEL_BUILD_MEMORY} ]]; then | |
kube::log::status "Multiple platforms requested and available ${gigs}G >= threshold ${KUBE_PARALLEL_BUILD_MEMORY}G, building platforms in parallel"; parallel=true; | |
else | |
kube::log::status "Multiple platforms requested, but available ${gigs}G < threshold ${KUBE_PARALLEL_BUILD_MEMORY}G, building platforms in serial"; parallel=false; | |
fi; | |
fi; if [[ "${parallel}" == "true" ]]; then | |
kube::log::status "Building go targets for ${platforms[@]} in parallel (output will appear in a burst when complete):" "${targets[@]}"; local platform; for platform in "${platforms[@]}"; | |
do | |
( kube::golang::set_platform_envs "${platform}"; kube::log::status "${platform}: go build started"; kube::golang::build_binaries_for_platform ${platform} ${use_go_build:-}; kube::log::status "${platform}: go build finished" ) &> "/tmp//${platform//\//_}.build" & | |
done; local fails=0; for job in $(jobs -p); | |
do | |
wait ${job} || let "fails+=1"; | |
done; for platform in "${platforms[@]}"; | |
do | |
cat "/tmp//${platform//\//_}.build"; | |
done; exit ${fails}; | |
else | |
for platform in "${platforms[@]}"; | |
do | |
kube::log::status "Building go targets for ${platform}:" "${targets[@]}"; kube::golang::set_platform_envs "${platform}"; kube::golang::build_binaries_for_platform ${platform} ${use_go_build:-}; | |
done; | |
fi )' exited with status 1 | |
Call stack: | |
1: /go/src/k8s.io/kubernetes/hack/lib/golang.sh:498 kube::golang::build_binaries(...) | |
2: hack/build-cross.sh:28 main(...) | |
Exiting with status 1 | |
!!! Error in build/../build/common.sh:559 | |
'"${docker_cmd[@]}" "$@"' exited with status 1 | |
Call stack: | |
1: build/../build/common.sh:559 kube::build::run_build_command(...) | |
2: build/release.sh:33 main(...) | |
Exiting with status 1 | |
make: *** [release] Error 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You need more memory in your machine, I'm using 4GB and work fine