cargo xtest doesn't work under WSL1 with native QEMU
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 48/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- rust
- 领域
- build-system, cli
调研方向
在 WSL1 下使用原生 QEMU 和文档中记录的 cargo xrun 与 cargo xtest 命令重现该问题。比较 xrun 和 xtest 将目标路径传递给 QEMU 的方式;当 xtest 传递一个原生 QEMU 可以打开的相对路径,且测试命令成功时,即表示完成。
由索引模型根据 Issue 内容生成。
描述
- Install QEMU natively on Windows
- Under WSL setup cargo
- In
~/bin/qemu-system-x86_64putexec /mnt/c/Program\ Files/qemu/qemu-system-x86_64.exe "$@"and make the file executable - run
cargo xrun - run
cargo xtest
The xrun command works because it provides a relative path to the target to run to qemu. However xtest fails because it provides an absolute path which native QEMU doesn't understand. Passing a relative path just like xrun does should fix the issue.
Running: `qemu-system-x86_64 -drive format=raw,file=/mnt/c/projects/blog_os/target/x86_64-blog_os/debug/deps/bootimage-blog_os-f9b6181f9decdfac.bin -device isa-debug-exit,iobase=0xf4,iosize=0x04 -serial stdio -display none`
C:\Program Files\qemu\qemu-system-x86_64.exe: -drive format=raw,file=/mnt/c/projects/blog_os/target/x86_64-blog_os/debug/deps/bootimage-blog_os-f9b6181f9decdfac.bin: Could not open '/mnt/c/open/blog_os/target/x86_64-blog_os/debug/deps/bootimage-blog_os-f9b6181f9decdfac.bin': The system cannot find the path specified.
- 主要语言
- Rust
- 星标
- 906
- 派生
- 70
- PR 合并指标
- 30 天内没有已合并 PR
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
rust-osdev/bootimage 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 68/100
rust-osdev/bootimage#103 · 9 条评论 ·
-
难度 3/5 1-2 天 新手友好度 45/100
rust-osdev/bootimage#110 · 4 条评论 ·
-
难度 2/5 1-3 小时 新手友好度 45/100
rust-osdev/bootimage#109 · 1 条评论 ·
-
难度 1/5 1 小时以内 新手友好度 45/100
rust-osdev/bootimage#98 · 1 条评论 ·
-
难度 3/5 1-2 天 新手友好度 35/100
rust-osdev/bootimage#94 · 1 条评论 ·
查看 rust-osdev/bootimage 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 76/100
-
bug good first issue package: quic
难度 2/5 1-3 小时 新手友好度 78/100
-
难度 1/5 1 小时以内 新手友好度 78/100
-
`dora trace view` sends a non-canonical full UUID as-is, so a valid trace ID shows "No spans found" 未关闭cli coordinator rust
难度 2/5 1-3 小时 新手友好度 88/100
-
area: tasks enhancement good first issue help wanted
难度 2/5 1-3 小时 新手友好度 88/100
Jason-jo17/Polybench#15 · 1 条评论 ·