Skip to content

[Parity] swift-build crashes with large packages (many targets) #9270

@kcieplak

Description

@kcieplak

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

https://github.com/teco-project/teco.git
MacOS

The following package does not build using the 'swifbuild' backend but does with 'native'

swift build `--buildsystem=swiftbuild` fails to build package
info: Target 'CNIOLinux' in project 'swift-nio' (no dependencies)
info: Target 'CNIODarwin' in project 'swift-nio' (no dependencies)
info: Target '_NIOBase64' in project 'swift-nio' (no dependencies)
info: Target 'NIOConcurrencyHelpers' in project 'swift-nio'
info: ➜ Explicit dependency on target 'CNIOAtomics' in project 'swift-nio'
info: Target 'CNIOAtomics' in project 'swift-nio' (no dependencies)
info: Target 'Crypto-product' in project 'swift-crypto'
info: ➜ Explicit dependency on target 'Crypto' in project 'swift-crypto'
info: Target 'Crypto' in project 'swift-crypto' (no dependencies)
info: Target 'INIParser' in project 'teco-core' (no dependencies)
info: Gather provisioning inputs
info: Create build description

[swift-build-2025-10-21-150645.ips.txt](https://github.com/user-attachments/files/23030085/swift-build-2025-10-21-150645.ips.txt)

Note: No error message simply exits, due to crash.

Expected behavior

Builds

Actual behavior

Fails to build

Steps to reproduce

git clone https://github.com/teco-project/teco.git
swift build --build-system=swiftbuild

Swift Package Manager version/commit hash

No response

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

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions