Closed
[Bug-Report|缺陷反馈]: experimental存在编译问题 #246
zhanw_codingAdd on  Dec 12, 2025Closed at  Dec 12, 2025
zhanw_coding
zhanw_codingCollaborators
Dec 12, 2025 Create

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

一、问题描述 (必填)

[2025-12-12 10:03:38] -- Detected architecture: x86_64/usr/bin/ld: experimental/math/ceil_v2/op_host/CMakeFiles/ophost_math_tiling_obj.dir/__/__/pow/op_host/pow_tiling.cpp.o: in function `optiling::GetWorkspaceSize(gert::TilingContext*)':
pow_tiling.cpp:(.text+0xf0): multiple definition of `optiling::GetWorkspaceSize(gert::TilingContext*)'; experimental/math/ceil_v2/op_host/CMakeFiles/ophost_math_tiling_obj.dir/ceil_v2_tiling.cpp.o:ceil_v2_tiling.cpp:(.text+0x2c0): first defined here
/usr/bin/ld: experimental/math/ceil_v2/op_host/CMakeFiles/ophost_math_tiling_obj.dir/__/__/select_v2/op_host/select_v2_tiling.cpp.o: in function `optiling::GetWorkspaceSize(gert::TilingContext*)':
select_v2_tiling.cpp:(.text+0x370): multiple definition of `optiling::GetWorkspaceSize(gert::TilingContext*)'; experimental/math/ceil_v2/op_host/CMakeFiles/ophost_math_tiling_obj.dir/ceil_v2_tiling.cpp.o:ceil_v2_tiling.cpp:(.text+0x2c0): first defined here
/usr/bin/ld: experimental/math/ceil_v2/op_host/CMakeFiles/ophost_math_tiling_obj.dir/__/__/tan_v2/op_host/tan_v2_tiling.cpp.o: in function `optiling::GetWorkspaceSize(gert::TilingContext*)':
tan_v2_tiling.cpp:(.text+0x2c0): multiple definition of `optiling::GetWorkspaceSize(gert::TilingContext*)'; experimental/math/ceil_v2/op_host/CMakeFiles/ophost_math_tiling_obj.dir/ceil_v2_tiling.cpp.o:ceil_v2_tiling.cpp:(.text+0x2c0): first defined here
/usr/bin/ld: experimental/math/ceil_v2/op_host/CMakeFiles/ophost_math_tiling_obj.dir/__/__/tan_v2/op_host/tan_v2_tiling.cpp.o: in function `optiling::GetShapeAttrsInfo(gert::TilingContext*, long&, ge::DataType&)':
tan_v2_tiling.cpp:(.text+0x450): multiple definition of `optiling::GetShapeAttrsInfo(gert::TilingContext*, long&, ge::DataType&)'; experimental/math/ceil_v2/op_host/CMakeFiles/ophost_math_tiling_obj.dir/ceil_v2_tiling.cpp.o:ceil_v2_tiling.cpp:(.text+0x3d0): first defined here
collect2: error: ld returned 1 exit status
gmake[3]: *** [CMakeFiles/ophost_math.dir/build.make:110: libophost_math.so] Error 1
gmake[2]: *** [CMakeFiles/Makefile2:1927: CMakeFiles/ophost_math.dir/all] Error 2
gmake[1]: *** [CMakeFiles/Makefile2:1934: CMakeFiles/ophost_math.dir/rule] Error 2
gmake: *** [Makefile:865: ophost_math] Error 2

二、环境信息 (可选)

三、重现步骤 (可选)

sh build.sh --pkg --soc=ascend910b --experimental

四、预期结果 (可选)

编译通过,出包成功

💡 备注(选填)

likedislike
zhanw_coding
zhanw_codingCollaborators
Dec 12, 2025 Comments:

/assign

likedislike
CANN-robotCANN-robotCollaborators
Dec 12, 2025 Assign zhanw_coding as responsible person
zhanw_codingzhanw_codingCollaborators
Dec 12, 2025 Associated pull request
CANN-robotCANN-robotCollaborators
Dec 12, 2025 Close issue
CANN-robotCANN-robotCollaborators
Mar 20 Added label: resolved