Build Information
Failed to build Pgvector, reference v0.1.0 (19daab), with Swift 6.3 for Android on 15 Aug 2026 08:53:29 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-54344845-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:android-6.3-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1Build Log
========================================
RunAll
========================================
Builder version: 5.0.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/pgvector/pgvector-swift.git
Reference: v0.1.0
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/pgvector/pgvector-swift
* tag v0.1.0 -> FETCH_HEAD
HEAD is now at 19daab7 Version bump to 0.1.0 [skip ci]
Cloned https://github.com/pgvector/pgvector-swift.git
Revision (git rev-parse @):
19daab7b02f97a9b6df0320011d8d5fd2ec7bb7c
SUCCESS checkout https://github.com/pgvector/pgvector-swift.git at v0.1.0
========================================
Build
========================================
Selected platform: android
Swift version: 6.3
Building package at path: $PWD
https://github.com/pgvector/pgvector-swift.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344845-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:android-6.3-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1
android-6.3-latest: Pulling from saguaro1/spi-images
Digest: sha256:2b782c87e0bdf114eb0da12f6379a346f06569d6991407581da7dc03d1813adf
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:android-6.3-latest
Fetching https://github.com/codewinsdotcom/PostgresClientKit
Fetching https://github.com/vapor/postgres-nio
[1/1926] Fetching postgresclientkit
[1927/16647] Fetching postgresclientkit, postgres-nio
Fetched https://github.com/codewinsdotcom/PostgresClientKit from cache (0.86s)
Fetched https://github.com/vapor/postgres-nio from cache (0.86s)
Computing version for https://github.com/codewinsdotcom/PostgresClientKit
Computed https://github.com/codewinsdotcom/PostgresClientKit at 1.5.0 (1.04s)
Fetching https://github.com/Kitura/BlueSSLService
Fetching https://github.com/Kitura/BlueSocket.git
[1/2942] Fetching bluesocket
[737/5019] Fetching bluesocket, bluesslservice
Fetched https://github.com/Kitura/BlueSSLService from cache (0.54s)
Fetched https://github.com/Kitura/BlueSocket.git from cache (0.54s)
Computing version for https://github.com/Kitura/BlueSSLService
Computed https://github.com/Kitura/BlueSSLService at 2.0.2 (0.73s)
Fetching https://github.com/Kitura/OpenSSL.git
[1/203] Fetching openssl
Fetched https://github.com/Kitura/OpenSSL.git from cache (0.44s)
Computing version for https://github.com/Kitura/OpenSSL.git
Computed https://github.com/Kitura/OpenSSL.git at 2.3.1 (1.32s)
Computing version for https://github.com/Kitura/BlueSocket.git
Computed https://github.com/Kitura/BlueSocket.git at 2.0.4 (0.17s)
Computing version for https://github.com/vapor/postgres-nio
Computed https://github.com/vapor/postgres-nio at 1.33.1 (0.18s)
Fetching https://github.com/swift-server/swift-service-lifecycle.git
Fetching https://github.com/apple/swift-log.git
Fetching https://github.com/apple/swift-nio.git
Fetching https://github.com/apple/swift-crypto.git
Fetching https://github.com/apple/swift-atomics.git
Fetching https://github.com/apple/swift-metrics.git
[1/7954] Fetching swift-log
[2/26276] Fetching swift-log, swift-crypto
[3/29727] Fetching swift-log, swift-crypto, swift-metrics
[301/31602] Fetching swift-log, swift-crypto, swift-metrics, swift-atomics
[680/34413] Fetching swift-log, swift-crypto, swift-metrics, swift-atomics, swift-service-lifecycle
Fetched https://github.com/apple/swift-metrics.git from cache (0.53s)
Fetching https://github.com/apple/swift-nio-transport-services.git
[13740/30962] Fetching swift-log, swift-crypto, swift-atomics, swift-service-lifecycle
Fetched https://github.com/apple/swift-atomics.git from cache (0.58s)
Fetching https://github.com/apple/swift-nio-ssl.git
[12048/29087] Fetching swift-log, swift-crypto, swift-service-lifecycle
Fetched https://github.com/apple/swift-log.git from cache (0.59s)
Fetching https://github.com/apple/swift-collections.git
[4277/21133] Fetching swift-crypto, swift-service-lifecycle
[7027/106495] Fetching swift-crypto, swift-service-lifecycle, swift-nio
[29967/109355] Fetching swift-crypto, swift-service-lifecycle, swift-nio, swift-nio-transport-services
Fetched https://github.com/apple/swift-nio-transport-services.git from cache (0.54s)
[53571/106495] Fetching swift-crypto, swift-service-lifecycle, swift-nio
[61255/133218] Fetching swift-crypto, swift-service-lifecycle, swift-nio, swift-collections
[63126/149129] Fetching swift-crypto, swift-service-lifecycle, swift-nio, swift-collections, swift-nio-ssl
Fetched https://github.com/apple/swift-collections.git from cache (1.25s)
[102773/122406] Fetching swift-crypto, swift-service-lifecycle, swift-nio, swift-nio-ssl
Fetched https://github.com/apple/swift-nio-ssl.git from cache (1.39s)
[91130/106495] Fetching swift-crypto, swift-service-lifecycle, swift-nio
Fetched https://github.com/swift-server/swift-service-lifecycle.git from cache (3.01s)
Fetched https://github.com/apple/swift-crypto.git from cache (3.02s)
Fetched https://github.com/apple/swift-nio.git from cache (3.05s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 1.3.1 (3.21s)
Computing version for https://github.com/swift-server/swift-service-lifecycle.git
Computed https://github.com/swift-server/swift-service-lifecycle.git at 2.11.0 (0.15s)
Fetching https://github.com/apple/swift-async-algorithms.git
[1/6657] Fetching swift-async-algorithms
Fetched https://github.com/apple/swift-async-algorithms.git from cache (0.57s)
Computing version for https://github.com/apple/swift-async-algorithms.git
Computed https://github.com/apple/swift-async-algorithms.git at 1.1.5 (0.76s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.6.0 (0.23s)
Computing version for https://github.com/apple/swift-nio-transport-services.git
Computed https://github.com/apple/swift-nio-transport-services.git at 1.28.0 (0.16s)
Computing version for https://github.com/apple/swift-metrics.git
Computed https://github.com/apple/swift-metrics.git at 2.11.0 (0.15s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.15.0 (0.15s)
Computing version for https://github.com/apple/swift-nio-ssl.git
Computed https://github.com/apple/swift-nio-ssl.git at 2.37.2 (0.18s)
Computing version for https://github.com/apple/swift-nio.git
Computed https://github.com/apple/swift-nio.git at 2.101.3 (0.26s)
Fetching https://github.com/apple/swift-system.git
[1/6842] Fetching swift-system
Fetched https://github.com/apple/swift-system.git from cache (0.76s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.8.1 (0.95s)
Computing version for https://github.com/apple/swift-crypto.git
Computed https://github.com/apple/swift-crypto.git at 4.5.1 (0.94s)
Fetching https://github.com/apple/swift-asn1.git
[1/1933] Fetching swift-asn1
Fetched https://github.com/apple/swift-asn1.git from cache (0.51s)
Computing version for https://github.com/apple/swift-asn1.git
Computed https://github.com/apple/swift-asn1.git at 1.7.1 (0.69s)
Creating working copy for https://github.com/apple/swift-nio-transport-services.git
Working copy of https://github.com/apple/swift-nio-transport-services.git resolved at 1.28.0
Creating working copy for https://github.com/swift-server/swift-service-lifecycle.git
Working copy of https://github.com/swift-server/swift-service-lifecycle.git resolved at 2.11.0
Creating working copy for https://github.com/apple/swift-collections.git
Working copy of https://github.com/apple/swift-collections.git resolved at 1.6.0
Creating working copy for https://github.com/Kitura/OpenSSL.git
Working copy of https://github.com/Kitura/OpenSSL.git resolved at 2.3.1
Creating working copy for https://github.com/apple/swift-metrics.git
Working copy of https://github.com/apple/swift-metrics.git resolved at 2.11.0
Creating working copy for https://github.com/Kitura/BlueSocket.git
Working copy of https://github.com/Kitura/BlueSocket.git resolved at 2.0.4
Creating working copy for https://github.com/apple/swift-nio.git
Working copy of https://github.com/apple/swift-nio.git resolved at 2.101.3
Creating working copy for https://github.com/vapor/postgres-nio
Working copy of https://github.com/vapor/postgres-nio resolved at 1.33.1
Creating working copy for https://github.com/apple/swift-nio-ssl.git
Working copy of https://github.com/apple/swift-nio-ssl.git resolved at 2.37.2
Creating working copy for https://github.com/apple/swift-atomics.git
Working copy of https://github.com/apple/swift-atomics.git resolved at 1.3.1
Creating working copy for https://github.com/apple/swift-async-algorithms.git
Working copy of https://github.com/apple/swift-async-algorithms.git resolved at 1.1.5
Creating working copy for https://github.com/apple/swift-system.git
Working copy of https://github.com/apple/swift-system.git resolved at 1.8.1
Creating working copy for https://github.com/apple/swift-crypto.git
Working copy of https://github.com/apple/swift-crypto.git resolved at 4.5.1
Creating working copy for https://github.com/Kitura/BlueSSLService
Working copy of https://github.com/Kitura/BlueSSLService resolved at 2.0.2
Creating working copy for https://github.com/codewinsdotcom/PostgresClientKit
Working copy of https://github.com/codewinsdotcom/PostgresClientKit resolved at 1.5.0
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.15.0
Creating working copy for https://github.com/apple/swift-asn1.git
Working copy of https://github.com/apple/swift-asn1.git resolved at 1.7.1
warning: you may be able to install openssl using your system-packager:
apt-get install openssl libssl-dev
warning: you may be able to install openssl using your system-packager:
apt-get install openssl libssl-dev
Building for debugging...
[0/822] Write sources
[35/822] Compiling _AtomicsShims.c
[36/822] Compiling CNIOWindows shim.c
[37/822] Compiling CXKCPShims shims.c
[38/822] Compiling SimpleFIPS202.c
[39/822] Compiling CNIOWindows WSAStartup.c
[40/822] Compiling KeccakSponge.c
[41/822] Compiling KeccakHash.c
[42/822] Compiling CNIOWASI CNIOWASI.c
[43/822] Compiling CNIOPosix event_loop_id.c
[44/822] Compiling CNIOLinux liburing_shims.c
[45/822] Compiling CNIOFreeBSD shim.c
[46/822] Compiling CNIOOpenBSD shim.c
[47/822] Compiling CNIODarwin shim.c
[48/822] Write swift-version-272D24FF697CF451.txt
[49/822] Compiling fiat_p256_adx_sqr.S
[50/822] Compiling fiat_p256_adx_mul.S
[51/822] Compiling fiat_curve25519_adx_square.S
[52/822] Compiling fiat_curve25519_adx_mul.S
[53/822] Compiling CNIOLinux shim.c
[54/855] Compiling CNIOBoringSSLShims shims.c
[55/855] Compiling KeccakP-1600-opt64.c
[57/855] Emitting module _NIOBase64
[57/884] Compiling tls_record.cc
[59/884] Emitting module InternalCollectionsUtilities
error: emit-module command failed with exit code 1 (use -v to see invocation)
[60/891] Emitting module Socket
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:52:39: error: cannot find 'in_addr_t' in scope
50 | public static let SOCKET_INVALID_DESCRIPTOR = Int32(-1)
51 |
52 | public static let INADDR_ANY = in_addr_t(0)
| `- error: cannot find 'in_addr_t' in scope
53 |
54 | public static let NO_HOSTNAME = "No hostname"
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:320:13: error: cannot find type 'sockaddr_in' in scope
318 |
319 | /// sockaddr_in
320 | case ipv4(sockaddr_in)
| `- error: cannot find type 'sockaddr_in' in scope
321 |
322 | /// sockaddr_in6
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:323:13: error: cannot find type 'sockaddr_in6' in scope
321 |
322 | /// sockaddr_in6
323 | case ipv6(sockaddr_in6)
| `- error: cannot find type 'sockaddr_in6' in scope
324 |
325 | /// sockaddr_un
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:326:13: error: cannot find type 'sockaddr_un' in scope
324 |
325 | /// sockaddr_un
326 | case unix(sockaddr_un)
| `- error: cannot find type 'sockaddr_un' in scope
327 |
328 | ///
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/SocketUtils.swift:43:56: error: cannot find type 'sockaddr' in scope
41 | /// - Returns: The result of executing the closure.
42 | ///
43 | func withSockAddrPointer<Result>(body: (UnsafePointer<sockaddr>, socklen_t) throws -> Result) rethrows -> Result {
| `- error: cannot find type 'sockaddr' in scope
44 |
45 | ///
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/SocketUtils.swift:86:47: error: cannot find type 'sockaddr' in scope
84 | /// - Returns: Newly initialized Socket.Address.
85 | ///
86 | init?(addressProvider: (UnsafeMutablePointer<sockaddr>, UnsafeMutablePointer<socklen_t>) throws -> Void) rethrows {
| `- error: cannot find type 'sockaddr' in scope
87 |
88 | var addressStorage = sockaddr_storage()
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/SocketUtils.swift:146:27: error: cannot find '__DARWIN_FD_SETSIZE' in scope
144 | // __DARWIN_FD_SETSIZE is number of *bits*, so divide by number bits in each element to get element count
145 | // at present this is 1024 / 32 == 32
146 | let __fd_set_count = Int(__DARWIN_FD_SETSIZE) / 32
| `- error: cannot find '__DARWIN_FD_SETSIZE' in scope
147 |
148 | extension fd_set {
[61/891] Compiling InternalCollectionsUtilities UnsafeBufferPointer+Extras.swift
[62/891] Compiling InternalCollectionsUtilities UnsafeMutableBufferPointer+Extras.swift
[63/891] Compiling InternalCollectionsUtilities LifetimeOverride.swift
[64/891] Compiling InternalCollectionsUtilities RandomAccessCollection+Offsets.swift
[65/891] Compiling InternalCollectionsUtilities Span+Extras.swift
[66/891] Compiling CoreMetrics MappingMetricsFactory.swift
[67/891] Compiling Pgvector Vector.swift
[70/891] Compiling InternalCollectionsUtilities _UnsafeBitSet+_Word.swift
[71/891] Compiling InternalCollectionsUtilities _UnsafeBitSet.swift
[72/893] Compiling InternalCollectionsUtilities FixedWidthInteger+roundUpToPowerOfTwo.swift
[73/893] Compiling InternalCollectionsUtilities Integer rank.swift
[74/894] Compiling InternalCollectionsUtilities UnsafeMutableRawBufferPointer+Extras.swift
[75/894] Compiling InternalCollectionsUtilities UnsafeRawBufferPointer+Extras.swift
[76/894] Compiling Logging LoggingSystem.swift
[80/894] Compiling InternalCollectionsUtilities UInt+first and last set bit.swift
[81/894] Compiling InternalCollectionsUtilities UInt+reversed.swift
[82/894] Compiling SwiftASN1 Errors.swift
[83/894] Compiling InternalCollectionsUtilities _UniqueCollection.swift
[84/894] Compiling CoreMetrics WithMetricsFactory.swift
[88/894] Compiling _NIOBase64 Base64.swift
[89/895] Compiling _NIODataStructures Heap.swift
[90/895] Compiling Pgvector SparseVector.swift
[91/895] Emitting module Pgvector
[92/895] Compiling Pgvector HalfVector.swift
[95/896] Compiling InternalCollectionsUtilities Debugging.swift
[96/896] Compiling InternalCollectionsUtilities Descriptions.swift
[98/896] Compiling InternalCollectionsUtilities String+Padding.swift
[99/896] Compiling InternalCollectionsUtilities _UnsafeBitSet+Index.swift
[100/897] Compiling CoreMetrics Metrics.swift
[101/897] Compiling Logging Logger+Attributes.swift
[102/897] Compiling Logging Logger.swift
[103/897] Compiling Logging Logger+With.swift
[105/900] Compiling _NIODataStructures PriorityQueue.swift
[106/900] Emitting module _NIODataStructures
[107/900] Compiling _NIODataStructures _TinyArray.swift
[109/901] Compiling ConcurrencyHelpers LockedValueBox.swift
[110/958] Compiling OrderedCollections _HashTable+CustomStringConvertible.swift
[111/958] Compiling OrderedCollections _HashTable+Testing.swift
[112/958] Compiling OrderedCollections _HashTable+Bucket.swift
[113/958] Compiling OrderedCollections _HashTable+BucketIterator.swift
[114/958] Compiling OrderedCollections _HashTable+Constants.swift
[115/958] Compiling OrderedCollections OrderedDictionary+Values.swift
[116/958] Compiling OrderedCollections OrderedDictionary.swift
[117/958] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isSuperset.swift
[118/958] Compiling OrderedCollections OrderedSet+Partial SetAlgebra subtract.swift
[119/958] Compiling OrderedCollections OrderedSet+Partial SetAlgebra subtracting.swift
[120/958] Compiling OrderedCollections OrderedSet+Partial SetAlgebra symmetricDifference.swift
[121/958] Compiling OrderedCollections OrderedSet+Partial SetAlgebra union.swift
[122/958] Compiling OrderedCollections OrderedSet+Partial SetAlgebra+Basics.swift
[123/958] Compiling OrderedCollections OrderedSet+RandomAccessCollection.swift
[124/958] Compiling OrderedCollections OrderedSet+ReserveCapacity.swift
[125/965] Compiling OrderedCollections OrderedSet+Partial SetAlgebra formSymmetricDifference.swift
[126/965] Compiling OrderedCollections OrderedSet+Partial SetAlgebra formUnion.swift
[127/965] Compiling OrderedCollections OrderedSet+Partial SetAlgebra intersection.swift
[128/965] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isDisjoint.swift
[129/965] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isEqualSet.swift
[130/965] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isStrictSubset.swift
[131/965] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isStrictSuperset.swift
[132/965] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isSubset.swift
[133/965] Emitting module SwiftASN1
[136/965] Compiling OrderedCollections OrderedSet+Codable.swift
[137/965] Compiling OrderedCollections OrderedSet+CustomReflectable.swift
[138/965] Compiling OrderedCollections OrderedSet+Descriptions.swift
[139/965] Compiling OrderedCollections OrderedSet+Diffing.swift
[140/965] Compiling OrderedCollections OrderedSet+Equatable.swift
[141/965] Compiling OrderedCollections OrderedSet+ExpressibleByArrayLiteral.swift
[142/965] Compiling OrderedCollections OrderedDictionary+Hashable.swift
[143/965] Compiling OrderedCollections OrderedDictionary+Initializers.swift
[144/965] Compiling OrderedCollections OrderedDictionary+Invariants.swift
[145/965] Compiling OrderedCollections OrderedDictionary+Move.swift
[146/965] Compiling OrderedCollections OrderedDictionary+Partial MutableCollection.swift
[147/965] Compiling OrderedCollections OrderedDictionary+Partial RangeReplaceableCollection.swift
[148/965] Compiling OrderedCollections OrderedDictionary+Sendable.swift
[149/965] Compiling OrderedCollections OrderedDictionary+Sequence.swift
[150/965] Compiling OrderedCollections OrderedDictionary+Codable.swift
[151/965] Compiling OrderedCollections OrderedDictionary+CustomReflectable.swift
[152/965] Compiling OrderedCollections OrderedDictionary+Deprecations.swift
[153/965] Compiling OrderedCollections OrderedDictionary+Descriptions.swift
[154/965] Compiling OrderedCollections OrderedDictionary+Elements.SubSequence.swift
[155/965] Compiling OrderedCollections OrderedDictionary+Elements.swift
[156/965] Compiling OrderedCollections OrderedDictionary+Equatable.swift
[157/965] Compiling OrderedCollections OrderedDictionary+ExpressibleByDictionaryLiteral.swift
[157/965] Compiling tls_method.cc
[159/1001] Compiling ContainersPreview Container+SpanwiseZip.swift
[160/1001] Compiling ContainersPreview Container.swift
[161/1001] Compiling ContainersPreview ContainerIterator.swift
[162/1001] Compiling ContainersPreview DynamicContainer.swift
[163/1001] Compiling ContainersPreview MutableContainer.swift
[164/1001] Compiling ContainersPreview BorrowingSequence+Standard Conformances.swift
[165/1001] Compiling ContainersPreview BorrowingSequence+Utilities.swift
[166/1001] Compiling ContainersPreview BorrowingSequence.swift
[167/1001] Compiling ContainersPreview BidirectionalContainer.swift
[168/1001] Compiling ContainersPreview Container+Filter.swift
[169/1001] Compiling ContainersPreview BorrowingIteratorProtocol+Map.swift
[170/1001] Compiling ContainersPreview BorrowingIteratorProtocol+Reduce.swift
[171/1001] Compiling ContainersPreview BorrowingIteratorProtocol+SpanwiseZip.swift
[172/1001] Compiling ContainersPreview BorrowingIteratorProtocol.swift
[173/1001] Compiling ContainersPreview BorrowingSequence+Algorithms.swift
[174/1005] Compiling ContainersPreview Producer+Map.swift
[175/1005] Compiling ContainersPreview Producer+Reduce.swift
[176/1005] Compiling ContainersPreview Producer.swift
[177/1005] Compiling ContainersPreview InputSpan.swift
[178/1005] Compiling ContainersPreview MutableRef.swift
[179/1005] Compiling ContainersPreview Drain+Map.swift
[180/1005] Compiling ContainersPreview Drain+Reduce.swift
[181/1005] Compiling ContainersPreview Drain.swift
[182/1005] Compiling ContainersPreview Producer+Collect.swift
[183/1005] Compiling ContainersPreview Producer+Filter.swift
[187/1005] Compiling ContainersPreview Ref.swift
[188/1005] Compiling ContainersPreview Shared.swift
[189/1005] Compiling ContainersPreview PermutableContainer.swift
[190/1005] Compiling ContainersPreview SpanIterator.swift
[191/1005] Compiling ContainersPreview RandomAccessContainer.swift
[192/1005] Compiling ContainersPreview UniqueBox.swift
[193/1005] Compiling ContainersPreview RangeExpression2.swift
[194/1005] Compiling OrderedCollections OrderedSet+Partial SetAlgebra formIntersection.swift
[195/1005] Compiling ContainersPreview RangeReplaceableContainer.swift
[196/1005] Compiling ContainersPreview Strideable+Limits.swift
[196/1005] Compiling tls13_server.cc
[198/1005] Compiling ContainersPreview OutputSpan+Extras.swift
[199/1005] Compiling ContainersPreview TemporaryAllocation.swift
[200/1005] Compiling ContainersPreview BorrowingIteratorProtocol+Copy.swift
[201/1005] Compiling ContainersPreview BorrowingIteratorProtocol+ElementsEqual.swift
[202/1005] Compiling ContainersPreview BorrowingIteratorProtocol+Filter.swift
[203/1005] Emitting module ContainersPreview
[209/1006] Compiling OrderedCollections OrderedSet+Sendable.swift
[210/1006] Compiling OrderedCollections OrderedSet+SubSequence.swift
[211/1006] Compiling OrderedCollections OrderedSet+Testing.swift
[212/1006] Compiling OrderedCollections OrderedSet+UnorderedView.swift
[213/1006] Compiling OrderedCollections OrderedSet+UnstableInternals.swift
[214/1006] Compiling OrderedCollections OrderedSet.swift
[215/1006] Compiling OrderedCollections _UnsafeBitset.swift
[226/1006] Emitting module Logging
[229/1006] Compiling Logging MetadataProvider.swift
[231/1007] Compiling ConcurrencyHelpers Lock.swift
[232/1007] Emitting module ConcurrencyHelpers
[234/1049] Emitting module CoreMetrics
[235/1049] Compiling CoreMetrics Locks.swift
[236/1050] Emitting module OrderedCollections
[239/1051] Compiling DequeModule Deque._UnsafeHandle.swift
[240/1051] Compiling DequeModule Deque.swift
[241/1051] Compiling DequeModule RigidDeque+Append.swift
[242/1051] Compiling DequeModule RigidDeque+Consumption.swift
[244/1055] Compiling DequeModule UniqueDeque+Container.swift
[245/1055] Compiling DequeModule UniqueDeque+Deprecated.swift
[246/1055] Compiling DequeModule UniqueDeque+Descriptions.swift
[247/1055] Compiling DequeModule UniqueDeque+Equatable.swift
[248/1055] Compiling DequeModule UniqueDeque+Experimental.swift
[249/1059] Compiling Socket Socket.swift
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:52:39: error: cannot find 'in_addr_t' in scope
50 | public static let SOCKET_INVALID_DESCRIPTOR = Int32(-1)
51 |
52 | public static let INADDR_ANY = in_addr_t(0)
| `- error: cannot find 'in_addr_t' in scope
53 |
54 | public static let NO_HOSTNAME = "No hostname"
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:320:13: error: cannot find type 'sockaddr_in' in scope
318 |
319 | /// sockaddr_in
320 | case ipv4(sockaddr_in)
| `- error: cannot find type 'sockaddr_in' in scope
321 |
322 | /// sockaddr_in6
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:323:13: error: cannot find type 'sockaddr_in6' in scope
321 |
322 | /// sockaddr_in6
323 | case ipv6(sockaddr_in6)
| `- error: cannot find type 'sockaddr_in6' in scope
324 |
325 | /// sockaddr_un
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:326:13: error: cannot find type 'sockaddr_un' in scope
324 |
325 | /// sockaddr_un
326 | case unix(sockaddr_un)
| `- error: cannot find type 'sockaddr_un' in scope
327 |
328 | ///
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:147:18: error: cannot find 'AF_INET' in scope
145 |
146 | case .inet:
147 | return Int32(AF_INET)
| `- error: cannot find 'AF_INET' in scope
148 |
149 | case .inet6:
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:150:18: error: cannot find 'AF_INET6' in scope
148 |
149 | case .inet6:
150 | return Int32(AF_INET6)
| `- error: cannot find 'AF_INET6' in scope
151 |
152 | case .unix:
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:153:18: error: cannot find 'AF_UNIX' in scope
151 |
152 | case .unix:
153 | return Int32(AF_UNIX)
| `- error: cannot find 'AF_UNIX' in scope
154 | }
155 | }
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:167:15: error: cannot find 'AF_INET' in scope
165 | switch forValue {
166 |
167 | case Int32(AF_INET):
| `- error: cannot find 'AF_INET' in scope
168 | return .inet
169 | case Int32(AF_INET6):
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:169:15: error: cannot find 'AF_INET6' in scope
167 | case Int32(AF_INET):
168 | return .inet
169 | case Int32(AF_INET6):
| `- error: cannot find 'AF_INET6' in scope
170 | return .inet6
171 | case Int32(AF_UNIX):
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:171:15: error: cannot find 'AF_UNIX' in scope
169 | case Int32(AF_INET6):
170 | return .inet6
171 | case Int32(AF_UNIX):
| `- error: cannot find 'AF_UNIX' in scope
172 | return .unix
173 | default:
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:208:13: error: cannot find 'SOCK_STREAM' in scope
206 | return Int32(SOCK_STREAM.rawValue)
207 | #else
208 | return SOCK_STREAM
| `- error: cannot find 'SOCK_STREAM' in scope
209 | #endif
210 | case .datagram:
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:214:13: error: cannot find 'SOCK_DGRAM' in scope
212 | return Int32(SOCK_DGRAM.rawValue)
213 | #else
214 | return SOCK_DGRAM
| `- error: cannot find 'SOCK_DGRAM' in scope
215 | #endif
216 | }
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:241:10: error: cannot find 'SOCK_STREAM' in scope
239 | switch forValue {
240 |
241 | case SOCK_STREAM:
| `- error: cannot find 'SOCK_STREAM' in scope
242 | return .stream
243 | case SOCK_DGRAM:
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:243:10: error: cannot find 'SOCK_DGRAM' in scope
241 | case SOCK_STREAM:
242 | return .stream
243 | case SOCK_DGRAM:
| `- error: cannot find 'SOCK_DGRAM' in scope
244 | return .datagram
245 | default:
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:281:18: error: cannot find 'IPPROTO_TCP' in scope
279 |
280 | case .tcp:
281 | return Int32(IPPROTO_TCP)
| `- error: cannot find 'IPPROTO_TCP' in scope
282 | case .udp:
283 | return Int32(IPPROTO_UDP)
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:283:18: error: cannot find 'IPPROTO_UDP' in scope
281 | return Int32(IPPROTO_TCP)
282 | case .udp:
283 | return Int32(IPPROTO_UDP)
| `- error: cannot find 'IPPROTO_UDP' in scope
284 | case .unix:
285 | return Int32(0)
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:300:15: error: cannot find 'IPPROTO_TCP' in scope
298 | switch forValue {
299 |
300 | case Int32(IPPROTO_TCP):
| `- error: cannot find 'IPPROTO_TCP' in scope
301 | return .tcp
302 | case Int32(IPPROTO_UDP):
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:302:15: error: cannot find 'IPPROTO_UDP' in scope
300 | case Int32(IPPROTO_TCP):
301 | return .tcp
302 | case Int32(IPPROTO_UDP):
| `- error: cannot find 'IPPROTO_UDP' in scope
303 | return .udp
304 | case Int32(0):
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:336:26: error: cannot find type 'sockaddr_in' in scope
334 |
335 | case .ipv4( _):
336 | return MemoryLayout<(sockaddr_in)>.size
| `- error: cannot find type 'sockaddr_in' in scope
337 | case .ipv6( _):
338 | return MemoryLayout<(sockaddr_in6)>.size
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:338:26: error: cannot find type 'sockaddr_in6' in scope
336 | return MemoryLayout<(sockaddr_in)>.size
337 | case .ipv6( _):
338 | return MemoryLayout<(sockaddr_in6)>.size
| `- error: cannot find type 'sockaddr_in6' in scope
339 | case .unix( _):
340 | return MemoryLayout<(sockaddr_un)>.size
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:340:26: error: cannot find type 'sockaddr_un' in scope
338 | return MemoryLayout<(sockaddr_in6)>.size
339 | case .unix( _):
340 | return MemoryLayout<(sockaddr_un)>.size
| `- error: cannot find type 'sockaddr_un' in scope
341 | }
342 | }
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:591:21: error: cannot find 'sockaddr_un' in scope
589 |
590 | // Create the address...
591 | var remoteAddr = sockaddr_un()
| `- error: cannot find 'sockaddr_un' in scope
592 | remoteAddr.sun_family = sa_family_t(AF_UNIX)
593 |
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:592:28: error: cannot find 'sa_family_t' in scope
590 | // Create the address...
591 | var remoteAddr = sockaddr_un()
592 | remoteAddr.sun_family = sa_family_t(AF_UNIX)
| `- error: cannot find 'sa_family_t' in scope
593 |
594 | let lengthOfPath = path.utf8.count
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:592:40: error: cannot find 'AF_UNIX' in scope
590 | // Create the address...
591 | var remoteAddr = sockaddr_un()
592 | remoteAddr.sun_family = sa_family_t(AF_UNIX)
| `- error: cannot find 'AF_UNIX' in scope
593 |
594 | let lengthOfPath = path.utf8.count
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:611:75: error: cannot find type 'sa_family_t' in scope
609 |
610 | #if !os(Linux)
611 | remoteAddr.sun_len = UInt8(MemoryLayout<UInt8>.size + MemoryLayout<sa_family_t>.size + path.utf8.count + 1)
| `- error: cannot find type 'sa_family_t' in scope
612 | #endif
613 |
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:614:20: error: type 'Socket.Address?' has no member 'unix'
612 | #endif
613 |
614 | self.address = .unix(remoteAddr)
| `- error: type 'Socket.Address?' has no member 'unix'
615 | }
616 |
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:686:59: error: cannot find type 'sa_family_t' in scope
684 | let addrLen = MemoryLayout<sockaddr_un>.size
685 | #else
686 | let addrLen = MemoryLayout<UInt8>.size + MemoryLayout<sa_family_t>.size + utf8.count + 1
| `- error: cannot find type 'sa_family_t' in scope
687 | #endif
688 | let addrPtr = UnsafeMutablePointer<UInt8>.allocate(capacity: addrLen)
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:710:29: error: cannot find 'AF_UNIX' in scope
708 | addrPtr[memLoc] = UInt8(addrLen)
709 | memLoc += 1
710 | addrPtr[memLoc] = UInt8(AF_UNIX)
| `- error: cannot find 'AF_UNIX' in scope
711 | memLoc += 1
712 | #endif
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1084:17: error: cannot find 'INET_ADDRSTRLEN' in scope
1082 | case .ipv4(let address_in):
1083 | var addr_in = address_in
1084 | bufLen = Int(INET_ADDRSTRLEN)
| `- error: cannot find 'INET_ADDRSTRLEN' in scope
1085 | buf = [CChar](repeating: 0, count: bufLen)
1086 | inet_ntop(Int32(addr_in.sin_family), &addr_in.sin_addr, &buf, socklen_t(bufLen))
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1086:4: error: cannot find 'inet_ntop' in scope
1084 | bufLen = Int(INET_ADDRSTRLEN)
1085 | buf = [CChar](repeating: 0, count: bufLen)
1086 | inet_ntop(Int32(addr_in.sin_family), &addr_in.sin_addr, &buf, socklen_t(bufLen))
| `- error: cannot find 'inet_ntop' in scope
1087 | if isLittleEndian {
1088 | port = Int32(UInt16(addr_in.sin_port).byteSwapped)
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1095:17: error: cannot find 'INET6_ADDRSTRLEN' in scope
1093 | case .ipv6(let address_in):
1094 | var addr_in = address_in
1095 | bufLen = Int(INET6_ADDRSTRLEN)
| `- error: cannot find 'INET6_ADDRSTRLEN' in scope
1096 | buf = [CChar](repeating: 0, count: bufLen)
1097 | inet_ntop(Int32(addr_in.sin6_family), &addr_in.sin6_addr, &buf, socklen_t(bufLen))
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1097:4: error: cannot find 'inet_ntop' in scope
1095 | bufLen = Int(INET6_ADDRSTRLEN)
1096 | buf = [CChar](repeating: 0, count: bufLen)
1097 | inet_ntop(Int32(addr_in.sin6_family), &addr_in.sin6_addr, &buf, socklen_t(bufLen))
| `- error: cannot find 'inet_ntop' in scope
1098 | if isLittleEndian {
1099 | port = Int32(UInt16(addr_in.sin6_port).byteSwapped)
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1189:21: error: cannot assign value of type 'Int32' to type '__kernel_suseconds_t' (aka 'Int')
1187 | timer.tv_usec = Int(uSecs)
1188 | #else
1189 | timer.tv_usec = Int32(uSecs)
| `- error: cannot assign value of type 'Int32' to type '__kernel_suseconds_t' (aka 'Int')
1190 | #endif
1191 | }
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1217:95: error: cannot find 'errno' in scope
1215 | if count < 0 {
1216 |
1217 | throw Error(code: Socket.SOCKET_ERR_SELECT_FAILED, reason: String(validatingUTF8: strerror(errno)) ?? "Error: \(errno)")
| `- error: cannot find 'errno' in scope
1218 | }
1219 |
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1217:116: error: cannot find 'errno' in scope
1215 | if count < 0 {
1216 |
1217 | throw Error(code: Socket.SOCKET_ERR_SELECT_FAILED, reason: String(validatingUTF8: strerror(errno)) ?? "Error: \(errno)")
| `- error: cannot find 'errno' in scope
1218 | }
1219 |
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1240:34: error: cannot find type 'addrinfo' in scope
1238 | public class func createAddress(for host: String, on port: Int32) -> Address? {
1239 |
1240 | var info: UnsafeMutablePointer<addrinfo>?
| `- error: cannot find type 'addrinfo' in scope
1241 |
1242 | // Retrieve the info on our target...
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1243:23: error: cannot find 'getaddrinfo' in scope
1241 |
1242 | // Retrieve the info on our target...
1243 | let status: Int32 = getaddrinfo(host, String(port), nil, &info)
| `- error: cannot find 'getaddrinfo' in scope
1244 | if status != 0 {
1245 |
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1243:55: error: 'nil' requires a contextual type
1241 |
1242 | // Retrieve the info on our target...
1243 | let status: Int32 = getaddrinfo(host, String(port), nil, &info)
| `- error: 'nil' requires a contextual type
1244 | if status != 0 {
1245 |
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1253:5: error: cannot find 'freeaddrinfo' in scope
1251 |
1252 | if info != nil {
1253 | freeaddrinfo(info)
| `- error: cannot find 'freeaddrinfo' in scope
1254 | }
1255 | }
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1258:39: error: cannot find 'AF_INET' in scope
1256 |
1257 | var address: Address
1258 | if info!.pointee.ai_family == Int32(AF_INET) {
| `- error: cannot find 'AF_INET' in scope
1259 |
1260 | var addr = sockaddr_in()
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1260:15: error: cannot find 'sockaddr_in' in scope
1258 | if info!.pointee.ai_family == Int32(AF_INET) {
1259 |
1260 | var addr = sockaddr_in()
| `- error: cannot find 'sockaddr_in' in scope
1261 | memcpy(&addr, info!.pointee.ai_addr, Int(MemoryLayout<sockaddr_in>.size))
1262 | address = .ipv4(addr)
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1261:58: error: cannot find type 'sockaddr_in' in scope
1259 |
1260 | var addr = sockaddr_in()
1261 | memcpy(&addr, info!.pointee.ai_addr, Int(MemoryLayout<sockaddr_in>.size))
| `- error: cannot find type 'sockaddr_in' in scope
1262 | address = .ipv4(addr)
1263 |
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1264:46: error: cannot find 'AF_INET6' in scope
1262 | address = .ipv4(addr)
1263 |
1264 | } else if info!.pointee.ai_family == Int32(AF_INET6) {
| `- error: cannot find 'AF_INET6' in scope
1265 |
1266 | var addr = sockaddr_in6()
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1266:15: error: cannot find 'sockaddr_in6' in scope
1264 | } else if info!.pointee.ai_family == Int32(AF_INET6) {
1265 |
1266 | var addr = sockaddr_in6()
| `- error: cannot find 'sockaddr_in6' in scope
1267 | memcpy(&addr, info!.pointee.ai_addr, Int(MemoryLayout<sockaddr_in6>.size))
1268 | address = .ipv6(addr)
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1267:58: error: cannot find type 'sockaddr_in6' in scope
1265 |
1266 | var addr = sockaddr_in6()
1267 | memcpy(&addr, info!.pointee.ai_addr, Int(MemoryLayout<sockaddr_in6>.size))
| `- error: cannot find type 'sockaddr_in6' in scope
1268 | address = .ipv6(addr)
1269 |
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1311:20: error: cannot find 'Darwin' in scope
1309 | self.socketfd = Glibc.socket(family.value, type.value, sockProto.value)
1310 | #else
1311 | self.socketfd = Darwin.socket(family.value, type.value, sockProto.value)
| `- error: cannot find 'Darwin' in scope
1312 | #endif
1313 |
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1356:15: error: cannot find 'SOCK_STREAM' in scope
1354 | let type = Int32(SOCK_STREAM.rawValue)
1355 | #else
1356 | let type = SOCK_STREAM
| `- error: cannot find 'SOCK_STREAM' in scope
1357 | #endif
1358 |
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1370:19: error: cannot find 'IPPROTO_TCP' in scope
1368 | protocolFamily: remoteAddress.family.value,
1369 | socketType: type,
1370 | proto: Int32(IPPROTO_TCP),
| `- error: cannot find 'IPPROTO_TCP' in scope
1371 | address: remoteAddress,
1372 | hostname: hostname,
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1378:19: error: cannot find 'IPPROTO_TCP' in scope
1376 | protocolFamily: remoteAddress.family.value,
1377 | socketType: type,
1378 | proto: Int32(IPPROTO_TCP),
| `- error: cannot find 'IPPROTO_TCP' in scope
1379 | address: remoteAddress)
1380 | }
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1446:16: error: cannot find 'Darwin' in scope
1444 | let fd = Glibc.accept(self.socketfd, addressPointer, addressLengthPointer)
1445 | #else
1446 | let fd = Darwin.accept(self.socketfd, addressPointer, addressLengthPointer)
| `- error: cannot find 'Darwin' in scope
1447 | #endif
1448 |
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1452:10: error: cannot find 'errno' in scope
1450 |
1451 | // The operation was interrupted, continue the loop...
1452 | if errno == EINTR {
| `- error: cannot find 'errno' in scope
1453 | throw OperationInterrupted.accept
1454 | }
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/SocketUtils.swift:86:47: error: cannot find type 'sockaddr' in scope
84 | /// - Returns: Newly initialized Socket.Address.
85 | ///
86 | init?(addressProvider: (UnsafeMutablePointer<sockaddr>, UnsafeMutablePointer<socklen_t>) throws -> Void) rethrows {
| `- error: cannot find type 'sockaddr' in scope
87 |
88 | var addressStorage = sockaddr_storage()
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1559:16: error: cannot find 'Darwin' in scope
1557 | let fd = Glibc.accept(self.socketfd, addressPointer, addressLengthPointer)
1558 | #else
1559 | let fd = Darwin.accept(self.socketfd, addressPointer, addressLengthPointer)
| `- error: cannot find 'Darwin' in scope
1560 | #endif
1561 |
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1565:10: error: cannot find 'errno' in scope
1563 |
1564 | // The operation was interrupted, continue the loop...
1565 | if errno == EINTR {
| `- error: cannot find 'errno' in scope
1566 | throw OperationInterrupted.accept
1567 | }
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1708:16: error: cannot find 'addrinfo' in scope
1706 | ai_next: nil)
1707 | #else
1708 | var hints = addrinfo(
| `- error: cannot find 'addrinfo' in scope
1709 | ai_flags: AI_PASSIVE,
1710 | ai_family: familyOnly ? signature?.protocolFamily.value ?? AF_UNSPEC : AF_UNSPEC,
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1709:15: error: cannot find 'AI_PASSIVE' in scope
1707 | #else
1708 | var hints = addrinfo(
1709 | ai_flags: AI_PASSIVE,
| `- error: cannot find 'AI_PASSIVE' in scope
1710 | ai_family: familyOnly ? signature?.protocolFamily.value ?? AF_UNSPEC : AF_UNSPEC,
1711 | ai_socktype: socketType.value,
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1710:64: error: cannot find 'AF_UNSPEC' in scope
1708 | var hints = addrinfo(
1709 | ai_flags: AI_PASSIVE,
1710 | ai_family: familyOnly ? signature?.protocolFamily.value ?? AF_UNSPEC : AF_UNSPEC,
| `- error: cannot find 'AF_UNSPEC' in scope
1711 | ai_socktype: socketType.value,
1712 | ai_protocol: 0,
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1710:76: error: cannot find 'AF_UNSPEC' in scope
1708 | var hints = addrinfo(
1709 | ai_flags: AI_PASSIVE,
1710 | ai_family: familyOnly ? signature?.protocolFamily.value ?? AF_UNSPEC : AF_UNSPEC,
| `- error: cannot find 'AF_UNSPEC' in scope
1711 | ai_socktype: socketType.value,
1712 | ai_protocol: 0,
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1714:19: error: 'nil' requires a contextual type
1712 | ai_protocol: 0,
1713 | ai_addrlen: 0,
1714 | ai_canonname: nil,
| `- error: 'nil' requires a contextual type
1715 | ai_addr: nil,
1716 | ai_next: nil)
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1715:14: error: 'nil' requires a contextual type
1713 | ai_addrlen: 0,
1714 | ai_canonname: nil,
1715 | ai_addr: nil,
| `- error: 'nil' requires a contextual type
1716 | ai_next: nil)
1717 | #endif
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1716:14: error: 'nil' requires a contextual type
1714 | ai_canonname: nil,
1715 | ai_addr: nil,
1716 | ai_next: nil)
| `- error: 'nil' requires a contextual type
1717 | #endif
1718 |
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1719:40: error: cannot find type 'addrinfo' in scope
1717 | #endif
1718 |
1719 | var targetInfo: UnsafeMutablePointer<addrinfo>?
| `- error: cannot find type 'addrinfo' in scope
1720 |
1721 | // Retrieve the info on our target...
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1722:23: error: cannot find 'getaddrinfo' in scope
1720 |
1721 | // Retrieve the info on our target...
1722 | var status: Int32 = getaddrinfo(host, String(port), &hints, &targetInfo)
| `- error: cannot find 'getaddrinfo' in scope
1723 | if status != 0 {
1724 |
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1726:17: error: cannot find 'EAI_SYSTEM' in scope
1724 |
1725 | var errorString: String
1726 | if status == EAI_SYSTEM {
| `- error: cannot find 'EAI_SYSTEM' in scope
1727 | errorString = String(validatingUTF8: strerror(errno)) ?? "Unknown error code."
1728 | } else {
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1727:51: error: cannot find 'errno' in scope
1725 | var errorString: String
1726 | if status == EAI_SYSTEM {
1727 | errorString = String(validatingUTF8: strerror(errno)) ?? "Unknown error code."
| `- error: cannot find 'errno' in scope
1728 | } else {
1729 | errorString = String(validatingUTF8: gai_strerror(status)) ?? "Unknown error code."
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1729:42: error: cannot find 'gai_strerror' in scope
1727 | errorString = String(validatingUTF8: strerror(errno)) ?? "Unknown error code."
1728 | } else {
1729 | errorString = String(validatingUTF8: gai_strerror(status)) ?? "Unknown error code."
| `- error: cannot find 'gai_strerror' in scope
1730 | }
1731 | throw Error(code: Socket.SOCKET_ERR_GETADDRINFO_FAILED, reason: errorString)
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1738:5: error: cannot find 'freeaddrinfo' in scope
1736 |
1737 | if targetInfo != nil {
1738 | freeaddrinfo(targetInfo)
| `- error: cannot find 'freeaddrinfo' in scope
1739 | }
1740 | }
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1750:10: error: cannot find 'Darwin' in scope
1748 | _ = Glibc.close(socketDescriptor!)
1749 | #else
1750 | _ = Darwin.close(socketDescriptor!)
| `- error: cannot find 'Darwin' in scope
1751 | #endif
1752 | }
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1761:24: error: cannot find 'Darwin' in scope
1759 | socketDescriptor = Glibc.socket(info!.pointee.ai_family, info!.pointee.ai_socktype, info!.pointee.ai_protocol)
1760 | #else
1761 | socketDescriptor = Darwin.socket(info!.pointee.ai_family, info!.pointee.ai_socktype, info!.pointee.ai_protocol)
| `- error: cannot find 'Darwin' in scope
1762 | #endif
1763 | if socketDescriptor == -1 {
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1771:17: error: cannot find 'fcntl' in scope
1769 | if !self.isBlocking || timeout > 0 {
1770 |
1771 | let flags = fcntl(socketDescriptor!, F_GETFL)
| `- error: cannot find 'fcntl' in scope
1772 | if flags < 0 {
1773 |
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1771:42: error: cannot find 'F_GETFL' in scope
1769 | if !self.isBlocking || timeout > 0 {
1770 |
1771 | let flags = fcntl(socketDescriptor!, F_GETFL)
| `- error: cannot find 'F_GETFL' in scope
1772 | if flags < 0 {
1773 |
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1777:18: error: cannot find 'fcntl' in scope
1775 | }
1776 |
1777 | let result = fcntl(socketDescriptor!, F_SETFL, flags | O_NONBLOCK)
| `- error: cannot find 'fcntl' in scope
1778 | if result < 0 {
1779 |
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1777:43: error: cannot find 'F_SETFL' in scope
1775 | }
1776 |
1777 | let result = fcntl(socketDescriptor!, F_SETFL, flags | O_NONBLOCK)
| `- error: cannot find 'F_SETFL' in scope
1778 | if result < 0 {
1779 |
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1777:60: error: cannot find 'O_NONBLOCK' in scope
1775 | }
1776 |
1777 | let result = fcntl(socketDescriptor!, F_SETFL, flags | O_NONBLOCK)
| `- error: cannot find 'O_NONBLOCK' in scope
1778 | if result < 0 {
1779 |
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1788:14: error: cannot find 'Darwin' in scope
1786 | status = Glibc.connect(socketDescriptor!, info!.pointee.ai_addr, info!.pointee.ai_addrlen)
1787 | #else
1788 | status = Darwin.connect(socketDescriptor!, info!.pointee.ai_addr, info!.pointee.ai_addrlen)
| `- error: cannot find 'Darwin' in scope
1789 | #endif
1790 |
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1797:7: error: cannot find 'errno' in scope
1795 |
1796 | // If this is a non-blocking socket, check errno for EINPROGRESS and if set we've got a timeout, wait the appropriate time...
1797 | if errno == EINPROGRESS {
| `- error: cannot find 'errno' in scope
1798 |
1799 | if timeout > 0 {
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1822:23: error: cannot assign value of type 'Int32' to type '__kernel_suseconds_t' (aka 'Int')
1820 | timer.tv_usec = Int(uSecs)
1821 | #else
1822 | timer.tv_usec = Int32(uSecs)
| `- error: cannot assign value of type 'Int32' to type '__kernel_suseconds_t' (aka 'Int')
1823 | #endif
1824 |
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1838:10: error: cannot find 'getsockopt' in scope
1836 | var result: Int = 0
1837 | var resultLength = socklen_t(MemoryLayout<Int>.size)
1838 | if getsockopt(socketDescriptor!, SOL_SOCKET, SO_ERROR, &result, &resultLength) < 0 {
| `- error: cannot find 'getsockopt' in scope
1839 |
1840 | throw Error(code: Socket.SOCKET_ERR_GETSOCKOPT_FAILED, reason: self.lastError())
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1838:40: error: cannot find 'SOL_SOCKET' in scope
1836 | var result: Int = 0
1837 | var resultLength = socklen_t(MemoryLayout<Int>.size)
1838 | if getsockopt(socketDescriptor!, SOL_SOCKET, SO_ERROR, &result, &resultLength) < 0 {
| `- error: cannot find 'SOL_SOCKET' in scope
1839 |
1840 | throw Error(code: Socket.SOCKET_ERR_GETSOCKOPT_FAILED, reason: self.lastError())
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1838:52: error: cannot find 'SO_ERROR' in scope
1836 | var result: Int = 0
1837 | var resultLength = socklen_t(MemoryLayout<Int>.size)
1838 | if getsockopt(socketDescriptor!, SOL_SOCKET, SO_ERROR, &result, &resultLength) < 0 {
| `- error: cannot find 'SO_ERROR' in scope
1839 |
1840 | throw Error(code: Socket.SOCKET_ERR_GETSOCKOPT_FAILED, reason: self.lastError())
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1862:9: error: cannot find 'Darwin' in scope
1860 | _ = Glibc.close(socketDescriptor!)
1861 | #else
1862 | _ = Darwin.close(socketDescriptor!)
| `- error: cannot find 'Darwin' in scope
1863 | #endif
1864 | socketDescriptor = nil
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1875:10: error: cannot find 'Darwin' in scope
1873 | _ = Glibc.close(socketDescriptor!)
1874 | #else
1875 | _ = Darwin.close(socketDescriptor!)
| `- error: cannot find 'Darwin' in scope
1876 | #endif
1877 | }
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1892:39: error: cannot find 'AF_INET6' in scope
1890 | self.isConnected = true
1891 | var address: Address
1892 | if info!.pointee.ai_family == Int32(AF_INET6) {
| `- error: cannot find 'AF_INET6' in scope
1893 |
1894 | var addr = sockaddr_in6()
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1894:15: error: cannot find 'sockaddr_in6' in scope
1892 | if info!.pointee.ai_family == Int32(AF_INET6) {
1893 |
1894 | var addr = sockaddr_in6()
| `- error: cannot find 'sockaddr_in6' in scope
1895 | memcpy(&addr, info!.pointee.ai_addr, Int(MemoryLayout<sockaddr_in6>.size))
1896 | address = .ipv6(addr)
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1895:58: error: cannot find type 'sockaddr_in6' in scope
1893 |
1894 | var addr = sockaddr_in6()
1895 | memcpy(&addr, info!.pointee.ai_addr, Int(MemoryLayout<sockaddr_in6>.size))
| `- error: cannot find type 'sockaddr_in6' in scope
1896 | address = .ipv6(addr)
1897 |
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1898:46: error: cannot find 'AF_INET' in scope
1896 | address = .ipv6(addr)
1897 |
1898 | } else if info!.pointee.ai_family == Int32(AF_INET) {
| `- error: cannot find 'AF_INET' in scope
1899 |
1900 | var addr = sockaddr_in()
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1900:15: error: cannot find 'sockaddr_in' in scope
1898 | } else if info!.pointee.ai_family == Int32(AF_INET) {
1899 |
1900 | var addr = sockaddr_in()
| `- error: cannot find 'sockaddr_in' in scope
1901 | memcpy(&addr, info!.pointee.ai_addr, Int(MemoryLayout<sockaddr_in>.size))
1902 | address = .ipv4(addr)
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1901:58: error: cannot find type 'sockaddr_in' in scope
1899 |
1900 | var addr = sockaddr_in()
1901 | memcpy(&addr, info!.pointee.ai_addr, Int(MemoryLayout<sockaddr_in>.size))
| `- error: cannot find type 'sockaddr_in' in scope
1902 | address = .ipv4(addr)
1903 |
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1924:16: error: cannot find 'fcntl' in scope
1922 | // Socket supposed to be blocking but we've changed it to non-blocking because
1923 | // a timeout was requested... Got to change it back before proceeding...
1924 | let flags = fcntl(self.socketfd, F_GETFL)
| `- error: cannot find 'fcntl' in scope
1925 | if flags < 0 {
1926 |
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1924:37: error: cannot find 'F_GETFL' in scope
1922 | // Socket supposed to be blocking but we've changed it to non-blocking because
1923 | // a timeout was requested... Got to change it back before proceeding...
1924 | let flags = fcntl(self.socketfd, F_GETFL)
| `- error: cannot find 'F_GETFL' in scope
1925 | if flags < 0 {
1926 |
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1930:17: error: cannot find 'fcntl' in scope
1928 | }
1929 |
1930 | let result = fcntl(self.socketfd, F_SETFL, flags & ~O_NONBLOCK)
| `- error: cannot find 'fcntl' in scope
1931 | if result < 0 {
1932 |
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1930:38: error: cannot find 'F_SETFL' in scope
1928 | }
1929 |
1930 | let result = fcntl(self.socketfd, F_SETFL, flags & ~O_NONBLOCK)
| `- error: cannot find 'F_SETFL' in scope
1931 | if result < 0 {
1932 |
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1930:56: error: cannot find 'O_NONBLOCK' in scope
1928 | }
1929 |
1930 | let result = fcntl(self.socketfd, F_SETFL, flags & ~O_NONBLOCK)
| `- error: cannot find 'O_NONBLOCK' in scope
1931 | if result < 0 {
1932 |
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1997:42: error: cannot find 'sockaddr' in scope
1995 | }
1996 |
1997 | let rc = addrPtr.withMemoryRebound(to: sockaddr.self, capacity: 1) {
| `- error: cannot find 'sockaddr' in scope
1998 |
1999 | (p: UnsafeMutablePointer<sockaddr>) -> Int32 in
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:2004:12: error: cannot find 'Darwin' in scope
2002 | return Glibc.connect(self.socketfd, p, socklen_t(addrLen))
2003 | #else
2004 | return Darwin.connect(self.socketfd, p, socklen_t(addrLen))
| `- error: cannot find 'Darwin' in scope
2005 | #endif
2006 | }
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1999:29: error: cannot find type 'sockaddr' in scope
1997 | let rc = addrPtr.withMemoryRebound(to: sockaddr.self, capacity: 1) {
1998 |
1999 | (p: UnsafeMutablePointer<sockaddr>) -> Int32 in
| `- error: cannot find type 'sockaddr' in scope
2000 |
2001 | #if os(Linux)
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1997:20: error: generic parameter 'T' could not be inferred
1995 | }
1996 |
1997 | let rc = addrPtr.withMemoryRebound(to: sockaddr.self, capacity: 1) {
| `- error: generic parameter 'T' could not be inferred
1998 |
1999 | (p: UnsafeMutablePointer<sockaddr>) -> Int32 in
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/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:2058:13: error: cannot find 'Darwin' in scope
2056 | return Glibc.connect(self.socketfd, sockaddr, length)
2057 | #else
2058 | return Darwin.connect(self.socketfd, sockaddr, length)
| `- error: cannot find 'Darwin' in scope
2059 | #endif
2060 | }
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/SocketUtils.swift:43:56: error: cannot find type 'sockaddr' in scope
41 | /// - Returns: The result of executing the closure.
42 | ///
43 | func withSockAddrPointer<Result>(body: (UnsafePointer<sockaddr>, socklen_t) throws -> Result) rethrows -> Result {
| `- error: cannot find type 'sockaddr' in scope
44 |
45 | ///
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:2140:6: error: cannot find 'setsockopt' in scope
2138 | // closes. (TCP normally imposes a delay before an address can be re-used.)
2139 | var on: Int32 = 1
2140 | if setsockopt(self.socketfd, SOL_SOCKET, SO_REUSEADDR, &on, socklen_t(MemoryLayout<Int32>.size)) < 0 {
| `- error: cannot find 'setsockopt' in scope
2141 |
2142 | throw Error(code: Socket.SOCKET_ERR_SETSOCKOPT_FAILED, reason: self.lastError())
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:2140:32: error: cannot find 'SOL_SOCKET' in scope
2138 | // closes. (TCP normally imposes a delay before an address can be re-used.)
2139 | var on: Int32 = 1
2140 | if setsockopt(self.socketfd, SOL_SOCKET, SO_REUSEADDR, &on, socklen_t(MemoryLayout<Int32>.size)) < 0 {
| `- error: cannot find 'SOL_SOCKET' in scope
2141 |
2142 | throw Error(code: Socket.SOCKET_ERR_SETSOCKOPT_FAILED, reason: self.lastError())
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:2140:44: error: cannot find 'SO_REUSEADDR' in scope
2138 | // closes. (TCP normally imposes a delay before an address can be re-used.)
2139 | var on: Int32 = 1
2140 | if setsockopt(self.socketfd, SOL_SOCKET, SO_REUSEADDR, &on, socklen_t(MemoryLayout<Int32>.size)) < 0 {
| `- error: cannot find 'SO_REUSEADDR' in scope
2141 |
2142 | throw Error(code: Socket.SOCKET_ERR_SETSOCKOPT_FAILED, reason: self.lastError())
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:2152:7: error: cannot find 'setsockopt' in scope
2150 | // instances of a program to each receive UDP/IP multicast or broadcast datagrams
2151 | // destined for the bound port.
2152 | if setsockopt(self.socketfd, SOL_SOCKET, SO_REUSEPORT, &on, socklen_t(MemoryLayout<Int32>.size)) < 0 {
| `- error: cannot find 'setsockopt' in scope
2153 |
2154 | // Setting of this option on WSL (Windows Subsytem for Linux) is not supported. Check for
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:2152:33: error: cannot find 'SOL_SOCKET' in scope
2150 | // instances of a program to each receive UDP/IP multicast or broadcast datagrams
2151 | // destined for the bound port.
2152 | if setsockopt(self.socketfd, SOL_SOCKET, SO_REUSEPORT, &on, socklen_t(MemoryLayout<Int32>.size)) < 0 {
| `- error: cannot find 'SOL_SOCKET' in scope
2153 |
2154 | // Setting of this option on WSL (Windows Subsytem for Linux) is not supported. Check for
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:2152:45: error: cannot find 'SO_REUSEPORT' in scope
2150 | // instances of a program to each receive UDP/IP multicast or broadcast datagrams
2151 | // destined for the bound port.
2152 | if setsockopt(self.socketfd, SOL_SOCKET, SO_REUSEPORT, &on, socklen_t(MemoryLayout<Int32>.size)) < 0 {
| `- error: cannot find 'SO_REUSEPORT' in scope
2153 |
2154 | // Setting of this option on WSL (Windows Subsytem for Linux) is not supported. Check for
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:2156:8: error: cannot find 'errno' in scope
2154 | // Setting of this option on WSL (Windows Subsytem for Linux) is not supported. Check for
2155 | // the appropriate errno value and if set, ignore the error...
2156 | if errno != ENOPROTOOPT {
| `- error: cannot find 'errno' in scope
2157 | throw Error(code: Socket.SOCKET_ERR_SETSOCKOPT_FAILED, reason: self.lastError())
2158 | }
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:2170:16: error: cannot find 'setsockopt' in scope
2168 | // Configure ipv6 socket so that it can share ports with ipv4 on the same port.
2169 | if sig.protocolFamily == .inet6 && sig.proto == .tcp {
2170 | if setsockopt(self.socketfd, Int32(IPPROTO_IPV6), IPV6_V6ONLY, &on, socklen_t(MemoryLayout<Int32>.size)) < 0 {
| `- error: cannot find 'setsockopt' in scope
2171 |
2172 | throw Error(code: Socket.SOCKET_ERR_SETSOCKOPT_FAILED, reason: self.lastError())
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:2170:48: error: cannot find 'IPPROTO_IPV6' in scope
2168 | // Configure ipv6 socket so that it can share ports with ipv4 on the same port.
2169 | if sig.protocolFamily == .inet6 && sig.proto == .tcp {
2170 | if setsockopt(self.socketfd, Int32(IPPROTO_IPV6), IPV6_V6ONLY, &on, socklen_t(MemoryLayout<Int32>.size)) < 0 {
| `- error: cannot find 'IPPROTO_IPV6' in scope
2171 |
2172 | throw Error(code: Socket.SOCKET_ERR_SETSOCKOPT_FAILED, reason: self.lastError())
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:2170:63: error: cannot find 'IPV6_V6ONLY' in scope
2168 | // Configure ipv6 socket so that it can share ports with ipv4 on the same port.
2169 | if sig.protocolFamily == .inet6 && sig.proto == .tcp {
2170 | if setsockopt(self.socketfd, Int32(IPPROTO_IPV6), IPV6_V6ONLY, &on, socklen_t(MemoryLayout<Int32>.size)) < 0 {
| `- error: cannot find 'IPV6_V6ONLY' in scope
2171 |
2172 | throw Error(code: Socket.SOCKET_ERR_SETSOCKOPT_FAILED, reason: self.lastError())
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:2207:16: error: cannot find 'addrinfo' in scope
2205 | ai_next: nil)
2206 | #else
2207 | var hints = addrinfo(
| `- error: cannot find 'addrinfo' in scope
2208 | ai_flags: AI_PASSIVE,
2209 | ai_family: sig.protocolFamily.value,
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:2208:15: error: cannot find 'AI_PASSIVE' in scope
2206 | #else
2207 | var hints = addrinfo(
2208 | ai_flags: AI_PASSIVE,
| `- error: cannot find 'AI_PASSIVE' in scope
2209 | ai_family: sig.protocolFamily.value,
2210 | ai_socktype: sig.socketType.value,
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:2213:19: error: 'nil' requires a contextual type
2211 | ai_protocol: 0,
2212 | ai_addrlen: 0,
2213 | ai_canonname: nil,
| `- error: 'nil' requires a contextual type
2214 | ai_addr: nil,
2215 | ai_next: nil)
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:2214:14: error: 'nil' requires a contextual type
2212 | ai_addrlen: 0,
2213 | ai_canonname: nil,
2214 | ai_addr: nil,
| `- error: 'nil' requires a contextual type
2215 | ai_next: nil)
2216 | #endif
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:2215:14: error: 'nil' requires a contextual type
2213 | ai_canonname: nil,
2214 | ai_addr: nil,
2215 | ai_next: nil)
| `- error: 'nil' requires a contextual type
2216 | #endif
2217 |
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:2218:40: error: cannot find type 'addrinfo' in scope
2216 | #endif
2217 |
2218 | var targetInfo: UnsafeMutablePointer<addrinfo>?
| `- error: cannot find type 'addrinfo' in scope
2219 |
2220 | // Retrieve the info on our target...
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:2221:23: error: cannot find 'getaddrinfo' in scope
2219 |
2220 | // Retrieve the info on our target...
2221 | let status: Int32 = getaddrinfo(node ?? nil, String(port), &hints, &targetInfo)
| `- error: cannot find 'getaddrinfo' in scope
2222 | if status != 0 {
2223 |
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:2225:17: error: cannot find 'EAI_SYSTEM' in scope
2223 |
2224 | var errorString: String
2225 | if status == EAI_SYSTEM {
| `- error: cannot find 'EAI_SYSTEM' in scope
2226 | errorString = String(validatingUTF8: strerror(errno)) ?? "Unknown error code."
2227 | } else {
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:2226:51: error: cannot find 'errno' in scope
2224 | var errorString: String
2225 | if status == EAI_SYSTEM {
2226 | errorString = String(validatingUTF8: strerror(errno)) ?? "Unknown error code."
| `- error: cannot find 'errno' in scope
2227 | } else {
2228 | errorString = String(validatingUTF8: gai_strerror(errno)) ?? "Unknown error code."
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:2228:42: error: cannot find 'gai_strerror' in scope
2226 | errorString = String(validatingUTF8: strerror(errno)) ?? "Unknown error code."
2227 | } else {
2228 | errorString = String(validatingUTF8: gai_strerror(errno)) ?? "Unknown error code."
| `- error: cannot find 'gai_strerror' in scope
2229 | }
2230 | throw Error(code: Socket.SOCKET_ERR_GETADDRINFO_FAILED, reason: errorString)
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:2228:55: error: cannot find 'errno' in scope
2226 | errorString = String(validatingUTF8: strerror(errno)) ?? "Unknown error code."
2227 | } else {
2228 | errorString = String(validatingUTF8: gai_strerror(errno)) ?? "Unknown error code."
| `- error: cannot find 'errno' in scope
2229 | }
2230 | throw Error(code: Socket.SOCKET_ERR_GETADDRINFO_FAILED, reason: errorString)
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:2237:5: error: cannot find 'freeaddrinfo' in scope
2235 |
2236 | if targetInfo != nil {
2237 | freeaddrinfo(targetInfo)
| `- error: cannot find 'freeaddrinfo' in scope
2238 | }
2239 | }
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:2255:8: error: cannot find 'Darwin' in scope
2253 | }
2254 | #else
2255 | if Darwin.bind(self.socketfd, info!.pointee.ai_addr, info!.pointee.ai_addrlen) == 0 {
| `- error: cannot find 'Darwin' in scope
2256 |
2257 | // Success... We've found our address...
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:2279:8: error: cannot find 'getsockname' in scope
2277 | if port == 0 {
2278 | guard let addressFromSockName = try Address(addressProvider: { (sockaddr, length) in
2279 | if getsockname(self.socketfd, sockaddr, length) != 0 {
| `- error: cannot find 'getsockname' in scope
2280 | throw Error(code: Socket.SOCKET_ERR_BIND_FAILED, reason: "Unable to determine listening socket address after bind.")
2281 | }
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:2288:40: error: cannot find 'AF_INET6' in scope
2286 | } else {
2287 |
2288 | if info!.pointee.ai_family == Int32(AF_INET6) {
| `- error: cannot find 'AF_INET6' in scope
2289 |
2290 | var addr = sockaddr_in6()
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:2290:16: error: cannot find 'sockaddr_in6' in scope
2288 | if info!.pointee.ai_family == Int32(AF_INET6) {
2289 |
2290 | var addr = sockaddr_in6()
| `- error: cannot find 'sockaddr_in6' in scope
2291 | memcpy(&addr, info!.pointee.ai_addr, Int(MemoryLayout<sockaddr_in6>.size))
2292 | address = .ipv6(addr)
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:2291:59: error: cannot find type 'sockaddr_in6' in scope
2289 |
2290 | var addr = sockaddr_in6()
2291 | memcpy(&addr, info!.pointee.ai_addr, Int(MemoryLayout<sockaddr_in6>.size))
| `- error: cannot find type 'sockaddr_in6' in scope
2292 | address = .ipv6(addr)
2293 |
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:2294:47: error: cannot find 'AF_INET' in scope
2292 | address = .ipv6(addr)
2293 |
2294 | } else if info!.pointee.ai_family == Int32(AF_INET) {
| `- error: cannot find 'AF_INET' in scope
2295 |
2296 | var addr = sockaddr_in()
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:2296:16: error: cannot find 'sockaddr_in' in scope
2294 | } else if info!.pointee.ai_family == Int32(AF_INET) {
2295 |
2296 | var addr = sockaddr_in()
| `- error: cannot find 'sockaddr_in' in scope
2297 | memcpy(&addr, info!.pointee.ai_addr, Int(MemoryLayout<sockaddr_in>.size))
2298 | address = .ipv4(addr)
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:2297:59: error: cannot find type 'sockaddr_in' in scope
2295 |
2296 | var addr = sockaddr_in()
2297 | memcpy(&addr, info!.pointee.ai_addr, Int(MemoryLayout<sockaddr_in>.size))
| `- error: cannot find type 'sockaddr_in' in scope
2298 | address = .ipv4(addr)
2299 |
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:2328:7: error: cannot find 'Darwin' in scope
2326 | }
2327 | #else
2328 | if Darwin.listen(self.socketfd, Int32(maxBacklogSize)) < 0 {
| `- error: cannot find 'Darwin' in scope
2329 |
2330 | throw Error(code: Socket.SOCKET_ERR_LISTEN_FAILED, reason: self.lastError())
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:2364:6: error: cannot find 'setsockopt' in scope
2362 | // closes. (TCP normally imposes a delay before an address can be re-used.)
2363 | var on: Int32 = 1
2364 | if setsockopt(self.socketfd, SOL_SOCKET, SO_REUSEADDR, &on, socklen_t(MemoryLayout<Int32>.size)) < 0 {
| `- error: cannot find 'setsockopt' in scope
2365 |
2366 | throw Error(code: Socket.SOCKET_ERR_SETSOCKOPT_FAILED, reason: self.lastError())
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:2364:32: error: cannot find 'SOL_SOCKET' in scope
2362 | // closes. (TCP normally imposes a delay before an address can be re-used.)
2363 | var on: Int32 = 1
2364 | if setsockopt(self.socketfd, SOL_SOCKET, SO_REUSEADDR, &on, socklen_t(MemoryLayout<Int32>.size)) < 0 {
| `- error: cannot find 'SOL_SOCKET' in scope
2365 |
2366 | throw Error(code: Socket.SOCKET_ERR_SETSOCKOPT_FAILED, reason: self.lastError())
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:2364:44: error: cannot find 'SO_REUSEADDR' in scope
2362 | // closes. (TCP normally imposes a delay before an address can be re-used.)
2363 | var on: Int32 = 1
2364 | if setsockopt(self.socketfd, SOL_SOCKET, SO_REUSEADDR, &on, socklen_t(MemoryLayout<Int32>.size)) < 0 {
| `- error: cannot find 'SO_REUSEADDR' in scope
2365 |
2366 | throw Error(code: Socket.SOCKET_ERR_SETSOCKOPT_FAILED, reason: self.lastError())
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:2380:8: error: cannot find 'Darwin' in scope
2378 | _ = Glibc.unlink(path)
2379 | #else
2380 | _ = Darwin.unlink(path)
| `- error: cannot find 'Darwin' in scope
2381 | #endif
2382 |
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:2394:42: error: cannot find 'sockaddr' in scope
2392 | }
2393 |
2394 | let rc = addrPtr.withMemoryRebound(to: sockaddr.self, capacity: 1) {
| `- error: cannot find 'sockaddr' in scope
2395 |
2396 | (p: UnsafeMutablePointer<sockaddr>) -> Int32 in
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:2401:12: error: cannot find 'Darwin' in scope
2399 | return Glibc.bind(self.socketfd, p, socklen_t(addrLen))
2400 | #else
2401 | return Darwin.bind(self.socketfd, p, socklen_t(addrLen))
| `- error: cannot find 'Darwin' in scope
2402 | #endif
2403 | }
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:2396:29: error: cannot find type 'sockaddr' in scope
2394 | let rc = addrPtr.withMemoryRebound(to: sockaddr.self, capacity: 1) {
2395 |
2396 | (p: UnsafeMutablePointer<sockaddr>) -> Int32 in
| `- error: cannot find type 'sockaddr' in scope
2397 |
2398 | #if os(Linux)
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:2394:20: error: generic parameter 'T' could not be inferred
2392 | }
2393 |
2394 | let rc = addrPtr.withMemoryRebound(to: sockaddr.self, capacity: 1) {
| `- error: generic parameter 'T' could not be inferred
2395 |
2396 | (p: UnsafeMutablePointer<sockaddr>) -> Int32 in
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/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:2417:7: error: cannot find 'Darwin' in scope
2415 | }
2416 | #else
2417 | if Darwin.listen(self.socketfd, Int32(maxBacklogSize)) < 0 {
| `- error: cannot find 'Darwin' in scope
2418 |
2419 | throw Error(code: Socket.SOCKET_ERR_LISTEN_FAILED, reason: self.lastError())
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:3023:10: error: cannot find 'Darwin' in scope
3021 | s = Glibc.send(self.socketfd, buffer.advanced(by: sent), Int(bufSize - sent), sendFlags)
3022 | #else
3023 | s = Darwin.send(self.socketfd, buffer.advanced(by: sent), Int(bufSize - sent), sendFlags)
| `- error: cannot find 'Darwin' in scope
3024 | #endif
3025 | }
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:3028:8: error: cannot find 'errno' in scope
3026 | if s <= 0 {
3027 |
3028 | if errno == EAGAIN && !isBlocking {
| `- error: cannot find 'errno' in scope
3029 |
3030 | // We have written out as much as we can...
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:3035:8: error: cannot find 'errno' in scope
3033 |
3034 | // - Handle a connection reset by peer (ECONNRESET) and throw a different exception...
3035 | if errno == ECONNRESET {
| `- error: cannot find 'errno' in scope
3036 | self.remoteConnectionClosed = true
3037 | throw Error(code: Socket.SOCKET_ERR_CONNECTION_RESET, reason: self.lastError())
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:3160:10: error: cannot find 'Darwin' in scope
3158 | s = Glibc.sendto(self.socketfd, buffer.advanced(by: sent), Int(bufSize - sent), sendFlags, addressPointer, addressLength)
3159 | #else
3160 | s = Darwin.sendto(self.socketfd, buffer.advanced(by: sent), Int(bufSize - sent), sendFlags, addressPointer, addressLength)
| `- error: cannot find 'Darwin' in scope
3161 | #endif
3162 |
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:3165:9: error: cannot find 'errno' in scope
3163 | if s <= 0 {
3164 |
3165 | if errno == EAGAIN && !isBlocking {
| `- error: cannot find 'errno' in scope
3166 |
3167 | // We have written out as much as we can...
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:3172:9: error: cannot find 'errno' in scope
3170 |
3171 | // - Handle a connection reset by peer (ECONNRESET) and throw a different exception...
3172 | if errno == ECONNRESET {
| `- error: cannot find 'errno' in scope
3173 | self.remoteConnectionClosed = true
3174 | throw Error(code: Socket.SOCKET_ERR_CONNECTION_RESET, reason: self.lastError())
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:3305:22: error: cannot assign value of type 'Int32' to type '__kernel_suseconds_t' (aka 'Int')
3303 | timer.tv_usec = Int(uSecs)
3304 | #else
3305 | timer.tv_usec = Int32(uSecs)
| `- error: cannot assign value of type 'Int32' to type '__kernel_suseconds_t' (aka 'Int')
3306 | #endif
3307 | }
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:3330:15: error: cannot find 'fcntl' in scope
3328 | public func setBlocking(mode shouldBlock: Bool) throws {
3329 |
3330 | let flags = fcntl(self.socketfd, F_GETFL)
| `- error: cannot find 'fcntl' in scope
3331 | if flags < 0 {
3332 |
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:3330:36: error: cannot find 'F_GETFL' in scope
3328 | public func setBlocking(mode shouldBlock: Bool) throws {
3329 |
3330 | let flags = fcntl(self.socketfd, F_GETFL)
| `- error: cannot find 'F_GETFL' in scope
3331 | if flags < 0 {
3332 |
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:3339:13: error: cannot find 'fcntl' in scope
3337 | if shouldBlock {
3338 |
3339 | result = fcntl(self.socketfd, F_SETFL, flags & ~O_NONBLOCK)
| `- error: cannot find 'fcntl' in scope
3340 |
3341 | } else {
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:3339:34: error: cannot find 'F_SETFL' in scope
3337 | if shouldBlock {
3338 |
3339 | result = fcntl(self.socketfd, F_SETFL, flags & ~O_NONBLOCK)
| `- error: cannot find 'F_SETFL' in scope
3340 |
3341 | } else {
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:3339:52: error: cannot find 'O_NONBLOCK' in scope
3337 | if shouldBlock {
3338 |
3339 | result = fcntl(self.socketfd, F_SETFL, flags & ~O_NONBLOCK)
| `- error: cannot find 'O_NONBLOCK' in scope
3340 |
3341 | } else {
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:3343:13: error: cannot find 'fcntl' in scope
3341 | } else {
3342 |
3343 | result = fcntl(self.socketfd, F_SETFL, flags | O_NONBLOCK)
| `- error: cannot find 'fcntl' in scope
3344 | }
3345 |
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:3343:34: error: cannot find 'F_SETFL' in scope
3341 | } else {
3342 |
3343 | result = fcntl(self.socketfd, F_SETFL, flags | O_NONBLOCK)
| `- error: cannot find 'F_SETFL' in scope
3344 | }
3345 |
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:3343:51: error: cannot find 'O_NONBLOCK' in scope
3341 | } else {
3342 |
3343 | result = fcntl(self.socketfd, F_SETFL, flags | O_NONBLOCK)
| `- error: cannot find 'O_NONBLOCK' in scope
3344 | }
3345 |
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:3382:21: error: cannot assign value of type 'Int32' to type '__kernel_suseconds_t' (aka 'Int')
3380 | timer.tv_usec = Int(uSecs)
3381 | #else
3382 | timer.tv_usec = Int32(uSecs)
| `- error: cannot assign value of type 'Int32' to type '__kernel_suseconds_t' (aka 'Int')
3383 | #endif
3384 | }
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:3386:16: error: cannot find 'setsockopt' in scope
3384 | }
3385 |
3386 | let result = setsockopt(self.socketfd, SOL_SOCKET, SO_RCVTIMEO, &timer, socklen_t(MemoryLayout<timeval>.stride))
| `- error: cannot find 'setsockopt' in scope
3387 |
3388 | if result < 0 {
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:3386:42: error: cannot find 'SOL_SOCKET' in scope
3384 | }
3385 |
3386 | let result = setsockopt(self.socketfd, SOL_SOCKET, SO_RCVTIMEO, &timer, socklen_t(MemoryLayout<timeval>.stride))
| `- error: cannot find 'SOL_SOCKET' in scope
3387 |
3388 | if result < 0 {
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:3386:54: error: cannot find 'SO_RCVTIMEO' in scope
3384 | }
3385 |
3386 | let result = setsockopt(self.socketfd, SOL_SOCKET, SO_RCVTIMEO, &timer, socklen_t(MemoryLayout<timeval>.stride))
| `- error: cannot find 'SO_RCVTIMEO' in scope
3387 |
3388 | if result < 0 {
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:3422:21: error: cannot assign value of type 'Int32' to type '__kernel_suseconds_t' (aka 'Int')
3420 | timer.tv_usec = Int(uSecs)
3421 | #else
3422 | timer.tv_usec = Int32(uSecs)
| `- error: cannot assign value of type 'Int32' to type '__kernel_suseconds_t' (aka 'Int')
3423 | #endif
3424 | }
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:3426:16: error: cannot find 'setsockopt' in scope
3424 | }
3425 |
3426 | let result = setsockopt(self.socketfd, SOL_SOCKET, SO_SNDTIMEO, &timer, socklen_t(MemoryLayout<timeval>.stride))
| `- error: cannot find 'setsockopt' in scope
3427 |
3428 | if result < 0 {
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:3426:42: error: cannot find 'SOL_SOCKET' in scope
3424 | }
3425 |
3426 | let result = setsockopt(self.socketfd, SOL_SOCKET, SO_SNDTIMEO, &timer, socklen_t(MemoryLayout<timeval>.stride))
| `- error: cannot find 'SOL_SOCKET' in scope
3427 |
3428 | if result < 0 {
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:3426:54: error: cannot find 'SO_SNDTIMEO' in scope
3424 | }
3425 |
3426 | let result = setsockopt(self.socketfd, SOL_SOCKET, SO_SNDTIMEO, &timer, socklen_t(MemoryLayout<timeval>.stride))
| `- error: cannot find 'SO_SNDTIMEO' in scope
3427 |
3428 | if result < 0 {
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:3457:6: error: cannot find 'setsockopt' in scope
3455 | // Turn on or off UDP broadcasting...
3456 | var on: Int32 = enable ? 1 : 0
3457 | if setsockopt(self.socketfd, SOL_SOCKET, SO_BROADCAST, &on, socklen_t(MemoryLayout<Int32>.size)) < 0 {
| `- error: cannot find 'setsockopt' in scope
3458 | throw Error(code: Socket.SOCKET_ERR_SETSOCKOPT_FAILED, reason: self.lastError())
3459 | }
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:3457:32: error: cannot find 'SOL_SOCKET' in scope
3455 | // Turn on or off UDP broadcasting...
3456 | var on: Int32 = enable ? 1 : 0
3457 | if setsockopt(self.socketfd, SOL_SOCKET, SO_BROADCAST, &on, socklen_t(MemoryLayout<Int32>.size)) < 0 {
| `- error: cannot find 'SOL_SOCKET' in scope
3458 | throw Error(code: Socket.SOCKET_ERR_SETSOCKOPT_FAILED, reason: self.lastError())
3459 | }
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:3457:44: error: cannot find 'SO_BROADCAST' in scope
3455 | // Turn on or off UDP broadcasting...
3456 | var on: Int32 = enable ? 1 : 0
3457 | if setsockopt(self.socketfd, SOL_SOCKET, SO_BROADCAST, &on, socklen_t(MemoryLayout<Int32>.size)) < 0 {
| `- error: cannot find 'SO_BROADCAST' in scope
3458 | throw Error(code: Socket.SOCKET_ERR_SETSOCKOPT_FAILED, reason: self.lastError())
3459 | }
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:3490:10: error: cannot find 'Darwin' in scope
3488 | #else
3489 | if self.isListening {
3490 | _ = Darwin.shutdown(self.socketfd, Int32(SHUT_RDWR))
| `- error: cannot find 'Darwin' in scope
3491 | self.isListening = false
3492 | }
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:3490:47: error: cannot find 'SHUT_RDWR' in scope
3488 | #else
3489 | if self.isListening {
3490 | _ = Darwin.shutdown(self.socketfd, Int32(SHUT_RDWR))
| `- error: cannot find 'SHUT_RDWR' in scope
3491 | self.isListening = false
3492 | }
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:3494:9: error: cannot find 'Darwin' in scope
3492 | }
3493 | self.isConnected = false
3494 | _ = Darwin.close(self.socketfd)
| `- error: cannot find 'Darwin' in scope
3495 | #endif
3496 |
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:3511:10: error: cannot find 'Darwin' in scope
3509 | _ = Glibc.unlink(self.signature!.path!)
3510 | #else
3511 | _ = Darwin.unlink(self.signature!.path!)
| `- error: cannot find 'Darwin' in scope
3512 | #endif
3513 | }
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:3535:23: error: cannot find 'MSG_DONTWAIT' in scope
3533 | var recvFlags: Int32 = 0
3534 | if self.readStorage.length > 0 {
3535 | recvFlags |= Int32(MSG_DONTWAIT)
| `- error: cannot find 'MSG_DONTWAIT' in scope
3536 | }
3537 |
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:3547:14: error: cannot find 'Darwin' in scope
3545 | count = Glibc.recv(self.socketfd, self.readBuffer, self.readBufferSize, recvFlags)
3546 | #else
3547 | count = Darwin.recv(self.socketfd, self.readBuffer, self.readBufferSize, recvFlags)
| `- error: cannot find 'Darwin' in scope
3548 | #endif
3549 |
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:3595:12: error: cannot find 'errno' in scope
3593 | if count < 0 {
3594 |
3595 | switch errno {
| `- error: cannot find 'errno' in scope
3596 |
3597 | // - Could be an error, but if errno is EAGAIN or EWOULDBLOCK (if a non-blocking socket),
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:3649:23: error: cannot find 'MSG_DONTWAIT' in scope
3647 | var recvFlags: Int32 = 0
3648 | if self.readStorage.length > 0 {
3649 | recvFlags |= Int32(MSG_DONTWAIT)
| `- error: cannot find 'MSG_DONTWAIT' in scope
3650 | }
3651 |
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:3659:18: error: cannot find 'Darwin' in scope
3657 | let count = Glibc.recvfrom(self.socketfd, self.readBuffer, self.readBufferSize, recvFlags, addresssPointer, addressLengthPointer)
3658 | #else
3659 | let count = Darwin.recvfrom(self.socketfd, self.readBuffer, self.readBufferSize, recvFlags, addresssPointer, addressLengthPointer)
| `- error: cannot find 'Darwin' in scope
3660 | #endif
3661 |
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:3667:9: error: cannot find 'errno' in scope
3665 | // - Could be an error, but if errno is EAGAIN or EWOULDBLOCK (if a non-blocking socket),
3666 | // it means there was NO data to read...
3667 | if errno == EAGAIN || errno == EWOULDBLOCK {
| `- error: cannot find 'errno' in scope
3668 |
3669 | throw OperationInterrupted.readDatagram(length: self.readStorage.length)
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:3667:28: error: cannot find 'errno' in scope
3665 | // - Could be an error, but if errno is EAGAIN or EWOULDBLOCK (if a non-blocking socket),
3666 | // it means there was NO data to read...
3667 | if errno == EAGAIN || errno == EWOULDBLOCK {
| `- error: cannot find 'errno' in scope
3668 |
3669 | throw OperationInterrupted.readDatagram(length: self.readStorage.length)
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:3673:9: error: cannot find 'errno' in scope
3671 |
3672 | // - Handle a connection reset by peer (ECONNRESET) and throw a different exception...
3673 | if errno == ECONNRESET {
| `- error: cannot find 'errno' in scope
3674 | self.remoteConnectionClosed = true
3675 | throw Error(code: Socket.SOCKET_ERR_CONNECTION_RESET, reason: self.lastError())
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:3740:42: error: cannot find 'errno' in scope
3738 | private func lastError() -> String {
3739 |
3740 | return String(validatingUTF8: strerror(errno)) ?? "Error: \(errno)"
| `- error: cannot find 'errno' in scope
3741 | }
3742 |
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:3740:63: error: cannot find 'errno' in scope
3738 | private func lastError() -> String {
3739 |
3740 | return String(validatingUTF8: strerror(errno)) ?? "Error: \(errno)"
| `- error: cannot find 'errno' in scope
3741 | }
3742 |
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:3756:7: error: cannot find 'setsockopt' in scope
3754 | // MSG_NOSIGNAL flags passed to send. See the write() functions below.
3755 | var on: Int32 = 1
3756 | if setsockopt(self.socketfd, SOL_SOCKET, SO_NOSIGPIPE, &on, socklen_t(MemoryLayout<Int32>.size)) < 0 {
| `- error: cannot find 'setsockopt' in scope
3757 | throw Error(code: Socket.SOCKET_ERR_SETSOCKOPT_FAILED, reason: self.lastError())
3758 | }
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:3756:33: error: cannot find 'SOL_SOCKET' in scope
3754 | // MSG_NOSIGNAL flags passed to send. See the write() functions below.
3755 | var on: Int32 = 1
3756 | if setsockopt(self.socketfd, SOL_SOCKET, SO_NOSIGPIPE, &on, socklen_t(MemoryLayout<Int32>.size)) < 0 {
| `- error: cannot find 'SOL_SOCKET' in scope
3757 | throw Error(code: Socket.SOCKET_ERR_SETSOCKOPT_FAILED, reason: self.lastError())
3758 | }
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:3756:45: error: cannot find 'SO_NOSIGPIPE' in scope
3754 | // MSG_NOSIGNAL flags passed to send. See the write() functions below.
3755 | var on: Int32 = 1
3756 | if setsockopt(self.socketfd, SOL_SOCKET, SO_NOSIGPIPE, &on, socklen_t(MemoryLayout<Int32>.size)) < 0 {
| `- error: cannot find 'SO_NOSIGPIPE' in scope
3757 | throw Error(code: Socket.SOCKET_ERR_SETSOCKOPT_FAILED, reason: self.lastError())
3758 | }
[250/1060] Compiling Socket SocketProtocols.swift
[251/1060] Compiling Socket Socket+Hashable.swift
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:320:13: error: cannot find type 'sockaddr_in' in scope
318 |
319 | /// sockaddr_in
320 | case ipv4(sockaddr_in)
| `- error: cannot find type 'sockaddr_in' in scope
321 |
322 | /// sockaddr_in6
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:323:13: error: cannot find type 'sockaddr_in6' in scope
321 |
322 | /// sockaddr_in6
323 | case ipv6(sockaddr_in6)
| `- error: cannot find type 'sockaddr_in6' in scope
324 |
325 | /// sockaddr_un
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:326:13: error: cannot find type 'sockaddr_un' in scope
324 |
325 | /// sockaddr_un
326 | case unix(sockaddr_un)
| `- error: cannot find type 'sockaddr_un' in scope
327 |
328 | ///
[252/1060] Compiling Socket Socket+Equatable.swift
[253/1062] Compiling DequeModule RigidDeque+Equatable.swift
[254/1062] Compiling DequeModule RigidDeque+Experimental.swift
[255/1062] Compiling DequeModule RigidDeque+Hashable.swift
[256/1062] Compiling DequeModule RigidDeque+Initializers.swift
[257/1062] Compiling DequeModule RigidDeque+Insertions.swift
[258/1062] Compiling DequeModule RigidDeque+Prepend.swift
[259/1062] Compiling DequeModule _DequeBuffer.swift
[260/1062] Compiling DequeModule _DequeBufferHeader.swift
[263/1062] Compiling DequeModule RigidDeque+Container.swift
[264/1062] Compiling DequeModule RigidDeque+Descriptions.swift
[265/1062] Compiling DequeModule UniqueDeque+Hashable.swift
[266/1062] Compiling DequeModule UniqueDeque+Initializers.swift
[267/1062] Compiling DequeModule UniqueDeque+Insertions.swift
[268/1062] Compiling DequeModule UniqueDeque+Prepend.swift
[269/1062] Compiling DequeModule UniqueDeque+Removals.swift
[270/1062] Compiling Socket SocketUtils.swift
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/SocketUtils.swift:43:56: error: cannot find type 'sockaddr' in scope
41 | /// - Returns: The result of executing the closure.
42 | ///
43 | func withSockAddrPointer<Result>(body: (UnsafePointer<sockaddr>, socklen_t) throws -> Result) rethrows -> Result {
| `- error: cannot find type 'sockaddr' in scope
44 |
45 | ///
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/SocketUtils.swift:86:47: error: cannot find type 'sockaddr' in scope
84 | /// - Returns: Newly initialized Socket.Address.
85 | ///
86 | init?(addressProvider: (UnsafeMutablePointer<sockaddr>, UnsafeMutablePointer<socklen_t>) throws -> Void) rethrows {
| `- error: cannot find type 'sockaddr' in scope
87 |
88 | var addressStorage = sockaddr_storage()
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/SocketUtils.swift:146:27: error: cannot find '__DARWIN_FD_SETSIZE' in scope
144 | // __DARWIN_FD_SETSIZE is number of *bits*, so divide by number bits in each element to get element count
145 | // at present this is 1024 / 32 == 32
146 | let __fd_set_count = Int(__DARWIN_FD_SETSIZE) / 32
| `- error: cannot find '__DARWIN_FD_SETSIZE' in scope
147 |
148 | extension fd_set {
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/SocketUtils.swift:52:60: error: cannot find type 'sockaddr' in scope
50 | /// - Returns: Result of executing the closure.
51 | ///
52 | func castAndCall<T>(_ address: T, _ body: (UnsafePointer<sockaddr>, socklen_t) throws -> Result) rethrows -> Result {
| `- error: cannot find type 'sockaddr' in scope
53 | var localAddress = address // We need a `var` here for the `&`.
54 | return try withUnsafePointer(to: &localAddress) {
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/SocketUtils.swift:55:41: error: cannot find 'sockaddr' in scope
53 | var localAddress = address // We need a `var` here for the `&`.
54 | return try withUnsafePointer(to: &localAddress) {
55 | return try $0.withMemoryRebound(to: sockaddr.self, capacity: 1, {
| `- error: cannot find 'sockaddr' in scope
56 | return try body($0, socklen_t(MemoryLayout<T>.size))
57 | })
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/SocketUtils.swift:55:19: error: generic parameter 'T' could not be inferred
53 | var localAddress = address // We need a `var` here for the `&`.
54 | return try withUnsafePointer(to: &localAddress) {
55 | return try $0.withMemoryRebound(to: sockaddr.self, capacity: 1, {
| `- error: generic parameter 'T' could not be inferred
56 | return try body($0, socklen_t(MemoryLayout<T>.size))
57 | })
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/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:320:13: error: cannot find type 'sockaddr_in' in scope
318 |
319 | /// sockaddr_in
320 | case ipv4(sockaddr_in)
| `- error: cannot find type 'sockaddr_in' in scope
321 |
322 | /// sockaddr_in6
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:323:13: error: cannot find type 'sockaddr_in6' in scope
321 |
322 | /// sockaddr_in6
323 | case ipv6(sockaddr_in6)
| `- error: cannot find type 'sockaddr_in6' in scope
324 |
325 | /// sockaddr_un
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:326:13: error: cannot find type 'sockaddr_un' in scope
324 |
325 | /// sockaddr_un
326 | case unix(sockaddr_un)
| `- error: cannot find type 'sockaddr_un' in scope
327 |
328 | ///
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/SocketUtils.swift:88:24: error: cannot find 'sockaddr_storage' in scope
86 | init?(addressProvider: (UnsafeMutablePointer<sockaddr>, UnsafeMutablePointer<socklen_t>) throws -> Void) rethrows {
87 |
88 | var addressStorage = sockaddr_storage()
| `- error: cannot find 'sockaddr_storage' in scope
89 | var addressStorageLength = socklen_t(MemoryLayout.size(ofValue: addressStorage))
90 | try withUnsafeMutablePointer(to: &addressStorage) {
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/SocketUtils.swift:91:33: error: cannot find 'sockaddr' in scope
89 | var addressStorageLength = socklen_t(MemoryLayout.size(ofValue: addressStorage))
90 | try withUnsafeMutablePointer(to: &addressStorage) {
91 | try $0.withMemoryRebound(to: sockaddr.self, capacity: 1) { addressPointer in
| `- error: cannot find 'sockaddr' in scope
92 | try withUnsafeMutablePointer(to: &addressStorageLength) { addressLengthPointer in
93 | try addressProvider(addressPointer, addressLengthPointer)
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/SocketUtils.swift:91:11: error: generic parameter 'T' could not be inferred
89 | var addressStorageLength = socklen_t(MemoryLayout.size(ofValue: addressStorage))
90 | try withUnsafeMutablePointer(to: &addressStorage) {
91 | try $0.withMemoryRebound(to: sockaddr.self, capacity: 1) { addressPointer in
| `- error: generic parameter 'T' could not be inferred
92 | try withUnsafeMutablePointer(to: &addressStorageLength) { addressLengthPointer in
93 | try addressProvider(addressPointer, addressLengthPointer)
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/.build/checkouts/BlueSocket/Sources/Socket/SocketUtils.swift:99:8: error: cannot find 'AF_INET' in scope
97 |
98 | switch Int32(addressStorage.ss_family) {
99 | case AF_INET:
| `- error: cannot find 'AF_INET' in scope
100 | self = withUnsafePointer(to: &addressStorage) {
101 | return $0.withMemoryRebound(to: sockaddr_in.self, capacity: 1) {
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/SocketUtils.swift:105:8: error: cannot find 'AF_INET6' in scope
103 | }
104 | }
105 | case AF_INET6:
| `- error: cannot find 'AF_INET6' in scope
106 | self = withUnsafePointer(to: &addressStorage) {
107 | return $0.withMemoryRebound(to: sockaddr_in6.self, capacity: 1) {
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/SocketUtils.swift:111:8: error: cannot find 'AF_UNIX' in scope
109 | }
110 | }
111 | case AF_UNIX:
| `- error: cannot find 'AF_UNIX' in scope
112 | self = withUnsafePointer(to: &addressStorage) {
113 | return $0.withMemoryRebound(to: sockaddr_un.self, capacity: 1) {
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/SocketUtils.swift:101:37: error: cannot find 'sockaddr_in' in scope
99 | case AF_INET:
100 | self = withUnsafePointer(to: &addressStorage) {
101 | return $0.withMemoryRebound(to: sockaddr_in.self, capacity: 1) {
| `- error: cannot find 'sockaddr_in' in scope
102 | return Socket.Address.ipv4($0.pointee)
103 | }
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/SocketUtils.swift:101:15: error: generic parameter 'T' could not be inferred
99 | case AF_INET:
100 | self = withUnsafePointer(to: &addressStorage) {
101 | return $0.withMemoryRebound(to: sockaddr_in.self, capacity: 1) {
| `- error: generic parameter 'T' could not be inferred
102 | return Socket.Address.ipv4($0.pointee)
103 | }
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/.build/checkouts/BlueSocket/Sources/Socket/SocketUtils.swift:107:37: error: cannot find 'sockaddr_in6' in scope
105 | case AF_INET6:
106 | self = withUnsafePointer(to: &addressStorage) {
107 | return $0.withMemoryRebound(to: sockaddr_in6.self, capacity: 1) {
| `- error: cannot find 'sockaddr_in6' in scope
108 | return Socket.Address.ipv6($0.pointee)
109 | }
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/SocketUtils.swift:107:15: error: generic parameter 'T' could not be inferred
105 | case AF_INET6:
106 | self = withUnsafePointer(to: &addressStorage) {
107 | return $0.withMemoryRebound(to: sockaddr_in6.self, capacity: 1) {
| `- error: generic parameter 'T' could not be inferred
108 | return Socket.Address.ipv6($0.pointee)
109 | }
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/.build/checkouts/BlueSocket/Sources/Socket/SocketUtils.swift:113:37: error: cannot find 'sockaddr_un' in scope
111 | case AF_UNIX:
112 | self = withUnsafePointer(to: &addressStorage) {
113 | return $0.withMemoryRebound(to: sockaddr_un.self, capacity: 1) {
| `- error: cannot find 'sockaddr_un' in scope
114 | return Socket.Address.unix($0.pointee)
115 | }
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/SocketUtils.swift:113:15: error: generic parameter 'T' could not be inferred
111 | case AF_UNIX:
112 | self = withUnsafePointer(to: &addressStorage) {
113 | return $0.withMemoryRebound(to: sockaddr_un.self, capacity: 1) {
| `- error: generic parameter 'T' could not be inferred
114 | return Socket.Address.unix($0.pointee)
115 | }
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 |
[271/1062] Emitting module Metrics
[272/1062] Compiling Metrics Metrics.swift
error: cancelled
[272/1062] Compiling tls13_both.cc
[272/1062] Compiling t1_enc.cc
[273/1062] Compiling UnixSignals UnixSignal.swift
[274/1062] Emitting module UnixSignals
[274/1062] Compiling tls13_enc.cc
[274/1062] Compiling tls13_client.cc
BUILD FAILURE 6.3 android