Closed
[Bug-Report|缺陷反馈]: UT编译时,使用bash tests/build_ut.sh --ut=runtime -c 会报错,提示找不到securec.h #8
wangtaoAdd on  Dec 30, 2025Closed at  Jan 28
wangtao
wangtaoCollaborators
Dec 30, 2025 Create

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

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

按照readme流程操作。
bash tests/build_ut.sh --ut=runtime(runtime替换为其他组件也可能有错误) -c
该命令执行后,
mmpa_api.h 会提示找不到securec.h
mmpa_api.h:82:10: fatal error: securec.h: No such file or directory
82 | #include "securec.h"
| ^~~~~~~~~~~

 bash  tests/build_ut.sh --ut=runtime --target=存在的target -c 无问题。

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

普通linux机器,无昇腾硬件。

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

按照readme流程操作。
安装toolkit包,设置环境变量,执行ut编译命令

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

无编译报错。ut运行正常

mmpa_api.h:82:10: fatal error: securec.h: No such file or directory
82 | #include "securec.h"

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

likedislike
wangtaowangtaoCollaborators
Dec 30, 2025 changed custom priority from 无优先级 to 主要
wangtaowangtaoCollaborators
Dec 30, 2025 changed custom state from 进行中 to 已确认
wangtao
wangtaoCollaborators
Dec 30, 2025 Comments:

该问题目前已定位,当前正在分析解决方案

likedislike
CHEN_HanruiCHEN_HanruiCollaborators
Dec 30, 2025 Associated pull request
wangtaowangtaoCollaborators
Jan 14 Assign wangtao43 as responsible person
wangtao
wangtaoCollaborators
Jan 28 Comments:

经确认,该问题已解决,使用bash tests/build_ut.sh --ut=runtime 可以编译成功

likedislike
wangtaowangtaoCollaborators
Jan 28 changed custom state from 已确认 to 已完成
wangtaowangtaoCollaborators
Jan 28 Close issue
CANN-robotCANN-robotCollaborators
Mar 20 Added label: resolved