compile error when build megcc
hi I get the latest source code, I build megcc source code as the user guide, the step as follows:
- apt-get install cmake ninja-build 2./third_party/prepare.sh
- cd megcc/compiler
- mkdir build
- cmake .. -G Ninja
- ninja
the error log as below: ../tools/mgb-to-tinynn/mgb-to-tinynn.cpp:102:19: error: ‘kernel_exporter’ has not been declared export_cv_opr(kernel_exporter, dump_info->cv_impl); ^~~~~~~~~~~~~~~ ../tools/mgb-to-tinynn/mgb-to-tinynn.cpp:102:36: error: ‘dump_info’ has not been declared export_cv_opr(kernel_exporter, dump_info->cv_impl); ^~~~~~~~~ ../tools/mgb-to-tinynn/mgb-to-tinynn.cpp:102:45: error: expected ‘,’ or ‘...’ before ‘->’ token export_cv_opr(kernel_exporter, dump_info->cv_impl); ^~ ../tools/mgb-to-tinynn/mgb-to-tinynn.cpp:102:54: error: ISO C++ forbids declaration of ‘export_cv_opr’ with no type [-fpermissive] export_cv_opr(kernel_exporter, dump_info->cv_impl);
which platform it was compiled?
the build error have been fixed. thanks.
by the way, OpBuilder::InsertionGuard _(m_builder); I don't find any description about var define with _ at cppreference
this is in mlir project and not the description of c++