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 EmbeddedPropertyList, reference main (21bd83), with Swift 6.0 for Linux on 2 Nov 2024 10:13:21 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/trilemma-dev/EmbeddedPropertyList.git
Reference: main
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: 	git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: 	git branch -m <name>
From https://github.com/trilemma-dev/EmbeddedPropertyList
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 21bd832 Merge pull request #2 from trilemma-dev/end-period
Cloned https://github.com/trilemma-dev/EmbeddedPropertyList.git
Revision (git rev-parse @):
21bd832e28a9a66ecdb7b4c21910bb0487a22fe5
SUCCESS checkout https://github.com/trilemma-dev/EmbeddedPropertyList.git at main
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $PWD
https://github.com/trilemma-dev/EmbeddedPropertyList.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/6] Compiling EmbeddedPropertyList ReadError.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/6] Compiling EmbeddedPropertyList BundleVersion.swift
[5/6] Emitting module EmbeddedPropertyList
/host/spi-builder-workspace/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:202:84: error: cannot find type 'cpu_type_t' in scope
200 |     ///   - mustSwap: Whether the data representing the fat header must have it endianness swapped.
201 |     /// - Returns: A dictionary of CPU types to mach headers within the executable. Only 64-bit CPU types are included.
202 |     private func machHeaderOffsetsForFatExecutable(data: Data, mustSwap: Bool) -> [cpu_type_t : UInt32] {
    |                                                                                    `- error: cannot find type 'cpu_type_t' in scope
203 |         // To populate with offsets
204 |         var archOffsets = [cpu_type_t : UInt32]()
/host/spi-builder-workspace/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:245:51: error: cannot find type 'cpu_type_t' in scope
243 |
244 |         /// Returns the corresponding Darwin `cpu_type_t` for this enum value.
245 |         fileprivate func asDarwinType() throws -> cpu_type_t {
    |                                                   `- error: cannot find type 'cpu_type_t' in scope
246 |             switch self {
247 |                 case .x86_64:
/host/spi-builder-workspace/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:260:42: error: cannot find type 'cpu_type_t' in scope
258 |         /// This relies on two `sysctl` calls. More information can be found via `man sysctl`. In particular `sysctl -a` will list all available commands on
259 |         /// the system which should include both `hw.cputype` and `hw.cpu64bit_capable`.
260 |         private func cpuType() throws -> cpu_type_t {
    |                                          `- error: cannot find type 'cpu_type_t' in scope
261 |             // Retrieve CPU type
262 |             var cpuType = cpu_type_t()
[6/6] Compiling EmbeddedPropertyList EmbeddedPropertyListReader.swift
/host/spi-builder-workspace/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:202:84: error: cannot find type 'cpu_type_t' in scope
200 |     ///   - mustSwap: Whether the data representing the fat header must have it endianness swapped.
201 |     /// - Returns: A dictionary of CPU types to mach headers within the executable. Only 64-bit CPU types are included.
202 |     private func machHeaderOffsetsForFatExecutable(data: Data, mustSwap: Bool) -> [cpu_type_t : UInt32] {
    |                                                                                    `- error: cannot find type 'cpu_type_t' in scope
203 |         // To populate with offsets
204 |         var archOffsets = [cpu_type_t : UInt32]()
/host/spi-builder-workspace/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:245:51: error: cannot find type 'cpu_type_t' in scope
243 |
244 |         /// Returns the corresponding Darwin `cpu_type_t` for this enum value.
245 |         fileprivate func asDarwinType() throws -> cpu_type_t {
    |                                                   `- error: cannot find type 'cpu_type_t' in scope
246 |             switch self {
247 |                 case .x86_64:
/host/spi-builder-workspace/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:260:42: error: cannot find type 'cpu_type_t' in scope
258 |         /// This relies on two `sysctl` calls. More information can be found via `man sysctl`. In particular `sysctl -a` will list all available commands on
259 |         /// the system which should include both `hw.cputype` and `hw.cpu64bit_capable`.
260 |         private func cpuType() throws -> cpu_type_t {
    |                                          `- error: cannot find type 'cpu_type_t' in scope
261 |             // Retrieve CPU type
262 |             var cpuType = cpu_type_t()
/host/spi-builder-workspace/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:44:52: error: cannot find 'MH_EXECUTE_SYM' in scope
 42 |         defer { dlclose(handle) }
 43 |
 44 |         guard let mhExecutePointer = dlsym(handle, MH_EXECUTE_SYM) else {
    |                                                    `- error: cannot find 'MH_EXECUTE_SYM' in scope
 45 |             throw ReadError.machHeaderExecuteSymbolUnretrievable
 46 |         }
/host/spi-builder-workspace/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:47:78: error: cannot find 'mach_header_64' in scope
 45 |             throw ReadError.machHeaderExecuteSymbolUnretrievable
 46 |         }
 47 |         let mhExecuteBoundPointer = mhExecutePointer.assumingMemoryBound(to: mach_header_64.self)
    |                                                                              `- error: cannot find 'mach_header_64' in scope
 48 |
 49 |         var size: UInt = 0
/host/spi-builder-workspace/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:50:29: error: cannot find 'getsectiondata' in scope
 48 |
 49 |         var size: UInt = 0
 50 |         guard let section = getsectiondata(mhExecuteBoundPointer, "__TEXT", self.sectionName, &size) else {
    |                             `- error: cannot find 'getsectiondata' in scope
 51 |             throw ReadError.sectionNotFound
 52 |         }
/host/spi-builder-workspace/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:114:56: error: cannot find 'mach_header_64' in scope
112 |         let offsetData = data[Data.Index(machHeaderOffset)..<data.count]
113 |         let plist: Data = try offsetData.withUnsafeBytes { pointer in
114 |             let headerPointer = pointer.bindMemory(to: mach_header_64.self).baseAddress
    |                                                        `- error: cannot find 'mach_header_64' in scope
115 |             guard let sectionPointer = getsectbynamefromheader_64(headerPointer, "__TEXT", self.sectionName) else {
116 |                 throw ReadError.sectionNotFound
/host/spi-builder-workspace/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:115:40: error: cannot find 'getsectbynamefromheader_64' in scope
113 |         let plist: Data = try offsetData.withUnsafeBytes { pointer in
114 |             let headerPointer = pointer.bindMemory(to: mach_header_64.self).baseAddress
115 |             guard let sectionPointer = getsectbynamefromheader_64(headerPointer, "__TEXT", self.sectionName) else {
    |                                        `- error: cannot find 'getsectbynamefromheader_64' in scope
116 |                 throw ReadError.sectionNotFound
117 |             }
/host/spi-builder-workspace/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:114:41: error: generic parameter 'T' could not be inferred
112 |         let offsetData = data[Data.Index(machHeaderOffset)..<data.count]
113 |         let plist: Data = try offsetData.withUnsafeBytes { pointer in
114 |             let headerPointer = pointer.bindMemory(to: mach_header_64.self).baseAddress
    |                                         `- error: generic parameter 'T' could not be inferred
115 |             guard let sectionPointer = getsectbynamefromheader_64(headerPointer, "__TEXT", self.sectionName) else {
116 |                 throw ReadError.sectionNotFound
Swift.UnsafeRawBufferPointer:14:28: note: in call to function 'bindMemory(to:)'
12 |     @inlinable public var baseAddress: UnsafeRawPointer? { get }
13 |     @discardableResult
14 |     @inlinable public func bindMemory<T>(to type: T.Type) -> UnsafeBufferPointer<T> where T : ~Copyable
   |                            `- note: in call to function 'bindMemory(to:)'
15 |     public func withMemoryRebound<T, E, Result>(to type: T.Type, _ body: (_ buffer: UnsafeBufferPointer<T>) throws(E) -> Result) throws(E) -> Result where E : Error, T : ~Copyable, Result : ~Copyable
16 |     public func assumingMemoryBound<T>(to: T.Type) -> UnsafeBufferPointer<T> where T : ~Copyable
/host/spi-builder-workspace/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:162:26: error: cannot find 'MH_MAGIC' in scope
160 |     /// - Returns: Whether the magic value represents a 32-bit architecture executable.
161 |     private func isMagic32(_ magic: UInt32) -> Bool {
162 |         return (magic == MH_MAGIC) || (magic == MH_CIGAM)
    |                          `- error: cannot find 'MH_MAGIC' in scope
163 |     }
164 |
/host/spi-builder-workspace/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:162:49: error: cannot find 'MH_CIGAM' in scope
160 |     /// - Returns: Whether the magic value represents a 32-bit architecture executable.
161 |     private func isMagic32(_ magic: UInt32) -> Bool {
162 |         return (magic == MH_MAGIC) || (magic == MH_CIGAM)
    |                                                 `- error: cannot find 'MH_CIGAM' in scope
163 |     }
164 |
/host/spi-builder-workspace/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:174:26: error: cannot find 'MH_MAGIC_64' in scope
172 |     /// - Returns: Whether the magic value represents a 64-bit architecture executable.
173 |     private func isMagic64(_ magic: UInt32) -> Bool {
174 |         return (magic == MH_MAGIC_64) || (magic == MH_CIGAM_64)
    |                          `- error: cannot find 'MH_MAGIC_64' in scope
175 |     }
176 |
/host/spi-builder-workspace/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:174:52: error: cannot find 'MH_CIGAM_64' in scope
172 |     /// - Returns: Whether the magic value represents a 64-bit architecture executable.
173 |     private func isMagic64(_ magic: UInt32) -> Bool {
174 |         return (magic == MH_MAGIC_64) || (magic == MH_CIGAM_64)
    |                                                    `- error: cannot find 'MH_CIGAM_64' in scope
175 |     }
176 |
/host/spi-builder-workspace/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:183:24: error: cannot find 'FAT_MAGIC' in scope
181 |     /// - Returns: Whether the magic value represents a fat executable (universal binary).
182 |     private func isMagicFat(_ magic: UInt32) -> Bool {
183 |       return (magic == FAT_MAGIC) || (magic == FAT_CIGAM)
    |                        `- error: cannot find 'FAT_MAGIC' in scope
184 |     }
185 |
/host/spi-builder-workspace/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:183:48: error: cannot find 'FAT_CIGAM' in scope
181 |     /// - Returns: Whether the magic value represents a fat executable (universal binary).
182 |     private func isMagicFat(_ magic: UInt32) -> Bool {
183 |       return (magic == FAT_MAGIC) || (magic == FAT_CIGAM)
    |                                                `- error: cannot find 'FAT_CIGAM' in scope
184 |     }
185 |
/host/spi-builder-workspace/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:192:26: error: cannot find 'MH_CIGAM' in scope
190 |     /// - Returns: Whether the magic value represents the oppositie endianness.
191 |     private func mustSwapEndianness(magic: UInt32) -> Bool {
192 |         return (magic == MH_CIGAM) || (magic == MH_CIGAM_64) || (magic == FAT_CIGAM)
    |                          `- error: cannot find 'MH_CIGAM' in scope
193 |     }
194 |
/host/spi-builder-workspace/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:192:49: error: cannot find 'MH_CIGAM_64' in scope
190 |     /// - Returns: Whether the magic value represents the oppositie endianness.
191 |     private func mustSwapEndianness(magic: UInt32) -> Bool {
192 |         return (magic == MH_CIGAM) || (magic == MH_CIGAM_64) || (magic == FAT_CIGAM)
    |                                                 `- error: cannot find 'MH_CIGAM_64' in scope
193 |     }
194 |
/host/spi-builder-workspace/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:192:75: error: cannot find 'FAT_CIGAM' in scope
190 |     /// - Returns: Whether the magic value represents the oppositie endianness.
191 |     private func mustSwapEndianness(magic: UInt32) -> Bool {
192 |         return (magic == MH_CIGAM) || (magic == MH_CIGAM_64) || (magic == FAT_CIGAM)
    |                                                                           `- error: cannot find 'FAT_CIGAM' in scope
193 |     }
194 |
/host/spi-builder-workspace/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:204:28: error: cannot find 'cpu_type_t' in scope
202 |     private func machHeaderOffsetsForFatExecutable(data: Data, mustSwap: Bool) -> [cpu_type_t : UInt32] {
203 |         // To populate with offsets
204 |         var archOffsets = [cpu_type_t : UInt32]()
    |                            `- error: cannot find 'cpu_type_t' in scope
205 |
206 |         // In practice the fat header and fat arch data is always in big-endian byte order while x86_64 (Intel) and
/host/spi-builder-workspace/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:204:27: error: cannot call value of non-function type '[AnyHashable : UInt32.Type]'
202 |     private func machHeaderOffsetsForFatExecutable(data: Data, mustSwap: Bool) -> [cpu_type_t : UInt32] {
203 |         // To populate with offsets
204 |         var archOffsets = [cpu_type_t : UInt32]()
    |                           `- error: cannot call value of non-function type '[AnyHashable : UInt32.Type]'
205 |
206 |         // In practice the fat header and fat arch data is always in big-endian byte order while x86_64 (Intel) and
/host/spi-builder-workspace/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:209:37: error: cannot find 'fat_header' in scope
207 |         // arm64 (Apple Silicon) are little-endian. So the byte orders are always going to need to be swapped. The code
208 |         // here does not assume this to be true, but it's helpful to keep in mind if ever debugging this code.
209 |         var header = read(data, as: fat_header.self, fromByteOffset: 0)
    |                                     `- error: cannot find 'fat_header' in scope
210 |         if mustSwap {
211 |             swap_fat_header(&header, NXHostByteOrder())
/host/spi-builder-workspace/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:209:22: error: type of expression is ambiguous without a type annotation
207 |         // arm64 (Apple Silicon) are little-endian. So the byte orders are always going to need to be swapped. The code
208 |         // here does not assume this to be true, but it's helpful to keep in mind if ever debugging this code.
209 |         var header = read(data, as: fat_header.self, fromByteOffset: 0)
    |                      `- error: type of expression is ambiguous without a type annotation
210 |         if mustSwap {
211 |             swap_fat_header(&header, NXHostByteOrder())
/host/spi-builder-workspace/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:211:13: error: cannot find 'swap_fat_header' in scope
209 |         var header = read(data, as: fat_header.self, fromByteOffset: 0)
210 |         if mustSwap {
211 |             swap_fat_header(&header, NXHostByteOrder())
    |             `- error: cannot find 'swap_fat_header' in scope
212 |         }
213 |
/host/spi-builder-workspace/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:211:38: error: cannot find 'NXHostByteOrder' in scope
209 |         var header = read(data, as: fat_header.self, fromByteOffset: 0)
210 |         if mustSwap {
211 |             swap_fat_header(&header, NXHostByteOrder())
    |                                      `- error: cannot find 'NXHostByteOrder' in scope
212 |         }
213 |
/host/spi-builder-workspace/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:216:39: error: cannot find type 'fat_header' in scope
214 |         // Loop through all of the architecture descriptions in the fat executable (in practice there will typically be
215 |         // 2). These descriptions start immediately after the fat header, so start the offset there.
216 |         var archOffset = MemoryLayout<fat_header>.size
    |                                       `- error: cannot find type 'fat_header' in scope
217 |         for _ in 0..<header.nfat_arch {
218 |             var arch = read(data, as: fat_arch.self, fromByteOffset: archOffset)
/host/spi-builder-workspace/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:262:27: error: cannot find 'cpu_type_t' in scope
260 |         private func cpuType() throws -> cpu_type_t {
261 |             // Retrieve CPU type
262 |             var cpuType = cpu_type_t()
    |                           `- error: cannot find 'cpu_type_t' in scope
263 |             var size = MemoryLayout<cpu_type_t>.size
264 |             guard sysctlbyname("hw.cputype", &cpuType, &size, nil, 0) == 0 else {
/host/spi-builder-workspace/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:263:37: error: cannot find type 'cpu_type_t' in scope
261 |             // Retrieve CPU type
262 |             var cpuType = cpu_type_t()
263 |             var size = MemoryLayout<cpu_type_t>.size
    |                                     `- error: cannot find type 'cpu_type_t' in scope
264 |             guard sysctlbyname("hw.cputype", &cpuType, &size, nil, 0) == 0 else {
265 |                 throw ReadError.architectureNotDetermined
/host/spi-builder-workspace/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:264:19: error: cannot find 'sysctlbyname' in scope
262 |             var cpuType = cpu_type_t()
263 |             var size = MemoryLayout<cpu_type_t>.size
264 |             guard sysctlbyname("hw.cputype", &cpuType, &size, nil, 0) == 0 else {
    |                   `- error: cannot find 'sysctlbyname' in scope
265 |                 throw ReadError.architectureNotDetermined
266 |             }
/host/spi-builder-workspace/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:264:63: error: 'nil' requires a contextual type
262 |             var cpuType = cpu_type_t()
263 |             var size = MemoryLayout<cpu_type_t>.size
264 |             guard sysctlbyname("hw.cputype", &cpuType, &size, nil, 0) == 0 else {
    |                                                               `- error: 'nil' requires a contextual type
265 |                 throw ReadError.architectureNotDetermined
266 |             }
/host/spi-builder-workspace/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:271:19: error: cannot find 'sysctlbyname' in scope
269 |             var capable64bit = Int32()
270 |             size = MemoryLayout<Int32>.size
271 |             guard sysctlbyname("hw.cpu64bit_capable", &capable64bit, &size, nil, 0) == 0 else {
    |                   `- error: cannot find 'sysctlbyname' in scope
272 |                 throw ReadError.architectureNotDetermined
273 |             }
/host/spi-builder-workspace/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:271:77: error: 'nil' requires a contextual type
269 |             var capable64bit = Int32()
270 |             size = MemoryLayout<Int32>.size
271 |             guard sysctlbyname("hw.cpu64bit_capable", &capable64bit, &size, nil, 0) == 0 else {
    |                                                                             `- error: 'nil' requires a contextual type
272 |                 throw ReadError.architectureNotDetermined
273 |             }
/host/spi-builder-workspace/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:276:56: error: cannot find 'CPU_ARCH_ABI64' in scope
274 |
275 |             // If this 64-bit then adjust accordingly to match the definitions for CPU_TYPE_X86_64 and CPU_TYPE_ARM64
276 |             cpuType = (capable64bit == 1) ? (cpuType | CPU_ARCH_ABI64) : cpuType
    |                                                        `- error: cannot find 'CPU_ARCH_ABI64' in scope
277 |
278 |             return cpuType
BUILD FAILURE 6.0 linux