Closed
[Bug-Report|缺陷反馈]: UT编译时,使用bash tests/build_ut.sh --ut=runtime -c 会报错,提示找不到securec.h #8
wangtaoAdd on Dec 30, 2025Closed at Jan 28
Dec 30, 2025 changed custom priority from 无优先级 to 主要
Dec 30, 2025 changed custom state from 进行中 to 已确认
wangtao
Dec 30, 2025 Comments:
Dec 30, 2025 Comments:
该问题目前已定位,当前正在分析解决方案


Dec 30, 2025 Associated pull request
Jan 14 Assign wangtao43 as responsible person
wangtao
Jan 28 Comments:
Jan 28 Comments:
经确认,该问题已解决,使用bash tests/build_ut.sh --ut=runtime 可以编译成功


Jan 28 changed custom state from 已确认 to 已完成
Jan 28 Close issue
Mar 20 Added label: resolved
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"
| ^~~~~~~~~~~
Environment / 环境信息 (Mandatory / 必填)
普通linux机器,无昇腾硬件。
Steps to reproduce the issue / 重现步骤 (Mandatory / 必填)
按照readme流程操作。
安装toolkit包,设置环境变量,执行ut编译命令
Describe the expected behavior / 预期结果 (Mandatory / 必填)
无编译报错。ut运行正常
Related log / screenshot / 日志 / 截图 (Mandatory / 必填)
mmpa_api.h:82:10: fatal error: securec.h: No such file or directory
82 | #include "securec.h"
Special notes for this issue/备注 (Optional / 选填)