-
Notifications
You must be signed in to change notification settings - Fork 186
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
Swift Potentially Uses the Wrong Swift Driver #1349
Comments
@thekief , in your second example, you are not invoking the driver from the |
Sorry, my bad. I put the wrong command there. Here is the corrected one:
Anyway, my problem still applied. I did some debugging with
I also noticed this details in the README: Previous snapshots of Swift worked without any problems in that regard. Could it be that using a self-built "release" disables forwarding executions to the driver? |
Could you please clarify how your build a custom toolchain, exactly? |
I used the official instructions aka:
|
Sure, sorry for leaving out this details. My bundle prefix is Is there anything special you have in mind? Are there some names that are considered "forbidden"? |
@thekief do you have a I am having trouble using And the resulting toolchain seems to have the new driver correctly installed and it does get used when calling |
Thank you for your help there. I had a look at your build and I noticed that some files on my side were kind of missing and broken most likely due to some issues in the build process. We had some issues during our build times in the night and so far restarting/resuming the build process never caused any issues. That is the first time for me here. I will test the toolchains internally and potentially close the ticket soon |
@thekief, the trunk and 5.9 snapshots might be a good comparison to your custom toolchain builds, ie you should end up with the same files as in there. |
@thekief is this issue still reproducible for you? |
i will inform you until next Monday. Currently, we switched back to Xcode 14, circumventing any problems with this. I will write about the outcome as soon as possible. |
@thekief have you had a chance to reproduce this again? |
(Potentially) related to this one here: swiftlang/swift-package-manager#6970 I kinda forgot about this issue. Thank you for the reminder |
I don't think that SwiftPM issue is related in any way, unless some details in the description of this one were omitted. |
Sorry for the bad phrasing: I wanted to retest it with the new version mentioned in the other ticket. As I cannot build the new version, I have no update on it yet. |
I was able to build |
I recently opened an issue on the Swift repo (swiftlang/swift#65461) but realised after some debugging that it probabl better fits here.
When trying to build an existing application with a custom toolchain based on the Swift 5.8 Release (swiftlang/swift@f9611bc) the application will not compile due to the Swift Package Manager trying to disallow the new driver.
I noticed that when executing
swiftc -version
the output seems to vastly differ. With Xcode's swiftc I get following output:while with the custom compiler I get following output:
To me it looks like there are some issues with the custom compiled toolchain choosing the wrong driver. Is there any easy-fix for this?
The text was updated successfully, but these errors were encountered: