已关闭
[Bug-Report|缺陷反馈]: dot ophpst编译报错 #287
Sunee创建于  7月24日关闭于  7月24日
Sunee成员
7月24日 创建

Thanks for sending an issue! Please fill in the following template to help quickly solve your problem.

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

dot ophpst编译报错

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

Ascend950

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

docker镜像:
docker pull swr.cn-north-4.myhuaweicloud.com/ci_cann/openeuler24.03_x86:lv6_v1.1007

编译:
bash build.sh --pkg --jit --soc=ascend950 --cann_3rd_lib_path=/home/jenkins/opensource

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

编译pass

[2026/07/16 10:53:44.569 GMT+08:00] [2026-07-16 10:53:44] In file included from /home/jenkins/opensource/opbase/include/../pkg_inc/op_common/atvoss/util/aux1.h:19,
[2026/07/16 10:53:44.569 GMT+08:00] [2026-07-16 10:53:44] from /home/jenkins/opensource/opbase/include/../pkg_inc/op_common/atvoss/util/dag.h:17,
[2026/07/16 10:53:44.834 GMT+08:00] [2026-07-16 10:53:44] from **//math/dot/op_host/arch35/../../op_kernel/arch35/dot_dag.h:19,
[2026/07/16 10:53:44.835 GMT+08:00] [2026-07-16 10:53:44] from //math/dot/op_host/arch35/dot_tiling_arch35.cpp:18:
[2026/07/16 10:53:44.835 GMT+08:00] [2026-07-16 10:53:44] /home/jenkins/opensource/opbase/include/../pkg_inc/op_common/atvoss/util/elems.h:28:22: error: ‘size_t’ does not name a type
[2026/07/16 10:53:44.835 GMT+08:00] [2026-07-16 10:53:44] 28 | constexpr static size_t Size = sizeof...(Ts);
[2026/07/16 10:53:44.835 GMT+08:00] [2026-07-16 10:53:44] | ^~~~~~
[2026/07/16 10:53:44.835 GMT+08:00] [2026-07-16 10:53:44] /home/jenkins/opensource/opbase/include/../pkg_inc/op_common/atvoss/util/elems.h:1:1: note: ‘size_t’ is defined in header ‘’; did you forget to ‘#include ’?
[2026/07/16 10:53:44.835 GMT+08:00] [2026-07-16 10:53:44] +++ |+#include
[2026/07/16 10:53:44.835 GMT+08:00] [2026-07-16 10:53:44] 1 | /

[2026/07/16 10:53:44.835 GMT+08:00] [2026-07-16 10:53:44] /home/jenkins/opensource/opbase/include/../pkg_inc/op_common/atvoss/util/elems.h: In static member function ‘static constexpr bool Ops::Base::Elems::IsExist()’:
[2026/07/16 10:53:44.835 GMT+08:00] [2026-07-16 10:53:44] /home/jenkins/opensource/opbase/include/../pkg_inc/op_common/atvoss/util/elems.h:45:31: error: ‘Size’ was not declared in this scope
[2026/07/16 10:53:44.835 GMT+08:00] [2026-07-16 10:53:44] 45 | if constexpr (start < Size) {
[2026/07/16 10:53:44.835 GMT+08:00] [2026-07-16 10:53:44] | ^~~~
[2026/07/16 10:53:44.835 GMT+08:00] [2026-07-16 10:53:44] /home/jenkins/opensource/opbase/include/../pkg_inc/op_common/atvoss/util/elems.h: In static member function ‘static constexpr int Ops::Base::Elems::GetIndex()’:
[2026/07/16 10:53:44.835 GMT+08:00] [2026-07-16 10:53:44] /home/jenkins/opensource/opbase/include/../pkg_inc/op_common/atvoss/util/elems.h:59:42: error: ‘Size’ was not declared in this scope
[2026/07/16 10:53:44.835 GMT+08:00] [2026-07-16 10:53:44] 59 | } else if constexpr (start + 1 < Size) {
[2026/07/16 10:53:44.835 GMT+08:00] [2026-07-16 10:53:44] | ^~~~
[2026/07/16 10:53:44.835 GMT+08:00] [2026-07-16 10:53:44] In file included from /home/jenkins/opensource/opbase/include/../pkg_inc/op_common/atvoss/util/aux1.h:21:
[2026/07/16 10:53:44.835 GMT+08:00] [2026-07-16 10:53:44] /home/jenkins/opensource/opbase/include/../pkg_inc/op_common/atvoss/util/placeholder.h: At global scope:
[2026/07/16 10:53:44.835 GMT+08:00] [2026-07-16 10:53:44] /home/jenkins/opensource/opbase/include/../pkg_inc/op_common/atvoss/util/placeholder.h:278:53: error: ‘NULL’ was not declared in this scope
[2026/07/16 10:53:44.835 GMT+08:00] [2026-07-16 10:53:44] 278 | constexpr static bool Value = sizeof(has(NULL)) == sizeof(uint32_t);
[2026/07/16 10:53:44.835 GMT+08:00] [2026-07-16 10:53:44] | ^~~~
[2026/07/16 10:53:44.835 GMT+08:00] [2026-07-16 10:53:44] /home/jenkins/opensource/opbase/include/../pkg_inc/op_common/atvoss/util/placeholder.h:281:1: note: in expansion of macro ‘CHECK_TYPE’
[2026/07/16 10:53:44.835 GMT+08:00] [2026-07-16 10:53:44] 281 | CHECK_TYPE(IsVar, IsVarValue);
[2026/07/16 10:53:44.835 GMT+08:00] [2026-07-16 10:53:44] | ^~~~~~~~~~
[2026/07/16 10:53:44.835 GMT+08:00] [2026-07-16 10:53:44] /home/jenkins/opensource/opbase/include/../pkg_inc/op_common/atvoss/util/placeholder.h:1:1: note: ‘NULL’ is defined in header ‘’; did you forget to ‘#include ’?
[2026/07/16 10:53:44.835 GMT+08:00] [2026-07-16 10:53:44] +++ |+#include
[2026/07/16 10:53:44.835 GMT+08:00] [2026-07-16 10:53:44] 1 | /

[2026/07/16 10:53:44.835 GMT+08:00] [2026-07-16 10:53:44] /home/jenkins/opensource/opbase/include/../pkg_inc/op_common/atvoss/util/placeholder.h:278:53: error: ‘NULL’ was not declared in this scope
[2026/07/16 10:53:44.835 GMT+08:00] [2026-07-16 10:53:44] 278 | constexpr static bool Value = sizeof(has(NULL)) == sizeof(uint32_t);
[2026/07/16 10:53:44.835 GMT+08:00] [2026-07-16 10:53:44] | ^~~~
[2026/07/16 10:53:44.835 GMT+08:00] [2026-07-16 10:53:44] /home/jenkins/opensource/opbase/include/../pkg_inc/op_common/atvoss/util/placeholder.h:282:1: note: in expansion of macro ‘CHECK_TYPE’
[2026/07/16 10:53:44.835 GMT+08:00] [2026-07-16 10:53:44] 282 | CHECK_TYPE(IsConstValue, IsConstValue_);
[2026/07/16 10:53:44.835 GMT+08:00] [2026-07-16 10:53:44] | ^~~~~~~~~~

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

likedislike
SSunee成员
7月24日 修改标题为 “[Bug-Report|缺陷反馈]: dot ophpst编译报错”,原标题为“[Bug-Report|缺陷反馈]: dot ophpst编译报错修改”
CANN-robotCANN-robot成员
7月24日 关闭了 issue
CANN-robotCANN-robot成员
7月24日 添加了label:resolved