Hi,
I'm seeing this problem. I'm on OSX 10.9. I followed the instructions in the "Build commands" section of
https://golang.org/doc/install/gccgo (though without the gold linker). The source directory is unrelated to $GOPATH and $GOROOT, and the binary is installed to /opt/gccgo .
I ran make install from 'objdir' like the build commands imply, and I have not moved any files. Does gccgo assume a certain $GOROOT? That's all I can think of that's weird about my installation. Error and other details below. Thanks.
brendan:~$ cd $GOPATH/src
brendan:~/Documents/mygo/src$ go install -compiler=gccgo
github.com/gonum/floats/#
github.com/gonum/floatsgithub.com/gonum/floats/floats.go:14:8: error: import file ‘errors’ not found
"errors"
^
github.com/gonum/floats/floats.go:15:6: error: import file ‘math’ not found
"math"
^
github.com/gonum/floats/floats.go:16:6: error: import file ‘sort’ not found
"sort"
brendan:~$ go version
go version go1.3 darwin/amd64
brendan:~$ go env
GOARCH="amd64"
GOBIN=""
GOCHAR="6"
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/Users/brendan/Documents/mygo"
GORACE=""
GOROOT="/Users/brendan/gover/go_1_3_0"
GOTOOLDIR="/Users/brendan/gover/go_1_3_0/pkg/tool/darwin_amd64"
CC="clang"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fno-common"
CXX="clang++"
CGO_ENABLED="1"