Skip to content

Conversation

neonichu
Copy link
Contributor

This reverts commit d328002.

This broke existing Swift SDKs:

ld.lld: error: unable to find library -ld-path=/Users/neonacho/Library/org.swift.swiftpm/swift-sdks/5.8-RELEASE_rhel_ubi9_aarch64.artifactbundle/5.8-RELEASE_rhel_ubi9_aarch64/aarch64-unknown-linux-gnu/swift.xctoolchain/usr/bin/ld.lld 
#6719)" This reverts commit d328002. This broke existing Swift SDKs: ``` ld.lld: error: unable to find library -ld-path=/Users/neonacho/Library/org.swift.swiftpm/swift-sdks/5.8-RELEASE_rhel_ubi9_aarch64.artifactbundle/5.8-RELEASE_rhel_ubi9_aarch64/aarch64-unknown-linux-gnu/swift.xctoolchain/usr/bin/ld.lld ```
@neonichu neonichu requested a review from tomerd as a code owner September 20, 2023 22:34
@neonichu neonichu self-assigned this Sep 20, 2023
@neonichu
Copy link
Contributor Author

@swift-ci please smoke test

@neonichu
Copy link
Contributor Author

@swift-ci please test

Copy link
Contributor

@tomerd tomerd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@MaxDesiatov feel free to bring back once the regressions are addressed

@neonichu neonichu merged commit 57d0a55 into main Sep 21, 2023
@neonichu neonichu deleted the revert-6719 branch September 21, 2023 02:04
@MaxDesiatov
Copy link
Contributor

kabiroberai added a commit to kabiroberai/swift-package-manager that referenced this pull request Sep 21, 2023
@kabiroberai
Copy link
Contributor

kabiroberai commented Sep 21, 2023

Ah, the problem is that we can't directly forward -ld-path to clang anymore because the clang option uses two dashes. Should be an easy fix in swift-driver; will put up a PR and after that's merged it should be safe to revert the revert.

Update: created swiftlang/swift-driver#1447.

@tomerd
Copy link
Contributor

tomerd commented Sep 21, 2023

@MaxDesiatov is there a test we can add to make sure we don't regress?

@MaxDesiatov
Copy link
Contributor

MaxDesiatov commented Sep 21, 2023

Unfortunately, this would be caught only by the end-to-end test that's currently implemented in the Swift SDK generator. We'll have to spend some time coming up with some better integration tests for this, especially as they involve Clang.

@neonichu
Copy link
Contributor Author

Maybe we can find a way to enable a cross-repo kind of workflow so that we could run the tests in Swift SDK generator against a specific PR on SwiftPM? Similar to how we can run the compatibility suite if we make larger changes to the package manifest.

@MaxDesiatov
Copy link
Contributor

MaxDesiatov commented Sep 21, 2023

Yes, compatibility suite is something I definitely want, just found a regression in cross-compilation to UBI9 with Swift 5.9, which wasn't present with Swift 5.9, only present with certain packages, like swift-log 😭

@kabiroberai
Copy link
Contributor

Now that swiftlang/swift-driver#1447 is merged we should be able to revert this. @neonichu will you put up a PR or shall I?

MaxDesiatov pushed a commit that referenced this pull request Sep 28, 2023
#6719)" (#6939) This reverts commit d328002. This broke existing Swift SDKs: ``` ld.lld: error: unable to find library -ld-path=/Users/neonacho/Library/org.swift.swiftpm/swift-sdks/5.8-RELEASE_rhel_ubi9_aarch64.artifactbundle/5.8-RELEASE_rhel_ubi9_aarch64/aarch64-unknown-linux-gnu/swift.xctoolchain/usr/bin/ld.lld ```
MaxDesiatov pushed a commit that referenced this pull request Sep 28, 2023
#6719)" (#6939) This reverts commit d328002. This broke existing Swift SDKs: ``` ld.lld: error: unable to find library -ld-path=/Users/neonacho/Library/org.swift.swiftpm/swift-sdks/5.8-RELEASE_rhel_ubi9_aarch64.artifactbundle/5.8-RELEASE_rhel_ubi9_aarch64/aarch64-unknown-linux-gnu/swift.xctoolchain/usr/bin/ld.lld ```
MaxDesiatov added a commit that referenced this pull request Oct 18, 2023
This reverts commit 57d0a55 and PR #6939. Now that swiftlang/swift-driver#1447 and its 5.10 counterpart swiftlang/swift-driver#1454 were merged, we can reapply the fix for Swift SDKs linker metadata not being handled.
MaxDesiatov added a commit that referenced this pull request Nov 7, 2023
This reverts commit 57d0a55 and PR #6939. Now that swiftlang/swift-driver#1447 and its 5.10 counterpart swiftlang/swift-driver#1454 were merged, we can reapply the fix for Swift SDKs linker metadata not being handled. Resolves rdar://117049947.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

4 participants