Failure to build [email protected] crate for ruffle

未关闭
#791 8 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
28/100
Issue 类型
缺陷
描述清晰度
需要澄清
活跃度
停滞
技术栈
rust
领域
compilers

调研方向

使用报告的 ruffle commit 和列出的 Rust 版本,通过 cargo build --jobs 1 --keep-going 重现该失败。首先通过 rustc_codegen_gcc 和 libgccjit 跟踪 zune-jpeg 的编译失败;当 crate 构建时不再出现 immediate-value 错误、缺失的 archive 或 abort,即表示完成。

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

描述

bug

Using --keep-going to workaround https://github.com/rust-lang/rustc_codegen_gcc/issues/790.

$ git clone https://github.com/ruffle-rs/ruffle
$ git rev-parse HEAD
1aad9ba00001103b7c1309fff3e7e3f650cd5d17
$ cargo build --jobs 1 --keep-going
   Compiling zune-jpeg v0.4.21
libgccjit.so: error: : the last argument must be an 8-bit immediate
libgccjit.so: error: : the last argument must be an 8-bit immediate
error: failed to build archive at `/tmp/ruffle/target/debug/deps/libzune_jpeg-74f383d3ad5956b7.rlib`: failed to open object file: No such file or directory (os error 2)

fatal runtime error: failed to initiate panic, error 5, aborting
error: could not compile `zune-jpeg` (lib) due to 1 previous error

Caused by:
  process didn't exit successfully: `rustc --crate-name zune_jpeg --edition=2021 /home/sam/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/zune-jpeg-0.4.21/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --diagnostic-width=186 --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 --warn=unexpected_cfgs --check-cfg 'cfg(fuzzing)' --cfg 'feature="default"' --cfg 'feature="neon"' --cfg 'feature="std"' --cfg 'feature="x86"' --check-cfg 'cfg(docsrs,test)' --check-cfg 'cfg(feature, values("default", "log", "neon", "std", "x86"))' -C metadata=03d7898f766feb93 -C extra-filename=-74f383d3ad5956b7 --out-dir /tmp/ruffle/target/debug/deps -L dependency=/tmp/ruffle/target/debug/deps --extern zune_core=/tmp/ruffle/target/debug/deps/libzune_core-5fd43cb02ab9d22a.rmeta --cap-lints allow --cfg=web_sys_unstable_apis` (signal: 6, SIGABRT: process abort signal)
$ rustc -vV
rustc 1.91.0-nightly (21cd82aa6 2025-10-08) (gentoo)
binary: rustc
commit-hash: 21cd82aa6363f7ceaebefafc528e62124267461c
commit-date: 2025-10-08
host: x86_64-unknown-linux-gnu
release: 1.91.0-nightly

This is with the rust 1.91.0 beta from 20251009 and github.com/rust-lang/rust from b93730ce97c738bdb9209aa973d3fc6fd4ce1d81.

主要语言
Rust
星标
1.2k
派生
106
平均合并
11 小时 14 分钟
30 天内合并 PR
25

环境准备

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

从这里开始

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

rust-lang/rustc_codegen_gcc 的其他 Issue

查看 rust-lang/rustc_codegen_gcc 的全部 Issue

相似的 Issue

更多 Rust Issue

把新 issue 发到你的邮箱

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