The Swift Package Index logo.Swift Package Index

Build Information

Failed to build Thrift, reference master (69c286), with Swift 6.4 for Linux on 19 Sep 2026 07:57:38 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-54344844-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:basic-6.4-latest swift build --triple x86_64-unknown-linux-gnu 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 5.1.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/apocolipse/Thrift-Swift.git
Reference: master
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/apocolipse/Thrift-Swift
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 69c2862 add TJSONProtocol support (#35)
Cloned https://github.com/apocolipse/Thrift-Swift.git
Revision (git rev-parse @):
69c28628b75eda61465d58938dcf83d485e847ec
SUCCESS checkout https://github.com/apocolipse/Thrift-Swift.git at master
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.4
Building package at path:  $PWD
https://github.com/apocolipse/Thrift-Swift.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344844-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:basic-6.4-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.4-latest: Pulling from saguaro1/spi-images
Digest: sha256:c77fcce225e223ac0fafed844619173fc6de8d62dd560eeb28db3182af6a282b
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:basic-6.4-latest
Building for debugging...
[Planning deferred tasks]
error: SwiftCompile normal x86_64 failed with a nonzero exit code. Command line:     cd /host

/host/spi-builder-workspace/Sources/LinuxHelper.swift:29:31: error: cannot find 'kCFSocketSuccess' in scope
27 |
28 | extension CFSocketError {
29 |   public static let success = kCFSocketSuccess
   |                               `- error: cannot find 'kCFSocketSuccess' in scope
30 | }
31 |
/host/spi-builder-workspace/Sources/THTTPSessionTransport.swift:26:36: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 24 | public class THTTPSessionTransport: TAsyncTransport {
 25 |   public class Factory : TAsyncTransportFactory {
 26 |     public var responseValidate: ((HTTPURLResponse?, Data?) throws -> Void)?
    |                                    `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 27 |
 28 |     var session: URLSession
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/THTTPSessionTransport.swift:28:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 26 |     public var responseValidate: ((HTTPURLResponse?, Data?) throws -> Void)?
 27 |
 28 |     var session: URLSession
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 29 |     var url: URL
 30 |
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/THTTPSessionTransport.swift:31:70: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 29 |     var url: URL
 30 |
 31 |     public class func setupDefaultsForSessionConfiguration(_ config: URLSessionConfiguration, withProtocolName protocolName: String?) {
    |                                                                      `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 32 |       var thriftContentType = "application/x-thrift"
 33 |
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/THTTPSessionTransport.swift:50:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 48 |     }
 49 |
 50 |     public init(session: URLSession, url: URL) {
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 51 |       self.session = session
 52 |       self.url = url
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/THTTPSessionTransport.swift:59:39: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 57 |     }
 58 |
 59 |     func validateResponse(_ response: HTTPURLResponse?, data: Data?) throws {
    |                                       `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 60 |       try responseValidate?(response, data)
 61 |     }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/THTTPSessionTransport.swift:63:37: error: cannot find type 'URLRequest' in scope
 61 |     }
 62 |
 63 |     func taskWithRequest(_ request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> ()) throws -> URLSessionTask {
    |                                     `- error: cannot find type 'URLRequest' in scope
 64 |
 65 |       let newTask: URLSessionTask? = session.dataTask(with: request, completionHandler: completionHandler)
/host/spi-builder-workspace/Sources/THTTPSessionTransport.swift:63:86: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 61 |     }
 62 |
 63 |     func taskWithRequest(_ request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> ()) throws -> URLSessionTask {
    |                                                                                      `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 64 |
 65 |       let newTask: URLSessionTask? = session.dataTask(with: request, completionHandler: completionHandler)
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/THTTPSessionTransport.swift:63:125: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 61 |     }
 62 |
 63 |     func taskWithRequest(_ request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> ()) throws -> URLSessionTask {
    |                                                                                                                             `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 64 |
 65 |       let newTask: URLSessionTask? = session.dataTask(with: request, completionHandler: completionHandler)
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
  |                  `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/TList.swift:34:14: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'TList' to 'Hashable' by implementing 'hash(into:)' instead [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration\DeprecatedDeclaration]8;;\]
 32 |
 33 |   /// Mark: Hashable
 34 |   public var hashValue : Int {
    |              `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'TList' to 'Hashable' by implementing 'hash(into:)' instead [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration\DeprecatedDeclaration]8;;\]
 35 |     let prime = 31
 36 |     var result = 1
/host/spi-builder-workspace/Sources/TMap.swift:119:14: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'TMap' to 'Hashable' by implementing 'hash(into:)' instead [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration\DeprecatedDeclaration]8;;\]
117 |   /// Mark: Hashable
118 |
119 |   public var hashValue: Int {
    |              `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'TMap' to 'Hashable' by implementing 'hash(into:)' instead [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration\DeprecatedDeclaration]8;;\]
120 |     let prime = 31
121 |     var result = 1
/host/spi-builder-workspace/Sources/TProtocol.swift:102:3: warning: 'public' modifier is redundant for instance method declared in a public extension
100 |
101 | public extension TProtocol {
102 |   public func writeFieldValue(_ value: TSerializable, name: String, type: TType, id: Int32) throws {
    |   `- warning: 'public' modifier is redundant for instance method declared in a public extension
103 |     try writeFieldBegin(name: name, type: type, fieldID: id)
104 |     try value.write(to: self)
/host/spi-builder-workspace/Sources/TProtocol.swift:108:3: warning: 'public' modifier is redundant for instance method declared in a public extension
106 |   }
107 |
108 |   public func validateValue(_ value: Any?, named name: String) throws {
    |   `- warning: 'public' modifier is redundant for instance method declared in a public extension
109 |     if value == nil {
110 |       throw TProtocolError(error: .unknown, message: "Missing required value for field: \(name)")
/host/spi-builder-workspace/Sources/TProtocol.swift:114:3: warning: 'public' modifier is redundant for instance method declared in a public extension
112 |   }
113 |
114 |   public func readResultMessageBegin() throws {
    |   `- warning: 'public' modifier is redundant for instance method declared in a public extension
115 |     let (_, type, _) = try readMessageBegin();
116 |     if type == .exception {
/host/spi-builder-workspace/Sources/TProtocol.swift:123:3: warning: 'public' modifier is redundant for instance method declared in a public extension
121 |   }
122 |
123 |   public func readException() throws -> TApplicationError {
    |   `- warning: 'public' modifier is redundant for instance method declared in a public extension
124 |     return try TApplicationError.read(from: self)
125 |   }
/host/spi-builder-workspace/Sources/TProtocol.swift:127:3: warning: 'public' modifier is redundant for instance method declared in a public extension
125 |   }
126 |
127 |   public func writeException(messageName name: String, sequenceID: Int32, ex: TApplicationError) throws {
    |   `- warning: 'public' modifier is redundant for instance method declared in a public extension
128 |     try writeMessageBegin(name: name, type: .exception, sequenceID: sequenceID)
129 |     try ex.write(to: self)
/host/spi-builder-workspace/Sources/TProtocol.swift:133:3: warning: 'public' modifier is redundant for instance method declared in a public extension
131 |   }
132 |
133 |   public func skip(type: TType) throws {
    |   `- warning: 'public' modifier is redundant for instance method declared in a public extension
134 |     switch type {
135 |     case .bool:   _ = try read() as Bool
/host/spi-builder-workspace/Sources/TStruct.swift:32:3: warning: 'public' modifier is redundant for static property declared in a public extension
 30 |
 31 | public extension TStruct {
 32 |   public static var fieldIds: [String: (id: Int32, type: TType)] { return [:] }
    |   `- warning: 'public' modifier is redundant for static property declared in a public extension
 33 |   public static var thriftType: TType { return .struct }
 34 |
/host/spi-builder-workspace/Sources/TStruct.swift:33:3: warning: 'public' modifier is redundant for static property declared in a public extension
 31 | public extension TStruct {
 32 |   public static var fieldIds: [String: (id: Int32, type: TType)] { return [:] }
 33 |   public static var thriftType: TType { return .struct }
    |   `- warning: 'public' modifier is redundant for static property declared in a public extension
 34 |
 35 |   public func write(to proto: TProtocol) throws {
/host/spi-builder-workspace/Sources/TStruct.swift:35:3: warning: 'public' modifier is redundant for instance method declared in a public extension
 33 |   public static var thriftType: TType { return .struct }
 34 |
 35 |   public func write(to proto: TProtocol) throws {
    |   `- warning: 'public' modifier is redundant for instance method declared in a public extension
 36 |     // Write struct name first
 37 |     try proto.writeStructBegin(name: Self.structName)
/host/spi-builder-workspace/Sources/TStruct.swift:48:3: warning: 'public' modifier is redundant for property declared in a public extension
 46 |   }
 47 |
 48 |   public var hashValue: Int {
    |   `- warning: 'public' modifier is redundant for property declared in a public extension
 49 |     let prime = 31
 50 |     var result = 1
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
Failed frontend command:
/usr/bin/swift-frontend -frontend -emit-module -experimental-skip-non-inlinable-function-bodies-without-types /host/spi-builder-workspace/Sources/LinuxHelper.swift /host/spi-builder-workspace/Sources/TApplicationError.swift /host/spi-builder-workspace/Sources/TBase64Utils.swift /host/spi-builder-workspace/Sources/TBinary.swift /host/spi-builder-workspace/Sources/TBinaryProtocol.swift /host/spi-builder-workspace/Sources/TClient.swift /host/spi-builder-workspace/Sources/TCompactProtocol.swift /host/spi-builder-workspace/Sources/TEnum.swift /host/spi-builder-workspace/Sources/TError.swift /host/spi-builder-workspace/Sources/TFileHandleTransport.swift /host/spi-builder-workspace/Sources/TFileTransport.swift /host/spi-builder-workspace/Sources/TFramedTransport.swift /host/spi-builder-workspace/Sources/THTTPSessionTransport.swift /host/spi-builder-workspace/Sources/TJSONProtocol.swift /host/spi-builder-workspace/Sources/TList.swift /host/spi-builder-workspace/Sources/TMap.swift /host/spi-builder-workspace/Sources/TMemoryBufferTransport.swift /host/spi-builder-workspace/Sources/TMultiplexedProtocol.swift /host/spi-builder-workspace/Sources/TProcessor.swift /host/spi-builder-workspace/Sources/TProtocol.swift /host/spi-builder-workspace/Sources/TProtocolError.swift /host/spi-builder-workspace/Sources/TSSLSocketTransport.swift /host/spi-builder-workspace/Sources/TSSLSocketTransportError.swift /host/spi-builder-workspace/Sources/TSerializable.swift /host/spi-builder-workspace/Sources/TSet.swift /host/spi-builder-workspace/Sources/TSocketServer.swift /host/spi-builder-workspace/Sources/TSocketTransport.swift /host/spi-builder-workspace/Sources/TStreamTransport.swift /host/spi-builder-workspace/Sources/TStruct.swift /host/spi-builder-workspace/Sources/TTransport.swift /host/spi-builder-workspace/Sources/TTransportError.swift /host/spi-builder-workspace/Sources/TWrappedProtocol.swift /host/spi-builder-workspace/Sources/Thrift.swift -target x86_64-unknown-linux-gnu -disable-objc-interop -I /host/spi-builder-workspace/.build/out/Products/Debug-linux-x86_64 -module-cache-path /host/spi-builder-workspace/.build/out/ModuleCache.noindex -color-diagnostics -Xcc -fcolor-diagnostics -enable-testing -g -debug-info-format\=dwarf -dwarf-version\=4 -swift-version 5 -Onone -D SWIFT_PACKAGE -D DEBUG -D SWIFT_MODULE_RESOURCE_BUNDLE_UNAVAILABLE -D Xcode -serialize-debugging-options -enable-experimental-feature DebugDescriptionMacro -empty-abi-descriptor -external-plugin-path /usr/lib/swift/host/plugins/testing\#/usr/bin/swift-plugin-server -validate-clang-modules-once -clang-build-session-file /host/spi-builder-workspace/.build/out/ModuleCache.noindex/Session.modulevalidation -Xcc -working-directory -Xcc /host -enable-anonymous-context-mangled-names -file-compilation-dir /host -Xcc -fno-omit-frame-pointer -Xcc -D_LIBCPP_HARDENING_MODE\=_LIBCPP_HARDENING_MODE_DEBUG -Xcc -fmodules-prune-interval\=86400 -Xcc -fmodules-prune-after\=345600 -Xcc -I/host/spi-builder-workspace/.build/out/Products/Debug-linux-x86_64/include -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/Thrift.build/Debug-linux-x86_64/Thrift-t.build/DerivedSources-normal/x86_64 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/Thrift.build/Debug-linux-x86_64/Thrift-t.build/DerivedSources/x86_64 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/Thrift.build/Debug-linux-x86_64/Thrift-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -no-auto-bridging-header-chaining -module-name Thrift -const-gather-protocols-file /host/spi-builder-workspace/.build/out/Intermediates.noindex/Thrift.build/Debug-linux-x86_64/Thrift-t.build/Objects-normal/x86_64/Thrift_const_extract_protocols.json -in-process-plugin-server-path /usr/lib/swift/host/libSwiftInProcPluginServer.so -plugin-path /usr/lib/swift/host/plugins -plugin-path /usr/local/lib/swift/host/plugins -emit-module-doc-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/Thrift.build/Debug-linux-x86_64/Thrift-t.build/Objects-normal/x86_64/Modules/Thrift.swiftdoc -emit-module-source-info-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/Thrift.build/Debug-linux-x86_64/Thrift-t.build/Objects-normal/x86_64/Modules/Thrift.swiftsourceinfo -emit-objc-header-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/Thrift.build/Debug-linux-x86_64/Thrift-t.build/Objects-normal/x86_64/Thrift-Swift.h -serialize-diagnostics-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/Thrift.build/Debug-linux-x86_64/Thrift-t.build/Objects-normal/x86_64/Thrift-primary-emit-module.dia -emit-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/Thrift.build/Debug-linux-x86_64/Thrift-t.build/Objects-normal/x86_64/Thrift-primary-emit-module.d -parse-as-library -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/Thrift.build/Debug-linux-x86_64/Thrift-t.build/Objects-normal/x86_64/Modules/Thrift.swiftmodule
error: Build failed
BUILD FAILURE 6.4 linux