-
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/compile: internal compiler error: conflicting package heights 21 and 11 for path "github.com/golang/protobuf/proto" #39061
Comments
I can't recreate the problem using Go 1.12. What is the exact command that you run? What is the exact output? |
Are you invoking the compiler with |
they all faces the same error |
@ianlancetaylor @ALTree
|
Can you show us the input file that you are compiling? Thanks. |
I kinda know why this error occurs. My project uses binary-only package, the sourcr file x.a is built in manager's computer and then copy to mine. Basiclly I think proto's upgrading work has something conflict to the old commits. |
But still confused, If proto repo didn't upgrade well, The error should print like:
However it print compile error. Ok, go back to go tool chain, I'm trying to reproduce bug spot anyway. |
Note that Go 1.12 is the last release that supported binary-only packages, and that Go 1.12 is no longer supported. |
Sorry that I don't have source file to locate what causes this problem. I try to rebuild a minimum problem case but fail.All things run ok. That's it! I'll use protobuf package of old and fixed version to avoid this compile error. |
-go 1.12.17 win64
refer to golang/protobuf#1128
They said error might ocurred due to go tool chain.
How to fix it?
The text was updated successfully, but these errors were encountered: