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: problem with clang on os x #6133

Closed
rsc opened this issue Aug 13, 2013 · 1 comment

Comments

@rsc
Copy link
Contributor

commented Aug 13, 2013

---------- Forwarded message ----------
From: james4k <sslice@gmail.com>
Date: Mon, Aug 12, 2013 at 5:30 PM
Subject: [golang-dev] cgo and guessKind() on darwin (10.8)
To: golang-dev@googlegroups.com


Hello,

On tip I am receiving a cgo error on the package github.com/go-gl/gl, while it works
fine on 1.1; the output is "gcc produced no output". This error comes from the
guessKind() method in src/cmd/cgo/gcc.go and appears to have started when clang was made
the default CC for darwin. Testing this with CC=gcc seems to confirm this (builds
successfully). I have not tested this with any other versions of clang or on linux, but
it looks like guessKind() is a very GCC specific routine that will need to be adapted to
support other compilers like clang, but I have limited knowledge on this.

Not sure whether or not to submit an actual issue as non-gcc support seemed to be a work
in progress, but posted here for your awareness.

$ clang -v
Apple LLVM version 4.2 (clang-425.0.28) (based on LLVM 3.2svn)
Target: x86_64-apple-darwin12.4.0
Thread model: posix
@ianlancetaylor

This comment has been minimized.

Copy link
Contributor

commented Sep 4, 2013

Comment 1:

Status changed to Duplicate.

Merged into issue #6128.

@rsc rsc added duplicate labels Sep 4, 2013

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

@rsc rsc removed the go1.2 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
3 participants
You can’t perform that action at this time.