2.4K Star 8.2K Fork 4.4K

GVPMindSpore / mindspore

 / 详情

[CT][MS][LITE] ascend编包失败

DONE
Bug-Report
创建于  
2023-02-27 11:28
name about labels
Bug Report Use this template for reporting a bug kind/bug

Describe the current behavior / 问题描述 (Mandatory / 必填)

ascend编包失败

Environment / 环境信息 (Mandatory / 必填)

  • Hardware Environment(Ascend) / 硬件环境:

Please delete the backend not involved / 请删除不涉及的后端:
/device ascend/GPU/CPU/kirin/等其他芯片

  • Software Environment / 软件环境 (Mandatory / 必填):
    -- MindSpore version (e.g., 1.7.0.Bxxx) :
    -- Python version (e.g., Python 3.7.5) :
    -- OS platform and distribution (e.g., Linux Ubuntu 16.04):
    -- GCC/Compiler version (if compiled from source):

  • Excute Mode / 执行模式 (Mandatory / 必填)(PyNative/Graph):

Please delete the mode not involved / 请删除不涉及的模式:
/mode pynative
/mode graph

Related testcase / 关联用例 (Mandatory / 必填)

Steps to reproduce the issue / 重现步骤 (Mandatory / 必填)

export MSLITE_ENABLE_ACL=on
export MSLITE_ENABLE_CLOUD_INFERENCE=on
export MSLITE_ENABLE_MODEL_ENCRYPTION=on
bash build.sh -I x86_64 -j64

Describe the expected behavior / 预期结果 (Mandatory / 必填)

编包成功

Related log / screenshot / 日志 / 截图 (Mandatory / 必填)

 [ 74%] Building CXX object src/extendrt/cxx_api/CMakeFiles/mindspore_infer_shared_lib_obj.dir/model/model.cc.o
/home/jenkins-slave/workspace/mslite_compile_release_x86_ascend310_opensource/mindspore/mindspore/lite/src/extendrt/cxx_api/model/model.cc: In member function ‘mindspore::Status mindspore::Model::Build(const std::vector<char>&, mindspore::ModelType, const std::shared_ptr<mindspore::Context>&, const Key&, const std::vector<char>&, const std::vector<char>&)’:
/home/jenkins-slave/workspace/mslite_compile_release_x86_ascend310_opensource/mindspore/mindspore/lite/src/extendrt/cxx_api/model/model.cc:109:43: error: ‘g_build_mutex’ was not declared in this scope
   std::unique_lock<std::mutex> build_lock(g_build_mutex);
                                           ^~~~~~~~~~~~~
/home/jenkins-slave/workspace/mslite_compile_release_x86_ascend310_opensource/mindspore/mindspore/lite/src/extendrt/cxx_api/model/model.cc:111:44: error: ‘g_impl_init_lock’ was not declared in this scope
     std::unique_lock<std::mutex> impl_lock(g_impl_init_lock);
                                            ^~~~~~~~~~~~~~~~
/home/jenkins-slave/workspace/mslite_compile_release_x86_ascend310_opensource/mindspore/mindspore/lite/src/extendrt/cxx_api/model/model.cc:111:44: note: suggested alternative: ‘impl_lock’
     std::unique_lock<std::mutex> impl_lock(g_impl_init_lock);
                                            ^~~~~~~~~~~~~~~~
                                            impl_lock
/home/jenkins-slave/workspace/mslite_compile_release_x86_ascend310_opensource/mindspore/mindspore/lite/src/extendrt/cxx_api/model/model.cc: In member function ‘mindspore::Status mindspore::Model::Build(const void*, size_t, mindspore::ModelType, const std::shared_ptr<mindspore::Context>&, const Key&, const std::vector<char>&, const std::vector<char>&)’:
/home/jenkins-slave/workspace/mslite_compile_release_x86_ascend310_opensource/mindspore/mindspore/lite/src/extendrt/cxx_api/model/model.cc:170:43: error: ‘g_build_mutex’ was not declared in this scope
   std::unique_lock<std::mutex> build_lock(g_build_mutex);
                                           ^~~~~~~~~~~~~
/home/jenkins-slave/workspace/mslite_compile_release_x86_ascend310_opensource/mindspore/mindspore/lite/src/extendrt/cxx_api/model/model.cc:172:44: error: ‘g_impl_init_lock’ was not declared in this scope
     std::unique_lock<std::mutex> impl_lock(g_impl_init_lock);
                                            ^~~~~~~~~~~~~~~~
/home/jenkins-slave/workspace/mslite_compile_release_x86_ascend310_opensource/mindspore/mindspore/lite/src/extendrt/cxx_api/model/model.cc:172:44: note: suggested alternative: ‘impl_lock’
     std::unique_lock<std::mutex> impl_lock(g_impl_init_lock);
                                            ^~~~~~~~~~~~~~~~
                                            impl_lock
