Building Rustc on m68k
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 25/100
- Issue 类型
- 功能
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- rust
调研方向
首先检查列出的 m68k 阻塞项:linux-raw-sys、rustix、compiler/rustc_data_structures/src/tagged_ptr.rs 以及 bootstrap 脚本。检查 tagged_ptr 对齐修复的当前状态和 m68k 支持方面的缺口,然后复现 bootstrap 失败。完成的标准是:无需列出的变通方案即可为 m68k 构建 rustc 及其工具。
由索引模型根据 Issue 内容生成。
描述
I am currently working on building rustc for m68k(since that seems like a more achievable short-term goal). Many of the roadblocks I'll hit on m68k will also likely be shared with other targets - this issue could server as a reference for that.
Here is a list of currently-known issues:
-
-
linux-raw-sysdoes not support m68k. This crate is needed byrustc, and a lot of other crates. Proper support will require a moderate amount of work, but it something that can be done now. -
- The
rustixcrate does not supportm68k. (more specifically, the iocl::const module needs the right values for syscall arguments). -
- The const assert in https://github.com/rust-lang/rust/blob/ce5fdd7d42aba9a2925692e11af2bd39cf37798a/compiler/rustc_data_structures/src/tagged_ptr.rs#L163 fails. EDIT: the problem is the alignment of usize. Rust uses those bits to store type tags. If the aligement is less than 4, this fails. I have a fix ready to be sent & merged.
-
- The bootstrap script fails to compile native
GCCfor m68k. This prevents it from building any codegen backends or tools later down the line. This is skipable with some fiddling. -
- When building other tools(eg.
cargo) the bootstrap script "forgets" where thestdfor m68k is.
So, as of toady, with some workarounds, I can get pretty far into the cross-compilation process - a bit more work, and we may be able to get rustc running on m68k.
@glaubitz I think this issue might be of interest to you.
- 主要语言
- Rust
- 星标
- 1.2k
- 派生
- 105
- 平均合并
- 10 小时 31 分钟
- 30 天内合并 PR
- 27
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
rust-lang/rustc_codegen_gcc 的其他 Issue
-
tests
难度 2/5 1-3 小时 新手友好度 62/100
rust-lang/rustc_codegen_gcc#993 ·
维护者通常 1 天内回复
-
Cannot compile sysroot if having a build.build-dir cargo config可能已有人在做 @GuillaumeGomez 于 8 天前认领。 未关闭
rust-lang/rustc_codegen_gcc#1011 · 1 条评论 · 已指派 1 人 ·
维护者通常 1 天内回复
-
tests
难度 4/5 3-5 天 新手友好度 30/100
rust-lang/rustc_codegen_gcc#992 ·
维护者通常 1 天内回复
-
bug
难度 5/5 一周以上 新手友好度 35/100
rust-lang/rustc_codegen_gcc#970 · 5 条评论 ·
维护者通常 1 天内回复
-
难度 5/5 一周以上 新手友好度 20/100
rust-lang/rustc_codegen_gcc#943 ·
维护者通常 1 天内回复
查看 rust-lang/rustc_codegen_gcc 的全部 Issue
相似的 Issue
-
bug
难度 2/5 1-3 小时 新手友好度 78/100
swc-project/swc-next#1165 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 73/100
Alive24/shea-symphony#574 ·
-
documentation good first issue help wanted
难度 2/5 1-3 小时 新手友好度 74/100
dev-five-git/devup-ui#879 ·
维护者通常 11 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 77/100
farion1231/cc-switch#9038 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 85/100
FalkorDB/FalkorDB#3597 · 1 条评论 ·
维护者通常 2 天内回复