Skip to content

Working directory unsupported with the swiftbuild build system on Amazon Linux 2 #8560

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

Open
1 task done
cmcgee1024 opened this issue Apr 25, 2025 · 3 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

The following error is reported when building certain packages with the swiftbuild build system on an Amazon Linux 2 system:

error: working-directory unsupported on this platform

See #8558 for two automated tests that exhibit this error on AL2.

Expected behavior

It is expected that Amazon Linux 2 should work like the other Linux platforms.

Actual behavior

This error is thrown when running certain types of packages, possibly involving plugins.

Steps to reproduce

No response

Swift Package Manager version/commit hash

main

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

No response

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

See swiftlang/swift-build#441 for the issue in Swift Build.

@jakepetroules
Copy link
Contributor

For this particular code path, llbuild is the issue, not Swift Build (though Swift Build separately needs fixes).

@kcieplak
Copy link
Contributor

See #8545 for the tests that trigger the working directory failure.

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

3 participants