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
Comments
Note: this appears to be intermittent. After running it a second time, everything worked just fine. |
Ian, another. |
Not sure if this helps: prompt:$ ps aux | grep uid | wc -l These are defaults for my box. |
If you want to merge this with an existing issue, feel free to close this one. |
Closing as dup of #18202. |
CL https://golang.org/cl/34017 mentions this issue. |
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>
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
The text was updated successfully, but these errors were encountered: