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

commented Sep 30, 2013

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

This comment has been minimized.

Copy link
Author

commented Sep 30, 2013

Comment 1 by sunikbear:

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

This comment has been minimized.

Copy link
Author

commented Sep 30, 2013

Comment 2 by sunikbear:

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

This comment has been minimized.

Copy link
Contributor

commented Sep 30, 2013

Comment 3:

Which version of go are you using?
@gopherbot

This comment has been minimized.

Copy link
Author

commented Sep 30, 2013

Comment 4 by sunikbear:

go 1.1.2
@ianlancetaylor

This comment has been minimized.

Copy link
Contributor

commented Sep 30, 2013

Comment 5:

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

This comment has been minimized.

Copy link
Author

commented Sep 30, 2013

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

This comment has been minimized.

Copy link
Contributor

commented Sep 30, 2013

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

This comment has been minimized.

Copy link
Author

commented Oct 1, 2013

Comment 8 by sunikbear:

Thanks very much.
@ianlancetaylor

This comment has been minimized.

Copy link
Contributor

commented Oct 2, 2013

Comment 9:

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

Status changed to Fixed.

@gopherbot

This comment has been minimized.

Copy link
Author

commented Oct 4, 2013

Comment 10 by rustf3:

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

This comment has been minimized.

Copy link
Contributor

commented Oct 25, 2013

Comment 11:

Issue #6663 has been merged into this issue.

@gopherbot

This comment has been minimized.

Copy link
Author

commented Jan 27, 2014

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

This comment has been minimized.

Copy link
Author

commented Jan 27, 2014

Comment 13 by jeidsath:

That is, "installed by Homebrew"
@ianlancetaylor

This comment has been minimized.

Copy link
Contributor

commented Jan 27, 2014

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
2 participants
You can’t perform that action at this time.