Skip to content

compile error when build megcc #44

@alanguo1234

Description

@alanguo1234

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);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions