Open jhvst opened 9 years ago
Thinking this through now, this should probably be considered user's fault. I noticed that one of my application dependency imports the old package, which should be updated. However, I do find it rather odd that despite using godep
on my CI, it does pass but yours does not.
Anyhow, I notified the malfunctioning package's owner and I'll see whether it will solve the issue for me. If it does not, I'll keep you updated on this issue. Otherwise I'll just close this ticket.
It seems ok with golag.org/x/.. packages. 2014-11-23 PM6:04于 "Juuso Haavisto" notifications@github.com写道:
Hello,
There seems to be an issue when building applications which have dependencies on the old Google packages from code.google.com. These packages were recently moved to golang.org, but it seems like that the logging is considered as an error on your platform.
For example, consider the build log of my application in here: http://gobuild.io/task/16680
Fetching github.com/9uuso/vertigo bash$ gopm --strict get -v -d github.com/9uuso/vertigo@branch:master [GOPM] 14-11-23 01:00:56 [ INFO] App Version: 0.8.4.1006 Beta [GOPM] 14-11-23 01:00:56 [ INFO] Local repository path: /.gopm/repos [GOPM] 14-11-23 01:00:56 [ INFO] Indicated GOPATH: /gopath [GOPM] 14-11-23 01:00:56 [ INFO] Downloading package: github.com/9uuso/vertigo@branch:master [GOPM] 14-11-23 01:01:07 [ INFO] Got github.com/9uuso/vertigo@branch:master [GOPM] 14-11-23 01:01:07 [ INFO] 1 package(s) downloaded, 0 failed bash$ go get -v -d github.com/9uuso/vertigogithub.com/9uuso/vertigo (download)code.google.com/p/go-uuid (download)github.com/9uuso/go-jaro-winkler-distance (download)github.com/codegangsta/inject (download)github.com/go-sql-driver/mysql (download)github.com/gorilla/feeds (download)github.com/gosimple/slug (download)github.com/jinzhu/gorm (download)github.com/lib/pq (download)github.com/kennygrant/sanitize (download)code.google.com/p/go.net (download) Fetching https://golang.org/x/net/html/atom?go-get=1 Parsing meta tags from https://golang.org/x/net/html/atom?go-get=1 (status code 200) get "golang.org/x/net/html/atom": found meta tag main.metaImport{Prefix:"golang.org/x/net", VCS:"hg", RepoRoot:"https://code.google.com/p/go.net"} at https://golang.org/x/net/html/atom?go-get=1 get "golang.org/x/net/html/atom": verifying non-authoritative meta tag Fetching https://golang.org/x/net?go-get=1 Parsing meta tags from https://golang.org/x/net?go-get=1 (status code 200)golang.org/x/net (download)github.com/mailgun/mailgun-go (download)github.com/mbanzon/simplehttp (download)github.com/martini-contrib/render (download)github.com/oxtoacart/bpool (download)github.com/boj/redistore (download)github.com/garyburd/redigo (download)github.com/gorilla/sessions (download)github.com/gorilla/context (download)github.com/mattn/go-sqlite3 (download)github.com/russross/blackfriday (download) Fetching https://golang.org/x/crypto/bcrypt?go-get=1 Parsing meta tags from https://golang.org/x/crypto/bcrypt?go-get=1 (status code 200) get "golang.org/x/crypto/bcrypt": found meta tag main.metaImport{Prefix:"golang.org/x/crypto", VCS:"hg", RepoRoot:"https://code.google.com/p/go.crypto"} at https://golang.org/x/crypto/bcrypt?go-get=1 get "golang.org/x/crypto/bcrypt": verifying non-authoritative meta tag Fetching https://golang.org/x/crypto?go-get=1 Parsing meta tags from https://golang.org/x/crypto?go-get=1 (status code 200)golang.org/x/crypto (download) Building for linux,amd64 bash$ CGO_ENABLED=1 GOOS=linux GOARCH=amd64 CC= packer --rm -o /output/vertigo-linux-amd64.tar.gz
Bulid error on(linux/amd64), exit_code(1)
tar.gz format [golang-sh]$ bash -c test -d Godeps && go(){ godep go "$@";} ; go install -vcode.google.com/p/go-uuid/uuidgithub.com/9uuso/go-jaro-winkler-distancegithub.com/codegangsta/injectgithub.com/go-martini/martini database/sql/driver database/sql http://github.com/go-martini/martinidatabase/sql/driverdatabase/sqlgithub.com/go-sql-driver/mysqlgithub.com/gorilla/feedsgithub.com/fiam/gounidecode/unidecode go build github.com/fiam/gounidecode/unidecode: signal: killedgithub.com/lib/pq/hstoregithub.com/jinzhu/gormgolang.org/x/net/html/atomcode.google.com/p/go.net/html html html/templategithub.com/kennygrant/sanitizegithub.com/lib/pq/oid os/user http://github.com/lib/pq/oidos/usergithub.com/lib/pqgithub.com/mbanzon/simplehttpgithub.com/mailgun/mailgun-gogithub.com/martini-contrib/bindinggithub.com/oxtoacart/bpoolgithub.com/martini-contrib/render encoding/base32 encoding/gob http://github.com/martini-contrib/renderencoding/base32encoding/gobgithub.com/garyburd/redigo/internalgithub.com/garyburd/redigo/redisgithub.com/gorilla/securecookiegithub.com/gorilla/contextgithub.com/gorilla/sessionsgithub.com/boj/redistoregithub.com/martini-contrib/sessionsgithub.com/martini-contrib/strictgithub.com/mattn/go-sqlite3github.com/pkg/browsergithub.com/russross/blackfridaygolang.org/x/crypto/blowfishgolang.org/x/crypto/bcrypt godep: go exit status 1 2014/11/23 01:02:13 [Fatal] pack.go:75 exit status 1
Building for linux,386 bash$ CGO_ENABLED=1 GOOS=linux GOARCH=386 CC= packer --rm -o /output/vertigo-linux-386.tar.gz
Bulid error on(linux/386), exit_code(1)
tar.gz format [golang-sh]$ bash -c test -d Godeps && go(){ godep go "$@";} ; go install -vcode.google.com/p/go-uuid/uuidgithub.com/9uuso/go-jaro-winkler-distancegithub.com/codegangsta/injectgithub.com/go-martini/martinigithub.com/go-sql-driver/mysqlgithub.com/gorilla/feedsgithub.com/fiam/gounidecode/unidecode go build github.com/fiam/gounidecode/unidecode: signal: killedgithub.com/lib/pq/hstoregithub.com/jinzhu/gormgolang.org/x/net/html/atomcode.google.com/p/go.net/htmlgithub.com/kennygrant/sanitizegithub.com/lib/pq/oidgithub.com/lib/pqgithub.com/mbanzon/simplehttpgithub.com/mailgun/mailgun-gogithub.com/martini-contrib/bindinggithub.com/oxtoacart/bpoolgithub.com/martini-contrib/rendergithub.com/garyburd/redigo/internalgithub.com/garyburd/redigo/redisgithub.com/gorilla/securecookiegithub.com/gorilla/contextgithub.com/gorilla/sessionsgithub.com/boj/redistoregithub.com/martini-contrib/sessionsgithub.com/martini-contrib/strictgithub.com/mattn/go-sqlite3github.com/pkg/browsergithub.com/russross/blackfridaygolang.org/x/crypto/blowfishgolang.org/x/crypto/bcrypt godep: go exit status 1 2014/11/23 01:02:50 [Fatal] pack.go:75 exit status 1
Building for linux,arm bash$ CGO_ENABLED=1 GOOS=linux GOARCH=arm CC=arm-linux-gnueabi-gcc packer --rm -o /output/vertigo-linux-arm.tar.gz
Bulid error on(linux/arm), exit_code(1)
tar.gz format [golang-sh]$ bash -c test -d Godeps && go(){ godep go "$@";} ; go install -vcode.google.com/p/go-uuid/uuidgithub.com/9uuso/go-jaro-winkler-distancegithub.com/codegangsta/injectgithub.com/go-martini/martinigithub.com/go-sql-driver/mysqlgithub.com/gorilla/feedsgithub.com/fiam/gounidecode/unidecode go build github.com/fiam/gounidecode/unidecode: signal: killedgithub.com/lib/pq/hstoregithub.com/jinzhu/gormgolang.org/x/net/html/atomcode.google.com/p/go.net/htmlgithub.com/kennygrant/sanitizegithub.com/lib/pq/oidgithub.com/lib/pqgithub.com/mbanzon/simplehttpgithub.com/mailgun/mailgun-gogithub.com/martini-contrib/bindinggithub.com/oxtoacart/bpoolgithub.com/martini-contrib/rendergithub.com/garyburd/redigo/internalgithub.com/garyburd/redigo/redisgithub.com/gorilla/securecookiegithub.com/gorilla/contextgithub.com/gorilla/sessionsgithub.com/boj/redistoregithub.com/martini-contrib/sessionsgithub.com/martini-contrib/strictgithub.com/mattn/go-sqlite3github.com/pkg/browsergithub.com/russross/blackfridaygolang.org/x/crypto/blowfishgolang.org/x/crypto/bcrypt godep: go exit status 1 2014/11/23 01:03:26 [Fatal] pack.go:75 exit status 1
Building for windows,amd64 bash$ CGO_ENABLED=1 GOOS=windows GOARCH=amd64 CC=x86_64-w64-mingw32-gcc packer --rm -o /output/vertigo-windows-amd64.zip
Bulid error on(windows/amd64), exit_code(1)
zip format [golang-sh]$ bash -c test -d Godeps && go(){ godep go "$@";} ; go install -vcode.google.com/p/go-uuid/uuidgithub.com/9uuso/go-jaro-winkler-distancegithub.com/codegangsta/injectgithub.com/go-martini/martinigithub.com/go-sql-driver/mysqlgithub.com/gorilla/feedsgithub.com/fiam/gounidecode/unidecode go build github.com/fiam/gounidecode/unidecode: signal: killedgithub.com/lib/pq/hstoregithub.com/jinzhu/gormgolang.org/x/net/html/atomcode.google.com/p/go.net/htmlgithub.com/kennygrant/sanitizegithub.com/lib/pq/oidgithub.com/lib/pqgithub.com/mbanzon/simplehttpgithub.com/mailgun/mailgun-gogithub.com/martini-contrib/bindinggithub.com/oxtoacart/bpoolgithub.com/martini-contrib/rendergithub.com/garyburd/redigo/internalgithub.com/garyburd/redigo/redisgithub.com/gorilla/securecookiegithub.com/gorilla/contextgithub.com/gorilla/sessionsgithub.com/boj/redistoregithub.com/martini-contrib/sessionsgithub.com/martini-contrib/strictgithub.com/mattn/go-sqlite3github.com/pkg/browsergithub.com/russross/blackfridaygolang.org/x/crypto/blowfishgolang.org/x/crypto/bcrypt godep: go exit status 1 2014/11/23 01:04:04 [Fatal] pack.go:75 exit status 1
Building for windows,386 bash$ CGO_ENABLED=1 GOOS=windows GOARCH=386 CC=i686-w64-mingw32-gcc packer --rm -o /output/vertigo-windows-386.zip
Bulid error on(windows/386), exit_code(1)
zip format [golang-sh]$ bash -c test -d Godeps && go(){ godep go "$@";} ; go install -vcode.google.com/p/go-uuid/uuidgithub.com/9uuso/go-jaro-winkler-distancegithub.com/codegangsta/injectgithub.com/go-martini/martinigithub.com/go-sql-driver/mysqlgithub.com/gorilla/feedsgithub.com/fiam/gounidecode/unidecode go build github.com/fiam/gounidecode/unidecode: signal: killedgithub.com/lib/pq/hstoregithub.com/jinzhu/gormgolang.org/x/net/html/atomcode.google.com/p/go.net/htmlgithub.com/kennygrant/sanitizegithub.com/lib/pq/oidgithub.com/lib/pqgithub.com/mbanzon/simplehttpgithub.com/mailgun/mailgun-gogithub.com/martini-contrib/bindinggithub.com/oxtoacart/bpoolgithub.com/martini-contrib/rendergithub.com/garyburd/redigo/internalgithub.com/garyburd/redigo/redisgithub.com/gorilla/securecookiegithub.com/gorilla/contextgithub.com/gorilla/sessionsgithub.com/boj/redistoregithub.com/martini-contrib/sessionsgithub.com/martini-contrib/strictgithub.com/mattn/go-sqlite3github.com/pkg/browsergithub.com/russross/blackfridaygolang.org/x/crypto/blowfishgolang.org/x/crypto/bcrypt godep: go exit status 1 2014/11/23 01:04:40 [Fatal] pack.go:75 exit status 1
Building for darwin,amd64 bash$ CGO_ENABLED=1 GOOS=darwin GOARCH=amd64 CC=o64-clang packer --rm -o /output/vertigo-darwin-amd64.zip
Bulid error on(darwin/amd64), exit_code(1)
zip format [golang-sh]$ bash -c test -d Godeps && go(){ godep go "$@";} ; go install -vcode.google.com/p/go-uuid/uuidgithub.com/9uuso/go-jaro-winkler-distancegithub.com/codegangsta/injectgithub.com/go-martini/martinigithub.com/go-sql-driver/mysqlgithub.com/gorilla/feedsgithub.com/fiam/gounidecode/unidecode go build github.com/fiam/gounidecode/unidecode: signal: killedgithub.com/lib/pq/hstoregithub.com/jinzhu/gormgolang.org/x/net/html/atomcode.google.com/p/go.net/htmlgithub.com/kennygrant/sanitizegithub.com/lib/pq/oidgithub.com/lib/pqgithub.com/mbanzon/simplehttpgithub.com/mailgun/mailgun-gogithub.com/martini-contrib/bindinggithub.com/oxtoacart/bpoolgithub.com/martini-contrib/rendergithub.com/garyburd/redigo/internalgithub.com/garyburd/redigo/redisgithub.com/gorilla/securecookiegithub.com/gorilla/contextgithub.com/gorilla/sessionsgithub.com/boj/redistoregithub.com/martini-contrib/sessionsgithub.com/martini-contrib/strictgithub.com/mattn/go-sqlite3
github.com/mattn/go-sqlite3
clang: error: unable to execute command: Killed clang: error: clang frontend command failed due to signal (use -v to see invocation) Ubuntu clang version 3.4-1ubuntu3 (tags/RELEASE_34/final) (based on LLVM 3.4) Target: x86_64-apple-darwin10 Thread model: posix clang: note: diagnostic msg: PLEASE submit a bug report to http://bugs.debian.org/ and include the crash backtrace, preprocessed source, and associated run script. clang: note: diagnostic msg:
PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT: Preprocessed source(s) and associated run script(s) are located at: clang: note: diagnostic msg: /tmp/sqlite3-035fc7.c clang: note: diagnostic msg: /tmp/sqlite3-035fc7.sh clang: note: diagnostic msg:
****github.com/pkg/browsergithub.com/russross/blackfridaygolang.org/x/crypto/blowfishgolang.org/x/crypto/bcrypt godep: go exit status 2 2014/11/23 01:05:41 [Fatal] pack.go:75 exit status 1
Building for darwin,386 bash$ CGO_ENABLED=1 GOOS=darwin GOARCH=386 CC=o32-clang packer --rm -o /output/vertigo-darwin-386.zip
Bulid error on(darwin/386), exit_code(1)
zip format [golang-sh]$ bash -c test -d Godeps && go(){ godep go "$@";} ; go install -vcode.google.com/p/go-uuid/uuidgithub.com/9uuso/go-jaro-winkler-distancegithub.com/codegangsta/injectgithub.com/go-martini/martinigithub.com/go-sql-driver/mysqlgithub.com/gorilla/feedsgithub.com/fiam/gounidecode/unidecode go build github.com/fiam/gounidecode/unidecode: signal: killedgithub.com/lib/pq/hstoregithub.com/jinzhu/gormgolang.org/x/net/html/atomcode.google.com/p/go.net/htmlgithub.com/kennygrant/sanitizegithub.com/lib/pq/oidgithub.com/lib/pqgithub.com/mbanzon/simplehttpgithub.com/mailgun/mailgun-gogithub.com/martini-contrib/bindinggithub.com/oxtoacart/bpoolgithub.com/martini-contrib/rendergithub.com/garyburd/redigo/internalgithub.com/garyburd/redigo/redisgithub.com/gorilla/securecookiegithub.com/gorilla/contextgithub.com/gorilla/sessionsgithub.com/boj/redistoregithub.com/martini-contrib/sessionsgithub.com/martini-contrib/strictgithub.com/mattn/go-sqlite3
github.com/mattn/go-sqlite3
clang: error: unable to execute command: Killed clang: error: clang frontend command failed due to signal (use -v to see invocation) Ubuntu clang version 3.4-1ubuntu3 (tags/RELEASE_34/final) (based on LLVM 3.4) Target: i386-apple-darwin10 Thread model: posix clang: note: diagnostic msg: PLEASE submit a bug report to http://bugs.debian.org/ and include the crash backtrace, preprocessed source, and associated run script. clang: note: diagnostic msg:
PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT: Preprocessed source(s) and associated run script(s) are located at: clang: note: diagnostic msg: /tmp/sqlite3-28a29d.c clang: note: diagnostic msg: /tmp/sqlite3-28a29d.sh clang: note: diagnostic msg:
****github.com/pkg/browsergithub.com/russross/blackfridaygolang.org/x/crypto/blowfishgolang.org/x/crypto/bcrypt godep: go exit status 2 2014/11/23 01:06:15 [Fatal] pack.go:75 exit status 1
Saving state to out.json ------------ out.json ------------- { "files": {}, "version": "go version go1.3.3 linux/amd64\nGopm version 0.8.4.1006 Beta\n", "created": 1416704455, "time_used": 320, "repo": "github.com/9uuso/vertigo", "tag": "branch:master", "gobuildrc": "author: juuso@mail.com\ndescription: Blog in Go\n\nfilesets:\n includes:\n - templates\n - public\n - README.md\n - LICENSE" }
I've tried to reproduce the bug on my development machine running the same Go version, but I've not succeeded. My CI doesn't seem to have this issue either, although it does not go install packages.
— Reply to this email directly or view it on GitHub https://github.com/gobuild/gobuild3/issues/9.
It seems like my PR for the package did not resolve the problem.
The logs still indicate this error:
github.com/fiam/gounidecode/unidecode
go build github.com/fiam/gounidecode/unidecode: signal: killed
I'm able to fetch this library myself, but your environment seems different.
You can also find that Gogs is having the same problem, although with different package:
github.com/gogits/gogs/modules/mahonia
go build github.com/gogits/gogs/modules/mahonia: signal: killed
This results in blank downloads page for their master branch, just like it does for my application.
Is there any chance there could be something wrong in your end?
You go version?
go1.3.3 darwin/amd64
It seems go1.2.1 also got some thing like signal: killed.
The thing is, I don't personally experience any of these errors. I can build the packages fine.
Go version used in this image was go version go1.2.1 darwin/amd64
.
I don't know what might cause this, but there seems to be differences with the linux and Mac versions. I also use gvm, but I doubt the error lies there. Instead, I can confirm that I'm unable to reproduce this bug on Go 1.2
, 1.3
, 1.3.3
and now on 1.2.1
.
It seems like the package github.com/fiam/gounidecode/unidecode
has some cloning issues which are not caused by your platform. I'll try resolving the issue with the package maintainer and see whether that would fix the problem.
That being said, I'm sorry about all this hassle. Some repositories seem to build fine on your site, so this problem seems to be on my end after all. I'll therefore close this ticket for now.
Thank you for taking the time to look at this issue, though.
One of my project's contributor is saying that this error might be caused by lack of RAM. According to him, allocating over 2GB of RAM should fix the issue.
Is there any way you could check this?
-_-!! really don't got 2GB ram, currently
This does not seem to be the issue, as I just successfully build my application using 512MB of RAM.
I'll update this ticket once I have some kind of clue what might cause the error.
On my project the error was caused by godep
stripping out long lines in source code, which broke the build process.
Now my application builds fine for windows, but it struggles with memory allocation on Linux and Mac versions. As you can see, I receive errors such as:
# github.com/9uuso/vertigo
/usr/local/go/pkg/tool/linux_amd64/6l: running gcc failed: Cannot allocate memory
godep: go exit status 2
2014/12/16 18:16:02 [Fatal] pack.go:75 exit status 1
# github.com/9uuso/vertigo
/usr/local/go/pkg/tool/linux_amd64/5l: running arm-linux-gnueabi-gcc failed: Cannot allocate memory
godep: go exit status 2
2014/12/16 18:17:17 [Fatal] pack.go:75 exit status 1
Any idea whether this bug is just temporary, e.g., if I'd to build my application at midnight, would it build fine?
I have the same issue when I build cubernetes
My linux kernel version
Linux iZ25mmv2lvyZ 3.13.0-32-generic #57-Ubuntu SMP Tue Jul 15 03:51:08 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
My Linux Issue Version
Ubuntu 14.04.1 LTS
my go version is
go version go1.4.2 linux/amd64
I was trying to run cubernates by executing hack/local-up-cluster.sh
, and here is the log:
+++ [0705 18:53:19] Building go targets for linux/amd64:
cmd/kube-proxy
cmd/kube-apiserver
cmd/kube-controller-manager
cmd/kubelet
cmd/hyperkube
cmd/kubernetes
plugin/cmd/kube-scheduler
cmd/kubectl
cmd/integration
cmd/gendocs
cmd/genman
cmd/genbashcomp
cmd/genconversion
cmd/gendeepcopy
examples/k8petstore/web-server
github.com/onsi/ginkgo/ginkgo
test/e2e/e2e.test
# github.com/GoogleCloudPlatform/kubernetes/cmd/kubelet
/usr/local/go/pkg/tool/linux_amd64/6l: running gcc failed: Cannot allocate memory
# github.com/GoogleCloudPlatform/kubernetes/cmd/kubernetes
/usr/local/go/pkg/tool/linux_amd64/6l: running gcc failed: Cannot allocate memory
# github.com/GoogleCloudPlatform/kubernetes/cmd/integration
/usr/local/go/pkg/tool/linux_amd64/6l: running gcc failed: Cannot allocate memory
!!! Error in /usr/local/kubernetes-0.20.2/hack/lib/golang.sh:382
'go install "${goflags[@]:+${goflags[@]}}" -ldflags "${version_ldflags}" "${nonstatics[@]:+${nonstatics[@]}}"' exited with status 2
Call stack:
1: /usr/local/kubernetes-0.20.2/hack/lib/golang.sh:382 kube::golang::build_binaries_for_platform(...)
2: /usr/local/kubernetes-0.20.2/hack/lib/golang.sh:520 kube::golang::build_binaries(...)
3: /usr/local/kubernetes-0.20.2/hack/build-go.sh:26 main(...)
Exiting with status 1
!!! Error in /usr/local/kubernetes-0.20.2/hack/lib/golang.sh:438
'( kube::golang::setup_env; local version_ldflags; version_ldflags=$(kube::version::ldflags); local host_platform; host_platform=$(kube::golang::host_platform); local goflags; eval "goflags=(${KUBE_GOFLAGS:-})"; 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} -gt ${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: /usr/local/kubernetes-0.20.2/hack/lib/golang.sh:438 kube::golang::build_binaries(...)
2: /usr/local/kubernetes-0.20.2/hack/build-go.sh:26 main(...)
Exiting with status 1
!!! Error in hack/local-up-cluster.sh:65
'"${KUBE_ROOT}/hack/build-go.sh"' exited with status 1
Call stack:
1: hack/local-up-cluster.sh:65 main(...)
Exiting with status 1
HI even I was seeing the same issue : " running gcc failed: Cannot allocate memory " -- Increasing the memory to 2 GB fixed it. :+1:
I found that. -_-!! have to use some better machine.
Yes, I can make sure 2GB RAM will fix the problem. But don't you think it's too much? @9uuso
Hello,
There seems to be an issue when building applications which have dependencies on the old Google packages from
code.google.com
. These packages were recently moved togolang.org
, but it seems like that the logging is considered as an error on your platform.For example, consider the build log of my application in here: http://gobuild.io/task/16680
I've tried to reproduce the bug on my development machine running the same Go version, but I've not succeeded. My CI doesn't seem to have this issue either, although it does not
go install
packages.