MegEngine / MegEngine/MegCC

编译libTinyNN.so 缺少文件version.ld

Open
#52 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
483
Forks
56
PR merge metrics
No merged PRs in 30d

Description

报这个错误
2023/08/25 15:43:04 - DEBUG - cmake build: cd /home/work/wanxin/megcc_root_release/release_megcc/yolox_example/kernel_yolox_s_arm_v2/runtime && ninja install/strip
ninja: error: '/home/work/wanxin/megcc_root_release/release_megcc/runtime/version.ld', needed by 'libTinyNN.so', missing and no known rule to make it
Traceback (most recent call last):
File "/home/work/wanxin/megcc_root_release/release_megcc/yolox_example/../runtime/scripts/runtime_build.py", line 424, in
b.build()
File "/home/work/wanxin/megcc_root_release/release_megcc/yolox_example/../runtime/scripts/runtime_build.py", line 415, in build
subprocess.check_call('bash -c "{}"'.format(build_cmd), shell=True)
File "/home/work/miniconda3/envs/wx_mge_env/lib/python3.9/subprocess.py", line 373, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command 'bash -c "cd /home/work/wanxin/megcc_root_release/release_megcc/yolox_example/kernel_yolox_s_arm_v2/runtime && ninja install/strip "' returned non-zero exit status 1.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with runtime/scripts/runtime_build.py and the CMake/Ninja build invoked for the runtime directory, then trace why runtime/version.ld is required for libTinyNN.so but is absent. Reproduce the reported ninja install/strip failure and confirm the runtime build completes with libTinyNN.so produced.

Written by the indexing model from the issue text.

Assessment

Tech stack
cmake, cpp, python
Domain
build-system, compilers
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.