compile error when build megcc
- Dominant language
- C++
- Stars
- 483
- Forks
- 56
- PR merge metrics
- No merged PRs in 30d
Description
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
3. cd megcc/compiler
4. mkdir build
5. cmake .. -G Ninja
6. 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);
Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce the build from the listed apt-get, third_party/prepare.sh, CMake, and Ninja steps, then inspect compiler/tools/mgb-to-tinynn/mgb-to-tinynn.cpp around line 102. Compare the reported declarations and macro invocation with the surrounding source; done means the MegCC Ninja build completes without these compilation errors.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cmake, cpp
- Domain
- build-system, compilers
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100