-
Notifications
You must be signed in to change notification settings - Fork 18k
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
x/tools/cmd/goyacc: failing with %! errors #22319
Comments
It is clearly a bug in goyacc that it is displaying the error message in this way. But I want to clarify that if we fix this bug in goyacc, you will still have a problem in your parser. You have some sort of state conflict. |
So, I said it was a bug in goyacc, but I actually can not find this message anywhere in goyacc. Precisely how are you invoking goyacc? Can you give us a copy of the input file? Are you sure that you are using the current version of goyacc (run |
Yes I have the updated version of goyacc as I have run the command "go get -u". |
...
There's no |
<<There's no go tool yacc in Go 1.9. Please check what's your Go version and/or which goyacc tool you're actually using.>> I am using "go tool goyacc" not yacc. I understand the yacc tool is not being used in go version 1.7 version later. If you still think that using goyacc is wrong please suggest some alternate way of handling this. |
What does |
/root/meghali/go/pkg/tool/linux_ppc64le/goyacc |
Yes, something seems strange. The
IOW, the usual way to invoke goyacc is just |
Thanks for the comment @cznic , that helps to understand the logical usage. |
Is the |
Yes it is. |
Thanks fo the link. I'm getting no errors here
|
Thanks for the info. I don't think your program I think you should delete that program, or save it somewhere if you like, run I'm going to close this because I don't think there is anything for us to change. |
Thanks for the responses @cznic and @ianlancetaylor ; that helped me resolve the issue!! |
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
go version
)?go version go1.9.1 linux/ppc64le
Does this issue reproduce with the latest release?
yes it does
What operating system and processor architecture are you using (
go env
)?Ubuntu 16.04 /ppc64le
What did you do?
I am trying to build couchbase code which is using thee gocode. This internally runs "go tool goyacc" command; which is failing with errors.
What did you expect to see?
No errors.
What did you see instead?
n1ql.y:269:26: &{%!n(int=3) %!n(int=-1) %!n(bool=false) %!n(bool=false) %!n(bool=true) %!n(string=) %!n(string=GE) %!n(token.Pos=4987) %!n(int=8) [] %!n(string=) %!n(int=57544) %!n(bool=false) %!n(bool=false) [%!n(int=0) %!n(int=128) %!n(int=0) %!n(int=0) %!n(int=0) %!n(int=0)] %!n(bool=true) [%!n(int=5836665134256227840) %!n(int=-5665492734476001279) %!n(int=36328963693412357) %!n(int=0) %!n(int=0) %!n(int=0)] %!n(int=71) [] %!n(bool=false)}onassoc symbol %!s(int=175) conflict in state %!d(MISSING)
n1ql.y:269:26: &{%!n(int=3) %!n(int=-1) %!n(bool=false) %!n(bool=false) %!n(bool=true) %!n(string=) %!n(string=GE) %!n(token.Pos=4987) %!n(int=8) [] %!n(string=) %!n(int=57544) %!n(bool=false) %!n(bool=false) [%!n(int=0) %!n(int=128) %!n(int=0) %!n(int=0) %!n(int=0) %!n(int=0)] %!n(bool=true) [%!n(int=5836665134256227840) %!n(int=-5665492734476001279) %!n(int=36328963693412357) %!n(int=0) %!n(int=0) %!n(int=0)] %!n(int=71) [] %!n(bool=false)}onassoc symbol %!s(int=176) conflict in state %!d(MISSING)
n1ql.y:269:26: &{%!n(int=3) %!n(int=-1) %!n(bool=false) %!n(bool=false) %!n(bool=true) %!n(string=) %!n(string=GE) %!n(token.Pos=4987) %!n(int=8) [] %!n(string=) %!n(int=57544) %!n(bool=false) %!n(bool=false) [%!n(int=0) %!n(int=128) %!n(int=0) %!n(int=0) %!n(int=0) %!n(int=0)] %!n(bool=true) [%!n(int=5836665134256227840) %!n(int=-5665492734476001279) %!n(int=36328963693412357) %!n(int=0) %!n(int=0) %!n(int=0)] %!n(int=71) [] %!n(bool=false)}onassoc symbol %!s(int=177) conflict in state %!d(MISSING)
n1ql.y:269:26: &{%!n(int=3) %!n(int=-1) %!n(bool=false) %!n(bool=false) %!n(bool=true) %!n(string=) %!n(string=GE) %!n(token.Pos=4987) %!n(int=8) [] %!n(string=) %!n(int=57544) %!n(bool=false) %!n(bool=false) [%!n(int=0) %!n(int=128) %!n(int=0) %!n(int=0) %!n(int=0) %!n(int=0)] %!n(bool=true) [%!n(int=5836665134256227840) %!n(int=-5665492734476001279) %!n(int=36328963693412357) %!n(int=0) %!n(int=0) %!n(int=0)] %!n(int=71) [] %!n(bool=false)}onassoc symbol %!s(int=178) conflict in state %!d(MISSING)
CMake Error at /root/meghali/couchbase/tlm/cmake/Modules/go-yacc.cmake:11 (MESSAGE):
Failed running go yacc :1
I found a similar issue already on this list however its in closed state. I have tried all the steps mentioned in the issue however that didn't help me. The issue link is "#5730".
Can someone who had faced and could resolve the issue; help me here with some hints?
Thanks,
Meghali
The text was updated successfully, but these errors were encountered: