Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fails to build with gcc #7618

Closed
elfringham opened this issue Mar 9, 2021 · 2 comments
Closed

Fails to build with gcc #7618

elfringham opened this issue Mar 9, 2021 · 2 comments

Comments

@elfringham
Copy link

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, tvm::runtime::NDArray>&, tvm::runtime::Module, const tvm::runtime::Arraytvm::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

@elfringham
Copy link
Author

elfringham commented Mar 10, 2021 via email

@tqchen
Copy link
Member

tqchen commented Mar 10, 2021

Thanks @elfringham , should be fixed by #7621

@tqchen tqchen closed this as completed Mar 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants