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: clang doesn't support no-eliminate-unused-debug-types after upgrade XCode to 5.0 version #6515

Closed
gopherbot opened this issue Sep 30, 2013 · 14 comments

Comments

@gopherbot
Copy link

by sunikbear:

This is the bug:
https://groups.google.com/forum/#!msg/golang-dev/H3FCUAlc6BU/wTkBMpPzrm0J

I encounter this problem after upgrade my XCode to 5.0 version while using CGO:
https://github.com/qiniu/iconv

clang: error: argument unused during compilation: '-fno-eliminate-unused-debug-types'
@gopherbot
Copy link
Author

Comment 1 by sunikbear:

Referencw: http://llvm.org/bugs/show_bug.cgi?id=11710

@gopherbot
Copy link
Author

Comment 2 by sunikbear:

Reference: http://llvm.org/bugs/show_bug.cgi?id=11710

@ianlancetaylor
Copy link
Contributor

Comment 3:

Which version of go are you using?

@gopherbot
Copy link
Author

Comment 4 by sunikbear:

go 1.1.2

@ianlancetaylor
Copy link
Contributor

Comment 5:

Can you test if this still fails with tip or a Go 1.2 release candidate?

@gopherbot
Copy link
Author

Comment 6 by sunikbear:

I don't know how to test as you said. Can you tell me how not to use this compile option
in clang? -fno-eliminate-unused-debug-types

@ianlancetaylor
Copy link
Contributor

Comment 7:

You can download a 1.2 release candidate from
https://code.google.com/p/go/downloads/list .
You can eliminate the option by editing the file src/cmd/cgo/gcc.go and removing the
option from the list of options--just search for it.  But if you can tell us whether
this works with 1.2 we will be able to improve the 1.2 release.  Thanks.

@gopherbot
Copy link
Author

Comment 8 by sunikbear:

Thanks very much.

@ianlancetaylor
Copy link
Contributor

Comment 9:

As far as I know this is fixed in 1.2.  Please reopen if not.

Status changed to Fixed.

@gopherbot
Copy link
Author

Comment 10 by rustf3:

Confirmed happens in go1.1.2 darwin/amd64 and fixed by go1.2rc1.darwin-amd64-osx10.8.pkg.

@ianlancetaylor
Copy link
Contributor

Comment 11:

Issue #6663 has been merged into this issue.

@gopherbot
Copy link
Author

Comment 12 by jeidsath:

Was there a regression before release? I see this issue with the latest
go1.2.darwin-amd64-osx10.8.pkg from https://code.google.com/p/go/downloads/list
(uploaded Dec 1). It's also an issue for me on the version of Go install by Go Brew.
joel@freyr:~/src/cgotest$ /usr/local/go/bin/go run random.go
# command-line-arguments
clang: error: argument unused during compilation: '-fno-eliminate-unused-debug-types'

@gopherbot
Copy link
Author

Comment 13 by jeidsath:

That is, "installed by Homebrew"

@ianlancetaylor
Copy link
Contributor

Comment 14:

If you have a problem when using the current sources, please don't comment on a closed
issue.  Please open a new issue instead.  Thanks.
Go 1.2 never passes -fno-eliminate-unused-debug-types to any compiler, so it is very
unlikely that you would be seeing that warning when using Go 1.2.  But if you somehow
are: open a new issue.

This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants