[llvm-bugs] [Bug 26335] New: lldb (after 3.7.x) compilation fails at link-time with shared library

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Jan 27 02:21:47 PST 2016


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

            Bug ID: 26335
           Summary: lldb (after 3.7.x) compilation fails at link-time with
                    shared library
           Product: lldb
           Version: 3.8
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: All Bugs
          Assignee: lldb-dev at lists.llvm.org
          Reporter: voyageursp at gmail.com
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

Created attachment 15726
  --> https://llvm.org/bugs/attachment.cgi?id=15726&action=edit
Build log showing lldb link failure

Link operation fails in lllb for versions > 3.7 (3.7.1 works fine), with shared
library and --as-needed link flag (enabled by default in most distributions).
There are many errors "undefined reference to `llvm::*". I am attaching a full
build log (bzipped for size).
It would be nice to have this one fixed for 3.8 release

Note: this is on trunk build, but I saw it too before the 3.8 branch (the
Gentoo ebuild for 3.8 rc1 is not ready yet)

FAILED: : && /usr/bin/x86_64-pc-linux-gnu-g++   -march=native -O2 -pipe  -fPIC
-fvisibility-inlines-hidden -Wall -W -Wno-unused-parameter -Wwrite-strings
-Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long
-Wno-maybe-uninitialized -Wdelete-non-virtual-dtor -Wno-comment
-Werror=date-time -std=c++11 -ffunction-sections -fdata-sections
-Wno-deprecated-declarations -Wno-unknown-pragmas -Wno-strict-aliasing
-Wno-deprecated-register -Wno-vla-extension  -fno-exceptions -fno-rtti  -Wl,-O1
-Wl,--as-needed -Wl,-allow-shlib-undefined     -Wl,-O3 -Wl,--gc-sections
tools/lldb/tools/lldb-server/CMakeFiles/lldb-server.dir/Acceptor.cpp.o
tools/lldb/tools/lldb-server/CMakeFiles/lldb-server.dir/lldb-gdbserver.cpp.o
tools/lldb/tools/lldb-server/CMakeFiles/lldb-server.dir/lldb-platform.cpp.o
tools/lldb/tools/lldb-server/CMakeFiles/lldb-server.dir/lldb-server.cpp.o
tools/lldb/tools/lldb-server/CMakeFiles/lldb-server.dir/LLDBServerUtilities.cpp.o
 -o bin/lldb-server-3.9.0  lib64/liblldb.so.3.9.0 -lcurses -lform -lpanel
-lcurses -lpython2.7 -lxml2 -lpthread -ldl -lcurses -lform -lpanel
lib64/libLLVMBPFCodeGen.so lib64/libLLVMBPFAsmPrinter.so
lib64/libLLVMBPFDesc.so lib64/libLLVMBPFInfo.so
lib64/libLLVMCppBackendCodeGen.so lib64/libLLVMCppBackendInfo.so
lib64/libLLVMX86CodeGen.so lib64/libLLVMX86AsmPrinter.so
lib64/libLLVMX86AsmParser.so lib64/libLLVMX86Desc.so lib64/libLLVMX86Info.so
lib64/libLLVMX86Disassembler.so lib64/libLLVMInterpreter.so
lib64/libLLVMAsmParser.so lib64/libLLVMBitReader.so lib64/libLLVMBitWriter.so
lib64/libLLVMCodeGen.so lib64/libLLVMipo.so lib64/libLLVMSelectionDAG.so
lib64/libLLVMMC.so lib64/libLLVMMCJIT.so lib64/libLLVMCore.so
lib64/libLLVMMCDisassembler.so lib64/libLLVMExecutionEngine.so
lib64/libLLVMRuntimeDyld.so lib64/libLLVMOption.so lib64/libLLVMSupport.so
-Wl,--start-group lib64/liblldbBase.a lib64/liblldbBreakpoint.a
lib64/liblldbCommands.a lib64/liblldbDataFormatters.a lib64/liblldbHost.a
lib64/liblldbCore.a lib64/liblldbExpression.a lib64/liblldbInitialization.a
lib64/liblldbInterpreter.a lib64/liblldbSymbol.a lib64/liblldbTarget.a
lib64/liblldbUtility.a lib64/liblldbPluginDisassemblerLLVM.a
lib64/liblldbPluginSymbolFileDWARF.a lib64/liblldbPluginSymbolFileSymtab.a
lib64/liblldbPluginDynamicLoaderStatic.a
lib64/liblldbPluginDynamicLoaderPosixDYLD.a
lib64/liblldbPluginDynamicLoaderHexagonDYLD.a
lib64/liblldbPluginDynamicLoaderWindowsDYLD.a
lib64/liblldbPluginCPlusPlusLanguage.a lib64/liblldbPluginGoLanguage.a
lib64/liblldbPluginObjCLanguage.a lib64/liblldbPluginObjCPlusPlusLanguage.a
lib64/liblldbPluginObjectFileELF.a lib64/liblldbPluginObjectFileJIT.a
lib64/liblldbPluginSymbolVendorELF.a
lib64/liblldbPluginObjectContainerBSDArchive.a
lib64/liblldbPluginObjectContainerMachOArchive.a
lib64/liblldbPluginProcessGDBRemote.a lib64/liblldbPluginProcessUtility.a
lib64/liblldbPluginPlatformAndroid.a lib64/liblldbPluginPlatformGDB.a
lib64/liblldbPluginPlatformFreeBSD.a lib64/liblldbPluginPlatformKalimba.a
lib64/liblldbPluginPlatformLinux.a lib64/liblldbPluginPlatformNetBSD.a
lib64/liblldbPluginPlatformPOSIX.a lib64/liblldbPluginPlatformWindows.a
lib64/liblldbPluginPlatformMacOSX.a
lib64/liblldbPluginDynamicLoaderMacOSXDYLD.a
lib64/liblldbPluginUnwindAssemblyInstEmulation.a
lib64/liblldbPluginUnwindAssemblyX86.a lib64/liblldbPluginAppleObjCRuntime.a
lib64/liblldbPluginRenderScriptRuntime.a lib64/liblldbPluginLanguageRuntimeGo.a
lib64/liblldbPluginCXXItaniumABI.a lib64/liblldbPluginABIMacOSX_arm.a
lib64/liblldbPluginABIMacOSX_arm64.a lib64/liblldbPluginABIMacOSX_i386.a
lib64/liblldbPluginABISysV_arm.a lib64/liblldbPluginABISysV_arm64.a
lib64/liblldbPluginABISysV_i386.a lib64/liblldbPluginABISysV_x86_64.a
lib64/liblldbPluginABISysV_hexagon.a lib64/liblldbPluginABISysV_ppc.a
lib64/liblldbPluginABISysV_ppc64.a lib64/liblldbPluginABISysV_mips.a
lib64/liblldbPluginABISysV_mips64.a lib64/liblldbPluginInstructionARM.a
lib64/liblldbPluginInstructionARM64.a lib64/liblldbPluginInstructionMIPS.a
lib64/liblldbPluginInstructionMIPS64.a lib64/liblldbPluginObjectFilePECOFF.a
lib64/liblldbPluginOSGo.a lib64/liblldbPluginOSPython.a
lib64/liblldbPluginMemoryHistoryASan.a
lib64/liblldbPluginInstrumentationRuntimeAddressSanitizer.a
lib64/liblldbPluginSystemRuntimeMacOSX.a lib64/liblldbPluginProcessElfCore.a
lib64/liblldbPluginJITLoaderGDB.a lib64/liblldbPluginExpressionParserClang.a
lib64/liblldbPluginExpressionParserGo.a lib64/liblldbPluginProcessLinux.a
lib64/liblldbPluginProcessPOSIX.a -Wl,--end-group lib64/libclangAnalysis.so
lib64/libclangAST.so lib64/libclangBasic.so lib64/libclangCodeGen.so
lib64/libclangDriver.so lib64/libclangEdit.so lib64/libclangFrontend.so
lib64/libclangLex.so lib64/libclangParse.so lib64/libclangRewrite.so
lib64/libclangRewriteFrontend.so lib64/libclangSema.so
lib64/libclangSerialization.so -lcurses -lpython2.7 -lxml2 -lpthread -ldl
-Wl,-rpath,"\$ORIGIN/../lib64" && :

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20160127/c8df721e/attachment-0001.html>


More information about the llvm-bugs mailing list