lldb build failure: undefined reference to `vtable for lldb_private::TypeFormatImpl_Format'

From: Eric van Gyzen <eric_at_vangyzen.net>
Date: Thu, 9 Jan 2014 15:28:14 -0600
Ed and -current:

I followed the instructions on the wiki for building lldb (r198872) on
9.1-RELEASE amd64.  I'm using clang in the base system (3.1).  I get
this failure:

[1/2] Linking CXX executable bin/lldb-3.5
[...snip...]
lib/liblldb.so.3.5: undefined reference to `vtable for
lldb_private::TypeFormatImpl_Format'
lib/liblldb.so.3.5: undefined reference to `vtable for
lldb_private::TypeFormatImpl_EnumType'

The complete output is below.

Any ideas?  What other info can I provide?

Thanks,

Eric

On 12/17/2013 16:15, Ed Maste wrote:
> The in-tree snapshot of LLDB is at a point where it's usable and
> suitable for wider testing on amd64, and so I intend to enable it by
> default in the near future.
>
> Further information on the FreeBSD port of LLDB is on the wiki, at
> https://wiki.freebsd.org/lldb
>
> On my desktop LLDB added about 5 minutes to a buildworld and 80MB to
> objdir (over a baseline of about an hour and 1.8GB).  If you wish to
> avoid building it, you can add 'WITHOUT_LLDB=' to src.conf.
>
> -Ed
> _______________________________________________
> freebsd-current_at_freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscribe_at_freebsd.org"
>

$ ninja lldb
[1/2] Linking CXX executable bin/lldb-3.5
FAILED: : && /usr/bin/clang++   -std=c++11 -stdlib=libc++
-I/usr/local/include/python2.7 -g -fPIC -fvisibility-inlines-hidden
-Wall -W -Wno-unused-parameter -Wwrite-strings
-Wmissing-field-initializers -pedantic -Wno-long-long
-Wcovered-switch-default -Wnon-virtual-dtor -fcolor-diagnostics
-fno-rtti   tools/lldb/tools/driver/CMakeFiles/lldb.dir/Driver.cpp.o
tools/lldb/tools/driver/CMakeFiles/lldb.dir/IOChannel.cpp.o
tools/lldb/tools/driver/CMakeFiles/lldb.dir/ELWrapper.cpp.o
tools/lldb/tools/driver/CMakeFiles/lldb.dir/Platform.cpp.o
tools/lldb/tools/driver/CMakeFiles/lldb.dir/GetOptWrapper.cpp.o  -o
bin/lldb-3.5 -L/usr/local/lib lib/liblldb.so.3.5 -Wl,--start-group
lib/liblldbAPI.a lib/liblldbBreakpoint.a lib/liblldbCommands.a
lib/liblldbDataFormatters.a lib/liblldbHostCommon.a lib/liblldbCore.a
lib/liblldbExpression.a lib/liblldbInterpreter.a lib/liblldbSymbol.a
lib/liblldbTarget.a lib/liblldbUtility.a
lib/liblldbPluginDisassemblerLLVM.a lib/liblldbPluginSymbolFileDWARF.a
lib/liblldbPluginSymbolFileSymtab.a
lib/liblldbPluginDynamicLoaderStatic.a
lib/liblldbPluginDynamicLoaderPosixDYLD.a
lib/liblldbPluginObjectFileMachO.a lib/liblldbPluginObjectFileELF.a
lib/liblldbPluginSymbolVendorELF.a
lib/liblldbPluginObjectContainerBSDArchive.a
lib/liblldbPluginObjectContainerMachOArchive.a
lib/liblldbPluginProcessGDBRemote.a lib/liblldbPluginProcessMachCore.a
lib/liblldbPluginProcessUtility.a lib/liblldbPluginPlatformGDB.a
lib/liblldbPluginPlatformFreeBSD.a lib/liblldbPluginPlatformLinux.a
lib/liblldbPluginPlatformPOSIX.a lib/liblldbPluginPlatformWindows.a
lib/liblldbPluginPlatformMacOSX.a
lib/liblldbPluginDynamicLoaderMacOSXDYLD.a
lib/liblldbPluginUnwindAssemblyInstEmulation.a
lib/liblldbPluginUnwindAssemblyX86.a lib/liblldbPluginAppleObjCRuntime.a
lib/liblldbPluginCXXItaniumABI.a lib/liblldbPluginABIMacOSX_arm.a
lib/liblldbPluginABIMacOSX_i386.a lib/liblldbPluginABISysV_x86_64.a
lib/liblldbPluginInstructionARM.a lib/liblldbPluginObjectFilePECOFF.a
lib/liblldbPluginOSPython.a lib/liblldbHostFreeBSD.a
lib/liblldbPluginProcessFreeBSD.a lib/liblldbPluginProcessPOSIX.a
lib/liblldbPluginProcessElfCore.a -Wl,--end-group lib/libclangCodeGen.a
lib/libLLVMIRReader.a lib/libLLVMInstrumentation.a lib/libLLVMLinker.a
lib/libLLVMObjCARCOpts.a lib/libclangRewriteFrontend.a
lib/libclangFrontend.a lib/libclangDriver.a lib/libclangParse.a
lib/libclangRewriteCore.a lib/libclangSerialization.a lib/libclangSema.a
lib/libclangAnalysis.a lib/libclangEdit.a lib/libclangAST.a
lib/libclangLex.a lib/libclangBasic.a lib/libLLVMAArch64CodeGen.a
lib/libLLVMAArch64AsmParser.a lib/libLLVMAArch64Disassembler.a
lib/libLLVMARMCodeGen.a lib/libLLVMARMAsmParser.a
lib/libLLVMARMDisassembler.a lib/libLLVMCppBackendCodeGen.a
lib/libLLVMHexagonCodeGen.a lib/libLLVMMipsCodeGen.a
lib/libLLVMMipsAsmParser.a lib/libLLVMMipsDisassembler.a
lib/libLLVMMSP430CodeGen.a lib/libLLVMNVPTXCodeGen.a
lib/libLLVMPowerPCCodeGen.a lib/libLLVMPowerPCAsmParser.a
lib/libLLVMPowerPCDisassembler.a lib/libLLVMR600CodeGen.a
lib/libLLVMSparcCodeGen.a lib/libLLVMSparcAsmParser.a
lib/libLLVMSparcDisassembler.a lib/libLLVMSystemZCodeGen.a
lib/libLLVMSystemZAsmParser.a lib/libLLVMSystemZDisassembler.a
lib/libLLVMX86AsmParser.a lib/libLLVMX86Disassembler.a
lib/libLLVMXCoreCodeGen.a lib/libLLVMXCoreDisassembler.a
lib/libLLVMJIT.a lib/libLLVMInterpreter.a lib/libLLVMX86CodeGen.a
lib/libLLVMAsmParser.a lib/libLLVMBitWriter.a lib/libLLVMipo.a
lib/libLLVMBitReader.a lib/libLLVMMCJIT.a lib/libLLVMMCDisassembler.a
lib/libLLVMOption.a lib/libLLVMAArch64Desc.a lib/libLLVMARMDesc.a
lib/libLLVMCppBackendInfo.a lib/libLLVMHexagonAsmPrinter.a
lib/libLLVMMipsDesc.a lib/libLLVMMSP430Desc.a lib/libLLVMNVPTXDesc.a
lib/libLLVMPowerPCDesc.a lib/libLLVMR600Desc.a lib/libLLVMSparcDesc.a
lib/libLLVMSystemZDesc.a lib/libLLVMXCoreDesc.a lib/libLLVMAsmPrinter.a
lib/libLLVMSelectionDAG.a lib/libLLVMX86Desc.a lib/libLLVMVectorize.a
lib/libLLVMExecutionEngine.a lib/libLLVMRuntimeDyld.a
lib/libLLVMAArch64AsmPrinter.a lib/libLLVMAArch64Info.a
lib/libLLVMARMAsmPrinter.a lib/libLLVMARMInfo.a lib/libLLVMHexagonDesc.a
lib/libLLVMMipsAsmPrinter.a lib/libLLVMMipsInfo.a
lib/libLLVMMSP430AsmPrinter.a lib/libLLVMMSP430Info.a
lib/libLLVMNVPTXAsmPrinter.a lib/libLLVMNVPTXInfo.a
lib/libLLVMPowerPCAsmPrinter.a lib/libLLVMPowerPCInfo.a
lib/libLLVMR600AsmPrinter.a lib/libLLVMR600Info.a
lib/libLLVMSparcAsmPrinter.a lib/libLLVMSparcInfo.a
lib/libLLVMSystemZAsmPrinter.a lib/libLLVMSystemZInfo.a
lib/libLLVMXCoreAsmPrinter.a lib/libLLVMXCoreInfo.a
lib/libLLVMMCParser.a lib/libLLVMCodeGen.a lib/libLLVMX86AsmPrinter.a
lib/libLLVMX86Info.a lib/libLLVMAArch64Utils.a lib/libLLVMHexagonInfo.a
lib/libLLVMScalarOpts.a lib/libLLVMX86Utils.a lib/libLLVMInstCombine.a
lib/libLLVMTransformUtils.a lib/libLLVMipa.a lib/libLLVMAnalysis.a
lib/libLLVMTarget.a lib/libLLVMCore.a lib/libLLVMMC.a
lib/libLLVMObject.a lib/libLLVMSupport.a -lexecinfo -lrt -ltinfo
-lpthread -lz -ledit -lpython2.7
-Wl,-rpath,/usr/local/lib:/home/evangyzen/upstream/llvm/build/lib: && :
clang++: warning: argument unused during compilation: '-g'
lib/liblldb.so.3.5: undefined reference to `vtable for
lldb_private::TypeFormatImpl_Format'
lib/liblldb.so.3.5: undefined reference to `vtable for
lldb_private::TypeFormatImpl_EnumType'
clang++: error: linker command failed with exit code 1 (use -v to see
invocation)
ninja: build stopped: subcommand failed.
Received on Thu Jan 09 2014 - 20:28:23 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:46 UTC