Skip to content

Build failing with strip = "debuginfo" in cargo configΒ #5065

@paul-hansen

Description

@paul-hansen

Problem

When I run dx serve when strip = "debuginfo" is set, I get a build error:

dx serve
12:06:36 [dev] -----------------------------------------------------------------
                Serving your app: test-dx! πŸš€
                β€’ Press `ctrl+c` to exit the server
                β€’ Press `r` to rebuild the app
                β€’ Press `p` to toggle automatic rebuilds
                β€’ Press `v` to toggle verbose logging
                β€’ Press `/` for more commands and shortcuts
                Learn more at https://dioxuslabs.com/learn/0.7/getting_started
               ----------------------------------------------------------------
12:06:36 [dev] Build failed: Failed to strip binary
12:06:36 [dev] Build failed: Failed to strip binary

Running dx serve --release runs and I can open it in the browser, but it gives a different error in the terminal:

dx serve --release
12:12:32 [dev] -----------------------------------------------------------------
                Serving your app: test-dx! πŸš€
                β€’ Press `ctrl+c` to exit the server
                β€’ Press `r` to rebuild the app
                β€’ Press `p` to toggle automatic rebuilds
                β€’ Press `v` to toggle verbose logging
                β€’ Press `/` for more commands and shortcuts
                Learn more at https://dioxuslabs.com/learn/0.7/getting_started
               ----------------------------------------------------------------
12:12:36 [dev] wasm-opt failed with status code signal: 6 (SIGABRT) (core dumped)
stderr:
stdout: compile unit size was incorrect (this may be an unsupported version of DWARF)

12:12:36 [dev] Build completed successfully in 446ms, launching app! πŸ’«
12:12:36 [server]  INFO Registering server function: POST /api/echo
12:12:43 [server] [200] /

Steps To Reproduce

Steps to reproduce the behavior:

  • Create a new project using dx new with fullstack, router, and tailwind enabled and default to web.
  • Add this to your ~/.cargo/config.toml file:
    [profile.dev]
    strip = "debuginfo"
  • Run dx serve
  • Observe error

Expected behavior

Build without error.

Environment:

  • Dioxus version: 0.7.2
  • Rust version: v1.91.1 stable
  • OS info: EndeavorOS (Arch based rolling distro)
  • 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