You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This code couldn't be built with -static-stdlib due to linking failure on Linux.
This issue was introduced by the use of @_implementationOnly in swift-corelibs-foundation. FoundationNetworking shipped with Swift 5.4 imports CFURLSessionInterface with @_implementationOnly, then FoundationNetworking.swiftmodule doesn't have a dependency declaration of CFURLSessionInterface. So "import FoundationNetworking" doesn't tell the driver to link CFURLSessionInterface and CFURLSessionInterface dependent libraries.
Environment
Ubuntu 20.04.2 LTS
Swift version 5.4 (swift-5.4-RELEASE)
Target: x86_64-unknown-linux-gnu
Additional Detail from JIRA
md5: 7e7c7781d9c433972e4118e0fd2fd9dc
Issue Description:
This code couldn't be built with -static-stdlib due to linking failure on Linux.
This issue was introduced by the use of @_implementationOnly in swift-corelibs-foundation. FoundationNetworking shipped with Swift 5.4 imports CFURLSessionInterface with @_implementationOnly, then FoundationNetworking.swiftmodule doesn't have a dependency declaration of CFURLSessionInterface. So "import FoundationNetworking" doesn't tell the driver to link CFURLSessionInterface and CFURLSessionInterface dependent libraries.
Here is my forum post about this issue several month ago.
Autolinking behavior of @_implementationOnly with static linking
Here is the command line log.
For now, we can link correctly with extra "-lCFURLSessionInterface -lcurl" options.
The text was updated successfully, but these errors were encountered: