-
Notifications
You must be signed in to change notification settings - Fork 17.9k
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: C package compile fails on Mac OS 10.9 #5791
Labels
Comments
Here's the log including the `-x` flag Eriks-MacBook-Pro:clam eaigner$ go build -v -x WORK=/var/folders/xm/nbnqyf1x79q_44rpc4fqw_dm0000gn/T/go-build623485076 github.com/eaigner/clam mkdir -p $WORK/github.com/eaigner/clam/_obj/ mkdir -p $WORK/github.com/eaigner/ cd /Users/eaigner/Go/src/github.com/eaigner/clam pkg-config --cflags libclamav pkg-config --libs libclamav /usr/local/go/pkg/tool/darwin_amd64/cgo -objdir $WORK/github.com/eaigner/clam/_obj/ -- -g -O2 -I/usr/local/Cellar/clamav/0.97.7/include -I $WORK/github.com/eaigner/clam/_obj/ engine.go # github.com/eaigner/clam clang: error: argument unused during compilation: '-fno-eliminate-unused-debug-types' |
@4, if this is related to the original issue, please try patching https://code.google.com/p/go/source/detail?r=000ecca1178d67c9b482d3fb0b6a1bc4aeef2472 into your install. If it is unrelated the original issue, and remembering that currently OS X 10.9 is not shipping yet, please raise a new issue for sqlite. |
Comment 8 by mazdak@chango.com: Using CC=clang to build Go source works, but it causes the following problem: lookup_unix.go:64: cannot use _Ctype_size_t(bufSize) (type C.size_t) as type C.ulong in function argument |
Comment 9 by mazdak@chango.com: To clarify, There is a mother thread about this as well: https://golang.org/issue/5926?c=8 There is a temporary solution for the compilation |
This issue was closed.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
The text was updated successfully, but these errors were encountered: