Skip to content

CoreFoundation not linked with 5.4 and dev snapshots #2598

@MaxDesiatov

Description

@MaxDesiatov

Even when not using LTO, I'm seeing these linker errors:

wasm-ld: error: /Users/maxd/Library/Developer/Toolchains/swift-wasm-5.4-SNAPSHOT-2021-01-26-a.xctoolchain/usr/lib/swift_static/wasi/
libFoundation.a(PropertyListSerialization.swift.obj): undefined symbol: CFPropertyListCreateWithData
wasm-ld: error: /Users/maxd/Library/Developer/Toolchains/swift-wasm-5.4-SNAPSHOT-2021-01-26-a.xctoolchain/usr/lib/swift_static/wasi/
libFoundation.a(NSCFSet.swift.obj): undefined symbol: CFSetGetCount
wasm-ld: error: /Users/maxd/Library/Developer/Toolchains/swift-wasm-5.4-SNAPSHOT-2021-01-26-a.xctoolchain/usr/lib/swift_static/wasi/
libFoundation.a(NSCFSet.swift.obj): undefined symbol: CFSetGetValues
wasm-ld: error: /Users/maxd/Library/Developer/Toolchains/swift-wasm-5.4-SNAPSHOT-2021-01-26-a.xctoolchain/usr/lib/swift_static/wasi/
libFoundation.a(NSCFString.swift.obj): undefined symbol: CFStringGetLength
wasm-ld: error: /Users/maxd/Library/Developer/Toolchains/swift-wasm-5.4-SNAPSHOT-2021-01-26-a.xctoolchain/usr/lib/swift_static/wasi/
libFoundation.a(NSUUID.swift.obj): undefined symbol: CFHashBytes
wasm-ld: error: /Users/maxd/Library/Developer/Toolchains/swift-wasm-5.4-SNAPSHOT-2021-01-26-a.xctoolchain/usr/lib/swift_static/wasi/
libFoundation.a(UUID.swift.obj): undefined symbol: _cf_uuid_generate_random
wasm-ld: error: /Users/maxd/Library/Developer/Toolchains/swift-wasm-5.4-SNAPSHOT-2021-01-26-a.xctoolchain/usr/lib/swift_static/wasi/
libFoundation.a(UUID.swift.obj): undefined symbol: _cf_uuid_parse
wasm-ld: error: /Users/maxd/Library/Developer/Toolchains/swift-wasm-5.4-SNAPSHOT-2021-01-26-a.xctoolchain/usr/lib/swift_static/wasi/
libFoundation.a(UUID.swift.obj): undefined symbol: _cf_uuid_unparse_upper

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions