Skip to content

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

Closed

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!

Activity

  1. AJIOB commented on Dec 2, 2025

    @AJIOB
    Contributor

    Is it the same as #2497 ?

  2. lms0806 commented on Dec 3, 2025

    @lms0806
    Author

    It looks same.

  3. phenglish commented on Dec 18, 2025

    @phenglish

    The missing windows-sys feature is "Win32_Security", it builds when this is added to Cargo.toml.

  4. added a commit that references this issue on Feb 25, 2026
    a26246a
  5. lms0806 commented on Feb 27, 2026

    @lms0806
    Author

    The missing windows-sys feature is "Win32_Security", it builds when this is added to Cargo.toml.

    What do you mean by adding to Cargo.toml?

    How can I add it?

    I use built-in sccache.

  6. added a commit that references this issue on Mar 4, 2026
    4c7a5e3
  7. added a commit that references this issue on Mar 5, 2026
    c43a832
  8. added a commit that references this issue on Mar 5, 2026
    67e1118
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions