-
Notifications
You must be signed in to change notification settings - Fork 42
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
Build fails when using Bison 3.2 #11
Comments
Hi. Could you please try building yaramod and its Python bindings manually by following these two steps?
If the build fails, please post the output here. If the build passes, could you please try running BTW, which of the following two commands did you run?
|
Hi! Thanks for the super fast reply. I did the above steps (cloned the repo and tried to build manually) and still got the same errors. Used homebrew to install flex and bison. Here are what versions I'm using and what my variables ended up to be:
And when running make:
FYI I ran:
|
I am not sure if it'll help because the errors are from bison generated parser, but I see some |
@metthal I deleted the build directory, and checked out your branch, but same errors. |
It may have something to do with this. From what I see, you use bison 3.2 which was rolled out just few days ago so this might be some bug in the new release which showed itself only with our parser definition. If this is an option for you, could you please try to revert bison to 3.1 or 3.0.x? I'll try to upgrade to bison 3.2 on my machine as soon as I get to it. If it's really problem in the new release, we might need to file a bug there. |
@metthal Good catch. The issue is really caused by Bison 3.2. I was able to reproduce it even on Ubuntu inside Docker via the following
When you run
the build fails with
|
I manually installed 3.1.0 and 3.0.5 of bison and I still see the same issue. I made sure that
|
This is weird. With 3.1.0 and 3.0.5, the build succeeds for me. It only fails with 3.2.0. |
@jasonboggess Based on the output you have provided in the (now deleted) comment, it seems to me that you are running
and the build should succeed. |
Yes, I think that was it. Thanks! |
Great 👍 We will leave the issue open until we fix the build with Bison 3.2. |
I've resolved the problem with bison 3.2. The should now be able to compile yaramod while having bison 3.2. |
I'm having the issue with bison 3.3 (the version homebrew installed) |
What kind of issues? I see that some of the directives we use are now deprecated but it should work just fine despite the warnings. I'll fix the warnings, thanks for pointing them out, but you should still be able to compile and use it. |
|
This error reminds me of reports we had when pre-3 version of bison was used instead. Could you please paste here contents of |
|
Is that everything? Because my looks like this
Could you please try to remove |
Yes, that was everything in the file. I was able to build yaramod-project succesfully after following your suggestion. (Perhaps that should be a part of The commands I ran:
|
Attempted to install via pip on macos 10.14 using python 3.7 and pip3 version 18.0
Got the following error:
The text was updated successfully, but these errors were encountered: