-
Notifications
You must be signed in to change notification settings - Fork 478
Closed
Labels
Description
| Previous ID | SR-8854 |
| Radar | None |
| Original Reporter | @kevints |
| Type | Bug |
| Status | Resolved |
| Resolution | Done |
Environment
Distributor ID: Ubuntu
Description: Ubuntu 14.04.5 LTS
Release: 14.04
Codename: trusty
Swift version 4.2 (swift-4.2-RELEASE)
Target: x86_64-unknown-linux-gnu
Additional Detail from JIRA
| Votes | 0 |
| Component/s | libdispatch |
| Labels | Bug |
| Assignee | @kevints |
| Priority | Medium |
md5: cbef0d1252adf69684fd06fc9a6414be
Issue Description:
The swift-4.2-RELEASE tarball does not contain the static archive libdispatch.a.
This means the -static-stdlib compilation flag is broken for programs that import Dispatch or Foundation.
...
/root/.swift/usr/lib/swift_static/linux/libFoundation.a(CFSortFunctions.c.o):CFSortFunctions.c:function CFSortIndexes: error: undefined reference to '_dispatch_queue_attr_concurrent'
/root/.swift/usr/lib/swift_static/linux/libFoundation.a(CFSortFunctions.c.o):CFSortFunctions.c:function CFSortIndexes: error: undefined reference to 'dispatch_queue_create'
/root/.swift/usr/lib/swift_static/linux/libFoundation.a(CFSortFunctions.c.o):CFSortFunctions.c:function CFSortIndexes: error: undefined reference to 'dispatch_apply'
/root/.swift/usr/lib/swift_static/linux/libFoundation.a(CFSortFunctions.c.o):CFSortFunctions.c:function __CFSortIndexesN: error: undefined reference to 'dispatch_apply'
/root/.swift/usr/lib/swift_static/linux/libFoundation.a(CFSortFunctions.c.o):CFSortFunctions.c:function __CFSortIndexesN: error: undefined reference to 'dispatch_apply'
...