Skip to content
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/cgo: support clang in place of gcc #4713

Closed
gopherbot opened this issue Jan 27, 2013 · 4 comments

Comments

@gopherbot
Copy link

commented Jan 27, 2013

by ukaszg:

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.
@minux

This comment has been minimized.

Copy link
Member

commented Jan 27, 2013

Comment 1:

the problem is: that package uses cgo and we currently only support gcc for cgo.
I understand that FreeBSD is moving away from gcc, so I make this issue a request
for supporting clang with cgo.

Labels changed: added priority-later, removed priority-triage.

Status changed to Accepted.

@cznic

This comment has been minimized.

Copy link
Contributor

commented Feb 4, 2013

Comment 2:

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
@cznic

This comment has been minimized.

Copy link
Contributor

commented Feb 4, 2013

Comment 3:

... then I would ... BTW: Why there's no "edit" available?
@rsc

This comment has been minimized.

Copy link
Contributor

commented Feb 15, 2013

Comment 4:

This issue was closed by revision 6d888f1.

Status changed to Fixed.

@rsc rsc added this to the Go1.1 milestone Apr 14, 2015

@rsc rsc removed the go1.1 label Apr 14, 2015

@golang golang locked and limited conversation to collaborators Jun 24, 2016

This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
4 participants
You can’t perform that action at this time.