Open
Description
Description
Using String
as a key to a dictionary results in missing symbols with no explained way to resolve:
ld.lld: error: undefined hidden symbol: _swift_stdlib_getNormData
>>> referenced by ld-temp.o
>>> lto.tmp:($ss16_StringGutsSliceV17_withNFCCodeUnitsyyys5UInt8VKXEKF)
>>> referenced by ld-temp.o
>>> lto.tmp:($ss7UnicodeO14_NFDNormalizerV7_resume9consumingAB6ScalarV6scalar_AB9_NormDataV04normH0tSgAHSgyXE_tF)
>>> referenced by ld-temp.o
>>> lto.tmp:($ss7UnicodeO14_NFDNormalizerV13decomposeSlow33_B136021ACF5AAEFA178D70CE67C7EEF0LLyyAB6ScalarV6scalar_AB9_NormDataV04normO0t_tF)
>>> referenced 6 more times
ld.lld: error: undefined hidden symbol: _swift_stdlib_getComposition
>>> referenced by ld-temp.o
>>> lto.tmp:($ss7UnicodeO14_NFCNormalizerV7_resume12consumingNFDAB6ScalarVSgAH6scalar_AB9_NormDataV04normI0tSgADzXE_tF)
>>> referenced by ld-temp.o
>>> lto.tmp:($ss7UnicodeO14_NFCNormalizerV7_resume12consumingNFDAB6ScalarVSgAH6scalar_AB9_NormDataV04normI0tSgADzXE_tF)
>>> referenced by ld-temp.o
>>> lto.tmp:($ss7UnicodeO14_NFCNormalizerV7_resume12consumingNFDAB6ScalarVSgAH6scalar_AB9_NormDataV04normI0tSgADzXE_tF.110)
>>> referenced 1 more times
ld.lld: error: undefined hidden symbol: _swift_stdlib_getDecompositionEntry
>>> referenced by ld-temp.o
>>> lto.tmp:($ss7UnicodeO14_NFDNormalizerV13decomposeSlow33_B136021ACF5AAEFA178D70CE67C7EEF0LLyyAB6ScalarV6scalar_AB9_NormDataV04normO0t_tF)
ld.lld: error: undefined hidden symbol: _swift_stdlib_nfd_decompositions
>>> referenced by ld-temp.o
>>> lto.tmp:($ss7UnicodeO14_NFDNormalizerV13decomposeSlow33_B136021ACF5AAEFA178D70CE67C7EEF0LLyyAB6ScalarV6scalar_AB9_NormDataV04normO0t_tF)
>>> referenced by ld-temp.o
>>> lto.tmp:($ss7UnicodeO14_NFDNormalizerV13decomposeSlow33_B136021ACF5AAEFA178D70CE67C7EEF0LLyyAB6ScalarV6scalar_AB9_NormDataV04normO0t_tF)
Reproduction
var table: [String: Int] = [:]
table["foo"] = 1382
Expected behavior
at least there should be some description on how to link the NFD/NFC tables
Environment
Swift version 6.0-dev (LLVM 4ee06774aa7ace9, Swift 2944529)
Target: aarch64-none-none-elf
Additional information
No response