-
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: GCC Error #8570
Labels
Milestone
Comments
I am not an expert here, just reading source code ... The problem appears to be cgo. It is trying to figure all C defines, variables and functions out of /Users/woodjk/work/eqworks/flash/src/code.google.com/p/odbc/api/api_unix.go file. It's doing this (see $GOROOT/src/cmd/gcc.go) by creating small C program that uses all above mentioned bits in a various scenarios, builds the file, and then parses gcc errors to figure out the nature of every bit. cgo expects gcc output to contain certain phrases. Yours does not contain expected output. Unfortunately, cgo error message does not include full gcc output, so we can see where cgo logic fails. Perhaps you can provide that output. This bit of code has been changed recently just for the same reason. If you update your Go to the tip, you should be able to see full gcc output. Alternatively, you can change your source: diff --git a/src/cmd/cgo/gcc.go b/src/cmd/cgo/gcc.go --- a/src/cmd/cgo/gcc.go +++ b/src/cmd/cgo/gcc.go @@ -374,7 +374,7 @@ } if !completed { - fatalf("%s did not produce error at completed:1\non input:\n%s", p.gccBaseCmd()[0], b.Bytes()) + fatalf("%s did not produce error at completed:1\non input:\n%s\nfull error output:\n%s", p.gccBaseCmd()[0], b.Bytes(), stderr) } for i, n := range names { to do the same. Please, report here what you discover. Thank you. Alex Status changed to WaitingForReply. |
Could this be related to #10453? |
I'm going to close this for lack of information. Please reopen if you have more information. Thanks. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
by Justin.K.Wood:
The text was updated successfully, but these errors were encountered: