[cmake-developers] Compiling CMake 3.6.1 fails on Raspbian Jessie

Brad King brad.king at kitware.com
Mon Sep 5 16:33:52 EDT 2016


On 09/05/2016 04:01 PM, Cristian Adam wrote:
> [ 62%] Built target cmjsoncpp
[snip]
> [ 93%] Linking CXX executable ../bin/cmake
> libCMakeLib.a(cmGlobalGenerator.cxx.o): In function `cmGlobalGenerator::WriteSummary(cmGeneratorTarget*)':
> cmGlobalGenerator.cxx:(.text+0x117a8): undefined reference to `Json::Value::Value(Json::ValueType)'
[snip]
> ../Utilities/cmjsoncpp/libcmjsoncpp.a(json_writer.cpp.o): In function `Json::FastWriter::writeValue(Json::Value const&)':
[snip]
> No idea why it can't find its own cmjsoncpp library

Actually it is finding the library because some of the error messages
reference objects in it.  Something goes wrong with finding some of
the symbols in it, such as some from `json_value.cpp`.
What is the output of?

    $ ar t Utilities/cmjsoncpp/libcmjsoncpp.a

I don't have access to this platform so hopefully someone else can dig
into it further.  Perhaps some preprocessing differences cause symbol
mangling to be different across sources.

-Brad



More information about the cmake-developers mailing list