Skip to content

Error: Too long output directory #252

@achieve-dream1221

Description

@achieve-dream1221

create a project by cargo generate esp-rs/esp-idf-template cargo
and then, run cargo build

error: failed to run custom build command for esp-idf-sys v0.33.3

Caused by:
process didn't exit successfully: E:\rust\esp32-std-project\target\debug\build\esp-idf-sys-7beb8c60ac8a9a8b\build-script-build (exit code: 1)
--- stderr
Error: Too long output directory: \\?\E:\rust\esp32-std-project\target\xtensa-esp32-espidf\debug\build\esp-idf-sys-168dae4d88221cf9\out. Shorten your project path down to no more than 10 characters (or use WSL2 and its native Linux filesystem). Note that tricks like Windows subst do NOT work!
warning: build failed, waiting for other jobs to finish...
image

### Tasks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions