登录
注册
开源
企业版
高校版
搜索
帮助中心
使用条款
关于我们
开源
企业版
高校版
私有云
模力方舟
AI 队友
登录
注册
6 月10 日(下周三晚 19:00)直播预告:龙虾还活着吗?来看 PocketClaw 上市两个月后对 AI 硬件的真实复盘,点击预约,开播有提醒~
代码拉取完成,页面将自动刷新
开源项目
>
人工智能
>
AI-人工智能
&&
捐赠
捐赠前请先登录
取消
前往登录
扫描微信二维码支付
取消
支付完成
支付提示
将跳转至支付宝完成支付
确定
取消
Watch
不关注
关注所有动态
仅关注版本发行动态
关注但不提醒动态
224
Star
1.3K
Fork
1.1K
Ascend
/
samples
代码
Issues
41
Pull Requests
98
Wiki
统计
流水线
服务
JavaDoc
PHPDoc
质量分析
Jenkins for Gitee
腾讯云托管
腾讯云 Serverless
悬镜安全
阿里云 SAE
Codeblitz
SBOM
开发画像分析
我知道了,不再自动展开
更新失败,请稍后重试!
移除标识
内容风险标识
本任务被
标识为内容中包含有代码安全 Bug 、隐私泄露等敏感信息,仓库外成员不可访问
HelloWorldSample编译失败
DONE
#I9B3B5
Bug-Report
nullnull
创建于
2024-03-24 15:46
一、问题现象(附报错日志上下文): 编译AscendC的HelloWorldSample报错。 日志: ``` -- The C compiler identification is GNU 9.2.1 -- The CXX compiler identification is GNU 9.2.1 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /usr/bin/cc - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /usr/bin/c++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Configuring done (1.2s) -- Generating done (0.4s) -- Build files have been written to: /tmp/debug/ascendc/HelloWorldSample/build [ 3%] Creating directories for 'kernels_preprocess' [ 7%] No download step for 'kernels_preprocess' [ 10%] No update step for 'kernels_preprocess' [ 14%] No patch step for 'kernels_preprocess' [ 17%] Performing configure step for 'kernels_preprocess' -- The C compiler identification is GNU 9.2.1 -- The CXX compiler identification is GNU 9.2.1 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /usr/bin/cc - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /usr/bin/c++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Configuring done (0.8s) -- Generating done (0.2s) -- Build files have been written to: /tmp/debug/ascendc/HelloWorldSample/build/kernels_preprocess-prefix/src/kernels_preprocess-build [ 21%] Performing build step for 'kernels_preprocess' [100%] Building CXX object CMakeFiles/aic_obj.dir/tmp/debug/ascendc/HelloWorldSample/hello_world.cpp.o [100%] Building CXX object CMakeFiles/aiv_obj.dir/tmp/debug/ascendc/HelloWorldSample/hello_world.cpp.o [100%] Building CXX object CMakeFiles/preprocess_obj.dir/tmp/debug/ascendc/HelloWorldSample/hello_world.cpp.o [100%] Built target preprocess_obj [100%] Built target aic_obj [100%] Built target aiv_obj Traceback (most recent call last): File "extract_host_stub.py", line 1601, in <module> if not main_with_except(sys.argv[1:]): File "extract_host_stub.py", line 1594, in main_with_except return main(argv) File "extract_host_stub.py", line 1535, in main func_sign_groups = list(parse_func_signature_by_filepaths(args.filepaths)) File "extract_host_stub.py", line 400, in parse_func_signature_by_filepaths func_signs = list(parse_func_signature_by_source(data)) File "extract_host_stub.py", line 385, in parse_func_signature_by_source yield parse_func_signature(func_sign_str) File "extract_host_stub.py", line 373, in parse_func_signature return_type, func_name, func_params = parse_func_signature_parts(func_sign_str) File "extract_host_stub.py", line 330, in parse_func_signature_parts raise FuncParamsNotFound() __main__.FuncParamsNotFound gmake[5]: *** [CMakeFiles/_host_cpp] Error 1 gmake[4]: *** [CMakeFiles/_host_cpp.dir/all] Error 2 gmake[3]: *** [all] Error 2 gmake[2]: *** [kernels_preprocess-prefix/src/kernels_preprocess-stamp/kernels_preprocess-build] Error 2 gmake[1]: *** [CMakeFiles/kernels_preprocess.dir/all] Error 2 gmake: *** [all] Error 2 ``` 二、版本: **硬件** 卡型号:`Ascend910B2C`。 **软件** -- CANN 版本: CANN 7.1.T11.0.B226:8.0.T2 --Tensorflow/Pytorch/MindSpore 版本: pytorch 2.1.0 --Python 版本: Python 3.8.6 --MindStudio版本: 未安装 --操作系统版本: Centos7 --cmake版本: 3.28.3 --驱动版本: 23.0.2.1 --gcc版本: 9.2.1 --glibc版本: 2.30 三、测试步骤: ```bash git clone https://gitee.com/ascend/samples cd samples/operator/HelloWorldSample 修改CMakeLists.txt,设置真实的`ASCEND_CANN_PACKAGE_PATH`,设`SOC_VERSION`为`Ascend910B2C`。 bash run.sh ``` 四、日志信息: xxxx 请根据自己的运行环境参考以下方式搜集日志信息,如果涉及到算子开发相关的问题,建议也提供UT/ST测试和单算子集成测试相关的日志。 日志提供方式: 将日志打包后作为附件上传。若日志大小超出附件限制,则可上传至外部网盘后提供链接。 获取方法请参考wiki: https://gitee.com/ascend/modelzoo/wikis/%E5%A6%82%E4%BD%95%E8%8E%B7%E5%8F%96%E6%97%A5%E5%BF%97%E5%92%8C%E8%AE%A1%E7%AE%97%E5%9B%BE?sort_id=4097825
一、问题现象(附报错日志上下文): 编译AscendC的HelloWorldSample报错。 日志: ``` -- The C compiler identification is GNU 9.2.1 -- The CXX compiler identification is GNU 9.2.1 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /usr/bin/cc - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /usr/bin/c++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Configuring done (1.2s) -- Generating done (0.4s) -- Build files have been written to: /tmp/debug/ascendc/HelloWorldSample/build [ 3%] Creating directories for 'kernels_preprocess' [ 7%] No download step for 'kernels_preprocess' [ 10%] No update step for 'kernels_preprocess' [ 14%] No patch step for 'kernels_preprocess' [ 17%] Performing configure step for 'kernels_preprocess' -- The C compiler identification is GNU 9.2.1 -- The CXX compiler identification is GNU 9.2.1 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /usr/bin/cc - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /usr/bin/c++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Configuring done (0.8s) -- Generating done (0.2s) -- Build files have been written to: /tmp/debug/ascendc/HelloWorldSample/build/kernels_preprocess-prefix/src/kernels_preprocess-build [ 21%] Performing build step for 'kernels_preprocess' [100%] Building CXX object CMakeFiles/aic_obj.dir/tmp/debug/ascendc/HelloWorldSample/hello_world.cpp.o [100%] Building CXX object CMakeFiles/aiv_obj.dir/tmp/debug/ascendc/HelloWorldSample/hello_world.cpp.o [100%] Building CXX object CMakeFiles/preprocess_obj.dir/tmp/debug/ascendc/HelloWorldSample/hello_world.cpp.o [100%] Built target preprocess_obj [100%] Built target aic_obj [100%] Built target aiv_obj Traceback (most recent call last): File "extract_host_stub.py", line 1601, in <module> if not main_with_except(sys.argv[1:]): File "extract_host_stub.py", line 1594, in main_with_except return main(argv) File "extract_host_stub.py", line 1535, in main func_sign_groups = list(parse_func_signature_by_filepaths(args.filepaths)) File "extract_host_stub.py", line 400, in parse_func_signature_by_filepaths func_signs = list(parse_func_signature_by_source(data)) File "extract_host_stub.py", line 385, in parse_func_signature_by_source yield parse_func_signature(func_sign_str) File "extract_host_stub.py", line 373, in parse_func_signature return_type, func_name, func_params = parse_func_signature_parts(func_sign_str) File "extract_host_stub.py", line 330, in parse_func_signature_parts raise FuncParamsNotFound() __main__.FuncParamsNotFound gmake[5]: *** [CMakeFiles/_host_cpp] Error 1 gmake[4]: *** [CMakeFiles/_host_cpp.dir/all] Error 2 gmake[3]: *** [all] Error 2 gmake[2]: *** [kernels_preprocess-prefix/src/kernels_preprocess-stamp/kernels_preprocess-build] Error 2 gmake[1]: *** [CMakeFiles/kernels_preprocess.dir/all] Error 2 gmake: *** [all] Error 2 ``` 二、版本: **硬件** 卡型号:`Ascend910B2C`。 **软件** -- CANN 版本: CANN 7.1.T11.0.B226:8.0.T2 --Tensorflow/Pytorch/MindSpore 版本: pytorch 2.1.0 --Python 版本: Python 3.8.6 --MindStudio版本: 未安装 --操作系统版本: Centos7 --cmake版本: 3.28.3 --驱动版本: 23.0.2.1 --gcc版本: 9.2.1 --glibc版本: 2.30 三、测试步骤: ```bash git clone https://gitee.com/ascend/samples cd samples/operator/HelloWorldSample 修改CMakeLists.txt,设置真实的`ASCEND_CANN_PACKAGE_PATH`,设`SOC_VERSION`为`Ascend910B2C`。 bash run.sh ``` 四、日志信息: xxxx 请根据自己的运行环境参考以下方式搜集日志信息,如果涉及到算子开发相关的问题,建议也提供UT/ST测试和单算子集成测试相关的日志。 日志提供方式: 将日志打包后作为附件上传。若日志大小超出附件限制,则可上传至外部网盘后提供链接。 获取方法请参考wiki: https://gitee.com/ascend/modelzoo/wikis/%E5%A6%82%E4%BD%95%E8%8E%B7%E5%8F%96%E6%97%A5%E5%BF%97%E5%92%8C%E8%AE%A1%E7%AE%97%E5%9B%BE?sort_id=4097825
评论 (
2
)
登录
后才可以发表评论
状态
DONE
TODO
Analysing
ACCEPTED
WIP
Feedback
TEST
DONE
REJECTED
负责人
未设置
李木
youmoxiao
负责人
协作者
+负责人
+协作者
标签
未设置
项目
未立项任务
未立项任务
里程碑
未关联里程碑
未关联里程碑
Pull Requests
未关联
未关联
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
未关联
分支 (
-
)
标签 (
-
)
开始日期   -   截止日期
-
置顶选项
不置顶
置顶等级:高
置顶等级:中
置顶等级:低
优先级
不指定
严重
主要
次要
不重要
预计工期
(小时)
参与者(3)
1
https://gitee.com/ascend/samples.git
git@gitee.com:ascend/samples.git
ascend
samples
samples
点此查找更多帮助
搜索帮助
Git 命令在线学习
如何在 Gitee 导入 GitHub 仓库
Git 仓库基础操作
企业版和社区版功能对比
SSH 公钥设置
如何处理代码冲突
仓库体积过大,如何减小?
如何找回被删除的仓库数据
Gitee 产品配额说明
GitHub仓库快速导入Gitee及同步更新
什么是 Release(发行版)
将 PHP 项目自动发布到 packagist.org
仓库举报
回到顶部
登录提示
该操作需登录 Gitee 帐号,请先登录后再操作。
立即登录
没有帐号,去注册