You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried to build the http2 package with gccgo by running the command go build -compiler gccgo golang.org/x/net/http2.
What did you expect to see?
I expected the build to succeed.
What did you see instead?
The following error occurs:
# golang.org/x/net/http2
./go111.go:15:30: error: reference to undefined field or method ‘WroteHeaderField’
return trace != nil && trace.WroteHeaderField != nil
^
./go111.go:19:26: error: reference to undefined field or method ‘WroteHeaderField’
if trace != nil && trace.WroteHeaderField != nil {
^
./go111.go:20:8: error: reference to undefined field or method ‘WroteHeaderField’
trace.WroteHeaderField(k, []string{v})
^
./go111.go:26:15: error: reference to undefined field or method ‘Got1xxResponse’
return trace.Got1xxResponse
^
The text was updated successfully, but these errors were encountered:
I suspect that the problem is that the go tool is using the gc release version, but you are using a version of gccgo that is at a different release version.
Have you tried building with the go tool that comes with gccgo instead?
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes.
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
I tried to build the http2 package with gccgo by running the command
go build -compiler gccgo golang.org/x/net/http2
.What did you expect to see?
I expected the build to succeed.
What did you see instead?
The following error occurs:
The text was updated successfully, but these errors were encountered: