已关闭
Include "graph/error_codes.h" instead.’ 引起编译日志大量打印 #518
chenqi317创建于  8月13日关闭于  10 天前
chenqi317
8月13日 创建

[2026-08-13 20:26:52] /home/developer/Ascend/cann-9.2.0/include/external/ge_common/ge_error_codes.h:15:122: note: ‘#pragma message: Warning: ge_error_codes.h is deprecated and will be removed after 2027-06. Include "graph/error_codes.h" instead.’
[2026-08-13 20:26:52] 15 | "Warning: ge_error_codes.h is deprecated and will be removed after 2027-06. Include "graph/error_codes.h" instead.")

编译日志里 出现大量告警
建议关键组件 先整改完成后 再上告警。或者如下组件请尽快整改

[2026-08-13 20:26:52] In file included from /home/developer/Ascend/cann-9.2.0/include/external/ge_common/api_error_codes.h:16,
[2026-08-13 20:26:52] from /home/developer/Ascend/cann-9.2.0/include/exe_graph/runtime/continuous_vector.h:20,
[2026-08-13 20:26:52] from /home/developer/Ascend/cann-9.2.0/include/exe_graph/runtime/tiling_context.h:15,

[2026-08-13 20:26:52] In file included from /home/developer/Ascend/cann-9.2.0/include/external/ge_common/api_error_codes.h:16,
[2026-08-13 20:26:52] from /home/developer/Ascend/cann-9.2.0/include/exe_graph/runtime/continuous_vector.h:20,
[2026-08-13 20:26:52] from /home/developer/Ascend/cann-9.2.0/include/exe_graph/runtime/runtime_attrs.h:16,
[2026-08-13 20:26:52] from /home/developer/Ascend/cann-9.2.0/include/exe_graph/runtime/infer_shape_context.h:16,

这些文件中带有error 关键字 影响构建问题定位

likedislike
Sspring_yb成员
8月14日 将 lidaoming1 设为负责人
lidaoming1成员
8月14日 评论:

对外头文件整改,过了一年的兼容性周期之后会将文件删除,因兼容性问题,continuous_vector.h 和tiling_context.h 的头文件include 暂不能修改

likedislike
chenqi317
8月19日 评论:

这个会在算子仓编译时 触发大量打屏,严重影响用户体验。 每个算子头文件都会包含, 没包含一次,触发一次打屏。 大量的error 关键字打屏。
已有多人反馈影响体验

likedislike
丛吉钰
丛吉钰
8月25日 评论:

请尽快整改ge_error_codes.h,当前nn仓内当构建报错时搜索error会出现大量的非报错打屏,不利于问题定位

likedislike
lidaoming1成员
23 天前 评论:

对外头文件整改有一年的兼容性周期,兼容性周期结束之后将会下掉老接口,相关依赖组件可以考虑在单个target编译的target_compile_options函数里增加-Wno-deprecated-declarations选项忽略废弃告警。

likedislike
Llidaoming1成员
22 天前 将 jikai-tyler 设为负责人
Llidaoming1成员
22 天前 移除了负责人 lidaoming1
夏夏国正成员
11 天前 添加了label:wait-feedback
夏夏国正成员
11 天前 issue状态由 待办的 改变为 已确认
CANN-robot
CANN-robot成员
11 天前 评论:

您好,为了更准确地定位和解决问题,我们需要您提供上述提到的相关信息。如果 14 天内没有进一步更新,我们将暂时关闭此 Issue。感谢您的理解与配合。

likedislike
夏夏国正成员
10 天前 issue状态由 已确认 改变为 已完成
夏夏国正成员
10 天前 关闭了 issue