At global scope:
cc1plus: error: unrecognized command line option ‘-Wno-unused-private-field’ [-Werror]
cc1plus: all warnings being treated as errors
src/extendrt/cxx_api/CMakeFiles/mindspore_infer_shared_lib_obj.dir/build.make:159: recipe for target 'src/extendrt/cxx_api/CMakeFiles/mindspore_infer_shared_lib_obj.dir/model/model.cc.o' failed
make[2]: *** [src/extendrt/cxx_api/CMakeFiles/mindspore_infer_shared_lib_obj.dir/model/model.cc.o] Error 1
CMakeFiles/Makefile2:2852: recipe for target 'src/extendrt/cxx_api/CMakeFiles/mindspore_infer_shared_lib_obj.dir/all' failed
make[1]: *** [src/extendrt/cxx_api/CMakeFiles/mindspore_infer_shared_lib_obj.dir/all] Error 2
Makefile:170: recipe for target 'all' failed
make: *** [all] Error 2
+ '[' '!' -d /home/jenkins-slave/workspace/mslite_compile_release_x86_ascend310_opensource/mindspore/output ']'
+ echo '=========build runtime_encrypt_linux_x86_64_ascend310 fail!========='

Special notes for this issue/备注 (Optional / 选填)

评论 (4)

liangying22 创建了Bug-Report
liangying22 添加了
 
kind/bug
标签
liangying22 添加了
 
attr/function
标签
liangying22 添加了
 
v2.0.0.rc1
标签
liangying22 添加了
 
sig/mslite
标签
liangying22 添加协作者HidyLi
liangying22 添加协作者邹丹音
展开全部操作日志

Please assign maintainer to check this issue.
请为此issue分配处理人。
@liangying22

Please add labels (comp or sig), also you can visit https://gitee.com/mindspore/community/blob/master/sigs/dx/docs/labels.md to find more.
为了让代码尽快被审核,请您为Pull Request打上 组件(comp)或兴趣组(sig) 标签,打上标签的PR可直接推送给责任人进行审核。
更多的标签可以查看https://gitee.com/mindspore/community/blob/master/sigs/dx/docs/labels.md
以组件相关代码提交为例,如果你提交的是data组件代码,你可以这样评论:
//comp/data
当然你也可以邀请data SIG组来审核代码,可以这样写:
//sig/data
另外你还可以给这个PR标记类型,例如是bugfix或者是特性需求:
//kind/bug or //kind/feature
恭喜你,你已经学会了使用命令来打标签,接下来就在下面的评论里打上标签吧!

Appearance & Root Cause

多人修改相同代码引发编译问题,代码未冲突,最新的代码需要删除变量定义导致未定义符号的编译错误

Fix Solution

修复编译问题,移除未定义符号的使用

Fix Description & Test Suggestion

确认版本是否编译正常

Self-test Report

最新CI编译正常

Suggested regression version

代码已于2023-03-27合入,请选择2023-02-28版本

徐永飞 添加协作者徐永飞
徐永飞 负责人徐永飞 修改为liangying22
徐永飞 里程碑B-SIG-MSLite 修改为B-ComponentTest
徐永飞 添加了
 
rct/newfeature
标签
徐永飞 添加了
 
rca/codelogic
标签
徐永飞 添加了
 
ctl/testcismoke
标签
徐永飞 任务状态TODO 修改为VALIDATION

【回归版本】:2023-02-28-09-01-46_3a1f1b1c4b7e84eb46b5c21c69a89e49857aa0e2
【回归环境信息】:
【测试日志】:

adding 'mindspore_lite/lib/libmslite_converter_plugin.so'
adding 'mindspore_lite/lib/libmsplugin-ge-litert.so'
adding 'mindspore_lite/lib/libopencv_core.so.4.5'
adding 'mindspore_lite/lib/libopencv_imgcodecs.so.4.5'
adding 'mindspore_lite/lib/libopencv_imgproc.so.4.5'
adding 'mindspore_lite/lib/libruntime_convert_plugin.so'
adding 'mindspore_lite-2.0.0.dist-info/METADATA'
adding 'mindspore_lite-2.0.0.dist-info/WHEEL'
adding 'mindspore_lite-2.0.0.dist-info/top_level.txt'
adding 'mindspore_lite-2.0.0.dist-info/RECORD'
removing build/bdist.linux-x86_64/wheel
[31mJAVA_HOME is not set, so jni and jar packages will not be compiled [0m
[31mIf you want to compile the JAR package, please set . For example: export JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk-amd64 [0m
---------------- mindspore lite: build success ----------------
---------------- MindSpore: build end   ----------------
+ '[' '!' -d /home/jenkins-slave/workspace/mslite_compile_release_x86_ascend310_opensource/mindspore/output ']'
+ '[' -d /home/jenkins-slave/workspace/mslite_compile_release_x86_ascend310_opensource/mindspore/output/tmp ']'
+ echo '=========build runtime_encrypt_linux_x86_64_ascend310 succ!========='
=========build runtime_encrypt_linux_x86_64_ascend310 succ!=========

【测试回归】: 通过

liangying22 任务状态VALIDATION 修改为DONE

登录 后才可以发表评论

状态
负责人
项目
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
预计工期 (小时)
参与者(5)
6557666 hidyli 1648689999
Python
1
https://gitee.com/mindspore/mindspore.git
git@gitee.com:mindspore/mindspore.git
mindspore
mindspore
mindspore

搜索帮助