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

compile error when build megcc #44

Open
alanguo1234 opened this issue Feb 16, 2023 · 3 comments
Open

compile error when build megcc #44

alanguo1234 opened this issue Feb 16, 2023 · 3 comments

Comments

@alanguo1234
Copy link

hi
I get the latest source code, I build megcc source code as the user guide, the step as follows:

  1. apt-get install cmake ninja-build
    2./third_party/prepare.sh
  2. cd megcc/compiler
  3. mkdir build
  4. cmake .. -G Ninja
  5. 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);

@yeasoon
Copy link
Collaborator

yeasoon commented Feb 21, 2023

which platform it was compiled?

@alanguo1234
Copy link
Author

alanguo1234 commented Feb 22, 2023

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

@yeasoon
Copy link
Collaborator

yeasoon commented Mar 1, 2023

this is in mlir project and not the description of c++

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