[LLVMbugs] [Bug 13465] New: ninja can't build shared libraries in debug mode

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Jul 26 03:45:56 PDT 2012


http://llvm.org/bugs/show_bug.cgi?id=13465

             Bug #: 13465
           Summary: ninja can't build shared libraries in debug mode
           Product: Build scripts
           Version: trunk
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: cmake
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: csdavec at swan.ac.uk
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


When attempting to do a debug build with shared libraries, this error appears:


Undefined symbols for architecture x86_64:
  "_LLVMInitializeARMTargetInfo", referenced from:
      llvm::InitializeAllTargetInfos()      in Disassembler.cpp.o
  "_LLVMInitializeCellSPUTargetInfo", referenced from:
      llvm::InitializeAllTargetInfos()      in Disassembler.cpp.o
  "_LLVMInitializeCppBackendTargetInfo", referenced from:
      llvm::InitializeAllTargetInfos()      in Disassembler.cpp.o
  "_LLVMInitializeHexagonTargetInfo", referenced from:
      llvm::InitializeAllTargetInfos()      in Disassembler.cpp.o
  "_LLVMInitializeMipsTargetInfo", referenced from:
      llvm::InitializeAllTargetInfos()      in Disassembler.cpp.o
  "_LLVMInitializeMBlazeTargetInfo", referenced from:
      llvm::InitializeAllTargetInfos()      in Disassembler.cpp.o
  "_LLVMInitializeMSP430TargetInfo", referenced from:
      llvm::InitializeAllTargetInfos()      in Disassembler.cpp.o
  "_LLVMInitializeNVPTXTargetInfo", referenced from:
      llvm::InitializeAllTargetInfos()      in Disassembler.cpp.o
  "_LLVMInitializePowerPCTargetInfo", referenced from:
      llvm::InitializeAllTargetInfos()      in Disassembler.cpp.o
  "_LLVMInitializeSparcTargetInfo", referenced from:
      llvm::InitializeAllTargetInfos()      in Disassembler.cpp.o
  "_LLVMInitializeX86TargetInfo", referenced from:
      llvm::InitializeAllTargetInfos()      in Disassembler.cpp.o
  "_LLVMInitializeXCoreTargetInfo", referenced from:
      llvm::InitializeAllTargetInfos()      in Disassembler.cpp.o
  "_LLVMInitializeARMTargetMC", referenced from:
      llvm::InitializeAllTargetMCs()      in Disassembler.cpp.o
  "_LLVMInitializeCellSPUTargetMC", referenced from:
      llvm::InitializeAllTargetMCs()      in Disassembler.cpp.o
  "_LLVMInitializeCppBackendTargetMC", referenced from:
      llvm::InitializeAllTargetMCs()      in Disassembler.cpp.o
  "_LLVMInitializeHexagonTargetMC", referenced from:
      llvm::InitializeAllTargetMCs()      in Disassembler.cpp.o
  "_LLVMInitializeMipsTargetMC", referenced from:
      llvm::InitializeAllTargetMCs()      in Disassembler.cpp.o
  "_LLVMInitializeMBlazeTargetMC", referenced from:
      llvm::InitializeAllTargetMCs()      in Disassembler.cpp.o
  "_LLVMInitializeMSP430TargetMC", referenced from:
      llvm::InitializeAllTargetMCs()      in Disassembler.cpp.o
  "_LLVMInitializeNVPTXTargetMC", referenced from:
      llvm::InitializeAllTargetMCs()      in Disassembler.cpp.o
  "_LLVMInitializePowerPCTargetMC", referenced from:
      llvm::InitializeAllTargetMCs()      in Disassembler.cpp.o
  "_LLVMInitializeSparcTargetMC", referenced from:
      llvm::InitializeAllTargetMCs()      in Disassembler.cpp.o
  "_LLVMInitializeX86TargetMC", referenced from:
      llvm::InitializeAllTargetMCs()      in Disassembler.cpp.o
  "_LLVMInitializeXCoreTargetMC", referenced from:
      llvm::InitializeAllTargetMCs()      in Disassembler.cpp.o
  "_LLVMInitializeARMAsmParser", referenced from:
      llvm::InitializeAllAsmParsers()      in Disassembler.cpp.o
  "_LLVMInitializeMipsAsmParser", referenced from:
      llvm::InitializeAllAsmParsers()      in Disassembler.cpp.o
  "_LLVMInitializeMBlazeAsmParser", referenced from:
      llvm::InitializeAllAsmParsers()      in Disassembler.cpp.o
  "_LLVMInitializeX86AsmParser", referenced from:
      llvm::InitializeAllAsmParsers()      in Disassembler.cpp.o
  "_LLVMInitializeARMDisassembler", referenced from:
      llvm::InitializeAllDisassemblers()      in Disassembler.cpp.o
  "_LLVMInitializeMipsDisassembler", referenced from:
      llvm::InitializeAllDisassemblers()      in Disassembler.cpp.o
  "_LLVMInitializeMBlazeDisassembler", referenced from:
      llvm::InitializeAllDisassemblers()      in Disassembler.cpp.o
  "_LLVMInitializeX86Disassembler", referenced from:
      llvm::InitializeAllDisassemblers()      in Disassembler.cpp.o
ld: symbol(s) not found for architecture x86_64

I don't know if this is specific to Ninja or to the CMake build system in
general.

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list