DioxusLabs / DioxusLabs/dioxus

Subsecond fails linking when using the `wild` linker

Open
#4,158 0 comments 5 reactions 0 assignees View on GitHub
bug subsecond
Dominant language
Rust
Stars
39.1k
Forks
1.9k
Avg merge
4d 10h
Merged PRs (30d)
4

Description

**Problem**

Using the [`wild` linker](https://github.com/davidlattimore/wild) results in the following error:

```
18:50:56 [dev] Failed to generate fat binary: Error: Failed to parse archive `/home/hhh/git/bevy_simple_subsecond_system/target/x86_64-unknown-linux-gnu/debug/examples/libfatdependencies-6bff08f7-06a4-5
Caused by:c56db67d134.a @ #1/8`
Couldn't identify file type

Stack backtrace:
0: anyhow::error::::msg
1: libwild::file_kind::FileKind::identify_bytes
2: core::ops::function::impls:: for &mut F>::call_once
3: as alloc::vec::spec_extend::SpecExtend>::spec_extend
4: rayon::iter::plumbing::bridge_producer_consumer::helper
5: rayon_core::join::join_context::{{closure}}
6: rayon::iter::plumbing::bridge_producer_consumer::helper
7: rayon_core::job::StackJob::run_inline
8: rayon_core::join::join_context::{{closure}}
9: rayon::iter::plumbing::bridge_producer_consumer::helper
10: as rayon_core::job::Job>::execute
11: rayon_core::registry::WorkerThread::wait_until_cold
12: rayon_core::join::join_context::{{closure}}
13: rayon::iter::plumbing::bridge_producer_consumer::helper
14: rayon_core::join::join_context::{{closure}}
15: rayon::iter::plumbing::bridge_producer_consumer::helper
16: as rayon_core::job::Job>::execute
17: rayon_core::registry::WorkerThread::wait_until_cold
18: rayon_core::registry::ThreadBuilder::run
19: std::sys::backtrace::__rust_begin_short_backtrace
20: core::ops::function::FnOnce::call_once{{vtable.shim}}
21: std::sys::pal::unix::thread::Thread::new::thread_start
22: start_thread
23: __clone3
collect2: error: ld returned 255 exit status
18:50:56 [dev] Build completed successfully in 56081ms, launching app! 💫
18:50:56 [dev] Failed to open app: I/O Error: Permission denied (os error 13)
```

**Steps To Reproduce**

Steps to reproduce the behavior:

- Run `cargo binstall wild-linker`
- symlink `ld` to `wild`
- Clone https://github.com/TheBevyFlock/bevy_simple_subsecond_system and cd into it
- Run `dx serve --example ui`

**Expected behavior**

The app to launch.
The problem is not with `wild` itself; running `cargo build` works.

**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`

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.