The Swift Package Index logo.Swift Package Index

Build Information

Failed to build EmbeddedPropertyList with Swift 5.9 for Linux.

Build Command

docker run --rm -v "checkouts-4606859-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.19.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/trilemma-dev/EmbeddedPropertyList.git
Reference: 2.0.2
Cloned https://github.com/trilemma-dev/EmbeddedPropertyList.git into spi-builder-workspace
SUCCESS checkout https://github.com/trilemma-dev/EmbeddedPropertyList.git at 2.0.2
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.9
Building package at path:  spi-builder-workspace
Running build ...
docker run --rm -v "checkouts-4606859-0":/host -w "/host/spi-builder-workspace" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build 2>&1
Building for debugging...
[1/4] Compiling EmbeddedPropertyList ReadError.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[2/4] Compiling EmbeddedPropertyList BundleVersion.swift
[3/4] 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 {
                                         ^~~~~~~~~~
[4/4] 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 more context
        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.9 linux

Build Machine: Linux 1