The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Failed to build tuzuru, reference main (fbfd92), with Swift 6.2 for Android on 7 Dec 2025 11:29:11 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:android-6.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.68.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/ainame/tuzuru.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/ainame/tuzuru
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at fbfd926 feat: Improve work distribution in TaskGroup (#98)
Cloned https://github.com/ainame/tuzuru.git
Revision (git rev-parse @):
fbfd9262d623c1323276e89ab0ed51b03454ec5c
SUCCESS checkout https://github.com/ainame/tuzuru.git at main
========================================
Build
========================================
Selected platform:         android
Swift version:             6.2
Building package at path:  $PWD
https://github.com/ainame/tuzuru.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:android-6.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1
android-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:c3fe93b3f7c9edfd66b4287786a9b8caf7805f96d7219e301e257b4e0de911bb
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.2-latest
Fetching https://github.com/swiftlang/swift-subprocess.git
[1/2467] Fetching swift-subprocess
Fetched https://github.com/swiftlang/swift-subprocess.git from cache (0.46s)
Fetching https://github.com/apple/swift-argument-parser.git
Fetching https://github.com/swiftlang/swift-markdown.git
Fetching https://github.com/apple/swift-log.git
Fetching https://github.com/jpsim/Yams.git
Fetching https://github.com/apple/swift-system
Fetching https://github.com/hummingbird-project/swift-mustache.git
[1/1900] Fetching swift-mustache
[1901/13167] Fetching swift-mustache, yams
[1902/18885] Fetching swift-mustache, yams, swift-log
[2017/35762] Fetching swift-mustache, yams, swift-log, swift-argument-parser
[4007/40943] Fetching swift-mustache, yams, swift-log, swift-argument-parser, swift-system
[4065/47953] Fetching swift-mustache, yams, swift-log, swift-argument-parser, swift-system, swift-markdown
Fetched https://github.com/hummingbird-project/swift-mustache.git from cache (0.42s)
[11514/46053] Fetching yams, swift-log, swift-argument-parser, swift-system, swift-markdown
Fetching https://github.com/ainame/swift-displaywidth.git
Fetched https://github.com/apple/swift-system from cache (0.90s)
[25446/40872] Fetching yams, swift-log, swift-argument-parser, swift-markdown
Fetched https://github.com/apple/swift-log.git from cache (0.90s)
[19897/35154] Fetching yams, swift-argument-parser, swift-markdown
[30198/35262] Fetching yams, swift-argument-parser, swift-markdown, swift-displaywidth
Fetched https://github.com/ainame/swift-displaywidth.git from cache (1.00s)
[30648/35154] Fetching yams, swift-argument-parser, swift-markdown
Fetched https://github.com/swiftlang/swift-markdown.git from cache (2.17s)
Fetched https://github.com/apple/swift-argument-parser.git from cache (2.18s)
Fetched https://github.com/jpsim/Yams.git from cache (2.22s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.7.1 (2.60s)
Computing version for https://github.com/ainame/swift-displaywidth.git
Computed https://github.com/ainame/swift-displaywidth.git at 0.0.3 (1.75s)
Computing version for https://github.com/jpsim/Yams.git
Computed https://github.com/jpsim/Yams.git at 6.2.0 (0.83s)
Computing version for https://github.com/swiftlang/swift-markdown.git
Computed https://github.com/swiftlang/swift-markdown.git at 0.7.3 (2.85s)
Fetching https://github.com/swiftlang/swift-cmark.git
[1/18255] Fetching swift-cmark
Fetched https://github.com/swiftlang/swift-cmark.git from cache (1.43s)
Computing version for https://github.com/hummingbird-project/swift-mustache.git
Computed https://github.com/hummingbird-project/swift-mustache.git at 2.0.2 (1.94s)
Computing version for https://github.com/apple/swift-argument-parser.git
Computed https://github.com/apple/swift-argument-parser.git at 1.6.2 (0.44s)
Computing version for https://github.com/swiftlang/swift-cmark.git
Computed https://github.com/swiftlang/swift-cmark.git at 0.7.1 (2.41s)
Computing version for https://github.com/apple/swift-system
Computed https://github.com/apple/swift-system at 1.6.3 (0.44s)
Creating working copy for https://github.com/ainame/swift-displaywidth.git
Working copy of https://github.com/ainame/swift-displaywidth.git resolved at 0.0.3
Creating working copy for https://github.com/jpsim/Yams.git
Working copy of https://github.com/jpsim/Yams.git resolved at 6.2.0
Creating working copy for https://github.com/apple/swift-system
Working copy of https://github.com/apple/swift-system resolved at 1.6.3
Creating working copy for https://github.com/swiftlang/swift-markdown.git
Working copy of https://github.com/swiftlang/swift-markdown.git resolved at 0.7.3
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.7.1
Creating working copy for https://github.com/swiftlang/swift-cmark.git
Working copy of https://github.com/swiftlang/swift-cmark.git resolved at 0.7.1
Creating working copy for https://github.com/hummingbird-project/swift-mustache.git
Working copy of https://github.com/hummingbird-project/swift-mustache.git resolved at 2.0.2
Creating working copy for https://github.com/swiftlang/swift-subprocess.git
Working copy of https://github.com/swiftlang/swift-subprocess.git resolved at main (ab2072d)
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.6.2
[1/1] Compiling plugin GenerateManual
[2/2] Compiling plugin GenerateDoccReference
Building for debugging...
[2/74] Write sources
[2/74] Copying assets
[7/74] Copying templates
[9/74] Compiling cmark-gfm-extensions tagfilter.c
[9/74] Compiling cmark-gfm iterator.c
[11/74] Compiling cmark-gfm-extensions strikethrough.c
[12/74] Compiling cmark-gfm-extensions tasklist.c
[13/74] Compiling cmark-gfm-extensions ext_scanners.c
[14/74] Compiling cmark-gfm latex.c
[14/74] Write swift-version--6B0C4D200E742BB1.txt
[16/74] Compiling cmark-gfm-extensions core-extensions.c
[17/74] Compiling cmark-gfm xml.c
[18/74] Compiling cmark-gfm-extensions table.c
[18/74] Compiling cmark-gfm syntax_extension.c
[20/74] Compiling cmark-gfm-extensions autolink.c
[21/74] Compiling cmark-gfm render.c
[22/74] Compiling cmark-gfm registry.c
[23/76] Compiling cmark-gfm plugin.c
[24/79] Compiling cmark-gfm references.c
[25/82] Compiling cmark-gfm plaintext.c
[26/82] Compiling cmark-gfm man.c
[27/82] Compiling cmark-gfm node.c
[28/82] Compiling cmark-gfm map.c
[29/82] Compiling cmark-gfm linked_list.c
[30/82] Compiling cmark-gfm utf8.c
[31/82] Compiling cmark-gfm html.c
[32/82] Compiling cmark-gfm houdini_html_e.c
[33/82] Compiling cmark-gfm houdini_href_e.c
[34/82] Compiling cmark-gfm footnotes.c
[35/82] Compiling cmark-gfm cmark_ctype.c
[36/82] Compiling cmark-gfm houdini_html_u.c
[37/82] Compiling cmark-gfm inlines.c
[38/82] Compiling cmark-gfm cmark.c
[39/82] Write sources
[44/82] Compiling cmark-gfm buffer.c
[45/82] Compiling cmark-gfm commonmark.c
[46/82] Compiling writer.c
[47/82] Compiling cmark-gfm arena.c
[48/82] Compiling _SubprocessCShims process_shims.c
[49/89] Compiling reader.c
[50/103] Compiling cmark-gfm blocks.c
[51/106] Compiling parser.c
[52/106] Compiling cmark-gfm scanners.c
[53/106] Compiling CAtomic CAtomic.c
[53/106] Write sources
[56/106] Compiling CSystem shims.c
[57/106] Compiling api.c
[58/106] Compiling emitter.c
[59/202] Compiling scanner.c
[61/222] Compiling DisplayWidth DisplayWidth.swift
[62/222] Compiling DisplayWidth EastAsianWidthAttribute.swift
[63/222] Compiling DisplayWidth BinarySearch.swift
[64/222] Compiling DisplayWidth UnicodeData.swift
[65/222] Emitting module SystemPackage
[66/226] Compiling Markdown BasicBlockContainer.swift
[67/226] Compiling Markdown BasicInlineContainer.swift
[68/226] Compiling Markdown BlockContainer.swift
[69/226] Compiling Markdown BlockMarkup.swift
[70/226] Compiling Markdown InlineContainer.swift
[71/226] Compiling Markdown InlineMarkup.swift
[72/226] Compiling Markdown ListItemContainer.swift
[73/226] Compiling Markdown AtomicCounter.swift
[74/234] Compiling Yams Decoder.swift
[75/234] Compiling Yams Emitter.swift
[76/234] Compiling Yams Encoder.swift
[77/234] Compiling Yams AliasDereferencingStrategy.swift
[78/234] Compiling Yams Tag.swift
[79/234] Compiling Yams YamlAnchorProviding.swift
[80/236] Emitting module ArgumentParserToolInfo
[81/236] Compiling ArgumentParserToolInfo ToolInfo.swift
[82/236] Emitting module Yams
[83/237] Wrapping AST for ArgumentParserToolInfo for debugging
[85/281] Compiling ArgumentParser ParserError.swift
[86/281] Compiling ArgumentParser SplitArguments.swift
[87/281] Compiling ArgumentParser DumpHelpGenerator.swift
[88/281] Compiling ArgumentParser HelpCommand.swift
[89/281] Emitting module ArgumentParser
[90/287] Compiling ArgumentParser InputOrigin.swift
[91/287] Compiling ArgumentParser Name.swift
[92/287] Compiling ArgumentParser Parsed.swift
[93/287] Compiling ArgumentParser ParsedValues.swift
[94/287] Compiling ArgumentParser Argument.swift
[95/287] Compiling ArgumentParser ArgumentDiscussion.swift
[96/287] Compiling ArgumentParser ArgumentHelp.swift
[97/287] Compiling ArgumentParser ArgumentVisibility.swift
[98/287] Compiling ArgumentParser CompletionKind.swift
[99/287] Compiling ArgumentParser ArgumentDecoder.swift
[100/287] Compiling ArgumentParser ArgumentDefinition.swift
[101/287] Compiling ArgumentParser ArgumentSet.swift
[102/287] Compiling ArgumentParser CommandParser.swift
[103/287] Compiling ArgumentParser InputKey.swift
[104/287] Compiling ArgumentParser Errors.swift
[105/287] Compiling ArgumentParser Flag.swift
[106/287] Compiling ArgumentParser NameSpecification.swift
[107/287] Compiling ArgumentParser Option.swift
[108/287] Compiling ArgumentParser EnumerableFlag.swift
[109/287] Compiling ArgumentParser ExpressibleByArgument.swift
[110/287] Compiling ArgumentParser ParsableArguments.swift
[111/287] Compiling ArgumentParser ParsableCommand.swift
[112/287] Compiling ArgumentParser OptionGroup.swift
[113/287] Compiling ArgumentParser AsyncParsableCommand.swift
[114/287] Compiling ArgumentParser CommandConfiguration.swift
[115/287] Compiling ArgumentParser CommandGroup.swift
[116/287] Compiling Logging MetadataProvider.swift
[117/287] Emitting module Logging
[118/288] Wrapping AST for SystemPackage for debugging
[120/310] Compiling Subprocess API.swift
[121/310] Compiling Subprocess AsyncBufferSequence.swift
[122/310] Compiling Subprocess Buffer.swift
[123/310] Compiling Subprocess Configuration.swift
[124/310] Compiling Subprocess Error.swift
[125/310] Compiling Subprocess Execution.swift
[126/310] Compiling Subprocess AsyncIO+Dispatch.swift
[127/310] Compiling Logging Locks.swift
[128/310] Compiling Logging Logging.swift
[129/310] Compiling Logging LogHandler.swift
[131/311] Emitting module Mustache
[135/311] Compiling DisplayWidth GeneralCategory.swift
[136/313] Compiling Subprocess Input.swift
[137/313] Compiling Subprocess Output.swift
[138/313] Compiling Mustache Template.swift
[139/313] Compiling Mustache Transform.swift
[140/313] Compiling Subprocess Subprocess+Unix.swift
[154/313] Compiling ArgumentParser HelpGenerator.swift
[155/313] Compiling ArgumentParser MessageInfo.swift
[155/313] Wrapping AST for Logging for debugging
[158/313] Compiling Subprocess AsyncIO+Linux.swift
[159/313] Compiling Subprocess AsyncIO+Windows.swift
[162/314] Compiling Subprocess Subprocess+BSD.swift
[163/314] Compiling Subprocess Subprocess+Windows.swift
[164/314] Compiling Subprocess Result.swift
[165/314] Compiling Subprocess Span+Subprocess.swift
[166/314] Compiling Subprocess Input+Foundation.swift
[167/314] Compiling Subprocess Output+Foundation.swift
[168/314] Compiling Subprocess Span+SubprocessFoundation.swift
[172/318] Emitting module Markdown
[202/318] Compiling ArgumentParser CollectionExtensions.swift
[203/318] Compiling ArgumentParser Mutex.swift
[204/318] Compiling ArgumentParser Platform.swift
[205/318] Compiling ArgumentParser SequenceExtensions.swift
[206/318] Compiling ArgumentParser StringExtensions.swift
[207/318] Compiling ArgumentParser SwiftExtensions.swift
[221/319] Compiling ArgumentParser Tree.swift
[222/319] Compiling ArgumentParser CodingKeyValidator.swift
[223/319] Compiling ArgumentParser NonsenseFlagsValidator.swift
[224/319] Compiling ArgumentParser ParsableArgumentsValidation.swift
[225/319] Compiling ArgumentParser PositionalArgumentsValidator.swift
[226/319] Compiling ArgumentParser UniqueNamesValidator.swift
[227/319] Compiling ToyHttpServer HttpModels.swift
/host/spi-builder-workspace/Sources/ToyHttpServer/SocketAPI.swift:78:8: error: Unsupported platform
 76 | @inline(__always) private func cclose(_ s: SocketDescriptor) { _ = WinSDK.closesocket(s) }
 77 | #else
 78 | #error("Unsupported platform")
    |        `- error: Unsupported platform
 79 | #endif
 80 |
error: emit-module command failed with exit code 1 (use -v to see invocation)
[228/319] Emitting module ToyHttpServer
/host/spi-builder-workspace/Sources/ToyHttpServer/SocketAPI.swift:78:8: error: Unsupported platform
 76 | @inline(__always) private func cclose(_ s: SocketDescriptor) { _ = WinSDK.closesocket(s) }
 77 | #else
 78 | #error("Unsupported platform")
    |        `- error: Unsupported platform
 79 | #endif
 80 |
/host/spi-builder-workspace/Sources/ToyHttpServer/SocketAPI.swift:84:25: error: cannot find type 'SocketDescriptor' in scope
 82 |
 83 | struct Socket {
 84 |     let fileDescriptor: SocketDescriptor
    |                         `- error: cannot find type 'SocketDescriptor' in scope
 85 |
 86 |     init(_ fileDescriptor: SocketDescriptor) {
/host/spi-builder-workspace/Sources/ToyHttpServer/SocketAPI.swift:86:28: error: cannot find type 'SocketDescriptor' in scope
 84 |     let fileDescriptor: SocketDescriptor
 85 |
 86 |     init(_ fileDescriptor: SocketDescriptor) {
    |                            `- error: cannot find type 'SocketDescriptor' in scope
 87 |         self.fileDescriptor = fileDescriptor
 88 |     }
[229/319] Compiling ToyHttpServer ToyHttpServer.swift
/host/spi-builder-workspace/Sources/ToyHttpServer/SocketAPI.swift:78:8: error: Unsupported platform
 76 | @inline(__always) private func cclose(_ s: SocketDescriptor) { _ = WinSDK.closesocket(s) }
 77 | #else
 78 | #error("Unsupported platform")
    |        `- error: Unsupported platform
 79 | #endif
 80 |
/host/spi-builder-workspace/Sources/ToyHttpServer/ToyHttpServer.swift:64:9: error: function is unused [#no-usage]
 62 |         logger.info("🛑 Press Ctrl+C to stop")
 63 |
 64 |         signal(SIGINT) { _ in exit(0) }
    |         `- error: function is unused [#no-usage]
 65 |
 66 |         await withTaskGroup(of: Void.self) { group in
/host/spi-builder-workspace/Sources/ToyHttpServer/SocketAPI.swift:84:25: error: cannot find type 'SocketDescriptor' in scope
 82 |
 83 | struct Socket {
 84 |     let fileDescriptor: SocketDescriptor
    |                         `- error: cannot find type 'SocketDescriptor' in scope
 85 |
 86 |     init(_ fileDescriptor: SocketDescriptor) {
[233/319] Compiling ToyHttpServer HttpParser.swift
/host/spi-builder-workspace/Sources/ToyHttpServer/SocketAPI.swift:78:8: error: Unsupported platform
 76 | @inline(__always) private func cclose(_ s: SocketDescriptor) { _ = WinSDK.closesocket(s) }
 77 | #else
 78 | #error("Unsupported platform")
    |        `- error: Unsupported platform
 79 | #endif
 80 |
[234/319] Compiling ToyHttpServer SocketAPI.swift
/host/spi-builder-workspace/Sources/ToyHttpServer/SocketAPI.swift:78:8: error: Unsupported platform
 76 | @inline(__always) private func cclose(_ s: SocketDescriptor) { _ = WinSDK.closesocket(s) }
 77 | #else
 78 | #error("Unsupported platform")
    |        `- error: Unsupported platform
 79 | #endif
 80 |
/host/spi-builder-workspace/Sources/ToyHttpServer/SocketAPI.swift:84:25: error: cannot find type 'SocketDescriptor' in scope
 82 |
 83 | struct Socket {
 84 |     let fileDescriptor: SocketDescriptor
    |                         `- error: cannot find type 'SocketDescriptor' in scope
 85 |
 86 |     init(_ fileDescriptor: SocketDescriptor) {
/host/spi-builder-workspace/Sources/ToyHttpServer/SocketAPI.swift:86:28: error: cannot find type 'SocketDescriptor' in scope
 84 |     let fileDescriptor: SocketDescriptor
 85 |
 86 |     init(_ fileDescriptor: SocketDescriptor) {
    |                            `- error: cannot find type 'SocketDescriptor' in scope
 87 |         self.fileDescriptor = fileDescriptor
 88 |     }
/host/spi-builder-workspace/Sources/ToyHttpServer/SocketAPI.swift:91:9: error: cannot find 'cclose' in scope
 89 |
 90 |     func close() {
 91 |         cclose(fileDescriptor)
    |         `- error: cannot find 'cclose' in scope
 92 |     }
 93 |
/host/spi-builder-workspace/Sources/ToyHttpServer/SocketAPI.swift:95:9: error: cannot find 'crecv' in scope
 93 |
 94 |     func recv(_ buffer: UnsafeMutablePointer<UInt8>, _ length: Int) -> Int {
 95 |         crecv(fileDescriptor, buffer, length, 0)
    |         `- error: cannot find 'crecv' in scope
 96 |     }
 97 |
/host/spi-builder-workspace/Sources/ToyHttpServer/SocketAPI.swift:100:9: error: cannot find 'csend' in scope
 98 |     @discardableResult
 99 |     func send(_ buffer: UnsafeRawPointer?, _ length: Int) -> Int {
100 |         csend(fileDescriptor, buffer, length, 0)
    |         `- error: cannot find 'csend' in scope
101 |     }
102 |
/host/spi-builder-workspace/Sources/ToyHttpServer/SocketAPI.swift:118:28: error: cannot find 'csocket' in scope
116 |         try Winsock.ensureInitialized()
117 |         #endif
118 |         let serverSocket = csocket(AF_INET, SOCK_STREAM_VALUE, 0)
    |                            `- error: cannot find 'csocket' in scope
119 |         guard serverSocket != INVALID_SOCKET_VALUE else { throw TinyHttpServerError.socketCreationFailed }
120 |
/host/spi-builder-workspace/Sources/ToyHttpServer/SocketAPI.swift:118:36: error: cannot find 'AF_INET' in scope
116 |         try Winsock.ensureInitialized()
117 |         #endif
118 |         let serverSocket = csocket(AF_INET, SOCK_STREAM_VALUE, 0)
    |                                    `- error: cannot find 'AF_INET' in scope
119 |         guard serverSocket != INVALID_SOCKET_VALUE else { throw TinyHttpServerError.socketCreationFailed }
120 |
/host/spi-builder-workspace/Sources/ToyHttpServer/SocketAPI.swift:118:45: error: cannot find 'SOCK_STREAM_VALUE' in scope
116 |         try Winsock.ensureInitialized()
117 |         #endif
118 |         let serverSocket = csocket(AF_INET, SOCK_STREAM_VALUE, 0)
    |                                             `- error: cannot find 'SOCK_STREAM_VALUE' in scope
119 |         guard serverSocket != INVALID_SOCKET_VALUE else { throw TinyHttpServerError.socketCreationFailed }
120 |
/host/spi-builder-workspace/Sources/ToyHttpServer/SocketAPI.swift:119:31: error: cannot find 'INVALID_SOCKET_VALUE' in scope
117 |         #endif
118 |         let serverSocket = csocket(AF_INET, SOCK_STREAM_VALUE, 0)
119 |         guard serverSocket != INVALID_SOCKET_VALUE else { throw TinyHttpServerError.socketCreationFailed }
    |                               `- error: cannot find 'INVALID_SOCKET_VALUE' in scope
120 |
121 |         var reuseAddr: Int32 = 1
/host/spi-builder-workspace/Sources/ToyHttpServer/SocketAPI.swift:124:17: error: cannot find 'csetsockopt' in scope
122 |         // setsockopt expects a raw pointer; take address safely.
123 |         withUnsafePointer(to: &reuseAddr) { ptr in
124 |             _ = csetsockopt(
    |                 `- error: cannot find 'csetsockopt' in scope
125 |                 serverSocket,
126 |                 SOL_SOCKET,
/host/spi-builder-workspace/Sources/ToyHttpServer/SocketAPI.swift:126:17: error: cannot find 'SOL_SOCKET' in scope
124 |             _ = csetsockopt(
125 |                 serverSocket,
126 |                 SOL_SOCKET,
    |                 `- error: cannot find 'SOL_SOCKET' in scope
127 |                 SO_REUSEADDR,
128 |                 UnsafeMutableRawPointer(mutating: ptr),
/host/spi-builder-workspace/Sources/ToyHttpServer/SocketAPI.swift:127:17: error: cannot find 'SO_REUSEADDR' in scope
125 |                 serverSocket,
126 |                 SOL_SOCKET,
127 |                 SO_REUSEADDR,
    |                 `- error: cannot find 'SO_REUSEADDR' in scope
128 |                 UnsafeMutableRawPointer(mutating: ptr),
129 |                 socklen_t(MemoryLayout<Int32>.size)
/host/spi-builder-workspace/Sources/ToyHttpServer/SocketAPI.swift:133:26: error: cannot find 'sockaddr_in' in scope
131 |         }
132 |
133 |         var serverAddr = sockaddr_in()
    |                          `- error: cannot find 'sockaddr_in' in scope
134 |         serverAddr.sin_family = sa_family_t(AF_INET)
135 |         serverAddr.sin_port = in_port_t(port).bigEndian
/host/spi-builder-workspace/Sources/ToyHttpServer/SocketAPI.swift:134:33: error: cannot find 'sa_family_t' in scope
132 |
133 |         var serverAddr = sockaddr_in()
134 |         serverAddr.sin_family = sa_family_t(AF_INET)
    |                                 `- error: cannot find 'sa_family_t' in scope
135 |         serverAddr.sin_port = in_port_t(port).bigEndian
136 |         #if canImport(WinSDK)
/host/spi-builder-workspace/Sources/ToyHttpServer/SocketAPI.swift:134:45: error: cannot find 'AF_INET' in scope
132 |
133 |         var serverAddr = sockaddr_in()
134 |         serverAddr.sin_family = sa_family_t(AF_INET)
    |                                             `- error: cannot find 'AF_INET' in scope
135 |         serverAddr.sin_port = in_port_t(port).bigEndian
136 |         #if canImport(WinSDK)
/host/spi-builder-workspace/Sources/ToyHttpServer/SocketAPI.swift:135:31: error: cannot find 'in_port_t' in scope
133 |         var serverAddr = sockaddr_in()
134 |         serverAddr.sin_family = sa_family_t(AF_INET)
135 |         serverAddr.sin_port = in_port_t(port).bigEndian
    |                               `- error: cannot find 'in_port_t' in scope
136 |         #if canImport(WinSDK)
137 |         serverAddr.sin_addr.S_un.S_addr = INADDR_ANY
/host/spi-builder-workspace/Sources/ToyHttpServer/SocketAPI.swift:139:38: error: cannot find 'INADDR_ANY' in scope
137 |         serverAddr.sin_addr.S_un.S_addr = INADDR_ANY
138 |         #else
139 |         serverAddr.sin_addr.s_addr = INADDR_ANY
    |                                      `- error: cannot find 'INADDR_ANY' in scope
140 |         #endif
141 |
/host/spi-builder-workspace/Sources/ToyHttpServer/SocketAPI.swift:143:38: error: cannot find 'sockaddr' in scope
141 |
142 |         let bindResult = withUnsafePointer(to: &serverAddr) {
143 |             $0.withMemoryRebound(to: sockaddr.self, capacity: 1) {
    |                                      `- error: cannot find 'sockaddr' in scope
144 |                 cbind(serverSocket, $0, socklen_t(MemoryLayout<sockaddr_in>.size))
145 |             }
/host/spi-builder-workspace/Sources/ToyHttpServer/SocketAPI.swift:144:17: error: cannot find 'cbind' in scope
142 |         let bindResult = withUnsafePointer(to: &serverAddr) {
143 |             $0.withMemoryRebound(to: sockaddr.self, capacity: 1) {
144 |                 cbind(serverSocket, $0, socklen_t(MemoryLayout<sockaddr_in>.size))
    |                 `- error: cannot find 'cbind' in scope
145 |             }
146 |         }
/host/spi-builder-workspace/Sources/ToyHttpServer/SocketAPI.swift:144:64: error: cannot find type 'sockaddr_in' in scope
142 |         let bindResult = withUnsafePointer(to: &serverAddr) {
143 |             $0.withMemoryRebound(to: sockaddr.self, capacity: 1) {
144 |                 cbind(serverSocket, $0, socklen_t(MemoryLayout<sockaddr_in>.size))
    |                                                                `- error: cannot find type 'sockaddr_in' in scope
145 |             }
146 |         }
/host/spi-builder-workspace/Sources/ToyHttpServer/SocketAPI.swift:143:16: error: generic parameter 'T' could not be inferred
141 |
142 |         let bindResult = withUnsafePointer(to: &serverAddr) {
143 |             $0.withMemoryRebound(to: sockaddr.self, capacity: 1) {
    |                `- error: generic parameter 'T' could not be inferred
144 |                 cbind(serverSocket, $0, socklen_t(MemoryLayout<sockaddr_in>.size))
145 |             }
Swift.UnsafePointer.withMemoryRebound:2:13: note: in call to function 'withMemoryRebound(to:capacity:_:)'
1 | generic struct UnsafePointer {
2 | public func withMemoryRebound<T, E, Result>(to type: T.Type, capacity count: Int, _ body: (_ pointer: UnsafePointer<T>) throws(E) -> Result) throws(E) -> Result where E : Error, T : ~Copyable, Result : ~Copyable}
  |             `- note: in call to function 'withMemoryRebound(to:capacity:_:)'
3 |
/host/spi-builder-workspace/Sources/ToyHttpServer/SocketAPI.swift:149:13: error: cannot find 'cclose' in scope
147 |
148 |         guard bindResult == 0 else {
149 |             cclose(serverSocket)
    |             `- error: cannot find 'cclose' in scope
150 |             throw TinyHttpServerError.bindFailed
151 |         }
/host/spi-builder-workspace/Sources/ToyHttpServer/SocketAPI.swift:153:15: error: cannot find 'clisten' in scope
151 |         }
152 |
153 |         guard clisten(serverSocket, 5) == 0 else {
    |               `- error: cannot find 'clisten' in scope
154 |             cclose(serverSocket)
155 |             throw TinyHttpServerError.listenFailed
/host/spi-builder-workspace/Sources/ToyHttpServer/SocketAPI.swift:154:13: error: cannot find 'cclose' in scope
152 |
153 |         guard clisten(serverSocket, 5) == 0 else {
154 |             cclose(serverSocket)
    |             `- error: cannot find 'cclose' in scope
155 |             throw TinyHttpServerError.listenFailed
156 |         }
/host/spi-builder-workspace/Sources/ToyHttpServer/SocketAPI.swift:162:26: error: cannot find 'sockaddr_in' in scope
160 |
161 |     static func accept(_ serverSocket: Socket) -> Socket? {
162 |         var clientAddr = sockaddr_in()
    |                          `- error: cannot find 'sockaddr_in' in scope
163 |         var clientAddrSize = socklen_t(MemoryLayout<sockaddr_in>.size)
164 |         let clientSocket = withUnsafeMutablePointer(to: &clientAddr) {
/host/spi-builder-workspace/Sources/ToyHttpServer/SocketAPI.swift:163:53: error: cannot find type 'sockaddr_in' in scope
161 |     static func accept(_ serverSocket: Socket) -> Socket? {
162 |         var clientAddr = sockaddr_in()
163 |         var clientAddrSize = socklen_t(MemoryLayout<sockaddr_in>.size)
    |                                                     `- error: cannot find type 'sockaddr_in' in scope
164 |         let clientSocket = withUnsafeMutablePointer(to: &clientAddr) {
165 |             $0.withMemoryRebound(to: sockaddr.self, capacity: 1) {
/host/spi-builder-workspace/Sources/ToyHttpServer/SocketAPI.swift:165:38: error: cannot find 'sockaddr' in scope
163 |         var clientAddrSize = socklen_t(MemoryLayout<sockaddr_in>.size)
164 |         let clientSocket = withUnsafeMutablePointer(to: &clientAddr) {
165 |             $0.withMemoryRebound(to: sockaddr.self, capacity: 1) {
    |                                      `- error: cannot find 'sockaddr' in scope
166 |                 caccept(serverSocket.fileDescriptor, $0, &clientAddrSize)
167 |             }
/host/spi-builder-workspace/Sources/ToyHttpServer/SocketAPI.swift:166:17: error: cannot find 'caccept' in scope
164 |         let clientSocket = withUnsafeMutablePointer(to: &clientAddr) {
165 |             $0.withMemoryRebound(to: sockaddr.self, capacity: 1) {
166 |                 caccept(serverSocket.fileDescriptor, $0, &clientAddrSize)
    |                 `- error: cannot find 'caccept' in scope
167 |             }
168 |         }
/host/spi-builder-workspace/Sources/ToyHttpServer/SocketAPI.swift:165:16: error: generic parameter 'T' could not be inferred
163 |         var clientAddrSize = socklen_t(MemoryLayout<sockaddr_in>.size)
164 |         let clientSocket = withUnsafeMutablePointer(to: &clientAddr) {
165 |             $0.withMemoryRebound(to: sockaddr.self, capacity: 1) {
    |                `- error: generic parameter 'T' could not be inferred
166 |                 caccept(serverSocket.fileDescriptor, $0, &clientAddrSize)
167 |             }
Swift.UnsafeMutablePointer.withMemoryRebound:2:13: note: in call to function 'withMemoryRebound(to:capacity:_:)'
1 | generic struct UnsafeMutablePointer {
2 | public func withMemoryRebound<T, E, Result>(to type: T.Type, capacity count: Int, _ body: (_ pointer: UnsafeMutablePointer<T>) throws(E) -> Result) throws(E) -> Result where E : Error, T : ~Copyable, Result : ~Copyable}
  |             `- note: in call to function 'withMemoryRebound(to:capacity:_:)'
3 |
/host/spi-builder-workspace/Sources/ToyHttpServer/SocketAPI.swift:169:32: error: cannot find 'INVALID_SOCKET_VALUE' in scope
167 |             }
168 |         }
169 |         return clientSocket != INVALID_SOCKET_VALUE ? Socket(clientSocket) : nil
    |                                `- error: cannot find 'INVALID_SOCKET_VALUE' in scope
170 |     }
171 | }
[239/321] Compiling Markdown InlineCode.swift
[240/321] Compiling Markdown InlineHTML.swift
[241/321] Compiling Markdown LineBreak.swift
[242/321] Compiling Markdown SoftBreak.swift
[243/321] Compiling Markdown SymbolLink.swift
[255/321] Wrapping AST for Yams for debugging
BUILD FAILURE 6.2 android