The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Failed to build YPersistence with Swift 5.9 for Linux.

Build Command

docker run --rm -v "checkouts-4609320-0":/host -w "/host/spi-builder-workspace" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.23.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/codeandtheory/ypersistence-ios.git
Reference: 1.1.0
Cloned https://github.com/codeandtheory/ypersistence-ios.git into spi-builder-workspace
SPI manifest file found: spi-builder-workspace/.spi.yml
SUCCESS checkout https://github.com/codeandtheory/ypersistence-ios.git at 1.1.0
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.9
Building package at path:  spi-builder-workspace
Running build ...
docker run --rm -v "checkouts-4609320-0":/host -w "/host/spi-builder-workspace" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build 2>&1
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
    /host/spi-builder-workspace/Tests/YPersistenceTests/Assets/YPersistence.xcdatamodeld
Building for debugging...
error: emit-module command failed with exit code 1 (use -v to see invocation)
[1/17] Emitting module YPersistence
/host/spi-builder-workspace/Sources/YPersistence/Extensions/NSManagedObjectContext+SaveChanges.swift:9:8: error: no such module 'CoreData'
import CoreData
       ^
[2/19] Compiling YPersistence SortColumn.swift
/host/spi-builder-workspace/Sources/YPersistence/Extensions/NSManagedObjectContext+SaveChanges.swift:9:8: error: no such module 'CoreData'
import CoreData
       ^
[3/19] Compiling YPersistence SortInfo.swift
/host/spi-builder-workspace/Sources/YPersistence/Extensions/NSManagedObjectContext+SaveChanges.swift:9:8: error: no such module 'CoreData'
import CoreData
       ^
[4/19] Compiling YPersistence DispatchQueue+executeOnMain.swift
/host/spi-builder-workspace/Sources/YPersistence/Extensions/NSManagedObjectContext+SaveChanges.swift:9:8: error: no such module 'CoreData'
import CoreData
       ^
[5/19] Compiling YPersistence NSManagedObjectContext+SaveChanges.swift
/host/spi-builder-workspace/Sources/YPersistence/Extensions/NSManagedObjectContext+SaveChanges.swift:9:8: error: no such module 'CoreData'
import CoreData
       ^
[6/19] Compiling YPersistence NSManagedObjectModel+init.swift
/host/spi-builder-workspace/Sources/YPersistence/Extensions/NSManagedObjectContext+SaveChanges.swift:9:8: error: no such module 'CoreData'
import CoreData
       ^
error: compile command failed due to signal 11 (use -v to see invocation)
/host/spi-builder-workspace/Sources/YPersistence/Extensions/NSManagedObjectContext+SaveChanges.swift:9:8: error: no such module 'CoreData'
import CoreData
       ^
