[Mesa-dev] [Bug 61299] New: LLVM 3.2 fails to link with Mesa 9.0.2 on Windows; missing link libraries

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Fri Feb 22 10:33:54 PST 2013


https://bugs.freedesktop.org/show_bug.cgi?id=61299

          Priority: medium
            Bug ID: 61299
          Assignee: mesa-dev at lists.freedesktop.org
           Summary: LLVM 3.2 fails to link with Mesa 9.0.2 on Windows;
                    missing link libraries
          Severity: normal
    Classification: Unclassified
                OS: Windows (All)
          Reporter: keith.kriewall at attachmate.com
          Hardware: x86 (IA32)
            Status: NEW
           Version: 9.0
         Component: Other
           Product: Mesa

Linking of Mesa 9.0.2 with LLVM 3.2 fails with unresolved external symbol:

LLVMJIT.lib(JITMemoryManager.obj) : error LNK2019: unresolved external symbol
"p
ublic: virtual __thiscall
llvm::RTDyldMemoryManager::~RTDyldMemoryManager(void)"
 (??1RTDyldMemoryManager at llvm@@UAE at XZ) referenced in function "public: virtual
_
_thiscall llvm::JITMemoryManager::~JITMemoryManager(void)"
(??1JITMemoryManager@
llvm@@UAE at XZ)

The problem appears to be that the link library list in
\Mesa-9.0.2\scons\llvm.py is missing two LLVM libraries (LLVMRuntimeDyld and
LLVMObject).

Workaround is to modify llvm.py at line 95 to read:

        if llvm_version >= distutils.version.LooseVersion('3.0'):
            # 3.0
            env.Prepend(LIBS = [
                'LLVMBitWriter', 'LLVMX86Disassembler', 'LLVMX86AsmParser',
                'LLVMX86CodeGen', 'LLVMX86Desc', 'LLVMSelectionDAG',
                'LLVMAsmPrinter', 'LLVMMCParser', 'LLVMX86AsmPrinter',
                'LLVMX86Utils', 'LLVMX86Info', 'LLVMJIT',
                'LLVMExecutionEngine', 'LLVMCodeGen', 'LLVMScalarOpts',
                'LLVMInstCombine', 'LLVMTransformUtils', 'LLVMipa',
                'LLVMAnalysis', 'LLVMTarget', 'LLVMMC', 'LLVMCore',
                'LLVMSupport', 'LLVMRuntimeDyld', 'LLVMObject'
            ])

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20130222/38062a91/attachment.html>


More information about the mesa-dev mailing list