Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
1 task done
cmcgee1024 opened this issue Mar 20, 2025 · 2 comments
Open
1 task done
Labels
bug swift build Changes impacting `swift build`

Comments

@cmcgee1024
Copy link
Member

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 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

@cmcgee1024 cmcgee1024 added bug swift build Changes impacting `swift build` labels Mar 20, 2025
@cmcgee1024
Copy link
Member Author

Since the samples stack traces do contains swift-build content in them, this has been raised in the swift-build repo as swiftlang/swift-build#322

@dschaefer2
Copy link
Member

We should add a progress message when the call to swift build starts. This will help determine whether this is in package loading or in the build itself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug swift build Changes impacting `swift build`
Projects
None yet
Development

No branches or pull requests

2 participants