Skip to content

Subsecond: Using mold requires a system-wide symlink #4194

Closed
@janhohenheim

Description

@janhohenheim

Problem

When using mold, it seems like ld is still used for some reason:

Image

Note that my app runs after doing

cd /usr/bin
mv ld ld-real
ln -s mold ld

Steps To Reproduce

Steps to reproduce the behavior:

  • Run cargo install dioxus-cli --git https://github.com/DioxusLabs/dioxus --rev b2bd1f48d434becfff9f0ea390ad8ef46996300a
  • Clone https://github.com/TheBevyFlock/bevy_simple_subsecond_system
  • Add the following to your ~/.cargo/config.toml:
    [target.x86_64-unknown-linux-gnu]
    # linker = "clang"
    rustflags = [
      "link-arg=-fuse-ld=mold",
    ]
  • Run dx serve --hot-patch --example minimal

Expected behavior

The app to run

Environment:

  • Dioxus version: dioxus 0.7.0-alpha.0 (48e925f)
  • Rust version: rustc 1.89.0-nightly (ce7e97f73 2025-05-11)
  • OS info: Fedora release 42 (Adams)
  • App platform: Desktop Linux

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions