Skip to content

Instantly share code, notes, and snippets.

Created November 24, 2015 17:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/10061f93b6febd961185 to your computer and use it in GitHub Desktop.
Save anonymous/10061f93b6febd961185 to your computer and use it in GitHub Desktop.
# github.com/prometheus/common/model
Godeps/_workspace/src/github.com/prometheus/common/model/signature.go:33: undefined: sync.Pool
# k8s.io/kubernetes/pkg/client/transport
_output/local/go/src/k8s.io/kubernetes/pkg/client/transport/cache.go:65: unknown http.Transport field 'TLSHandshakeTimeout' in struct literal
_output/local/go/src/k8s.io/kubernetes/pkg/client/transport/cache.go:69: unknown net.Dialer field 'KeepAlive' in struct literal
# k8s.io/kubernetes/pkg/probe/http
_output/local/go/src/k8s.io/kubernetes/pkg/probe/http/http.go:47: unknown http.Client field 'Timeout' in struct literal
# github.com/docker/libcontainer/seccomp
Godeps/_workspace/src/github.com/docker/libcontainer/seccomp/seccomp.go:71: internal compiler error: unknown etype 0/STRUCT
# github.com/emicklei/go-restful
Godeps/_workspace/src/github.com/emicklei/go-restful/compressor_pools.go:12: undefined: sync.Pool
Godeps/_workspace/src/github.com/emicklei/go-restful/compressor_pools.go:29: undefined: sync.Pool
Godeps/_workspace/src/github.com/emicklei/go-restful/compressor_pools.go:51: undefined: sync.Pool
# k8s.io/kubernetes/plugin/pkg/auth/authenticator/request/basicauth
_output/local/go/src/k8s.io/kubernetes/plugin/pkg/auth/authenticator/request/basicauth/basicauth.go:38: req.BasicAuth undefined (type *http.Request has no field or method BasicAuth)
# github.com/aws/aws-sdk-go/aws/ec2metadata
Godeps/_workspace/src/github.com/aws/aws-sdk-go/aws/ec2metadata/service.go:101: unknown net.Dialer field 'KeepAlive' in struct literal
Godeps/_workspace/src/github.com/aws/aws-sdk-go/aws/ec2metadata/service.go:103: unknown http.Transport field 'TLSHandshakeTimeout' in struct literal
# github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/pools
Godeps/_workspace/src/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/pools/pools.go:31: undefined: sync.Pool
# github.com/mesos/mesos-go/detector
Godeps/_workspace/src/github.com/mesos/mesos-go/detector/standalone.go:73: unknown http.Client field 'Timeout' in struct literal
# github.com/mesos/mesos-go/messenger
Godeps/_workspace/src/github.com/mesos/mesos-go/messenger/http_transporter.go:51: unknown net.Dialer field 'KeepAlive' in struct literal
Godeps/_workspace/src/github.com/mesos/mesos-go/messenger/http_transporter.go:53: unknown http.Transport field 'TLSHandshakeTimeout' in struct literal
Godeps/_workspace/src/github.com/mesos/mesos-go/messenger/http_transporter.go:57: unknown http.Client field 'Timeout' in struct literal
# github.com/ugorji/go/codec
Godeps/_workspace/src/github.com/ugorji/go/codec/encode.go:1220: undefined: sync.Pool
Godeps/_workspace/src/github.com/ugorji/go/codec/encode.go:1230: undefined: sync.Pool
Godeps/_workspace/src/github.com/ugorji/go/codec/json.go:148: undefined: sync.Pool
!!! Error in /home/venus/k8s-mesos-docker-test/kubernetes/hack/lib/golang.sh:393
'go install "${goflags[@]:+${goflags[@]}}" -ldflags "${goldflags}" "${nonstatics[@]:+${nonstatics[@]}}"' exited with status 2
Call stack:
1: /home/venus/k8s-mesos-docker-test/kubernetes/hack/lib/golang.sh:393 kube::golang::build_binaries_for_platform(...)
2: /home/venus/k8s-mesos-docker-test/kubernetes/hack/lib/golang.sh:528 kube::golang::build_binaries(...)
3: hack/build-go.sh:26 main(...)
Exiting with status 1
!!! Error in /home/venus/k8s-mesos-docker-test/kubernetes/hack/lib/golang.sh:449
'( kube::golang::setup_env; 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: /home/venus/k8s-mesos-docker-test/kubernetes/hack/lib/golang.sh:449 kube::golang::build_binaries(...)
2: hack/build-go.sh:26 main(...)
Exiting with status 1
make: *** [all] Error 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment