Skip to content

Compilation fails on Windows due to unresolved import 'CreateProcessW' in windows_sys #2508

@lms0806

Description

@lms0806

Hello,

I tried to compile sccache v0.12.0 on Windows, but it fails with the following error:

error[E0432]: unresolved import windows_sys::Win32::System::Threading::CreateProcessW

It seems that the windows_sys crate cannot find CreateProcessW under Win32::System::Threading. I suspect this might be due to either:

  1. Missing required features in windows-sys in Cargo.toml (e.g., "Win32_System_Threading"), or
  2. Changes in windows-sys API in recent versions.

Environment:

  • Windows 10/11
  • Rust stable (latest)
  • sccache v0.12.0

Thanks for looking into this!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions