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

runtime/cgo: Building on OSX 10.11.6 fork/exec resource temporarily unavailable #18212

Closed
mrjrieke opened this issue Dec 6, 2016 · 6 comments
Milestone

Comments

@mrjrieke
Copy link

mrjrieke commented Dec 6, 2016

Please answer these questions before submitting your issue. Thanks!

What version of Go are you using (go version)?

OSX 10.11.6
go tip
Specifically, latest commit hash:
348a7c5

What operating system and processor architecture are you using (go env)?

Mac OSX
GOARCH="amd64"
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/go"
GORACE=""
GOROOT="/git/go"
GOTOOLDIR="/git/go/pkg/tool/darwin_amd64"
GCCGO="gccgo"
CC="clang"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/yq/v1t_9k3s7f57_4x3x1008mnc0000gn/T/go-build682949995=/tmp/go-build -gno-record-gcc-switches -fno-common"
CXX="clang++"
CGO_ENABLED="1"
PKG_CONFIG="pkg-config"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"

What did you do?

./all.bash

What did you expect to see?

Compilation successful.

What did you see instead?

Testing race detector

...

crypto/x509

clang: error: unable to execute command: posix_spawn failed: Resource temporarily unavailable
2016/12/06 07:50:45 Failed: exit status 2
ok runtime/race 3.371s
ok flag 1.021s
go build crypto/x509: /git/go/pkg/tool/darwin_amd64/cgo: fork/exec /git/go/pkg/tool/darwin_amd64/cgo: resource temporarily unavailable
go build vendor/golang_org/x/net/lex/httplex: /git/go/pkg/tool/darwin_amd64/compile: fork/exec /git/go/pkg/tool/darwin_amd64/compile: resource temporarily unavailable
go build net/textproto: /git/go/pkg/tool/darwin_amd64/compile: fork/exec /git/go/pkg/tool/darwin_amd64/compile: resource temporarily unavailable
FAIL os/exec [build failed]
2016/12/06 07:50:45 Failed: exit status 1
PASS
scatter = 0x41eb380
hello from C
sqrt is: 0
ok _/git/go/misc/cgo/test 4.085s
skipped due to earlier error
2016/12/06 07:50:56 FAILED

@mrjrieke
Copy link
Author

mrjrieke commented Dec 6, 2016

Note: this appears to be intermittent. After running it a second time, everything worked just fine.

@bradfitz bradfitz added this to the Go1.8 milestone Dec 6, 2016
@bradfitz bradfitz changed the title Building on OSX 10.11.6 with latest go tip fails commit hash: 348a7c5397f996a333f88cf9f0c912b282368f32. runtime/cgo: Building on OSX 10.11.6 with latest go tip fails commit hash: 348a7c5397f996a333f88cf9f0c912b282368f32. Dec 6, 2016
@bradfitz bradfitz changed the title runtime/cgo: Building on OSX 10.11.6 with latest go tip fails commit hash: 348a7c5397f996a333f88cf9f0c912b282368f32. runtime/cgo: Building on OSX 10.11.6 fork/exec resource temporarily unavailable Dec 6, 2016
@bradfitz
Copy link
Contributor

bradfitz commented Dec 6, 2016

Ian, another.

@mrjrieke
Copy link
Author

mrjrieke commented Dec 6, 2016

Not sure if this helps:
prompt:$ sysctl -a | grep maxproc
kern.maxproc: 1064
kern.maxprocperuid: 709

prompt:$ ps aux | grep uid | wc -l
210

These are defaults for my box.

@mrjrieke
Copy link
Author

mrjrieke commented Dec 6, 2016

If you want to merge this with an existing issue, feel free to close this one.

@ianlancetaylor
Copy link
Contributor

Closing as dup of #18202.

@gopherbot
Copy link

CL https://golang.org/cl/34017 mentions this issue.

gopherbot pushed a commit that referenced this issue Dec 7, 2016
It is reported as failing for two people (issues #18202 and #18212).
The failure mode is that the system gets overloaded and other programs
fail to run.

Fixes #18202.

Change-Id: I1f1ca1f5d8eed6cc3a9dffac3289851e09fa662b
Reviewed-on: https://go-review.googlesource.com/34017
Run-TryBot: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
@golang golang locked and limited conversation to collaborators Dec 7, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants