Skip to content

broken --static-swift-stdlib build #216

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
purpln opened this issue Apr 9, 2025 · 3 comments
Open

broken --static-swift-stdlib build #216

purpln opened this issue Apr 9, 2025 · 3 comments

Comments

@purpln
Copy link

purpln commented Apr 9, 2025

clang: error: no such file or directory: '/Users/purpln/Library/org.swift.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/lib/swift_static/android/aarch64/swiftrt.o'

Temporary fixed it by creating symbolic link at /Users/purpln/Library/org.swift.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/lib/swift_static/android/aarch64 targeting ../../swift_static-aarch64/android/aarch64.

Somehow compiler ignores swiftStaticResourcesPath at swift-sdk.json.

SDK for swift 6.0 works fine.

@purpln
Copy link
Author

purpln commented Apr 9, 2025

Don’t know if compiler caches paths. Cleaned .build folder just in case. destination.json at .build has correct -resource-dir argument usr/lib/swift_static-aarch64.

@finagolfin
Copy link
Owner

Oh yeah, this is yet another regression related to swiftlang/swift-driver#1667 and subsequent changes, for which I've submitted a fix in swiftlang/swift-driver#1822. Your workaround is the right one for now, I will try to get this fixed upstream soon.

@purpln purpln closed this as completed Apr 16, 2025
@finagolfin
Copy link
Owner

Keep this open till it's fixed, may help others.

@finagolfin finagolfin reopened this Apr 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants