Skip to content

Build failed with "failed to write executable" (solved) #5256

@JDRobotter

Description

@JDRobotter

TLDR, I fixed by problem and I am unable to reproduce it, this issue is here to let you know something went wrong if it is of some interest to you !

Problem

All my Dioxus build failed with the following error (failed to write executable):
Image

After some investigation it seems that the wasm-bindgen executable written in my local directory by the dioxus build was an empty file without execution rights.

Image

I deleted the file, run the build process again, it re-downloaded the tooling and everything was fine.

Steps To Reproduce

I was unable to reproduce the problem and now my setup is ok. But it is very likely that the first time I ran the dioxus build on a clean setup I encountered some network problems during the process. So it is very likely that the download process was interrupted and left the ~/.local/share/.dx directory in a broken state.

Environment:

  • Dioxus version: 0.7.3
  • Rust version: 1.93
  • OS info: Linux debian 13
  • 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