DioxusLabs / DioxusLabs/dioxus
dx-cli 0.7.0 Hotpatching fails: cannot find ‘ld’
- Dominant language
- Rust
- Stars
- 39.1k
- Forks
- 1.9k
- Avg merge
- 4d 10h
- Merged PRs (30d)
- 4
Description
**Problem**
I am on up-to-date Pop!_OS (~Ubuntu LTS 22.04) and dx 0.7 release fails hotpatch with:
```
16:36:15 [dev] Failed to generate patch: collect2: fatal error: cannot find ‘ld’
compilation terminated.
16:36:15 [dev] Build failed: No such file or directory (os error 2)
```
ld is of course available, i.e. see same terminal I called dx in
```bash
sirati@sirati-pop-os:~/RustroverProjects/dx_project$ ld
ld: no input files
sirati@sirati-pop-os:~/RustroverProjects/dx_project$ which ld
/usr/bin/ld
```
**Steps To Reproduce**
Steps to reproduce the behavior:
- `cargo install dioxus-cli@0.7.0 --force`
- `dx new dx_project`
- select desktop, all else no
- `dx serve --renderer native --hot-patch --target x86_64-unknown-linux-gnu --bundle linux`
- perform any change to prompts hot-patching
**Expected behavior**
hot-patching to work in a std environment like Ubuntu LTS 22.04 or provide a commandline argument as a workaround for this problem
**Environment:**
- Dioxus version: 0.7 both for dx-cli (compiled with cargo install) and dependencies
```
$ dx --version
dioxus 0.7.0 (was built without git repository)
```
- Rust version:
```
$ cargo --version --verbose
cargo 1.92.0-nightly (344c4567c 2025-10-21)
release: 1.92.0-nightly
commit-hash: 344c4567c634a25837e3c3476aac08af84cf9203
commit-date: 2025-10-21
host: x86_64-unknown-linux-gnu
libgit2: 1.9.1 (sys:0.20.2 vendored)
libcurl: 8.15.0-DEV (sys:0.4.83+curl-8.15.0 vendored ssl:OpenSSL/3.5.4)
ssl: OpenSSL 3.5.4 30 Sep 2025
os: Pop!_OS 22.4.0 (jammy) [64-bit]
$ rustc --version --verbose
rustc 1.92.0-nightly (6501e64fc 2025-10-23)
binary: rustc
commit-hash: 6501e64fcb02d22b49d6e59d10a7692ec8095619
commit-date: 2025-10-23
host: x86_64-unknown-linux-gnu
release: 1.92.0-nightly
LLVM version: 21.1.3
```
- OS info:
```
$ lsb_release -a
No LSB modules are available.
Distributor ID: Pop
Description: Pop!_OS 22.04 LTS
Release: 22.04
Codename: jammy
```
- App platform: tried native & desktop
```bash
dx serve --renderer native --hot-patch --target x86_64-unknown-linux-gnu --bundle linux
dx serve --renderer webview --hot-patch --target x86_64-unknown-linux-gnu --bundle linux
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.