I was able to build llvmpipe with LLVM 2.9, however trying to do the same with 3.0 fails. The entry variables that i used for building my LLVM from source (both for 2.9 & 3.0) are:<br><pre class="bz_comment_text" id="comment_text_11">
LLVM_USE_CRT_RELEASE=MTd
LLVM_USE_CRT_DEBUG=MTd</pre><br>Scons Build Output:<br>=================<br>c:\Mesa-8.0.2>scons llvm=yes build=debug machine=x86 opengl32<br>scons: Reading SConscript files ...<br>scons: Found LLVM version 3.0<br>Checking for X11... no<br>
Checking for XCB... no<br>Checking for XF86VIDMODE... no<br>Checking for DRM... no<br>Checking for DRM_INTEL... no<br>Checking for DRM_RADEON... no<br>Checking for XORG... no<br>Checking for KMS... no<br>Checking for UDEV... no<br>
scons: done reading SConscript files.<br>scons: Building targets ...<br> Generating build\windows-x86-debug\gallium\drivers\llvmpipe\lp_tile_soa.c ...<br> Generating build\windows-x86-debug\gallium\auxiliary\util\u_format_table.c ...<br>
Generating build\windows-x86-debug\glsl\glsl_parser.cpp ...<br>src\glsl\glsl_parser.yy: conflicts: 1 shift/reduce<br> Generating build\windows-x86-debug\glsl\builtin_function.cpp ...<br>link /nologo /fixed:no /incremental:no /nodefaultlib:LIBCMT /dll /out:build\windows-x86-debug\gallium\targets\libgl-gdi\opengl3<br>
2.dll "/LIBPATH:C:\Program Files (x86)\LLVM\lib" build\windows-x86-debug\gallium\state_trackers\wgl\wgl.lib build\windows-x86-d<br>ebug\gallium\winsys\sw\gdi\ws_gdi.lib build\windows-x86-debug\mapi\glapi\glapi.lib build\windows-x86-debug\mesa\mesa.lib build\<br>
windows-x86-debug\gallium\drivers\softpipe\softpipe.lib build\windows-x86-debug\gallium\drivers\llvmpipe\llvmpipe.lib build\win<br>dows-x86-debug\gallium\drivers\trace\trace.lib build\windows-x86-debug\gallium\drivers\rbug\rbug.lib build\windows-x86-debug\ga<br>
llium\auxiliary\gallium.lib build\windows-x86-debug\glsl\glsl.lib LLVMObject.lib LLVMMCJIT.lib LLVMMCDisassembler.lib LLVMLinke<br>r.lib LLVMipo.lib LLVMInterpreter.lib LLVMInstrumentation.lib LLVMJIT.lib LLVMExecutionEngine.lib LLVMBitWriter.lib LLVMX86Disa<br>
ssembler.lib LLVMX86AsmParser.lib LLVMMCParser.lib LLVMX86AsmPrinter.lib LLVMX86CodeGen.lib LLVMSelectionDAG.lib LLVMX86Utils.l<br>ib LLVMX86Info.lib LLVMAsmPrinter.lib LLVMCodeGen.lib LLVMScalarOpts.lib LLVMInstCombine.lib LLVMTransformUtils.lib LLVMipa.lib<br>
LLVMAsmParser.lib LLVMArchive.lib LLVMBitReader.lib LLVMAnalysis.lib LLVMTarget.lib LLVMCore.lib LLVMMC.lib LLVMSupport.lib im<br>agehlp.lib psapi.lib shell32.lib advapi32.lib gdi32.lib user32.lib kernel32.lib ws2_32.lib /PDB:build\windows-x86-debug\gallium<br>
\targets\libgl-gdi\opengl32.pdb /DEBUG build\windows-x86-debug\gallium\targets\libgl-gdi\libgl_gdi.obj /def:src\gallium\state_t<br>rackers\wgl\opengl32.def<br> Creating library build\windows-x86-debug\gallium\targets\libgl-gdi\opengl32.lib and object build\windows-x86-debug\gallium\t<br>
argets\libgl-gdi\opengl32.exp<br>gallium.lib(lp_bld_init.obj) : error LNK2019: unresolved external symbol _LLVMInitializeX86TargetMC referenced in function _LLV<br>MInitializeNativeTarget<br>LLVMX86CodeGen.lib(X86ISelLowering.obj) : error LNK2019: unresolved external symbol "unsigned int __cdecl llvm::X86_MC::getX86R<br>
egNum(unsigned int)" (?getX86RegNum@X86_MC@llvm@@YAII@Z) referenced in function "private: class llvm::SDValue __thiscall llvm::<br>X86TargetLowering::LowerINIT_TRAMPOLINE(class llvm::SDValue,class llvm::SelectionDAG &)const " (?LowerINIT_TRAMPOLINE@X86Target<br>
Lowering@llvm@@ABE?AVSDValue@2@V32@AAVSelectionDAG@2@@Z)<br>LLVMX86CodeGen.lib(X86RegisterInfo.obj) : error LNK2001: unresolved external symbol "unsigned int __cdecl llvm::X86_MC::getX86R<br>egNum(unsigned int)" (?getX86RegNum@X86_MC@llvm@@YAII@Z)<br>
LLVMX86CodeGen.lib(X86CodeEmitter.obj) : error LNK2001: unresolved external symbol "unsigned int __cdecl llvm::X86_MC::getX86Re<br>gNum(unsigned int)" (?getX86RegNum@X86_MC@llvm@@YAII@Z)<br>LLVMX86CodeGen.lib(X86InstrInfo.obj) : error LNK2001: unresolved external symbol "class llvm::MCInstrDesc * llvm::X86Insts" (?X<br>
86Insts@llvm@@3PAVMCInstrDesc@1@A)<br>LLVMX86CodeGen.lib(X86Subtarget.obj) : error LNK2001: unresolved external symbol "struct llvm::SubtargetFeatureKV * llvm::X86Fe<br>atureKV" (?X86FeatureKV@llvm@@3PAUSubtargetFeatureKV@1@A)<br>
LLVMX86CodeGen.lib(X86Subtarget.obj) : error LNK2001: unresolved external symbol "struct llvm::SubtargetFeatureKV * llvm::X86Su<br>bTypeKV" (?X86SubTypeKV@llvm@@3PAUSubtargetFeatureKV@1@A)<br>LLVMX86CodeGen.lib(X86Subtarget.obj) : error LNK2019: unresolved external symbol "void __cdecl llvm::X86_MC::DetectFamilyModel(<br>
unsigned int,unsigned int &,unsigned int &)" (?DetectFamilyModel@X86_MC@llvm@@YAXIAAI0@Z) referenced in function "public: void<br>__thiscall llvm::X86Subtarget::AutoDetectSubtargetFeatures(void)" (?AutoDetectSubtargetFeatures@X86Subtarget@llvm@@QAEXXZ)<br>
LLVMX86CodeGen.lib(X86Subtarget.obj) : error LNK2019: unresolved external symbol "bool __cdecl llvm::X86_MC::GetCpuIDAndInfo(un<br>signed int,unsigned int *,unsigned int *,unsigned int *,unsigned int *)" (?GetCpuIDAndInfo@X86_MC@llvm@@YA_NIPAI000@Z) referenc<br>
ed in function "public: void __thiscall llvm::X86Subtarget::AutoDetectSubtargetFeatures(void)" (?AutoDetectSubtargetFeatures@X8<br>6Subtarget@llvm@@QAEXXZ)<br>LLVMX86CodeGen.lib(X86RegisterInfo.obj) : error LNK2001: unresolved external symbol "class llvm::MCRegisterClass * llvm::X86MCR<br>
egisterClasses" (?X86MCRegisterClasses@llvm@@3PAVMCRegisterClass@1@A)<br>LLVMX86CodeGen.lib(X86RegisterInfo.obj) : error LNK2001: unresolved external symbol "struct llvm::MCRegisterDesc * llvm::X86Reg<br>Desc" (?X86RegDesc@llvm@@3PAUMCRegisterDesc@1@A)<br>
LLVMX86CodeGen.lib(X86RegisterInfo.obj) : error LNK2019: unresolved external symbol "void __cdecl llvm::X86_MC::InitLLVM2SEHReg<br>isterMapping(class llvm::MCRegisterInfo *)" (?InitLLVM2SEHRegisterMapping@X86_MC@llvm@@YAXPAVMCRegisterInfo@2@@Z) referenced in<br>
function "public: __thiscall llvm::X86RegisterInfo::X86RegisterInfo(class llvm::X86TargetMachine &,class llvm::TargetInstrInfo<br> const &)" (??0X86RegisterInfo@llvm@@QAE@AAVX86TargetMachine@1@ABVTargetInstrInfo@1@@Z)<br>
LLVMX86CodeGen.lib(X86RegisterInfo.obj) : error LNK2019: unresolved external symbol "unsigned int __cdecl llvm::X86_MC::getDwar<br>fRegFlavour(class llvm::StringRef,bool)" (?getDwarfRegFlavour@X86_MC@llvm@@YAIVStringRef@2@_N@Z) referenced in function "public<br>
: __thiscall llvm::X86RegisterInfo::X86RegisterInfo(class llvm::X86TargetMachine &,class llvm::TargetInstrInfo const &)" (??0X8<br>6RegisterInfo@llvm@@QAE@AAVX86TargetMachine@1@ABVTargetInstrInfo@1@@Z)<br>build\windows-x86-debug\gallium\targets\libgl-gdi\opengl32.dll : fatal error LNK1120: 11 unresolved externals<br>
scons: *** [build\windows-x86-debug\gallium\targets\libgl-gdi\opengl32.dll] Error 1120<br>scons: building terminated because of errors.<br><br>