Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Compatibility Issue with Recent Boost Versions

未关闭 适合新手
#206 2 条评论 2 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
68/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
冷清
技术栈
cmake, cpp
领域
testing-qa

调研方向

从 utils/test_harness/include/test_harness/../../tools/include/test_harness_debug.hpp 开始,检查 Level Zero 测试工具使用的 Boost.Process 导入。使用较新的 Boost 版本构建 Level Zero 测试,并确认使用 v1 process library 引用时编译成功。

由索引模型根据 Issue 内容生成。

描述

The Level Zero tests currently fail to compile with recent versions of Boost due to changes in the Boost.Process library. Boost has made the v2 process the default in its latest versions.

The Level Zero test build configuration specifies only a minimum supported Boost version (1.65) but does not specify a maximum supported version.
Some Linux distributions, such as Arch Linux, use Boost with the v2 process by default, leading to compilation failures with errors like:

[ 5%] Building CXX object utils/test_harness/CMakeFiles/test_harness.dir/src/test_harness_cmdlist.cpp.o In file included from /root/level-zero-tests/utils/test_harness/include/test_harness/test_harness.hpp:30, from /root/level-zero-tests/utils/test_harness/src/test_harness_cmdlist.cpp:9: /root/level-zero-tests/utils/test_harness/include/test_harness/../../tools/include/test_harness_debug.hpp:25:13: error: ‘unordered_map’ in namespace ‘std’ does not name a template type 25 | extern std::unordered_map<zet_debug_session_handle_t, bool> | ^~~~~~~~~~~~~ /root/level-zero-tests/utils/test_harness/include/test_harness/../../tools/include/test_harness_debug.hpp:18:1: note: ‘std::unordered_map’ is defined in header ‘<unordered_map>’; this is probably fixable by adding ‘#include <unordered_map>’ 17 | #include "test_harness/zet_intel_gpu_debug.h" +++ |+#include <unordered_map> 18 | /root/level-zero-tests/utils/test_harness/include/test_harness/../../tools/include/test_harness_debug.hpp:72:46: error: ‘boost::process::child’ has not been declared 72 | boost::process::child &debug_helper); | ^~~~~ make[2]: *** [utils/test_harness/CMakeFiles/test_harness.dir/build.make:107: utils/test_harness/CMakeFiles/test_harness.dir/src/test_harness_cmdlist.cpp.o] Error 1 make[1]: *** [CMakeFiles/Makefile2:2744: utils/test_harness/CMakeFiles/test_harness.dir/all] Error 2

The previous version of the Boost.Process library is still available under the "v1" folder. To resolve the compilation issue, import statements in the Level Zero tests need to be updated to reference the v1 process library.

Please update the Level Zero tests to specify the correct Boost.Process version in the import statements.

主要语言
C++
星标
64
派生
69
PR 合并指标
30 天内没有已合并 PR

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

oneapi-src/level-zero-tests 的其他 Issue

查看 oneapi-src/level-zero-tests 的全部 Issue

相似的 Issue

更多 C++ Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。