-
Notifications
You must be signed in to change notification settings - Fork 946
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 is failing on macOS (FLEX_INCLUDE_DIR is set to NOTFOUND) #103
Comments
Hi. Did you set the following variables before running
Of course, if you have installed Flex and Bison to a different directory (your output suggests that), you will have to adjust the paths. |
Well I did, see second log file...
|
Can you please verify that the following file exists?
This is the file that CMake seems to be unable to find (as per the output from |
it does: #ifndef __FLEX_LEXER_H
// Never included before - need to define base class.
#define __FLEX_LEXER_H
#include <iostream>
extern "C++" {
struct yy_buffer_state;
typedef int yy_state_type;
class FlexLexer
{
public:
virtual ~FlexLexer() { }
const char* YYText() const { return yytext; }
int YYLeng() const { return yyleng; }
virtual void
[...] |
I stumbled upon this issue, where the user appears to have the same problem. I am not sure about the applicability of the provided solution though as |
I was getting the same "FLEX_INCLUDE_DIR is set to NOTFOUND" error (but that ended up to be user error), but I'm now getting this error:
Seems kind of related (I'm on macOS 10.13.3), but if it needs to be reported as a separate issue, I'll do so. |
@bdemick Thank you for the report.
Could you please share with us how you solved it? Maybe it might help other people as well.
I believe this might be caused by an old version of Bison. Have you installed newer versions of Flex and Bison from Homebrew and run the following commands before build (see the instructions in our README)?
|
@s3rvac The FLEX_INCLUDE_DIR error was solved by the Apple-specific environment variables suggested in the readme. I had just restarted my terminal between build attempts and forgotten to re-set them after debugging another issue. So theoretically, if I got past the original include directory notfound issue with the environment variables configured properly, the one you're suggesting I currently have would be the same root cause. I'm currently getting by with the docker image so I stopped troubleshooting, but I'll give it another go today and see if I can confirm it's using the Homebrew packages. |
I am closing this issue as we are unfortunately unable to reproduce the problem. If anyone who reads this is able to reproduce the problem, please post a comment and we will open the issue. |
I have meet this problem too... |
OK I know what happened.... |
So if I understand it correctly, you got the error only if you ran |
nope |
I see. Could you please give us all steps that you have performed to reproduce the
|
cd /usr/local/opt |
@Zzm317 Are you sure that the above steps lead to the |
After i clone it into /usr/local/opt |
Yes, but we are interested in the case when you got the Do not get me wrong - we are happy that you got the build working, but to be able to solve the problem reported in this issue, we need a list of steps to reproduce the problem. Otherwise, we will have to close it as cannot be reproduced. |
Zzm317-MacBook-Pro:~ zzm317$ cd downloads '/Applications/Xcode.app/Contents/Developer/usr/bin/make' See also
make[2]: *** [external/src/yaramod-project-stamp/yaramod-project-build] Error 1 |
Had a similar issue here, think i had flex and bison not installed from brew before so it used system versions. So i installed them using brew, wiped the build directory again, made sure those variables were set:
Then used the steps to build it again:
No more errors, everything looks good. |
Experiencing the same issue on Mojave. The suggested fix does not work for me. |
The issue was resolved for me by removing the yaramod-project-* directories and rebuilding. |
Yaramod (adn therefore RetDec) no longer needs Flex and Bison. |
Hey,
when I try to bo build retdec, it fails during the compilation of
yaramod
build/external/src/yaramod-project-stamp/yaramod-project-configure-err.log:
build/external/src/yaramod-project-stamp/yaramod-project-configure-out.log
Console output:
The text was updated successfully, but these errors were encountered: