Skip to content

Hangs while building with Windows using SwiftPM and swiftbuild build system #8391

@cmcgee1024

Description

@cmcgee1024

Is it reproducible with SwiftPM command-line tools: swift build, swift test, swift package etc?

  • Confirmed reproduction steps with SwiftPM CLI. The description text must include reproduction steps with either of command-line SwiftPM commands, swift build, swift test, swift package etc.

Description

When building using SwiftPM and the swiftbuild build system there are frequent hangs.

From the swift-package manager repo, run this command on Windows x86_64:

swift run swift-build --build-system=swiftbuild --package-path Fixtures/ValidLayouts/SingleModule/ExecutableNew

See that attached text file with the sampled stack traces. Many of the interesting ones appear to be in swift-build spec registration (SpecRegistry.registerSpec) and file path handling. Note that these samples are taken across multiple invocations, since the target process is tending to crash frequently when stopped in lldb.

Process 23424 stopped.txt

Expected behavior

No response

Actual behavior

No response

Steps to reproduce

No response

Swift Package Manager version/commit hash

No response

Swift & OS version (output of swift --version ; uname -a)

No response

Sub-issues

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugswift buildChanges impacting `swift build`

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions