Open rexchou opened 8 years ago
hello, I use gccgo hello.go can be successfully compiled, using go build -x -compiler=gccgo hello.go failed
rexchou@rexchou-virtual-machine:~/work$ go build -x -compiler=gccgo hello.go WORK=/tmp/go-build221584061 mkdir -p $WORK/command-line-arguments/_obj/ mkdir -p $WORK/command-line-arguments/obj/exe/ cd /home/rexchou/work "" -I $WORK -c -g -m64 -fgo-relative-import-path=/home/rexchou/work -o $WORK/command-line-arguments/_obj/go.o ./hello.go go build command-line-arguments: : fork/exec : no such file or directory
@rexchou Did you ever figure this out? I'm having a similar issue. Thanks.
@xuqingsz I've seen this when gcc[go] isn't in PATH. What does gccgo --version say? https://github.com/golang/go/issues/19628
@xuqingsz I've seen this when gcc[go] isn't in PATH.
What does
gccgo --version
say? https://github.com/golang/go/issues/19628
^This solved it for me
hello, I use gccgo hello.go can be successfully compiled, using go build -x -compiler=gccgo hello.go failed
rexchou@rexchou-virtual-machine:~/work$ go build -x -compiler=gccgo hello.go WORK=/tmp/go-build221584061 mkdir -p $WORK/command-line-arguments/_obj/ mkdir -p $WORK/command-line-arguments/obj/exe/ cd /home/rexchou/work "" -I $WORK -c -g -m64 -fgo-relative-import-path=/home/rexchou/work -o $WORK/command-line-arguments/_obj/go.o ./hello.go go build command-line-arguments: : fork/exec : no such file or directory