-
Notifications
You must be signed in to change notification settings - Fork 17.8k
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
cmd/go: -compiler=gccgo: fork/exec no such file or directory #19628
Comments
Do you actually have gccgo installed on your system? This looks like a very bad error message, but even if we fix that it still won't work for you. |
@xuqingsz I've seen this when gcc[go] isn't in PATH. What does
say? |
I did put this issue off for some time. But you are right! This did the fix for me. Thanks. |
Thanks for the update. I'm going to reopen this to get a better error message. |
CL https://golang.org/cl/40250 mentions this issue. |
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
go version
)?go version go1.7 linux/amd64
What operating system and processor architecture are you using (
go env
)?GOARCH="amd64"
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/root/go"
GORACE=""
GOROOT="/usr/local/go"
GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64"
CC="gcc"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build038947788=/tmp/go-build -gno-record-gcc-switches"
CXX="g++"
CGO_ENABLED="1"
What did you do?
A simple helloworld.go program. GC compiler compiled ok.
For some reason, instead, I need to compile with gccgo, but could never get it to compile.
Any insights are appreciated.
I also have a follow up question on whether gccgo would compile the program statically, or dynamically.
With the -x option:
What did you expect to see?
Program compiles and generates an executable.
What did you see instead?
'no such file or directory'
The text was updated successfully, but these errors were encountered: