`bevy/dynamic_linking` fails on `SCHEDULE_LABEL_INTERNER`
メンテナーはふだん 1 日以内に返信
@sharmis-tp がすでに取り組んでいます。
2026年10月26日 から。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 48/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- rust
- 領域
- build-system
調査の方向性
Start by reading the rustd workspace loading and symbol lookup code involved in resolving writable statics from dylib dependencies; the issue does not name specific files or tests. Reproduce with the minimal Bevy app and the reduced dylib example, then compare behavior with and without crate-type = ["dylib"]. Done means rustd handles the exported static or clearly documents this limitation.
索引モデルが issue の本文から書いたものです。
説明
Enabling bevy/dynamic_linking makes cargo rustd build fail on a minimal Bevy 0.19.1 app. Plain cargo builds and runs it.
Repro:
# Cargo.toml
[package]
name = "bevy-rustd-repro"
version = "0.1.0"
edition = "2024"
[dependencies]
bevy = { version = "0.19.1", default-features = false, features = ["default_app", "dynamic_linking"] }
// src/main.rs
use bevy::prelude::*;
struct Probe;
impl Plugin for Probe {
fn build(&self, app: &mut App) {
app.add_systems(Update, || {});
}
}
fn main() {
let mut app = App::new();
app.add_plugins((MinimalPlugins, Probe));
app.update();
}
Rust 1.99.0, rustd 0.0.0-4510078-18e09d1a1f901124, Linux x86-64.
cargo run exits 0. cargo rustd build exits 101:
error: the daemon could not load the workspace (exit status: 1: Error:
`...::Probe as ...Plugin>::build` is not compiled by rustd: unsupported:
callee `add_systems`: ... callee `intern`: unsupported: writable static
`SCHEDULE_LABEL_INTERNER` without a rustc symbol)
SCHEDULE_LABEL_INTERNER is the interner behind ScheduleLabel::intern in bevy_ecs. The plugin's add_systems(Update, ...) reaches it through that method, and with bevy_dylib linked the static lives in the dylib.
I reduced it without Bevy. A dylib crate with a private static COUNTER: AtomicUsize and a generic function that increments it fails the same way when an app crate calls that function. Removing crate-type = ["dylib"] makes rustd pass. nm -D shows the static exported by the dylib, so the symbol lookup seems to be the gap, not dylib linking itself. I can post the two crate version if useful.
Is this expected to work? If not, it would help to document the limitation for dylib dependencies.
- 主要言語
- Rust
- スター
- 248
- フォーク
- 13
- 平均マージ
- 7時間 52分
- マージ済み PR(30日)
- 5
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
DioxusLabs/rustd のほかの issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 78/100
DioxusLabs/rustd#15 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
DioxusLabs/rustd#28 ·
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
DioxusLabs/rustd#27 ·
メンテナーはふだん 1 日以内に返信
-
Workspace fails to load: rquickjs types give layout of …: HasErrorType, and rustd never falls backオープン
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
DioxusLabs/rustd#26 ·
メンテナーはふだん 1 日以内に返信
-
難易度 3/5 1〜2日 初心者へのやさしさ 65/100
DioxusLabs/rustd#25 ·
メンテナーはふだん 1 日以内に返信
DioxusLabs/rustd の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
mongodb/kingfisher#588 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信
-
bug rust
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 2 日以内に返信
-
type: bug
難易度 2/5 1〜3時間 初心者へのやさしさ 67/100
franciscoBSalgueiro/en-croissant#1111 ·
メンテナーはふだん 2 日以内に返信
-
[bug] Toolchain versions from `.prototools` are not inherited when moon runs from a subdirectoryオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信