已合并
update: dlog头文件路径变更,更新文件 Finddlog.cmake #83
fujun19创建于 8月19日
update: dlog头文件路径变更,更新文件 Finddlog.cmake #83
已合并
fujun19创建于 8月19日
fujun19
8月19日

描述

本次变更适配 dlog 头文件目录调整,更新 cmake/modules/Finddlog.cmake 中 DLOG_HEAD_SEARCH_PATHS 的 CI 编译搜索路径。

具体调整:

  • 将 CI 场景下的 dlog 头文件搜索路径从 ${TOP_DIR}/abl/slog/inc/toolchain 更新为 ${TOP_DIR}/runtime/src/dfx/log/inc/toolchain。
  • 保留 Ascend 安装目录下 ${ASCEND_DIR}/${SYSTEM_PREFIX}/include/toolchain 和 ${ASCEND_DIR}/pkg_inc/base 的查找路径,兼容现有安装包结构。

该调整用于匹配 dlog 头文件迁移后的目录结构,避免 ops-ras 在 CI 编译时仍依赖旧的 abl/slog 路径。

关联的Issue

无

测试

已验证构建出包正常,更新后的 dlog 头文件搜索路径可满足编译查找。

文档更新

无

类型标签

likedislike
Pull Request已成功合入, 合并人@CANN-robot
(感谢 fujun19 的贡献)
Ffujun19
8月19日 创建了 pull request,commit f1e07e84
atomgit-bot
atomgit-bot
8月19日 评论:

变更摘要

本 PR 为构建配置更新,适配 dlog 头文件目录迁移,仅修改 cmake/modules/Finddlog.cmake 中 DLOG_HEAD_SEARCH_PATHS 的 CI 编译搜索路径:将 CI 场景下的 dlog 头文件搜索路径由旧的 ${TOP_DIR}/abl/slog/inc/toolchain 更新为 ${TOP_DIR}/runtime/src/dfx/log/inc/toolchain,以匹配迁移后的目录结构,避免 ops-ras 在 CI 编译时仍依赖旧路径。

主要改动

  • 更新 CI 编译搜索路径: 在 DLOG_HEAD_SEARCH_PATHS 中,将 ${TOP_DIR}/abl/slog/inc/toolchain 替换为 ${TOP_DIR}/runtime/src/dfx/log/inc/toolchain,使 CI 编译从迁移后的 dlog 头文件目录查找。
  • 保留 Ascend 安装目录查找路径: 继续保留 ${ASCEND_DIR}/${SYSTEM_PREFIX}/include/toolchain 与 ${ASCEND_DIR}/pkg_inc/base 两个搜索路径,兼容现有安装包目录结构,未做改动。
likedislike
不准确?
CANN-robot
CANN-robot成员
8月19日 评论:

Hi @fujun19, welcome to submitting your first PR to ops-ras!

PR Merge Steps

1. CLA Signing

If the current PR label includes cann-cla/yes, it means you have signed the CLA and can proceed to the next step. If the label includes cann-cla/no, please sign the CLA first. If you have any questions, please refer to the FAQ.

2. CI Check

Please comment /compile to trigger the CI pipeline check. If the CI run is successful, the PR will be tagged with ci-pipeline-passed and you can proceed to the next step. If the CI run fails, the PR will be tagged with ci-pipeline-failed, please check the CI logs to fix the issues in the PR. If you have any questions, please refer to the FAQ.

3. Code Review

After CI passes, please refer to the PR Approval Progress and proactively @ the committers in the table to review the code. After approval, committers will comment /lgtm and /approve. Once the lgtm and approved labels are successfully added, the PR will be merged automatically.

likedislike
atomgit-bot
atomgit-bot
8月19日 评论:

代码审查

✅ 未发现问题

likedislike
不准确?
CANN-robotCANN-robot成员
8月19日 添加了label:cann-cla/yes
CANN-robot
CANN-robot成员
8月19日 评论:

Thanks for your pull-request.
The full list of commands accepted by me can be found at here.
You can get sig-info at here.
For more, you also can visit HICANN.


PR Approval Progress

✅ Congratulations! All modules have met the lgtm and approve requirements.

Module Approval Details

module lgtm status approve status
repo-cann/ops-ras ✅ 於欣洁, 周奇龙 (2/2) ✅ 於欣洁, 周奇龙 (2/1)

💡 Tip:

  • Committer can comment /approve or /lgtm
  • Commenting /approve implies both code review (lgtm) and intent to merge (approve)

CLA Signature Pass

fujun19, thanks for your pull request. All authors of the commits have signed the CLA. 👍

likedislike
fujun19
8月19日 评论:

compile

likedislike
Ffujun19
8月19日 修改了pull request 的描述
CANN-robotCANN-robot成员
8月19日 添加了label:ci-pipeline-running
CANN-robot
CANN-robot成员
8月19日 评论:

流水线任务触发成功
任务链接 [3160fecf045141a087c3ea5eb46d6b8f][流水线指导]

任务名称状态日志下载链接
PreSmoke_ATK_Test_A2 ✅ SUCCESS >>>>>

[2026-08-19 11:22:48]    CI执行结束

likedislike
CANN-robot
CANN-robot成员
8月19日 评论:

流水线任务触发成功
任务链接 [1532c2bce1ec471ebb1d93b6ac085be4][流水线指导]

任务名称状态日志下载链接
Compile_Ascend_X86 ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_X86_mobile_station ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_ARM ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_single ✅ SUCCESS >>>>> >>>>>
pre_comment ✅ SUCCESS >>>>>
Compile_Ascend_X86_ubuntu24 ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_X86_mobile_station_ubuntu24 ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_ARM_ubuntu24 ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_single_ubuntu24 ✅ SUCCESS >>>>> >>>>>
UT_Test_ophost ✅ SUCCESS
UT_Test_opapi ✅ SUCCESS
API_Check ✅ SUCCESS >>>>>

[2026-08-19 11:24:49]    CI执行结束

likedislike
CANN-robot
CANN-robot成员
8月19日 评论:

流水线任务触发成功
任务链接 [eddfff3e42d448d794619c5d3e38ed9b][流水线指导]

任务名称状态日志下载链接
codecheck ✅ SUCCESS >>>>>
SCA ✅ SUCCESS >>>>>
antipoison ✅ SUCCESS >>>>>
codecheck_Pr ✅ SUCCESS
codecheck_codestyle ✅ SUCCESS >>>>>
codecheck_precommit ✅ SUCCESS >>>>>

[2026-08-19 11:24:29]    CI执行结束

likedislike
fujun19
8月19日 评论:

@zhou-qilong 适配ops-ras仓dlog头文件cmake路径,麻烦帮忙加分

likedislike
CANN-robotCANN-robot成员
8月19日 添加了label:api-check-pass
CANN-robotCANN-robot成员
8月19日 删除了label:ci-pipeline-running
CANN-robotCANN-robot成员
8月19日 添加了label:ci-pipeline-passed
於欣洁成员
8月19日 评论:

/lgtm
/approve

likedislike
CANN-robotCANN-robot成员
8月19日 添加了label:approved
fujun19
8月19日 评论:

@llimwang 适配ops-ras仓dlog头文件cmake路径,麻烦帮忙加分

likedislike
sunday成员
8月19日 评论:

/lgtm
/approve

likedislike
CANN-robotCANN-robot成员
8月19日 添加了label:lgtm
CANN-robotCANN-robot成员
8月19日 合入了pull request