Skip to content

build failed using rust hotpatch #4812

@Areopagitics

Description

@Areopagitics

Problem

Rust dx server --hotpatch produces build failed in webserver.

Steps To Reproduce

Steps to reproduce the behavior:

  • use 0.7.0-rc.3
  • select Jumpstart, Fullstack, Router, False (Tailwind), False (LLM), Web
  • run dx serve --hotpatch
  • edit the async fn echo_server in echo.rs
  • build fails with
15:36:17 [dev] Failed to generate patch: collect2: fatal error: cannot find ‘ld’
compilation terminated. 
15:36:17 [dev] Build failed: No such file or directory (os error 2

Expected behavior

it should reload the build with the expected changes (even if it's not rust hotpatched as in 0.6)

Screenshots

Image

Environment:

  • Dioxus version: 0.7.0-rc.3
  • Rust version: 1.90.0
  • OS info: PopOS 24.04
  • App platform: web

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions