[lldb-dev] [Bug 27935] New: Linking CXX executable lldb-argdumper and lldb-mi fails

via lldb-dev lldb-dev at lists.llvm.org
Mon May 30 03:15:23 PDT 2016


https://llvm.org/bugs/show_bug.cgi?id=27935

            Bug ID: 27935
           Summary: Linking CXX executable lldb-argdumper and lldb-mi
                    fails
           Product: lldb
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: release blocker
          Priority: P
         Component: All Bugs
          Assignee: lldb-dev at lists.llvm.org
          Reporter: vedran at miletic.net
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

On Debian 8 with

$ g++ --version
g++ (Debian 4.9.2-10) 4.9.2
Copyright (C) 2014 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

building LLDB inside LLVM tree with

$ cmake -DBUILD_SHARED_LIBS=ON -DLLVM_LIBDIR_SUFFIX= ..

results in

Linking CXX executable ../../../../bin/lldb-argdumper
Linking CXX executable ../../../../bin/lldb-mi
../../../../lib/liblldbUtility.a(JSON.cpp.o): In function
`lldb_private::JSONNumber::GetAsUnsigned() const':
/home/vedranm/workspace/llvm/tools/lldb/source/Utility/JSON.cpp:76: undefined
reference to `llvm::llvm_unreachable_internal(char const*, char const*,
unsigned int)'
../../../../lib/liblldbUtility.a(JSON.cpp.o): In function
`lldb_private::JSONNumber::GetAsSigned() const':
/home/vedranm/workspace/llvm/tools/lldb/source/Utility/JSON.cpp:91: undefined
reference to `llvm::llvm_unreachable_internal(char const*, char const*,
unsigned int)'
../../../../lib/liblldbUtility.a(JSON.cpp.o): In function
`lldb_private::JSONNumber::GetAsDouble() const':
/home/vedranm/workspace/llvm/tools/lldb/source/Utility/JSON.cpp:106: undefined
reference to `llvm::llvm_unreachable_internal(char const*, char const*,
unsigned int)'
collect2: error: ld returned 1 exit status
tools/lldb/tools/argdumper/CMakeFiles/lldb-argdumper.dir/build.make:179: recipe
for target 'bin/lldb-argdumper' failed
make[2]: *** [bin/lldb-argdumper] Error 1
CMakeFiles/Makefile2:27035: recipe for target
'tools/lldb/tools/argdumper/CMakeFiles/lldb-argdumper.dir/all' failed
make[1]: *** [tools/lldb/tools/argdumper/CMakeFiles/lldb-argdumper.dir/all]
Error 2
make[1]: *** Waiting for unfinished jobs....
CMakeFiles/lldb-mi.dir/MIUtilParse.cpp.o: In function
`MIUtilParse::CRegexParser::CRegexParser(char const*)':
/home/vedranm/workspace/llvm/tools/lldb/tools/lldb-mi/MIUtilParse.cpp:24:
undefined reference to `llvm_regcomp'
CMakeFiles/lldb-mi.dir/MIUtilParse.cpp.o: In function
`MIUtilParse::CRegexParser::~CRegexParser()':
/home/vedranm/workspace/llvm/tools/lldb/tools/lldb-mi/MIUtilParse.cpp:39:
undefined reference to `llvm_regfree'
CMakeFiles/lldb-mi.dir/MIUtilParse.cpp.o: In function
`MIUtilParse::CRegexParser::Execute(char const*,
MIUtilParse::CRegexParser::Match&, unsigned long)':
/home/vedranm/workspace/llvm/tools/lldb/tools/lldb-mi/MIUtilParse.cpp:65:
undefined reference to `llvm_regexec'
collect2: error: ld returned 1 exit status
tools/lldb/tools/lldb-mi/CMakeFiles/lldb-mi.dir/build.make:2004: recipe for
target 'bin/lldb-mi-3.9.0' failed
make[2]: *** [bin/lldb-mi-3.9.0] Error 1
CMakeFiles/Makefile2:27323: recipe for target
'tools/lldb/tools/lldb-mi/CMakeFiles/lldb-mi.dir/all' failed
make[1]: *** [tools/lldb/tools/lldb-mi/CMakeFiles/lldb-mi.dir/all] Error 2
Makefile:137: recipe for target 'all' failed
make: *** [all] Error 2

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20160530/f96c96dc/attachment.html>


More information about the lldb-dev mailing list