Please submit a bug report (https://swift.org/contributing/#reporting-bugs) and include the crash backtrace.
Stack dump:
0.	Program arguments: /usr/bin/swift-frontend -frontend -c /host/spi-builder-workspace/Sources/YPersistence/Extensions/DispatchQueue+executeOnMain.swift /host/spi-builder-workspace/Sources/YPersistence/Extensions/NSManagedObjectContext+SaveChanges.swift /host/spi-builder-workspace/Sources/YPersistence/Extensions/NSManagedObjectModel+init.swift /host/spi-builder-workspace/Sources/YPersistence/Manager/PersistenceManager+BulkDelete.swift /host/spi-builder-workspace/Sources/YPersistence/Manager/PersistenceManager+Clear.swift /host/spi-builder-workspace/Sources/YPersistence/Manager/PersistenceManager+Delete.swift /host/spi-builder-workspace/Sources/YPersistence/Manager/PersistenceManager+Fetch.swift /host/spi-builder-workspace/Sources/YPersistence/Manager/PersistenceManager+Save.swift -primary-file /host/spi-builder-workspace/Sources/YPersistence/Manager/PersistenceManager+Sync.swift -primary-file /host/spi-builder-workspace/Sources/YPersistence/Manager/PersistenceManager.swift /host/spi-builder-workspace/Sources/YPersistence/Protocols/CoreModel.swift /host/spi-builder-workspace/Sources/YPersistence/Protocols/DataRecord.swift /host/spi-builder-workspace/Sources/YPersistence/Protocols/ModelRepresentable.swift /host/spi-builder-workspace/Sources/YPersistence/Protocols/RecordFromModel.swift /host/spi-builder-workspace/Sources/YPersistence/Protocols/RecordToModel.swift /host/spi-builder-workspace/Sources/YPersistence/Protocols/SyncRecord.swift /host/spi-builder-workspace/Sources/YPersistence/SortColumn.swift /host/spi-builder-workspace/Sources/YPersistence/SortInfo.swift -emit-dependencies-path /host/spi-builder-workspace/.build/x86_64-unknown-linux-gnu/debug/YPersistence.build/Manager/PersistenceManager+Sync.d -emit-reference-dependencies-path /host/spi-builder-workspace/.build/x86_64-unknown-linux-gnu/debug/YPersistence.build/Manager/PersistenceManager+Sync.swiftdeps -emit-dependencies-path /host/spi-builder-workspace/.build/x86_64-unknown-linux-gnu/debug/YPersistence.build/Manager/PersistenceManager.d -emit-reference-dependencies-path /host/spi-builder-workspace/.build/x86_64-unknown-linux-gnu/debug/YPersistence.build/Manager/PersistenceManager.swiftdeps -target x86_64-unknown-linux-gnu -disable-objc-interop -I /host/spi-builder-workspace/.build/x86_64-unknown-linux-gnu/debug -enable-testing -g -module-cache-path /host/spi-builder-workspace/.build/x86_64-unknown-linux-gnu/debug/ModuleCache -swift-version 5 -Onone -D SWIFT_PACKAGE -D DEBUG -new-driver-path /usr/bin/swift-driver -empty-abi-descriptor -resource-dir /usr/lib/swift -enable-anonymous-context-mangled-names -Xcc -fPIC -module-name YPersistence -plugin-path /usr/lib/swift/host/plugins -plugin-path /usr/local/lib/swift/host/plugins -parse-as-library -o /host/spi-builder-workspace/.build/x86_64-unknown-linux-gnu/debug/YPersistence.build/Manager/PersistenceManager+Sync.swift.o -o /host/spi-builder-workspace/.build/x86_64-unknown-linux-gnu/debug/YPersistence.build/Manager/PersistenceManager.swift.o -index-store-path /host/spi-builder-workspace/.build/x86_64-unknown-linux-gnu/debug/index/store -index-system-modules
1.	Swift version 5.9 (swift-5.9-RELEASE)
2.	Compiling with the current language version
3.	While evaluating request TypeCheckSourceFileRequest(source_file "/host/spi-builder-workspace/Sources/YPersistence/Manager/PersistenceManager+Sync.swift")
4.	While evaluating request TypeCheckFunctionBodyRequest(YPersistence.(file).PersistenceManager extension.fetchRecordsToUpload(context:)@/host/spi-builder-workspace/Sources/YPersistence/Manager/PersistenceManager+Sync.swift:21:17)
5.	While type-checking statement at [/host/spi-builder-workspace/Sources/YPersistence/Manager/PersistenceManager+Sync.swift:23:21 - line:30:5] RangeText="{
        let predicate = NSPredicate(format: "\(T.isUploadedKey) == false")
        return try fetchRecords(
            predicate: predicate,
            sortDescriptors: T.sort?.descriptors,
            context: context
        )
    "
6.	While type-checking declaration 0x55860d566788 (at /host/spi-builder-workspace/Sources/YPersistence/Manager/PersistenceManager+Sync.swift:24:9)
7.	While evaluating request PatternBindingEntryRequest((unknown decl), 0, 0)
8.	While type-checking expression at [/host/spi-builder-workspace/Sources/YPersistence/Manager/PersistenceManager+Sync.swift:24:25 - line:24:74] RangeText="NSPredicate(format: "\(T.isUploadedKey) == false""
9.	While type-checking-target starting at /host/spi-builder-workspace/Sources/YPersistence/Manager/PersistenceManager+Sync.swift:24:25
Stack dump without symbol names (ensure you have llvm-symbolizer in your PATH or set the environment var `LLVM_SYMBOLIZER_PATH` to point to it):
/usr/bin/swift-frontend(+0x5f839a3)[0x558609b579a3]
/usr/bin/swift-frontend(+0x5f8195e)[0x558609b5595e]
/usr/bin/swift-frontend(+0x5f83d1a)[0x558609b57d1a]
/lib/x86_64-linux-gnu/libc.so.6(+0x42520)[0x7fe302d87520]
/lib/x86_64-linux-gnu/libc.so.6(free+0x1e)[0x7fe302dea47e]
/usr/bin/swift-frontend(+0x1c6517c)[0x55860583917c]
/usr/bin/swift-frontend(+0x1c65d8d)[0x558605839d8d]
/usr/bin/swift-frontend(+0x1c6758d)[0x55860583b58d]
/usr/bin/swift-frontend(+0x1c6ed9d)[0x558605842d9d]
/usr/bin/swift-frontend(+0x1c6dad7)[0x558605841ad7]
/usr/bin/swift-frontend(+0x20c9f6e)[0x558605c9df6e]
/usr/bin/swift-frontend(+0x20c5d80)[0x558605c99d80]
/usr/bin/swift-frontend(+0x20c9dc8)[0x558605c9ddc8]
/usr/bin/swift-frontend(+0x20c5d59)[0x558605c99d59]
/usr/bin/swift-frontend(+0x20c5582)[0x558605c99582]
/usr/bin/swift-frontend(+0x1c681de)[0x55860583c1de]
/usr/bin/swift-frontend(+0x1bf6e13)[0x5586057cae13]
/usr/bin/swift-frontend(+0x1c9033b)[0x55860586433b]
/usr/bin/swift-frontend(+0x1c90064)[0x558605864064]
/usr/bin/swift-frontend(+0x1c91678)[0x558605865678]
/usr/bin/swift-frontend(+0x1c91862)[0x558605865862]
/usr/bin/swift-frontend(+0x1d7fc1f)[0x558605953c1f]
/usr/bin/swift-frontend(+0x1cb1c5d)[0x558605885c5d]
/usr/bin/swift-frontend(+0x1ca29e7)[0x5586058769e7]
/usr/bin/swift-frontend(+0x1cd12a2)[0x5586058a52a2]
/usr/bin/swift-frontend(+0x1cd105c)[0x5586058a505c]
/usr/bin/swift-frontend(+0x1d7673c)[0x55860594a73c]
/usr/bin/swift-frontend(+0x1d74b7c)[0x558605948b7c]
/usr/bin/swift-frontend(+0x1d73d80)[0x558605947d80]
/usr/bin/swift-frontend(+0x21ae678)[0x558605d82678]
/usr/bin/swift-frontend(+0x21251d7)[0x558605cf91d7]
/usr/bin/swift-frontend(+0x2125176)[0x558605cf9176]
/usr/bin/swift-frontend(+0x1db3f09)[0x558605987f09]
/usr/bin/swift-frontend(+0x1db5e54)[0x558605989e54]
/usr/bin/swift-frontend(+0x1db5cd2)[0x558605989cd2]
/usr/bin/swift-frontend(+0x1db3d99)[0x558605987d99]
/usr/bin/swift-frontend(+0xe16a39)[0x5586049eaa39]
/usr/bin/swift-frontend(+0xc15bc6)[0x5586047e9bc6]
/usr/bin/swift-frontend(+0xc14f3e)[0x5586047e8f3e]
/usr/bin/swift-frontend(+0xa65095)[0x558604639095]
/lib/x86_64-linux-gnu/libc.so.6(+0x29d90)[0x7fe302d6ed90]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0x80)[0x7fe302d6ee40]
/usr/bin/swift-frontend(+0xa642e5)[0x5586046382e5]

