Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

e2e run fails during build with 'compile: reading input: EOF' errors #27712

Closed
xiaochunyn opened this issue Jun 20, 2016 · 5 comments
Closed
Labels
area/build-release area/release-eng Issues or PRs related to the Release Engineering subproject sig/release Categorizes an issue or PR as relevant to SIG Release.

Comments

@xiaochunyn
Copy link

xiaochunyn commented Jun 20, 2016

root@zzc:/home/chun/soft/kubernetes/kubernetes# go run hack/e2e.go -v --build
2016/06/20 17:36:42 e2e.go:212: Running: build-release
Ubuntu doesn't need special preparations for e2e tests
+++ [0620 17:36:42] Verifying Prerequisites....
+++ [0620 17:36:48] Building Docker image kube-build:build-bd1a5c6f19.
+++ [0620 17:36:53] Running build command....
Go version: go version go1.6.2 linux/amd64
+++ [0620 17:36:54] Multiple platforms requested, but available 7G < threshold 11G, building platforms in serial
+++ [0620 17:36:54] Building the toolchain targets:
    k8s.io/kubernetes/hack/cmd/teststale
+++ [0620 17:36:54] Building go targets for linux/amd64:
    cmd/kube-dns
    cmd/kube-proxy
    cmd/kube-apiserver
    cmd/kube-controller-manager
    cmd/kubelet
    cmd/kubemark
    cmd/hyperkube
    federation/cmd/federation-apiserver
    federation/cmd/federation-controller-manager
    plugin/cmd/kube-scheduler
# k8s.io/kubernetes/pkg/util/strategicpatch
compile: reading input: EOF
# k8s.io/kubernetes/pkg/runtime
compile: reading input: EOF
!!! Error in /go/src/k8s.io/kubernetes/hack/lib/golang.sh:464
  'go install "${goflags[@]:+${goflags[@]}}" -ldflags "${goldflags}" "${nonstatics[@]:+${nonstatics[@]}}"' exited with status 2
Call stack:
  1: /go/src/k8s.io/kubernetes/hack/lib/golang.sh:464 kube::golang::build_binaries_for_platform(...)
  2: /go/src/k8s.io/kubernetes/hack/lib/golang.sh:633 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:550
  '( 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; kube::golang::build_kube_toolchain; 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:550 kube::golang::build_binaries(...)
  2: hack/build-cross.sh:28 main(...)
Exiting with status 1
!!! Error in /home/chun/soft/kubernetes/kubernetes/hack/e2e-internal/../../cluster/../build/../build/common.sh:617
  '"${docker_cmd[@]}" "$@"' exited with status 1
Call stack:
  1: /home/chun/soft/kubernetes/kubernetes/hack/e2e-internal/../../cluster/../build/../build/common.sh:617 kube::build::run_build_command(...)
  2: /home/chun/soft/kubernetes/kubernetes/hack/e2e-internal/../../cluster/../build/release.sh:33 main(...)
Exiting with status 1
2016/06/20 17:36:55 e2e.go:218: Error running build-release: exit status 1
2016/06/20 17:36:55 e2e.go:214: Step 'build-release' finished in 13.579951011s
2016/06/20 17:36:55 e2e.go:95: Error building. Aborting.
exit status 1
@girishkalele
Copy link

@xiaochunyn

Your compile error seems to be compile: reading input: EOF - nearest match I found was this windows-amd64 golang compiler issue. Your logs don't seem to indicate a Windows environment though.

# k8s.io/kubernetes/pkg/util/strategicpatch
compile: reading input: EOF
# k8s.io/kubernetes/pkg/runtime
compile: reading input: EOF

golang/go#15061

@girishkalele girishkalele changed the title Can't set up e2e test cluster. e2e run fails during build with 'compile: reading input: EOF' errors Jun 21, 2016
@j3ffml j3ffml added the area/release-eng Issues or PRs related to the Release Engineering subproject label Jun 28, 2016
@sttts
Copy link
Contributor

sttts commented Jul 28, 2016

Suddenly I got this error locally:

$ go test -v ./pkg/master/
# k8s.io/kubernetes/pkg/client/unversioned
compile: reading input: EOF
FAIL    k8s.io/kubernetes/pkg/master [build failed]
120,37s user 7,11s system 307% cpu 41,459s total

No idea yet what the reason is.

Here is another golang issue: golang/go#14270

@Quentin-M
Copy link
Contributor

Quentin-M commented Nov 1, 2016

Happened to me as well on a freshly installed Ubuntu 16.04 LTS in VirtualBox with both Go 1.6 and 1.7 when local-up-cluster.sh tried to compile k8s.io/kubernetes/vendor/github.com/mesos/mesos-go/detector. I removed the whole output folder and compiled using make all - seems working.

@k8s-github-robot k8s-github-robot added the needs-sig Indicates an issue or PR lacks a `sig/foo` label and requires one. label May 31, 2017
@0xmichalis
Copy link
Contributor

/sig release

@k8s-ci-robot k8s-ci-robot added the sig/release Categorizes an issue or PR as relevant to SIG Release. label Jun 22, 2017
@k8s-github-robot k8s-github-robot removed the needs-sig Indicates an issue or PR lacks a `sig/foo` label and requires one. label Jun 23, 2017
@ixdy
Copy link
Member

ixdy commented Jun 23, 2017

closing obsolete. please reopen if this is still affecting you.

@ixdy ixdy closed this as completed Jun 23, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/build-release area/release-eng Issues or PRs related to the Release Engineering subproject sig/release Categorizes an issue or PR as relevant to SIG Release.
Projects
None yet
Development

No branches or pull requests

9 participants