Join GitHub today
cmd/cgo: support clang in place of gcc #4713
Before filing a bug, please check whether it has been fixed since the latest release. Search the issue tracker and check that you're running the latest version of Go: Run "go version" and compare against http://golang.org/doc/devel/release.html If a newer version of Go exists, install it and retry what you did to reproduce the problem. Thanks. What steps will reproduce the problem? If possible, include a link to a program on play.golang.org. 1. run `go get -v github.com/mattn/go-gtk/gtk` while you don't have gcc but have clang installed 2. 3. What is the expected output? Package installs What do you see instead? > go get -v github.com/mattn/go-gtk/gtk github.com/mattn/go-gtk/gdk github.com/mattn/go-gtk/glib github.com/mattn/go-gtk/pango # github.com/mattn/go-gtk/pango exec gcc: exec: "gcc": executable file not found in $PATH # github.com/mattn/go-gtk/glib exec gcc: exec: "gcc": executable file not found in $PATH # github.com/mattn/go-gtk/gdk exec gcc: exec: "gcc": executable file not found in $PATH Which compiler are you using (5g, 6g, 8g, gccgo)? 6g and gccgo Which operating system are you using? FreeBSD-9.1-STABLE Which version are you using? (run 'go version') go version go1.0.3 Please provide any additional information below.
If gcc can be installed in FreeBSD the I would suggest to use that path instead: http://www.freebsd.org/doc/en/articles/custom-gcc/article.html
This issue was closed.