libc-test: ctest does not run for target_os = "qnx" (QNX 8)
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 78/100
- Issue 类型
- 缺陷
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- rust
调研方向
从 libc-test/build/target.rs 开始,检查 Target::nto() 以及 test_neutrino 中现有的 QNX 分支。然后查看 open_wmemstream 在生成的 C 测试中的引入位置,以及平台特定的跳过项是如何处理的。完成标准是 QNX 8 target 成功运行 ctest 构建,并且报告中的测试套件通过。
由索引模型根据 Issue 内容生成。
描述
Target triples: x86_64-pc-qnx, aarch64-unknown-qnx (QNX SDP 8.0)
Problem: libc-test does not run for target_os = "qnx". Target::nto() in libc-test/build/target.rs only matches os == "nto", so the build script panics before reaching test_neutrino, even though test_neutrino already has a "qnx" branch.
Steps to reproduce (QNX SDP 8.0 environment sourced, a QNX 8 target reachable through a cargo runner):
cd libc-test
LIBC_CI_ZBUILD_STD=1 CC_x86_64_pc_qnx=qcc CFLAGS_x86_64_pc_qnx=-Vgcc_ntox86_64 \
cargo +nightly test --target x86_64-pc-qnx -Zbuild-std=std,panic_abort --test ctest
Log:
thread 'main' panicked at libc-test/build/main.rs:93:14:
unknown target Target { triple: "x86_64-pc-qnx", ... os: "qnx", ... }
Second problem: with Target::nto() extended to "qnx", the generated C test fails to compile because open_wmemstream is bound for QNX but not declared in the QNX 8.0 headers:
ctest_output.c: error: 'open_wmemstream' undeclared (first use in this function)
With both changed locally ("qnx" accepted, open_wmemstream skipped), everything else passes on QNX 8.0 x86_64: PASSED 4653 tests.
Found while testing #5783. I can send a PR for both.
- 主要语言
- Rust
- 星标
- 2.7k
- 派生
- 1.4k
- 平均合并
- 3 天 2 小时
- 30 天内合并 PR
- 45
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
rust-lang/libc 的其他 Issue
-
C-bug
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
维护者通常 1 天内回复
-
SYS_kexec_file_load missing for aarch64-unknown-linux-musl可能已有人在做 @AdmerPRO 于 4 天前认领。 未关闭
难度 1/5 1 小时以内 新手友好度 90/100
rust-lang/libc#5722 · 3 条评论 · 已指派 1 人 ·
维护者通常 1 天内回复
-
Expose `open_how` on Android可能已有人在做 @rizzabhdwaj 于 35 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
RTEMS: `dirfd` is not declared可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
相似的 Issue
-
bug
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复
-
area: settings bug Haiku review: no-score ui
难度 2/5 1-3 小时 新手友好度 78/100
MMFoundation/WallpaperMachine#346 ·
维护者通常 1 天内回复
-
Make the HTTP server's keep-alive and headers timeouts configurable可能已有人在做 @mattgodbolt 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 76/100
compiler-explorer/compiler-explorer#9902 ·
维护者通常 1 天内回复
-
documentation
难度 2/5 1-3 小时 新手友好度 68/100
jonathanong/no-mistakes#5490 ·
-
follow-up
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复