Gems with native extensions
还没有人认领这个 Issue。
- 主要语言
- Ruby
- 星标
- 875
- 派生
- 68
- 平均合并
- 9 天 5 小时
- 30 天内合并 PR
- 1
描述
Can we use gems with native extensions? I've read somewhere that it is possible, and it makes sense for it to be possible. However, I'm struggling to get even a basic example to compile. There doesn't seem to be any documentation as to how to set it up.
If I try statically linking, I get the error "Could not create Makefile due to some reason". Checking the mkmf log does not yield any useful information.
If I try dynamically linking with RUBY_WASM_EXPERIMENTAL_DYNAMIC_LINKING, I get the error ld: unknown option: -Xlinker
I've created a minimal repo to test: https://github.com/danini-the-panini/rbwasm-foo
If it makes a difference, I'm running on Apple silicon.
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先在链接的 rbwasm-foo 仓库中复现最小示例,然后检查 mkmf 日志以及此处描述的 static-linking 和 dynamic-linking 错误。记录是否支持带有原生扩展的 gem、所需的设置,以及成功编译后应呈现的状态,包括 Apple silicon 的情况。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- ruby, wasm
- 领域
- build-system
- Issue 类型
- 文档
- 难度
- 5/5
- 预计耗时
- 一周以上
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 25/100