You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I cloned the repository from github and followed the instruction. I was able to build once and start openshift origin in my ubuntu vm. But then it stopped building again for me. I started to get the following errors every time I try to do make clean build.
root@ubuntu:/home/enlin/vmturbo/goProtoBuff/src/github.com/openshift/origin# make clean build
rm -rf _output Godeps/_workspace/pkg
hack/build-go.sh
++ Building go targets for linux/amd64: cmd/openshift cmd/oc
pkg/security/controller/repair.go:45: undefined: wait.Until
!!! Error in hack/../hack/common.sh:206
'go install "${goflags[@]:+${goflags[@]}}" -ldflags "${version_ldflags}" "${nonstatics[@]}"' exited with status 2
Call stack:
1: hack/../hack/common.sh:206 os::build::build_binaries(...)
2: hack/build-go.sh:31 main(...)
Exiting with status 1
!!! Error in hack/../hack/common.sh:167
'( os::build::setup_env; local version_ldflags; version_ldflags=$(os::build::ldflags); local goflags; eval "goflags=(${OS_GOFLAGS:-})"; local arg; for arg in "$@";
do
if [[ "${arg}" == -* ]]; then
goflags+=("${arg}");
fi;
done; os::build::export_targets "$@"; local -a nonstatics=(); local -a tests=(); for binary in "${binaries[@]}";
do
if [[ "${binary}" =~ ".test"$ ]]; then
tests+=($binary);
else
nonstatics+=($binary);
fi;
done; local platform; for platform in "${platforms[@]}";
do
os::build::set_platform_envs "${platform}"; echo "++ Building go targets for ${platform}:" "${targets[@]}"; if [[ ${#nonstatics[@]} -gt 0 ]]; then
go install "${goflags[@]:+${goflags[@]}}" -ldflags "${version_ldflags}" "${nonstatics[@]}";
fi; for test in "${tests[@]:+${tests[@]}}";
do
mkdir -p "${GOBIN}/${platform}"; local outfile="${GOBIN}/${platform}/$(basename ${test})"; go test -c -o "${outfile}" "${goflags[@]:+${goflags[@]}}" -ldflags "${version_ldflags}" "$(dirname ${test})";
done; os::build::unset_platform_envs "${platform}";
done )' exited with status 1
Call stack:
1: hack/../hack/common.sh:167 os::build::build_binaries(...)
2: hack/build-go.sh:31 main(...)
Exiting with status 1
make: *** [build] Error 1
Any help is appreciated.
The text was updated successfully, but these errors were encountered:
golang/go#10509 was a bug in Go 1.4 - if you are building OpenShift, run a checkout to another branch, and then get package errors, you're getting this.
You can upgrade to Go 1.5 (and thus get slow builds) or stay on 1.4 and remember to clean $GOPATH/pkg when changing branches.
I cloned the repository from github and followed the instruction. I was able to build once and start openshift origin in my ubuntu vm. But then it stopped building again for me. I started to get the following errors every time I try to do make clean build.
root@ubuntu:/home/enlin/vmturbo/goProtoBuff/src/github.com/openshift/origin# make clean build
rm -rf _output Godeps/_workspace/pkg
hack/build-go.sh
++ Building go targets for linux/amd64: cmd/openshift cmd/oc
github.com/openshift/origin/pkg/router/controller/factory
pkg/router/controller/factory/factory.go:116: undefined: wait.Until
pkg/router/controller/factory/factory.go:123: undefined: wait.NeverStop
pkg/router/controller/factory/factory.go:124: undefined: wait.Until
pkg/router/controller/factory/factory.go:131: undefined: wait.NeverStop
github.com/openshift/origin/pkg/image/registry/imagestreammapping
pkg/image/registry/imagestreammapping/rest.go:105: undefined: wait.ExponentialBackoff
pkg/image/registry/imagestreammapping/rest.go:105: undefined: wait.Backoff
github.com/openshift/origin/pkg/project/auth
pkg/project/auth/cache.go:172: undefined: wait.Forever
github.com/openshift/origin/pkg/security/controller
pkg/security/controller/repair.go:45: undefined: wait.Until${OS_GOFLAGS:-})"; local arg; for arg in "$ @";
!!! Error in hack/../hack/common.sh:206
'go install "${goflags[@]:+${goflags[@]}}" -ldflags "${version_ldflags}" "${nonstatics[@]}"' exited with status 2
Call stack:
1: hack/../hack/common.sh:206 os::build::build_binaries(...)
2: hack/build-go.sh:31 main(...)
Exiting with status 1
!!! Error in hack/../hack/common.sh:167
'( os::build::setup_env; local version_ldflags; version_ldflags=$(os::build::ldflags); local goflags; eval "goflags=(
do
if [[ "${arg}" == -* ]]; then
goflags+=("${arg}");
fi;
done; os::build::export_targets "$@"; local -a nonstatics=(); local -a tests=(); for binary in "${binaries[@]}";
do
if [[ "${binary}" =~ ".test"$ ]]; then
tests+=($binary);
else
nonstatics+=($binary);
fi;
done; local platform; for platform in "${platforms[@]}";
do
os::build::set_platform_envs "${platform}"; echo "++ Building go targets for ${platform}:" "${targets[@]}"; if [[ ${#nonstatics[@]} -gt 0 ]]; then
go install "${goflags[@]:+${goflags[@]}}" -ldflags "${version_ldflags}" "${nonstatics[@]}";
fi; for test in "${tests[@]:+${tests[@]}}";
do
mkdir -p "${GOBIN}/${platform}"; local outfile="${GOBIN}/${platform}/$(basename ${test})"; go test -c -o "${outfile}" "${goflags[@]:+${goflags[@]}}" -ldflags "${version_ldflags}" "$(dirname ${test})";
done; os::build::unset_platform_envs "${platform}";
done )' exited with status 1
Call stack:
1: hack/../hack/common.sh:167 os::build::build_binaries(...)
2: hack/build-go.sh:31 main(...)
Exiting with status 1
make: *** [build] Error 1
Any help is appreciated.
The text was updated successfully, but these errors were encountered: