-
Notifications
You must be signed in to change notification settings - Fork 196
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 6.1/6.2 can not cross-compile executables with the latest static linux Musl SDK bundle snapshots #1723
Comments
I looked into this a bit more: the problem is still reproducible with the latest dev snapshots of the static Musl SDK for 6.1 and trunk, from Jan. 31 and Jan. 5 respectively. Turns out the 6.1 and trunk Android SDK bundles have a different error caused by another bug, which I will address separately. This Musl SDK problem is actually different and larger, breaking building all executables with the static Musl SDK. As noted above, #1667 is the culprit, as it assumes that there is always a |
Looking at this more closely, the problem seems to be that it's looking in
and here's where the file actually is:
|
Yes, that is what I referred to above as "it assumes that there is always a swiftrt.o in the shared Swift resource directory." I intend to remove that line from the swift-driver altogether, pull forthcoming. |
That's fine. My preferred solution is removing that linking against |
I was just testing out cross-compilation of Swift packages that use macros, and it works fine with the latest 6.0 release for the first time:
However, if I try the same with the latest trunk 6.1 Musl or Android SDK bundles, it fails:
If I pass in
-Xswiftc -disallow-use-new-driver
, it works again, so clearly a regression in this swift-driver, most likely related to #1667, which I argued against at the time.@al45tair, can you confirm this regression and advise?
The text was updated successfully, but these errors were encountered: