GeertJohan / openwrt-go

Fork of the openwrt project to add gccgo and libgo
GNU General Public License v2.0
243 stars 38 forks source link

go build command-line-arguments: : fork/exec : no such file or directory #11

Open rexchou opened 8 years ago

rexchou commented 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

elimisteve commented 7 years ago

@rexchou Did you ever figure this out? I'm having a similar issue. Thanks.

Javyre commented 7 years ago

@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