-
Notifications
You must be signed in to change notification settings - Fork 957
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 of retdec-config fails with "undefined reference to Json::Value" #52
Comments
Hi. Can you please provide the following details so we can investigate this further?
|
|
I think should close that issues because found the way to built step completed. The root cause |
There is no need to close as
First, there is our version, and then the system version, which should not be linked. What is strange is that I also have jsoncpp installed in my system, but it links fine (i.e. just once, our version). We will investigate this. |
I also run into these undefined references using on my Linux boxes. |
@pro-spero Thank you for the confirmation. May I ask if you have JsonCpp installed in your system on these boxes? I am trying to reproduce this issue, but no success so far. |
On the redhat machine the libraries are installed, but the headers are not present. |
Piping the build outputs to a log file and checking the details I found that the dependent projects do not all use the same compiler (7.2) as the top level one, e.g., llvm itself selected the system compiler on redhat, which is 4.8.5. Such mixing will not work. I will attempt to get a more consistent use of compilers. |
That's a good point. We will need to properly propagate the compiler selected in the top-level project to all the external projects (e.g. jsoncpp). |
It is not sufficient to have the compiler in the path to be picked up, but setting the CC and CXX variables before calling the top level cmake for configuration apparently allows to avoid the problem of undefined references. |
I have improved the build of |
I can confirm that I can now build successfully without special settings to the environment. I successfully compiled the master branch at revision 74ae5a5. |
Perfect, thank you for the confirmation! I am closing the issue, but if anyone still has these jsoncpp-related problems, let us know. |
I compile the Retdec source code. Error from compiling was showed an error as below.
I check command line generate an error result again with
$make VERBOSE=1
. Error present as below.Cross check library path of Jsoncpp library install in
/usr/local/lib64/
completed.The text was updated successfully, but these errors were encountered: