dioxus icon indicating copy to clipboard operation
dioxus copied to clipboard

dx-cli 0.7.0 Hotpatching fails: cannot find ‘ld’

Open sirati opened this issue 3 months ago • 2 comments

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

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 [email protected] --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
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

sirati avatar Oct 31 '25 15:10 sirati

For me running sudo apt install lld fixed this.

slack2450 avatar Nov 25 '25 11:11 slack2450

For me running sudo apt install lld fixed this.

Wow. This worked for me. Thanks.

For fedora it would be sudo dnf install lld.

ejazahm3d avatar Nov 25 '25 15:11 ejazahm3d