elfringham opened a new issue #7618:
URL: https://github.com/apache/tvm/issues/7618
Build fails with following error due to code that is protected by ifdef for
LLVM presence being referenced by code that is not so protected.
/home/andrew/src/tvm/src/target/metadata_module.cc: In function
‘tvm::runtime::Module tvm::codegen::CreateMetadataModule(const
std::unordered_map<std::__cxx11::basic_string<char>, tvm::runtime::NDArray>&,
tvm::runtime::Module, const tvm::runtime::Array<tvm::runtime::Module>&,
tvm::Target)’:
/home/andrew/src/tvm/src/target/metadata_module.cc:120:23: error:
‘CreateLLVMCrtMetadataModule’ was not declared in this scope
target_module = CreateLLVMCrtMetadataModule(crt_exportable_modules,
target);
^~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/andrew/src/tvm/src/target/metadata_module.cc:120:23: note: suggested
alternative: ‘CreateCSourceCrtMetadataModule’
target_module = CreateLLVMCrtMetadataModule(crt_exportable_modules,
target);
^~~~~~~~~~~~~~~~~~~~~~~~~~~
CreateCSourceCrtMetadataModule
make[3]: *** [CMakeFiles/tvm_objs.dir/build.make:2071:
CMakeFiles/tvm_objs.dir/src/target/metadata_module.cc.o] Error 1
make[3]: Leaving directory '/home/andrew/src/tvm/build'
make[2]: *** [CMakeFiles/Makefile2:130: CMakeFiles/tvm_objs.dir/all] Error 2
make[2]: Leaving directory '/home/andrew/src/tvm/build'
make[1]: *** [Makefile:149: all] Error 2
make[1]: Leaving directory '/home/andrew/src/tvm/build'
make: *** [Makefile:43: all] Error 2
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]