*** Program crashed: Bad pointer dereference at 0x00000003fffffff9 ***

Thread 0 "swift-frontend" crashed:

0  0x00007fe302dea47e <unknown> in libc.so.6


Registers:

rax 0x00007ffd3ade4610  58 41 75 0d 86 55 00 00 02 00 00 00 00 00 00 00  XAu··U··········
rdx 0xfffffffffffffed8  58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58  XXXXXXXXXXXXXXXX
rcx 0x000000000d754157  58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58  XXXXXXXXXXXXXXXX
rbx 0x0000000000010001  58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58  XXXXXXXXXXXXXXXX
rsi 0x0000000400000001  58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58  XXXXXXXXXXXXXXXX
rdi 0x00000003fffffff1  58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58  XXXXXXXXXXXXXXXX
rbp 0x0000000000000000  58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58  XXXXXXXXXXXXXXXX
rsp 0x00007ffd3ade4450  58 a5 13 0d 86 55 00 00 40 ec 13 0d 86 55 00 00  X¥···U··@ì···U··
 r8 0x00007ffd3ade4618  02 00 00 00 00 00 00 00 bd b0 83 05 86 55 00 00  ········½°···U··
 r9 0x0000000000000069  02 02 02 02 02 02 02 02 02 02 02 02 02 02 02 02  ················
r10 0x00007fe301133af1  69 6e 69 74 28 62 6c 6f 63 6b 3a 29 00 00 00 30  init(block:)···0
r11 0xfdaf624e422b915e  69 69 69 69 69 69 69 69 69 69 69 69 69 69 69 69  iiiiiiiiiiiiiiii
r12 0x00007ffd3ade4618  02 00 00 00 00 00 00 00 bd b0 83 05 86 55 00 00  ········½°···U··
r13 0x0000000c00010001  02 02 02 02 02 02 02 02 02 02 02 02 02 02 02 02  ················
r14 0x0000000000000001  02 02 02 02 02 02 02 02 02 02 02 02 02 02 02 02  ················
r15 0x00007ffd3ade4830  30 86 12 0d 86 55 00 00 01 35 d9 0d 7c ef 2a 1a  0····U···5Ù·|ï*·
rip 0x00007fe302dea47e  48 8b 47 f8 64 8b 2b a8 02 75 57 48 8b 15 18 39  H·Gød·+¨·uWH···9

rflags 0x0000000000010206  PF

cs 0x0033  fs 0x0000  gs 0x0000


Images (33 omitted):

0x00007fe302d45000–0x00007fe302f01501 229b7dc509053fe4df5e29e8629911f0c3bc66dd libc.so.6 /usr/lib/x86_64-linux-gnu/libc.so.6
BUILD FAILURE 5.9 linux