[LLVMdev] LLVM on Windows MSVC 10

Ruben Van Boxem vanboxem.ruben at gmail.com
Sun Jan 2 04:35:54 PST 2011


2010/12/31 Óscar Fuentes <ofv at wanadoo.es>:
> Ruben Van Boxem <vanboxem.ruben at gmail.com> writes:
>
>>>> I'm trying to build svn LLVM with Visual Studio 2010:
>>>>
>>>> cd build
>>>> cmake .. -G"NMake Makefiles"
>>>> nmake
>>>>
>>>> and several link steps fail due to a missing symbol:
>>>>
>>>> > LLVMX86CodeGen.lib(X86JITInfo.cpp.obj) : error LNK2019: unresolved
>>>> > external symbol X86CompilationCallback referenced in function "public:
>>>> > virtual void (__cdecl*__cdecl llvm::X86JITInfo::getLazyResolverFunction(void
>>>> > * (__cdecl*)(void *)))(void)"
>>>> > (?getLazyResolverFunction at X86JITInfo@llvm@@UEAAP6AXXZP6APEAXPEAX at Z@Z)
>>>>
>>>> What can/should I do?
>>
>> I'm using SVN Rev. 122644 (trunk), and building for Windows x64 (from
>> the MSVC Command prompt).
>
> This is probably a bug with Windows64 support. Please file a bug report.
>

To follow up on MSVC x64 problems: running CMake like this:

cmake ../../Source/LLVM -G"Visual Studio 10 Win64"

causes following error:
>-- Targeting X86
>CMake Error at M:/Development/utils/cmake/share/cmake-2.8/Modules/CMakeDetermineASMCompiler.cmake:68 (CMAKE_DETERMINE_COMPILER_ID_VENDOR):
>  Unknown CMake command "CMAKE_DETERMINE_COMPILER_ID_VENDOR".
>Call Stack (most recent call first):
>  M:/Development/utils/cmake/share/cmake-2.8/Modules/CMakeDetermineASM_MASMCompiler.cmake:26 (INCLUDE)
>  lib/Target/X86/CMakeLists.txt:44 (enable_language)
>
>
>CMake Error: Could not find cmake module file:M:/Development/x64-msvc/llvm/CMakeFiles/CMakeASM_MASMCompiler.cmake
>-- Configuring incomplete, errors occurred!

I have filed a bug report: http://llvm.org/bugs/show_bug.cgi?id=8885

Thanks!

Ruben




More information about the llvm-dev mailing list