<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif;" dir="ltr">
<p>Hi,</p>
<p><br>
</p>
<p>I am having a problem building the 4.0 release branch of LLDB on Debian Stretch. Cmake returns the following fault:</p>
<p><br>
</p>
<p></p>
<div><span style="font-family: Consolas,monospace; font-size: 10pt;"> -- LLDB version: 4.0.0</span><br>
<span style="font-family: Consolas,monospace; font-size: 10pt;"> -- Found LibXml2: /usr/lib/x86_64-linux-gnu/libxml2.so (found version "2.9.4")
</span><br>
<span style="font-family: Consolas,monospace; font-size: 10pt;"> -- Performing Test HAVE_PROCESS_VM_READV</span><br>
<span style="font-family: Consolas,monospace; font-size: 10pt;"> -- Performing Test HAVE_PROCESS_VM_READV - Success</span><br>
<span style="font-family: Consolas,monospace; font-size: 10pt;"> -- Found Curses: /usr/lib/x86_64-linux-gnu/libcurses.so </span><br>
<span style="font-family: Consolas,monospace; font-size: 10pt;"> -- Looking for __GLIBCXX__</span><br>
<span style="font-family: Consolas,monospace; font-size: 10pt;"> -- Looking for __GLIBCXX__ - found</span><br>
<span style="font-family: Consolas,monospace; font-size: 10pt;"> -- Performing Test LLDB_USING_LIBSTDCXX_4_9</span><br>
<span style="font-family: Consolas,monospace; font-size: 10pt;"> -- Performing Test LLDB_USING_LIBSTDCXX_4_9 - Success</span><br>
<span style="font-family: Consolas,monospace; font-size: 10pt;"> -- Looking for backtrace</span><br>
<span style="font-family: Consolas,monospace; font-size: 10pt;"> -- Looking for backtrace - not found</span><br>
<span style="font-family: Consolas,monospace; font-size: 10pt;"> -- Could NOT find Backtrace (missing: Backtrace_LIBRARY)
</span><br>
<span style="font-family: Consolas,monospace; font-size: 10pt;"> -- Found Doxygen: /usr/bin/doxygen (found version "1.8.13")
</span><br>
<span style="font-family: Consolas,monospace; font-size: 10pt;"> -- Found SWIG: /usr/bin/swig3.0 (found version "3.0.10")
</span><br>
<span style="font-family: Consolas,monospace; font-size: 10pt;"> -- Performing Test CXX_SUPPORTS_NO_MACRO_REDEFINED</span><br>
<span style="font-family: Consolas,monospace; font-size: 10pt;"> -- Performing Test CXX_SUPPORTS_NO_MACRO_REDEFINED - Success</span><br>
<span style="font-family: Consolas,monospace; font-size: 10pt;"> -- Symbols (liblldb): exporting all symbols from the lldb namespace</span><br>
<span style="font-family: Consolas,monospace; font-size: 10pt;"> CMake Error: The following variables are used in this project, but they are set to NOTFOUND.</span><br>
<span style="font-family: Consolas,monospace; font-size: 10pt;"> Please set them or make sure they are set and tested correctly in the CMake files:</span><br>
<span style="font-family: Consolas,monospace; font-size: 10pt;"> Backtrace_LIBRARY (ADVANCED)</span><br>
<span style="font-family: Consolas,monospace; font-size: 10pt;"> linked by target "liblldb" in directory clang-4.0/tools/lldb/source/API</span><br>
<span style="font-family: Consolas,monospace; font-size: 10pt;"> linked by target "LLDBBreakpointTests" in directory clang-4.0/tools/lldb/unittests/Breakpoint</span><br>
<span style="font-family: Consolas,monospace; font-size: 10pt;"> linked by target "LLDBCoreTests" in directory clang-4.0/tools/lldb/unittests/Core</span><br>
<span style="font-family: Consolas,monospace; font-size: 10pt;"> linked by target "EditlineTests" in directory clang-4.0/tools/lldb/unittests/Editline</span><br>
<span style="font-family: Consolas,monospace; font-size: 10pt;"> linked by target "ExpressionTests" in directory clang-4.0/tools/lldb/unittests/Expression</span><br>
<span style="font-family: Consolas,monospace; font-size: 10pt;"> linked by target "HostTests" in directory clang-4.0/tools/lldb/unittests/Host</span><br>
<span style="font-family: Consolas,monospace; font-size: 10pt;"> linked by target "InterpreterTests" in directory clang-4.0/tools/lldb/unittests/Interpreter</span><br>
<span style="font-family: Consolas,monospace; font-size: 10pt;"> linked by target "LanguageCPlusPlusTests" in directory clang-4.0/tools/lldb/unittests/Language/CPlusPlus</span><br>
<span style="font-family: Consolas,monospace; font-size: 10pt;"> linked by target "LLDBPlatformTests" in directory clang-4.0/tools/lldb/unittests/Platform</span><br>
<span style="font-family: Consolas,monospace; font-size: 10pt;"> linked by target "ProcessGdbRemoteTests" in directory clang-4.0/tools/lldb/unittests/Process/gdb-remote</span><br>
<span style="font-family: Consolas,monospace; font-size: 10pt;"> linked by target "LLDBMinidumpTests" in directory clang-4.0/tools/lldb/unittests/Process/minidump</span><br>
<span style="font-family: Consolas,monospace; font-size: 10pt;"> linked by target "ScriptInterpreterPythonTests" in directory clang-4.0/tools/lldb/unittests/ScriptInterpreter/Python</span><br>
<span style="font-family: Consolas,monospace; font-size: 10pt;"> linked by target "SymbolTests" in directory clang-4.0/tools/lldb/unittests/Symbol</span><br>
<span style="font-family: Consolas,monospace; font-size: 10pt;"> linked by target "SymbolFileDWARFTests" in directory clang-4.0/tools/lldb/unitt</span><span style="font-family: Consolas,monospace; font-size: 10pt;">ests/SymbolFile/DWARF</span><br>
<span style="font-family: Consolas,monospace; font-size: 10pt;"> linked by target "UnwindAssemblyx86Tests" in directory clang-4.0/tools/lldb/uni</span><span style="font-family: Consolas,monospace; font-size: 10pt;">ttests/UnwindAssembly/x86</span><br>
<span style="font-family: Consolas,monospace; font-size: 10pt;"> linked by target "UtilityTests" in directory clang-4.0/tools/lldb/unittests/Utility</span><br>
<br>
<span style="font-family: Consolas,monospace; font-size: 10pt;"> -- Configuring incomplete, errors occurred!</span><br>
<span style="font-family: Consolas,monospace; font-size: 10pt;"> See also "build-4.0/bootstrap/CMakeFiles/CMakeOutput.log".</span><br>
<span style="font-family: Consolas,monospace; font-size: 10pt;"> See also "build-4.0/bootstrap/CMakeFiles/CMakeError.log".</span><br>
</div>
<p></p>
<p><br>
</p>
<p></p>
<p><br>
</p>
<p>The output from CMakeError.log is:</p>
<p><br>
</p>
<p></p>
<div><span style="font-family: Consolas,monospace; font-size: 10pt;"> Determining if the backtrace exist failed with the following output:</span><br>
<span style="font-family: Consolas,monospace; font-size: 10pt;"> Change Dir: build-4.0/bootstrap/CMakeFiles/CMakeTmp</span><br>
<br>
<span style="font-family: Consolas,monospace; font-size: 10pt;"> Run Build Command:"build-4.0/bin/ninja" "cmTC_1e735"</span><br>
<span style="font-family: Consolas,monospace; font-size: 10pt;"> [1/2] Building C object CMakeFiles/cmTC_1e735.dir/CheckSymbolExists.c.o</span><br>
<span style="font-family: Consolas,monospace; font-size: 10pt;"> FAILED: CMakeFiles/cmTC_1e735.dir/CheckSymbolExists.c.o
</span><br>
<span style="font-family: Consolas,monospace; font-size: 10pt;"> /usr/bin/cc -fPIC -Wall -W -Wno-unused-parameter -Wwrite-strings -Wno-missing-field-initializers -pedantic -Wno-long-long -Wno-comment -Werror -Werror=date-time -ffunction-sections -fdata-sections
-o CMakeFiles/cmTC_1e735.dir/CheckSymbolExists.c.o -c build-4.0/bootstrap/CMakeFiles/CMakeTmp/CheckSymbolExists.c</span><br>
<span style="font-family: Consolas,monospace; font-size: 10pt;"> build-4.0/bootstrap/CMakeFiles/CMakeTmp/CheckSymbolExists.c: In function ‘main’:</span><br>
<span style="font-family: Consolas,monospace; font-size: 10pt;"> build-4.0/bootstrap/CMakeFiles/CMakeTmp/CheckSymbolExists.c:8:11:
<b><span style="color: rgb(255, 0, 0);">error: ISO C forbids conversion of function pointer to object pointer type</span></b> [-Werror=pedantic]</span><br>
<span style="font-family: Consolas,monospace; font-size: 10pt;"> return ((int*)(&backtrace))[argc];</span><br>
<span style="font-family: Consolas,monospace; font-size: 10pt;"> ^</span><br>
<span style="font-family: Consolas,monospace; font-size: 10pt;"> cc1: all warnings being treated as errors</span><br>
<span style="font-family: Consolas,monospace; font-size: 10pt;"> ninja: build stopped: subcommand failed.</span><br>
<br>
<span style="font-family: Consolas,monospace; font-size: 10pt;"> File build-4.0/bootstrap/CMakeFiles/CMakeTmp/CheckSymbolExists.c:</span><br>
<span style="font-family: Consolas,monospace; font-size: 10pt;"> /* */</span><br>
<span style="font-family: Consolas,monospace; font-size: 10pt;"> #include <execinfo.h></span><br>
<br>
<span style="font-family: Consolas,monospace; font-size: 10pt;"> int main(int argc, char** argv)</span><br>
<span style="font-family: Consolas,monospace; font-size: 10pt;"> {</span><br>
<span style="font-family: Consolas,monospace; font-size: 10pt;"> (void)argv;</span><br>
<span style="font-family: Consolas,monospace; font-size: 10pt;"> #ifndef backtrace</span><br>
<span style="font-family: Consolas,monospace; font-size: 10pt;"> return ((int*)(&backtrace))[argc];</span><br>
<span style="font-family: Consolas,monospace; font-size: 10pt;"> #else</span><br>
<span style="font-family: Consolas,monospace; font-size: 10pt;"> (void)argc;</span><br>
<span style="font-family: Consolas,monospace; font-size: 10pt;"> return 0;</span><br>
<span style="font-family: Consolas,monospace; font-size: 10pt;"> #endif</span><br>
<span style="font-family: Consolas,monospace; font-size: 10pt;"> }</span><br>
<br>
<br>
</div>
<p></p>
<p>It seems that the detection routine is invalid. The gcc in use is 6.3.0. Anyone any idea how to fix / work around this problem?</p>
<p><br>
</p>
<p>Many thanks,</p>
<p><br>
</p>
<p>Andy</p>
<p><br>
</p>
<p><br>
</p>
<p><br>
</p>
<br>
<p></p>
</div>
</body>
</html>