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 with Swift 5.10 for Linux.

Build Command

bash -c docker run --rm -v "checkouts-4606859-1":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.29.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/trilemma-dev/EmbeddedPropertyList.git
Reference: 2.0.2
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
 * tag               2.0.2      -> FETCH_HEAD
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 2.0.2
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.10
Building package at path:  $workDir
https://github.com/trilemma-dev/EmbeddedPropertyList.git
Running build ...
bash -c docker run --rm -v "checkouts-4606859-1":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build 2>&1
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
    private func machHeaderOffsetsForFatExecutable(data: Data, mustSwap: Bool) -> [cpu_type_t : UInt32] {
                                                                                   ^~~~~~~~~~
/host/spi-builder-workspace/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:245:51: error: cannot find type 'cpu_type_t' in scope
        fileprivate func asDarwinType() throws -> cpu_type_t {
                                                  ^~~~~~~~~~
/host/spi-builder-workspace/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:260:42: error: cannot find type 'cpu_type_t' in scope
        private func cpuType() throws -> 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
    private func machHeaderOffsetsForFatExecutable(data: Data, mustSwap: Bool) -> [cpu_type_t : UInt32] {
                                                                                   ^~~~~~~~~~
/host/spi-builder-workspace/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:245:51: error: cannot find type 'cpu_type_t' in scope
        fileprivate func asDarwinType() throws -> cpu_type_t {
                                                  ^~~~~~~~~~
/host/spi-builder-workspace/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:260:42: error: cannot find type 'cpu_type_t' in scope
        private func cpuType() throws -> cpu_type_t {
                                         ^~~~~~~~~~
/host/spi-builder-workspace/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:44:52: error: cannot find 'MH_EXECUTE_SYM' in scope
        guard let mhExecutePointer = dlsym(handle, MH_EXECUTE_SYM) else {
                                                   ^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:47:78: error: cannot find 'mach_header_64' in scope
        let mhExecuteBoundPointer = mhExecutePointer.assumingMemoryBound(to: mach_header_64.self)
                                                                             ^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:50:29: error: cannot find 'getsectiondata' in scope
        guard let section = getsectiondata(mhExecuteBoundPointer, "__TEXT", self.sectionName, &size) else {
                            ^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:114:56: error: cannot find 'mach_header_64' in scope
            let headerPointer = pointer.bindMemory(to: mach_header_64.self).baseAddress
                                                       ^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:115:40: error: cannot find 'getsectbynamefromheader_64' in scope
            guard let sectionPointer = getsectbynamefromheader_64(headerPointer, "__TEXT", self.sectionName) else {
                                       ^~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:114:41: error: generic parameter 'T' could not be inferred
            let headerPointer = pointer.bindMemory(to: mach_header_64.self).baseAddress
                                        ^
Swift.UnsafeRawBufferPointer:13:17: note: in call to function 'bindMemory(to:)'
    public func bindMemory<T>(to type: T.Type) -> UnsafeBufferPointer<T>
                ^
/host/spi-builder-workspace/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:162:26: error: cannot find 'MH_MAGIC' in scope
        return (magic == MH_MAGIC) || (magic == MH_CIGAM)
                         ^~~~~~~~
/host/spi-builder-workspace/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:162:49: error: cannot find 'MH_CIGAM' in scope
        return (magic == MH_MAGIC) || (magic == MH_CIGAM)
                                                ^~~~~~~~
/host/spi-builder-workspace/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:174:26: error: cannot find 'MH_MAGIC_64' in scope
        return (magic == MH_MAGIC_64) || (magic == MH_CIGAM_64)
                         ^~~~~~~~~~~
/host/spi-builder-workspace/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:174:52: error: cannot find 'MH_CIGAM_64' in scope
        return (magic == MH_MAGIC_64) || (magic == MH_CIGAM_64)
                                                   ^~~~~~~~~~~
/host/spi-builder-workspace/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:183:24: error: cannot find 'FAT_MAGIC' in scope
      return (magic == FAT_MAGIC) || (magic == FAT_CIGAM)
                       ^~~~~~~~~
/host/spi-builder-workspace/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:183:48: error: cannot find 'FAT_CIGAM' in scope
      return (magic == FAT_MAGIC) || (magic == FAT_CIGAM)
                                               ^~~~~~~~~
/host/spi-builder-workspace/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:192:26: error: cannot find 'MH_CIGAM' in scope
        return (magic == MH_CIGAM) || (magic == MH_CIGAM_64) || (magic == FAT_CIGAM)
                         ^~~~~~~~
/host/spi-builder-workspace/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:192:49: error: cannot find 'MH_CIGAM_64' in scope
        return (magic == MH_CIGAM) || (magic == MH_CIGAM_64) || (magic == FAT_CIGAM)
                                                ^~~~~~~~~~~
/host/spi-builder-workspace/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:192:75: error: cannot find 'FAT_CIGAM' in scope
        return (magic == MH_CIGAM) || (magic == MH_CIGAM_64) || (magic == FAT_CIGAM)
                                                                          ^~~~~~~~~
/host/spi-builder-workspace/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:204:28: error: cannot find 'cpu_type_t' in scope
        var archOffsets = [cpu_type_t : UInt32]()
                           ^~~~~~~~~~
/host/spi-builder-workspace/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:204:27: error: cannot call value of non-function type '[AnyHashable : UInt32.Type]'
        var archOffsets = [cpu_type_t : UInt32]()
                          ^                    ~~

/host/spi-builder-workspace/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:209:37: error: cannot find 'fat_header' in scope
        var header = read(data, as: fat_header.self, fromByteOffset: 0)
                                    ^~~~~~~~~~
/host/spi-builder-workspace/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:209:22: error: type of expression is ambiguous without a type annotation
        var header = read(data, as: fat_header.self, fromByteOffset: 0)
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:211:13: error: cannot find 'swap_fat_header' in scope
            swap_fat_header(&header, NXHostByteOrder())
            ^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:211:38: error: cannot find 'NXHostByteOrder' in scope
            swap_fat_header(&header, NXHostByteOrder())
                                     ^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:216:39: error: cannot find type 'fat_header' in scope
        var archOffset = MemoryLayout<fat_header>.size
                                      ^~~~~~~~~~
/host/spi-builder-workspace/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:262:27: error: cannot find 'cpu_type_t' in scope
            var cpuType = cpu_type_t()
                          ^~~~~~~~~~
/host/spi-builder-workspace/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:263:37: error: cannot find type 'cpu_type_t' in scope
            var size = MemoryLayout<cpu_type_t>.size
                                    ^~~~~~~~~~
/host/spi-builder-workspace/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:264:19: error: cannot find 'sysctlbyname' in scope
            guard sysctlbyname("hw.cputype", &cpuType, &size, nil, 0) == 0 else {
                  ^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:264:63: error: 'nil' requires a contextual type
            guard sysctlbyname("hw.cputype", &cpuType, &size, nil, 0) == 0 else {
                                                              ^
/host/spi-builder-workspace/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:271:19: error: cannot find 'sysctlbyname' in scope
            guard sysctlbyname("hw.cpu64bit_capable", &capable64bit, &size, nil, 0) == 0 else {
                  ^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:271:77: error: 'nil' requires a contextual type
            guard sysctlbyname("hw.cpu64bit_capable", &capable64bit, &size, nil, 0) == 0 else {
                                                                            ^
/host/spi-builder-workspace/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:276:56: error: cannot find 'CPU_ARCH_ABI64' in scope
            cpuType = (capable64bit == 1) ? (cpuType | CPU_ARCH_ABI64) : cpuType
                                                       ^~~~~~~~~~~~~~
error: fatalError
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[2/3] Emitting module EmbeddedPropertyList
/host/spi-builder-workspace/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:202:84: error: cannot find type 'cpu_type_t' in scope
    private func machHeaderOffsetsForFatExecutable(data: Data, mustSwap: Bool) -> [cpu_type_t : UInt32] {
                                                                                   ^~~~~~~~~~
/host/spi-builder-workspace/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:245:51: error: cannot find type 'cpu_type_t' in scope
        fileprivate func asDarwinType() throws -> cpu_type_t {
                                                  ^~~~~~~~~~
/host/spi-builder-workspace/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:260:42: error: cannot find type 'cpu_type_t' in scope
        private func cpuType() throws -> cpu_type_t {
                                         ^~~~~~~~~~
[3/3] Compiling EmbeddedPropertyList EmbeddedPropertyListReader.swift
/host/spi-builder-workspace/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:202:84: error: cannot find type 'cpu_type_t' in scope
    private func machHeaderOffsetsForFatExecutable(data: Data, mustSwap: Bool) -> [cpu_type_t : UInt32] {
                                                                                   ^~~~~~~~~~
/host/spi-builder-workspace/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:245:51: error: cannot find type 'cpu_type_t' in scope
        fileprivate func asDarwinType() throws -> cpu_type_t {
                                                  ^~~~~~~~~~
/host/spi-builder-workspace/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:260:42: error: cannot find type 'cpu_type_t' in scope
        private func cpuType() throws -> cpu_type_t {
                                         ^~~~~~~~~~
/host/spi-builder-workspace/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:44:52: error: cannot find 'MH_EXECUTE_SYM' in scope
        guard let mhExecutePointer = dlsym(handle, MH_EXECUTE_SYM) else {
                                                   ^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:47:78: error: cannot find 'mach_header_64' in scope
        let mhExecuteBoundPointer = mhExecutePointer.assumingMemoryBound(to: mach_header_64.self)
                                                                             ^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:50:29: error: cannot find 'getsectiondata' in scope
        guard let section = getsectiondata(mhExecuteBoundPointer, "__TEXT", self.sectionName, &size) else {
                            ^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:114:56: error: cannot find 'mach_header_64' in scope
            let headerPointer = pointer.bindMemory(to: mach_header_64.self).baseAddress
                                                       ^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:115:40: error: cannot find 'getsectbynamefromheader_64' in scope
            guard let sectionPointer = getsectbynamefromheader_64(headerPointer, "__TEXT", self.sectionName) else {
                                       ^~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:114:41: error: generic parameter 'T' could not be inferred
            let headerPointer = pointer.bindMemory(to: mach_header_64.self).baseAddress
                                        ^
Swift.UnsafeRawBufferPointer:13:17: note: in call to function 'bindMemory(to:)'
    public func bindMemory<T>(to type: T.Type) -> UnsafeBufferPointer<T>
                ^
/host/spi-builder-workspace/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:162:26: error: cannot find 'MH_MAGIC' in scope
        return (magic == MH_MAGIC) || (magic == MH_CIGAM)
                         ^~~~~~~~
/host/spi-builder-workspace/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:162:49: error: cannot find 'MH_CIGAM' in scope
        return (magic == MH_MAGIC) || (magic == MH_CIGAM)
                                                ^~~~~~~~
/host/spi-builder-workspace/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:174:26: error: cannot find 'MH_MAGIC_64' in scope
        return (magic == MH_MAGIC_64) || (magic == MH_CIGAM_64)
                         ^~~~~~~~~~~
/host/spi-builder-workspace/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:174:52: error: cannot find 'MH_CIGAM_64' in scope
        return (magic == MH_MAGIC_64) || (magic == MH_CIGAM_64)
                                                   ^~~~~~~~~~~
/host/spi-builder-workspace/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:183:24: error: cannot find 'FAT_MAGIC' in scope
      return (magic == FAT_MAGIC) || (magic == FAT_CIGAM)
                       ^~~~~~~~~
/host/spi-builder-workspace/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:183:48: error: cannot find 'FAT_CIGAM' in scope
      return (magic == FAT_MAGIC) || (magic == FAT_CIGAM)
                                               ^~~~~~~~~
/host/spi-builder-workspace/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:192:26: error: cannot find 'MH_CIGAM' in scope
        return (magic == MH_CIGAM) || (magic == MH_CIGAM_64) || (magic == FAT_CIGAM)
                         ^~~~~~~~
/host/spi-builder-workspace/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:192:49: error: cannot find 'MH_CIGAM_64' in scope
        return (magic == MH_CIGAM) || (magic == MH_CIGAM_64) || (magic == FAT_CIGAM)
                                                ^~~~~~~~~~~
/host/spi-builder-workspace/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:192:75: error: cannot find 'FAT_CIGAM' in scope
        return (magic == MH_CIGAM) || (magic == MH_CIGAM_64) || (magic == FAT_CIGAM)
                                                                          ^~~~~~~~~
/host/spi-builder-workspace/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:204:28: error: cannot find 'cpu_type_t' in scope
        var archOffsets = [cpu_type_t : UInt32]()
                           ^~~~~~~~~~
/host/spi-builder-workspace/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:204:27: error: cannot call value of non-function type '[AnyHashable : UInt32.Type]'
        var archOffsets = [cpu_type_t : UInt32]()
                          ^                    ~~

/host/spi-builder-workspace/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:209:37: error: cannot find 'fat_header' in scope
        var header = read(data, as: fat_header.self, fromByteOffset: 0)
                                    ^~~~~~~~~~
/host/spi-builder-workspace/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:209:22: error: type of expression is ambiguous without a type annotation
        var header = read(data, as: fat_header.self, fromByteOffset: 0)
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:211:13: error: cannot find 'swap_fat_header' in scope
            swap_fat_header(&header, NXHostByteOrder())
            ^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:211:38: error: cannot find 'NXHostByteOrder' in scope
            swap_fat_header(&header, NXHostByteOrder())
                                     ^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:216:39: error: cannot find type 'fat_header' in scope
        var archOffset = MemoryLayout<fat_header>.size
                                      ^~~~~~~~~~
/host/spi-builder-workspace/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:262:27: error: cannot find 'cpu_type_t' in scope
            var cpuType = cpu_type_t()
                          ^~~~~~~~~~
/host/spi-builder-workspace/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:263:37: error: cannot find type 'cpu_type_t' in scope
            var size = MemoryLayout<cpu_type_t>.size
                                    ^~~~~~~~~~
/host/spi-builder-workspace/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:264:19: error: cannot find 'sysctlbyname' in scope
            guard sysctlbyname("hw.cputype", &cpuType, &size, nil, 0) == 0 else {
                  ^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:264:63: error: 'nil' requires a contextual type
            guard sysctlbyname("hw.cputype", &cpuType, &size, nil, 0) == 0 else {
                                                              ^
/host/spi-builder-workspace/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:271:19: error: cannot find 'sysctlbyname' in scope
            guard sysctlbyname("hw.cpu64bit_capable", &capable64bit, &size, nil, 0) == 0 else {
                  ^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:271:77: error: 'nil' requires a contextual type
            guard sysctlbyname("hw.cpu64bit_capable", &capable64bit, &size, nil, 0) == 0 else {
                                                                            ^
/host/spi-builder-workspace/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:276:56: error: cannot find 'CPU_ARCH_ABI64' in scope
            cpuType = (capable64bit == 1) ? (cpuType | CPU_ARCH_ABI64) : cpuType
                                                       ^~~~~~~~~~~~~~
error: fatalError
BUILD FAILURE 5.10 linux