bevyengine / bevyengine/bevy

hotpatching_systems.rs hotpatching fails with cannot find ‘ld’

Open
#21,487 1 comment 0 reactions 0 assignees View on GitHub
A-Dev-Tools C-Bug S-Needs-Investigation
Dominant language
Rust
Stars
48.2k
Forks
4.8k
Avg merge
3d 16h
Merged PRs (30d)
171

Description

## Version Info

Bevy: 0.17.2
Rust: 1.90.0 (840b83a10 2025-07-30)
OS: Ubuntu 24.02
dioxus-cli: rc.0

## What you did

I tried out the `hotpatching_system.rs` demo with:

```
dx serve --hot-patch --example hotpatching_systems --features hotpatching
```

and attempted to change "before" to "after"

## What went wrong

bevy fails to hot-patch giving:
```
16:13:42 [dev] Failed to generate patch: collect2: fatal error: cannot find ‘ld’
compilation terminated.
16:13:42 [dev] Build failed: No such file or directory (os error 2)
```

Contributor guide

Open the contributing guide

Research direction

Start with the hotpatching_system.rs example and reproduce the failure using `dx serve --hot-patch --example hotpatching_systems --features hotpatching` on Ubuntu. Trace the hotpatch patch-generation build step that reports the missing `ld`; done means the patch is generated successfully and changing “before” to “after” works.

Written by the indexing model from the issue text.

Assessment

Tech stack
linux, rust, ubuntu
Domain
build-system, developer-experience
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.