{"action":"opened","issue":{"url":"https://api.github.com/repos/kubernetes/kubernetes/issues/16783","labels_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/16783/labels{/name}","comments_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/16783/comments","events_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/16783/events","html_url":"https://github.com/kubernetes/kubernetes/issues/16783","id":114983949,"number":16783,"title":"Not able to build static binaries.","user":{"login":"Pensu","id":4402424,"avatar_url":"https://avatars.githubusercontent.com/u/4402424?v=3","gravatar_id":"","url":"https://api.github.com/users/Pensu","html_url":"https://github.com/Pensu","followers_url":"https://api.github.com/users/Pensu/followers","following_url":"https://api.github.com/users/Pensu/following{/other_user}","gists_url":"https://api.github.com/users/Pensu/gists{/gist_id}","starred_url":"https://api.github.com/users/Pensu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Pensu/subscriptions","organizations_url":"https://api.github.com/users/Pensu/orgs","repos_url":"https://api.github.com/users/Pensu/repos","events_url":"https://api.github.com/users/Pensu/events{/privacy}","received_events_url":"https://api.github.com/users/Pensu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-04T06:47:42Z","updated_at":"2015-11-04T06:47:42Z","closed_at":null,"body":"Hi all,\r\n\r\nSo, I am building kubernetes from scratch. I downloaded the git code and ran \r\n\r\n```\r\n./hack/build-go.sh --use_go_build\r\n```\r\n\r\nHere is the output I am getting:\r\n\r\n```\r\n  cmd/kube-proxy\r\n    cmd/kube-apiserver\r\n    cmd/kube-controller-manager\r\n    cmd/kubelet\r\n    cmd/kubemark\r\n    cmd/hyperkube\r\n    cmd/linkcheck\r\n    plugin/cmd/kube-scheduler\r\n    cmd/kubectl\r\n    cmd/integration\r\n    cmd/gendocs\r\n    cmd/genman\r\n    cmd/mungedocs\r\n    cmd/genbashcomp\r\n    cmd/genconversion\r\n    cmd/gendeepcopy\r\n    cmd/genswaggertypedocs\r\n    examples/k8petstore/web-server/src\r\n    github.com/onsi/ginkgo/ginkgo\r\n    test/e2e/e2e.test\r\n+++ [1104 00:45:49] +++ Warning: stdlib pkg with cgo flag not found.\r\n+++ [1104 00:45:49] +++ Warning: stdlib pkg cannot be rebuilt since /opt/at9.0/pkg is not writable by root\r\n+++ [1104 00:45:49] +++ Warning: Make /opt/at9.0/pkg writable for root for a one-time stdlib install, Or\r\n+++ [1104 00:45:49] +++ Warning: Rebuild stdlib using the command 'CGO_ENABLED=0 go install -a -installsuffix cgo std'\r\n+++ [1104 00:45:49] +++ Falling back to go build, which is slower\r\n    go build: when using gccgo toolchain, please pass linker flags using -gccgoflags, not -ldflags\r\n```\r\n\r\nNow, it results in successful build, but I am getting only dynamic binaries. According to hack/lib/golang.sh, I should get at least 3 static binaries, but that's not happening. Can you help me figure out, what's the issue here? And yeah, I am using gccgo."}}