Skip to content

Failed to compile the latest TVM source code with vulkan enabled on Windows10 #8805

Description

@kthready

Compiled the latest TVM source code with vulkan enabled on Windows10 with VS2019.
Firstly, I compiled the latest LLVM source code. It was OK.
And then I installed the latest Vulkan SDK.
Finanlly, I compiled the latest TVM source code, but it was failed.
I found that it was failed when compiling the code in the dir tvm\src\runtime\vulkan
I wonder how to resolve this problem.

The compile log is as below.
5> Creating library C:/Users/george/Documents/workspace/tvm/build/Release/tvm_runtime.lib and object C:/Users/george/Documents/workspace/tvm/build/Release/tvm_runtime.exp
5>vulkan_instance.obj : error LNK2001: unresolved external symbol "public: __cdecl tvm::parser::SourceMap::SourceMap(class tvm::runtime::Map<class tvm::SourceName,class tvm::parser::Source,void,void>)" (??0SourceMap@parser@tvm@@qeaa@V?$Map@VSourceName@tvm@@vsource@parser@2@XX@runtime@2@@z)
5>vulkan_module.obj : error LNK2001: unresolved external symbol "public: __cdecl tvm::parser::SourceMap::SourceMap(class tvm::runtime::Map<class tvm::SourceName,class tvm::parser::Source,void,void>)" (??0SourceMap@parser@tvm@@qeaa@V?$Map@VSourceName@tvm@@vsource@parser@2@XX@runtime@2@@z)
5>vulkan_stream.obj : error LNK2001: unresolved external symbol "public: __cdecl tvm::parser::SourceMap::SourceMap(class tvm::runtime::Map<class tvm::SourceName,class tvm::parser::Source,void,void>)" (??0SourceMap@parser@tvm@@qeaa@V?$Map@VSourceName@tvm@@vsource@parser@2@XX@runtime@2@@z)
5>vulkan_wrapped_func.obj : error LNK2001: unresolved external symbol "public: __cdecl tvm::parser::SourceMap::SourceMap(class tvm::runtime::Map<class tvm::SourceName,class tvm::parser::Source,void,void>)" (??0SourceMap@parser@tvm@@qeaa@V?$Map@VSourceName@tvm@@vsource@parser@2@XX@runtime@2@@z)
5>vulkan_buffer.obj : error LNK2001: unresolved external symbol "public: __cdecl tvm::parser::SourceMap::SourceMap(class tvm::runtime::Map<class tvm::SourceName,class tvm::parser::Source,void,void>)" (??0SourceMap@parser@tvm@@qeaa@V?$Map@VSourceName@tvm@@vsource@parser@2@XX@runtime@2@@z)
5>vulkan_common.obj : error LNK2001: unresolved external symbol "public: __cdecl tvm::parser::SourceMap::SourceMap(class tvm::runtime::Map<class tvm::SourceName,class tvm::parser::Source,void,void>)" (??0SourceMap@parser@tvm@@qeaa@V?$Map@VSourceName@tvm@@vsource@parser@2@XX@runtime@2@@z)
5>vulkan_device.obj : error LNK2001: unresolved external symbol "public: __cdecl tvm::parser::SourceMap::SourceMap(class tvm::runtime::Map<class tvm::SourceName,class tvm::parser::Source,void,void>)" (??0SourceMap@parser@tvm@@qeaa@V?$Map@VSourceName@tvm@@vsource@parser@2@XX@runtime@2@@z)
5>vulkan_device_api.obj : error LNK2001: unresolved external symbol "public: __cdecl tvm::parser::SourceMap::SourceMap(class tvm::runtime::Map<class tvm::SourceName,class tvm::parser::Source,void,void>)" (??0SourceMap@parser@tvm@@qeaa@V?$Map@VSourceName@tvm@@vsource@parser@2@XX@runtime@2@@z)
5>C:\Users\george\Documents\workspace\tvm\build\Release\tvm_runtime.dll : fatal error LNK1120: 1 unresolved externals
5>Done building project "tvm_runtime.vcxproj" -- FAILED.
6>------ Skipped Build: Project: runtime, Configuration: Release x64 ------

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions