The Swift Package Index logo.Swift Package Index

Build Information

Failed to build swift-aria2, reference main (e1ea84), with Swift 6.2 for Linux on 26 Dec 2025 17:32:15 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.68.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/McNight/Swift-Aria2.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/McNight/Swift-Aria2
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at e1ea84a Update dependencies
Cloned https://github.com/McNight/Swift-Aria2.git
Revision (git rev-parse @):
e1ea84a507aadfd5e405a426d52fd6a872ae7625
SUCCESS checkout https://github.com/McNight/Swift-Aria2.git at main
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.2
Building package at path:  $PWD
https://github.com/McNight/Swift-Aria2.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:basic-6.2-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:e1f50347098d838026a020bb7d0f8bade3d7b84d6d497429b7cf821cdf4fc3d1
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.2-latest
Fetching https://github.com/apple/swift-argument-parser.git
Fetching https://github.com/tuist/Noora
[1/16705] Fetching noora
[837/33692] Fetching noora, swift-argument-parser
Fetched https://github.com/apple/swift-argument-parser.git from cache (6.07s)
Fetched https://github.com/tuist/Noora from cache (6.21s)
Computing version for https://github.com/apple/swift-argument-parser.git
Computed https://github.com/apple/swift-argument-parser.git at 1.7.0 (8.22s)
Computing version for https://github.com/tuist/Noora
Computed https://github.com/tuist/Noora at 0.53.0 (1.56s)
Fetching https://github.com/tuist/path
Fetching https://github.com/onevcat/Rainbow
Fetching https://github.com/apple/swift-log
[1/1412] Fetching rainbow
[1216/1793] Fetching rainbow, path
[1794/7552] Fetching rainbow, path, swift-log
Fetched https://github.com/tuist/path from cache (0.45s)
Fetched https://github.com/onevcat/Rainbow from cache (0.47s)
Fetched https://github.com/apple/swift-log from cache (0.48s)
Computing version for https://github.com/tuist/path
Computed https://github.com/tuist/path at 0.3.8 (2.89s)
Computing version for https://github.com/apple/swift-log
Computed https://github.com/apple/swift-log at 1.8.0 (0.40s)
Computing version for https://github.com/onevcat/Rainbow
Computed https://github.com/onevcat/Rainbow at 4.2.1 (2.68s)
Creating working copy for https://github.com/tuist/Noora
Working copy of https://github.com/tuist/Noora resolved at 0.53.0
Creating working copy for https://github.com/onevcat/Rainbow
Working copy of https://github.com/onevcat/Rainbow resolved at 4.2.1
Creating working copy for https://github.com/tuist/path
Working copy of https://github.com/tuist/path resolved at 0.3.8
Creating working copy for https://github.com/apple/swift-argument-parser.git
Working copy of https://github.com/apple/swift-argument-parser.git resolved at 1.7.0
Creating working copy for https://github.com/apple/swift-log
Working copy of https://github.com/apple/swift-log resolved at 1.8.0
[1/1] Compiling plugin GenerateManual
[2/2] Compiling plugin GenerateDoccReference
Building for debugging...
[2/26] Write sources
[11/26] Write swift-version-24593BA9C3E375BF.txt
[13/50] Emitting module Path
[13/50] Compiling CxxAria2 handle.cpp
[15/54] Emitting module Logging
[16/54] Compiling Rainbow StringGenerator.swift
[17/54] Compiling Rainbow Style.swift
[18/55] Compiling Rainbow String+ConditionalStyling.swift
[19/55] Compiling Rainbow String+Rainbow.swift
[20/55] Compiling Rainbow BackgroundColor.swift
[21/55] Compiling Rainbow CodesParser.swift
[22/55] Emitting module Rainbow
[23/55] Compiling Path Path.swift
[25/56] Compiling ArgumentParserToolInfo ToolInfo.swift
[26/56] Emitting module ArgumentParserToolInfo
[27/57] Wrapping AST for Path for debugging
[28/57] Wrapping AST for ArgumentParserToolInfo for debugging
[30/103] Compiling Logging Locks.swift
[31/103] Compiling Logging MetadataProvider.swift
[32/103] Compiling ArgumentParser CompletionsGenerator.swift
[33/103] Compiling ArgumentParser FishCompletionsGenerator.swift
[34/103] Compiling ArgumentParser NameSpecification.swift
[35/103] Compiling ArgumentParser Option.swift
[36/103] Compiling ArgumentParser OptionGroup.swift
[37/103] Compiling ArgumentParser BashCompletionsGenerator.swift
[38/103] Compiling ArgumentParser Errors.swift
[39/103] Compiling ArgumentParser Flag.swift
[40/103] Compiling Rainbow StyledStringBuilder.swift
[42/104] Compiling Logging LogHandler.swift
[43/104] Compiling Logging Logging.swift
[44/105] Wrapping AST for Rainbow for debugging
[45/105] Wrapping AST for Logging for debugging
[47/144] Emitting module Noora
[48/149] Compiling Noora TerminalText+DisplayWidth.swift
[49/149] Compiling Noora TerminalText.swift
[50/149] Compiling Noora ValidatableError.swift
[51/149] Compiling Noora ValidatableRule.swift
[52/149] Compiling Noora ValidationError.swift
[58/149] Compiling Noora InputValidating.swift
[60/155] Compiling Noora LengthValidationRule.swift
[61/155] Compiling Noora NonEmptyValidationRule.swift
[62/155] Compiling Noora RegexValidationRule.swift
[63/155] Compiling Noora Validator.swift
[64/155] Compiling Noora LockIsolated.swift
[65/155] Compiling Noora Renderer.swift
[66/155] Compiling Noora Spinner.swift
[67/155] Compiling Noora StandardPipelines.swift
[68/155] Compiling Noora Terminal.swift
[69/155] Compiling Noora NooraError.swift
[70/155] Compiling Noora NooraMock.swift
[71/155] Compiling Noora StandardPipelineType.swift
[72/155] Compiling Noora Theme.swift
[73/155] Compiling Noora KeyStrokeListener.swift
[74/155] Compiling ArgumentParser Tree.swift
[75/155] Compiling ArgumentParser CodingKeyValidator.swift
[76/155] Compiling ArgumentParser NonsenseFlagsValidator.swift
[77/155] Compiling ArgumentParser ParsableArgumentsValidation.swift
[78/155] Compiling ArgumentParser PositionalArgumentsValidator.swift
[79/155] Compiling ArgumentParser UniqueNamesValidator.swift
[80/155] Compiling Noora PaginatedTable.swift
[81/155] Compiling Noora SelectableTable.swift
[82/155] Compiling Noora Table.swift
[83/155] Compiling Noora TableColumn.swift
[84/155] Compiling Noora TableData.swift
[85/155] Compiling Noora TableRenderer.swift
[86/155] Compiling Noora Stack.swift
[87/155] Compiling Noora Character+isPrintable.swift
[88/155] Compiling Noora String+Rainbow.swift
[89/155] Compiling Noora String+ValidatableError.swift
[90/155] Compiling Noora Noora.swift
[91/155] Compiling Noora TableStyle.swift
[92/155] Compiling Noora UpdatingSelectableTable.swift
[93/155] Compiling Noora UpdatingTable.swift
[94/155] Compiling Noora TextPrompt.swift
[95/155] Compiling Noora YesOrNoChoicePrompt.swift
[96/155] Compiling Noora Content.swift
[109/155] Compiling Noora Alert.swift
[110/155] Compiling Noora CollapsibleStep.swift
[111/155] Compiling Noora MultipleChoicePrompt.swift
[112/155] Compiling Noora ProgressBarStep.swift
[113/155] Compiling Noora ProgressStep.swift
[114/155] Compiling Noora SingleChoicePrompt.swift
[116/155] Emitting module ArgumentParser
[123/156] Wrapping AST for Noora for debugging
[124/156] Write Objects.LinkFileList
[125/156] Archiving libNoora.a
[145/156] Compiling ArgumentParser CommandParser.swift
[146/156] Compiling ArgumentParser InputKey.swift
[147/157] Wrapping AST for ArgumentParser for debugging
error: emit-module command failed with exit code 1 (use -v to see invocation)
[149/157] Compiling SwiftAria2 aria.swift
[150/157] Emitting module SwiftAria2
/host/spi-builder-workspace/Sources/SwiftAria2/handle.swift:5:50: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 3 |
 4 | public final class DownloadHandle {
 5 |     package typealias CompletionHandler = (URL?, URLResponse?, (any Error)?) -> Void
   |                                                  `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 6 |
 7 |     package var 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
/usr/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/stl_vector.h:389:11: warning: 'import_owned' Swift attribute ignored on type 'vector': type is not copyable or destructible [#ClangDeclarationImport]
 387 |   */
 388 |   template<typename _Tp, typename _Alloc = std::allocator<_Tp> >
 389 |     class vector : protected _Vector_base<_Tp, _Alloc>
     |           `- warning: 'import_owned' Swift attribute ignored on type 'vector': type is not copyable or destructible [#ClangDeclarationImport]
 390 |     {
 391 | #ifdef _GLIBCXX_CONCEPT_CHECKS
[#ClangDeclarationImport]: <https://docs.swift.org/compiler/documentation/diagnostics/clang-declaration-import>
[151/157] Compiling SwiftAria2 handle.swift
/host/spi-builder-workspace/Sources/SwiftAria2/handle.swift:5:50: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 3 |
 4 | public final class DownloadHandle {
 5 |     package typealias CompletionHandler = (URL?, URLResponse?, (any Error)?) -> Void
   |                                                  `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 6 |
 7 |     package var 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
/usr/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/stl_vector.h:389:11: warning: 'import_owned' Swift attribute ignored on type 'vector': type is not copyable or destructible [#ClangDeclarationImport]
 387 |   */
 388 |   template<typename _Tp, typename _Alloc = std::allocator<_Tp> >
 389 |     class vector : protected _Vector_base<_Tp, _Alloc>
     |           `- warning: 'import_owned' Swift attribute ignored on type 'vector': type is not copyable or destructible [#ClangDeclarationImport]
 390 |     {
 391 | #ifdef _GLIBCXX_CONCEPT_CHECKS
[#ClangDeclarationImport]: <https://docs.swift.org/compiler/documentation/diagnostics/clang-declaration-import>
[152/157] Compiling SwiftAria2 session.swift
/usr/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/stl_vector.h:389:11: warning: 'import_owned' Swift attribute ignored on type 'vector': type is not copyable or destructible [#ClangDeclarationImport]
 387 |   */
 388 |   template<typename _Tp, typename _Alloc = std::allocator<_Tp> >
 389 |     class vector : protected _Vector_base<_Tp, _Alloc>
     |           `- warning: 'import_owned' Swift attribute ignored on type 'vector': type is not copyable or destructible [#ClangDeclarationImport]
 390 |     {
 391 | #ifdef _GLIBCXX_CONCEPT_CHECKS
/host/spi-builder-workspace/Sources/SwiftAria2/session.swift:56:9: error: cannot convert return expression of type 'Array<std.vector<CUnsignedLong, std.allocator<CUnsignedLong>>.Element>' (aka 'Array<UInt>') to return type '[aria2.A2Gid]' (aka 'Array<UInt64>')
 54 |
 55 |     var getActiveDownloadIDs: [aria2.A2Gid] {
 56 |         Array(aria2.getActiveDownload(sessionPtr))
    |         |- error: cannot convert return expression of type 'Array<std.vector<CUnsignedLong, std.allocator<CUnsignedLong>>.Element>' (aka 'Array<UInt>') to return type '[aria2.A2Gid]' (aka 'Array<UInt64>')
    |         `- note: arguments to generic parameter 'Element' ('std.vector<CUnsignedLong, std.allocator<CUnsignedLong>>.Element' (aka 'UInt') and 'aria2.A2Gid' (aka 'UInt64')) are expected to be equal
 57 |     }
 58 |
/host/spi-builder-workspace/Sources/SwiftAria2/session.swift:60:86: error: cannot convert value of type 'std.vector<CUnsignedLong, std.allocator<CUnsignedLong>>.Element' (aka 'UInt') to expected argument type 'aria2.A2Gid' (aka 'UInt64')
 58 |
 59 |     var getActiveDownloadHandles: [DownloadHandle] {
 60 |         aria2.getActiveDownload(sessionPtr).map { DownloadHandle(session: self, gid: $0) }
    |                                                                                      `- error: cannot convert value of type 'std.vector<CUnsignedLong, std.allocator<CUnsignedLong>>.Element' (aka 'UInt') to expected argument type 'aria2.A2Gid' (aka 'UInt64')
 61 |     }
 62 | }
/usr/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/system_error:202:5: note: function 'error_code' unavailable (cannot import)
200 |     : _M_value(0), _M_cat(&system_category()) { }
201 |
202 |     error_code(int __v, const error_category& __cat) noexcept
    |     |                   `- note: parameter '__cat' unavailable (cannot import)
    |     `- note: function 'error_code' unavailable (cannot import)
203 |     : _M_value(__v), _M_cat(&__cat) { }
204 |
    :
208 |       { *this = make_error_code(__e); }
209 |
210 |     void
    |     `- note: function 'assign' unavailable (cannot import)
211 |     assign(int __v, const error_category& __cat) noexcept
    |                     `- note: parameter '__cat' unavailable (cannot import)
212 |     {
213 |       _M_value = __v;
    :
229 |     value() const noexcept { return _M_value; }
230 |
231 |     const error_category&
    |     |- note: function 'category' unavailable (cannot import)
    |     `- note: return type unavailable (cannot import)
232 |     category() const noexcept { return *_M_cat; }
233 |
    :
301 |     : _M_value(0), _M_cat(&generic_category()) { }
302 |
303 |     error_condition(int __v, const error_category& __cat) noexcept
    |     |                        `- note: parameter '__cat' unavailable (cannot import)
    |     `- note: function 'error_condition' unavailable (cannot import)
304 |     : _M_value(__v), _M_cat(&__cat) { }
305 |
    :
309 |       { *this = make_error_condition(__e); }
310 |
311 |     void
    |     `- note: function 'assign' unavailable (cannot import)
312 |     assign(int __v, const error_category& __cat) noexcept
    |                     `- note: parameter '__cat' unavailable (cannot import)
313 |     {
314 |       _M_value = __v;
    :
331 |     value() const noexcept { return _M_value; }
332 |
333 |     const error_category&
    |     |- note: function 'category' unavailable (cannot import)
    |     `- note: return type unavailable (cannot import)
334 |     category() const noexcept { return *_M_cat; }
335 |
/usr/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/typeindex:57:5: note: function 'type_index' unavailable (cannot import)
 55 |   struct type_index
 56 |   {
 57 |     type_index(const type_info& __rhs) noexcept
    |     |          `- note: parameter '__rhs' unavailable (cannot import)
    |     `- note: function 'type_index' unavailable (cannot import)
 58 |     : _M_target(&__rhs) { }
 59 |
[#ClangDeclarationImport]: <https://docs.swift.org/compiler/documentation/diagnostics/clang-declaration-import>
BUILD FAILURE 6.2 linux