[lldb-dev] Linking liblldb.so failed (Ubuntu 12.04)
Mirza
mirza.husadzic at gmail.com
Thu Apr 26 09:05:36 PDT 2012
Hi ppl,
I got link error trying to build from trunk on Ubuntu 12.04 (with
python2.7-dev package installed).
Can anyone help by pointing me how to update some of Makefile / SWIG
scripts in order to fix this issue?
btw. I can provide full trace (compiled with VERBOSE=1, cca 3 Mb).
Thanks.
Mirza.
The output:
llvm[3]: Linking Release+Asserts Shared Library liblldb.so
g++ -I/usr/build/llvm/include -I/usr/build/llvm/tools/lldb/lib
-I/usr/src/llvm/include -I/usr/src/llvm/tools/lldb/lib -D_DEBUG
-D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS
-D__STDC_LIMIT_MACROS -O3 -fomit-frame-pointer
-fvisibility-inlines-hidden -fno-exceptions -fno-rtti -fPIC
-Woverloaded-virtual -Wcast-qual -O3 -Wl,-R -Wl,'$ORIGIN'
-L/usr/build/llvm/Release+Asserts/lib
-L/usr/build/llvm/Release+Asserts/lib -L/usr/lib/python2.7/config
-lpthread -ldl -lutil -lm -lpython2.7 -Xlinker -export-dynamic -Wl,-O1
-Wl,-Bsymbolic-functions -lrt -pedantic -Wno-long-long -Wall -W
-Wno-unused-parameter -Wwrite-strings -shared -o
/usr/build/llvm/Release+Asserts/lib/liblldb.so \
-Wl,--whole-archive -llldbAPI -llldbBreakpoint -llldbCommands
-llldbCore -llldbExpression -llldbHostCommon -llldbInitAndLog
-llldbInterpreter -llldbPluginABIMacOSX_arm -llldbPluginABIMacOSX_i386
-llldbPluginABISysV_x86_64 -llldbPluginDisassemblerLLVM
-llldbPluginDynamicLoaderStatic -llldbPluginEmulateInstructionARM
-llldbPluginLanguageRuntimeCPlusPlusItaniumABI
-llldbPluginLanguageRuntimeObjCAppleObjCRuntime
-llldbPluginObjectContainerBSDArchive -llldbPluginObjectFileELF
-llldbPluginObjectFilePECOFF -llldbPluginPlatformGDBServer
-llldbPluginProcessGDBRemote -llldbPluginSymbolFileDWARF
-llldbPluginSymbolFileSymtab -llldbPluginUnwindAssemblyInstEmulation
-llldbPluginUnwindAssemblyx86 -llldbPluginUtility -llldbSymbol
-llldbTarget -llldbUtility -lclangAnalysis -lclangAST -lclangBasic
-lclangCodeGen -lclangFrontend -lclangDriver -lclangEdit -lclangIndex
-lclangLex -lclangRewrite -lclangParse -lclangSema -lclangSerialization
-lLLVMMCDisassembler -llldbPluginPlatformMacOSX
-llldbPluginPlatformLinux -llldbPluginPlatformFreeBSD
-llldbPluginProcessPOSIX -llldbPluginProcessLinux
-llldbPluginDynamicLoaderPOSIX -llldbHostLinux -Wl,--no-whole-archive
-lLLVMLinker -lLLVMArchive -lLLVMMCJIT -lLLVMJIT -lLLVMRuntimeDyld
-lLLVMExecutionEngine -lLLVMipo -lLLVMVectorize -lLLVMInstrumentation
-lLLVMBitWriter -lLLVMBitReader -lLLVMAsmParser -lLLVMX86AsmParser
-lLLVMX86Disassembler -lLLVMX86CodeGen -lLLVMSelectionDAG
-lLLVMAsmPrinter -lLLVMMCParser -lLLVMCodeGen -lLLVMScalarOpts
-lLLVMInstCombine -lLLVMTransformUtils -lLLVMipa -lLLVMAnalysis
-lLLVMX86Desc -lLLVMX86Info -lLLVMTarget -lLLVMX86AsmPrinter -lLLVMMC
-lLLVMObject -lLLVMX86Utils -lLLVMCore -lLLVMSupport -Wl,--no-undefined
-lpthread -ldl -lm
/usr/build/llvm/Release+Asserts/lib/liblldbInterpreter.a(ScriptInterpreterPython.o):
In function `FindSessionDictionary(char const*)':
ScriptInterpreterPython.cpp:(.text+0xeea): undefined reference to
`PyImport_AddModule'
ScriptInterpreterPython.cpp:(.text+0xefa): undefined reference to
`PyModule_GetDict'
ScriptInterpreterPython.cpp:(.text+0xf40): undefined reference to
`PyDict_Next'
ScriptInterpreterPython.cpp:(.text+0xf62): undefined reference to
`PyString_AsString'
/usr/build/llvm/Release+Asserts/lib/liblldbInterpreter.a(ScriptInterpreterPython.o):
In function `lldb_private::ScriptInterpreterPython::LeaveSession()':
ScriptInterpreterPython.cpp:(.text+0x25b3): undefined reference to
`PyThreadState_Get'
ScriptInterpreterPython.cpp:(.text+0x25c5): undefined reference to
`PyImport_AddModule'
ScriptInterpreterPython.cpp:(.text+0x25cf): undefined reference to
`PyModule_GetDict'
ScriptInterpreterPython.cpp:(.text+0x25fd): undefined reference to
`PyDict_SetItemString'
ScriptInterpreterPython.cpp:(.text+0x261a): undefined reference to
`PyDict_SetItemString'
/usr/build/llvm/Release+Asserts/lib/liblldbInterpreter.a(ScriptInterpreterPython.o):
In function `lldb_private::ScriptInterpreterPython::EnterSession()':
ScriptInterpreterPython.cpp:(.text+0x27db): undefined reference to
`PyRun_SimpleStringFlags'
ScriptInterpreterPython.cpp:(.text+0x27f1): undefined reference to
`PyImport_AddModule'
ScriptInterpreterPython.cpp:(.text+0x27fd): undefined reference to
`PyModule_GetDict'
ScriptInterpreterPython.cpp:(.text+0x282c): undefined reference to
`PyDict_GetItemString'
ScriptInterpreterPython.cpp:(.text+0x2845): undefined reference to
`PyDict_GetItemString'
.
.
.
More information about the lldb-dev
mailing list