Build Information
Failed to build Socket, reference 0.4.0 (253aef
), with Swift 6.2 (beta) for Android on 22 Jun 2025 11:51:10 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/PureSwift/Socket.git
Reference: 0.4.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/PureSwift/Socket
* tag 0.4.0 -> FETCH_HEAD
HEAD is now at 253aef8 Add `Sendable` conformance
Cloned https://github.com/PureSwift/Socket.git
Revision (git rev-parse @):
253aef83213691b705dfeec8e20bfd7a72219fec
SUCCESS checkout https://github.com/PureSwift/Socket.git at 0.4.0
========================================
Build
========================================
Selected platform: android
Swift version: 6.2
Building package at path: $PWD
https://github.com/PureSwift/Socket.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1
android-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:b7c4a6b4153ff40ef9277e2157e708f835b8eb011095d53bd8db4594eb2b7798
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.2-latest
Fetching https://github.com/apple/swift-system
[1/4436] Fetching swift-system
Fetched https://github.com/apple/swift-system from cache (0.70s)
Computing version for https://github.com/apple/swift-system
Computed https://github.com/apple/swift-system at 1.5.0 (1.74s)
Creating working copy for https://github.com/apple/swift-system
Working copy of https://github.com/apple/swift-system resolved at 1.5.0
Building for debugging...
[0/5] Write sources
[2/5] Compiling CSocket shims.c
[3/5] Compiling CSystem shims.c
[3/5] Write swift-version-8C5A4AE7A8CE2BA.txt
[6/33] Compiling SystemPackage MachPort.swift
[7/33] Compiling SystemPackage PlatformString.swift
[8/33] Compiling SystemPackage SystemString.swift
[9/36] Compiling SystemPackage FileOperations.swift
[10/36] Compiling SystemPackage FilePath.swift
[11/36] Compiling SystemPackage FilePathComponentView.swift
[12/36] Compiling SystemPackage FilePathComponents.swift
[13/36] Emitting module SystemPackage
[14/36] Compiling SystemPackage Util+StringArray.swift
[15/36] Compiling SystemPackage Util.swift
[16/36] Compiling SystemPackage UtilConsumers.swift
[17/36] Compiling SystemPackage Mocking.swift
[18/36] Compiling SystemPackage RawBuffer.swift
[19/36] Compiling SystemPackage Syscalls.swift
[20/36] Compiling SystemPackage WindowsSyscallAdapters.swift
[21/36] Compiling SystemPackage FilePathTempPosix.swift
[22/36] Compiling SystemPackage FilePathTempWindows.swift
[23/36] Compiling SystemPackage FilePathWindows.swift
[24/36] Compiling SystemPackage FilePermissions.swift
[25/36] Compiling SystemPackage FilePathParsing.swift
[26/36] Compiling SystemPackage FilePathString.swift
[27/36] Compiling SystemPackage FilePathSyntax.swift
[28/36] Compiling SystemPackage FilePathTemp.swift
[29/36] Compiling SystemPackage Backcompat.swift
[30/36] Compiling SystemPackage CInterop.swift
[31/36] Compiling SystemPackage Constants.swift
[32/36] Compiling SystemPackage Exports.swift
[33/36] Compiling SystemPackage Errno.swift
[34/36] Compiling SystemPackage ErrnoWindows.swift
[35/36] Compiling SystemPackage FileDescriptor.swift
[36/36] Compiling SystemPackage FileHelpers.swift
[38/76] Compiling Socket SocketOptionID.swift
[39/76] Compiling Socket SocketOptionLevel.swift
[40/76] Compiling Socket SocketProtocol.swift
[41/76] Compiling Socket IPv4Protocol.swift
[42/76] Compiling Socket IPv6Protocol.swift
[43/81] Compiling Socket MessageFlags.swift
/host/spi-builder-workspace/Sources/Socket/System/NetworkInterface.swift:48:54: error: no exact matches in call to initializer
46 | // next item in linked list
47 | defer { linkedListItem = linkedListItem?.pointee.ifa_next }
48 | let interfaceName = String(cString: .init(value.ifa_name))
| `- error: no exact matches in call to initializer
49 | guard let id = interfaceIDs.first(where: { $0.name == interfaceName }) else {
50 | assertionFailure("Unknown interface \(interfaceName)")
Swift.String.init:2:8: note: incorrect labels for candidate (have: '(_:)', expected: '(describing:)')
1 | struct String {
2 | public init<Subject>(describing instance: Subject)}
| `- note: incorrect labels for candidate (have: '(_:)', expected: '(describing:)')
3 |
Swift.String.init:2:8: note: incorrect labels for candidate (have: '(_:)', expected: '(reflecting:)')
1 | struct String {
2 | public init<Subject>(reflecting subject: Subject)}
| `- note: incorrect labels for candidate (have: '(_:)', expected: '(reflecting:)')
3 |
/host/spi-builder-workspace/Sources/Socket/System/NetworkInterface.swift:53:56: error: value of optional type 'UnsafeMutablePointer<sockaddr>?' must be unwrapped to refer to member 'pointee' of wrapped base type 'UnsafeMutablePointer<sockaddr>'
51 | continue
52 | }
53 | guard Address.family.rawValue == value.ifa_addr.pointee.sa_family else {
| |- error: value of optional type 'UnsafeMutablePointer<sockaddr>?' must be unwrapped to refer to member 'pointee' of wrapped base type 'UnsafeMutablePointer<sockaddr>'
| |- note: chain the optional using '?' to access member 'pointee' only for non-'nil' base values
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
54 | continue // incompatible address type
55 | }
/host/spi-builder-workspace/Sources/Socket/System/NetworkInterface.swift:56:63: error: value of optional type 'UnsafeMutablePointer<sockaddr>?' must be unwrapped to a value of type 'UnsafeMutablePointer<sockaddr>'
54 | continue // incompatible address type
55 | }
56 | let address = Address.withUnsafePointer(value.ifa_addr)
| |- error: value of optional type 'UnsafeMutablePointer<sockaddr>?' must be unwrapped to a value of type 'UnsafeMutablePointer<sockaddr>'
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
57 | let netmask = value.ifa_netmask == nil ? nil : Address.withUnsafePointer(value.ifa_netmask)
58 | let interface = Self.init(
/host/spi-builder-workspace/Sources/Socket/System/NetworkInterface.swift:57:96: error: value of optional type 'UnsafeMutablePointer<sockaddr>?' must be unwrapped to a value of type 'UnsafeMutablePointer<sockaddr>'
55 | }
56 | let address = Address.withUnsafePointer(value.ifa_addr)
57 | let netmask = value.ifa_netmask == nil ? nil : Address.withUnsafePointer(value.ifa_netmask)
| |- error: value of optional type 'UnsafeMutablePointer<sockaddr>?' must be unwrapped to a value of type 'UnsafeMutablePointer<sockaddr>'
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
58 | let interface = Self.init(
59 | id: id,
/host/spi-builder-workspace/Sources/Socket/System/NetworkInterface.swift:106:44: error: value of optional type 'UnsafeMutablePointer<CChar>?' (aka 'Optional<UnsafeMutablePointer<Int8>>') must be unwrapped to a value of type 'UnsafeMutablePointer<CChar>' (aka 'UnsafeMutablePointer<Int8>')
104 | init(_ cValue: CInterop.InterfaceNameIndex) {
105 | self.index = cValue.if_index
106 | self.name = String(cString: cValue.if_name)
| |- error: value of optional type 'UnsafeMutablePointer<CChar>?' (aka 'Optional<UnsafeMutablePointer<Int8>>') must be unwrapped to a value of type 'UnsafeMutablePointer<CChar>' (aka 'UnsafeMutablePointer<Int8>')
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
107 | }
108 | }
[44/81] Compiling Socket NetworkInterface.swift
/host/spi-builder-workspace/Sources/Socket/System/NetworkInterface.swift:48:54: error: no exact matches in call to initializer
46 | // next item in linked list
47 | defer { linkedListItem = linkedListItem?.pointee.ifa_next }
48 | let interfaceName = String(cString: .init(value.ifa_name))
| `- error: no exact matches in call to initializer
49 | guard let id = interfaceIDs.first(where: { $0.name == interfaceName }) else {
50 | assertionFailure("Unknown interface \(interfaceName)")
Swift.String.init:2:8: note: incorrect labels for candidate (have: '(_:)', expected: '(describing:)')
1 | struct String {
2 | public init<Subject>(describing instance: Subject)}
| `- note: incorrect labels for candidate (have: '(_:)', expected: '(describing:)')
3 |
Swift.String.init:2:8: note: incorrect labels for candidate (have: '(_:)', expected: '(reflecting:)')
1 | struct String {
2 | public init<Subject>(reflecting subject: Subject)}
| `- note: incorrect labels for candidate (have: '(_:)', expected: '(reflecting:)')
3 |
/host/spi-builder-workspace/Sources/Socket/System/NetworkInterface.swift:53:56: error: value of optional type 'UnsafeMutablePointer<sockaddr>?' must be unwrapped to refer to member 'pointee' of wrapped base type 'UnsafeMutablePointer<sockaddr>'
51 | continue
52 | }
53 | guard Address.family.rawValue == value.ifa_addr.pointee.sa_family else {
| |- error: value of optional type 'UnsafeMutablePointer<sockaddr>?' must be unwrapped to refer to member 'pointee' of wrapped base type 'UnsafeMutablePointer<sockaddr>'
| |- note: chain the optional using '?' to access member 'pointee' only for non-'nil' base values
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
54 | continue // incompatible address type
55 | }
/host/spi-builder-workspace/Sources/Socket/System/NetworkInterface.swift:56:63: error: value of optional type 'UnsafeMutablePointer<sockaddr>?' must be unwrapped to a value of type 'UnsafeMutablePointer<sockaddr>'
54 | continue // incompatible address type
55 | }
56 | let address = Address.withUnsafePointer(value.ifa_addr)
| |- error: value of optional type 'UnsafeMutablePointer<sockaddr>?' must be unwrapped to a value of type 'UnsafeMutablePointer<sockaddr>'
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
57 | let netmask = value.ifa_netmask == nil ? nil : Address.withUnsafePointer(value.ifa_netmask)
58 | let interface = Self.init(
/host/spi-builder-workspace/Sources/Socket/System/NetworkInterface.swift:57:96: error: value of optional type 'UnsafeMutablePointer<sockaddr>?' must be unwrapped to a value of type 'UnsafeMutablePointer<sockaddr>'
55 | }
56 | let address = Address.withUnsafePointer(value.ifa_addr)
57 | let netmask = value.ifa_netmask == nil ? nil : Address.withUnsafePointer(value.ifa_netmask)
| |- error: value of optional type 'UnsafeMutablePointer<sockaddr>?' must be unwrapped to a value of type 'UnsafeMutablePointer<sockaddr>'
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
58 | let interface = Self.init(
59 | id: id,
/host/spi-builder-workspace/Sources/Socket/System/NetworkInterface.swift:106:44: error: value of optional type 'UnsafeMutablePointer<CChar>?' (aka 'Optional<UnsafeMutablePointer<Int8>>') must be unwrapped to a value of type 'UnsafeMutablePointer<CChar>' (aka 'UnsafeMutablePointer<Int8>')
104 | init(_ cValue: CInterop.InterfaceNameIndex) {
105 | self.index = cValue.if_index
106 | self.name = String(cString: cValue.if_name)
| |- error: value of optional type 'UnsafeMutablePointer<CChar>?' (aka 'Optional<UnsafeMutablePointer<Int8>>') must be unwrapped to a value of type 'UnsafeMutablePointer<CChar>' (aka 'UnsafeMutablePointer<Int8>')
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
107 | }
108 | }
[45/81] Compiling Socket NetworkOrder.swift
/host/spi-builder-workspace/Sources/Socket/System/NetworkInterface.swift:48:54: error: no exact matches in call to initializer
46 | // next item in linked list
47 | defer { linkedListItem = linkedListItem?.pointee.ifa_next }
48 | let interfaceName = String(cString: .init(value.ifa_name))
| `- error: no exact matches in call to initializer
49 | guard let id = interfaceIDs.first(where: { $0.name == interfaceName }) else {
50 | assertionFailure("Unknown interface \(interfaceName)")
Swift.String.init:2:8: note: incorrect labels for candidate (have: '(_:)', expected: '(describing:)')
1 | struct String {
2 | public init<Subject>(describing instance: Subject)}
| `- note: incorrect labels for candidate (have: '(_:)', expected: '(describing:)')
3 |
Swift.String.init:2:8: note: incorrect labels for candidate (have: '(_:)', expected: '(reflecting:)')
1 | struct String {
2 | public init<Subject>(reflecting subject: Subject)}
| `- note: incorrect labels for candidate (have: '(_:)', expected: '(reflecting:)')
3 |
/host/spi-builder-workspace/Sources/Socket/System/NetworkInterface.swift:53:56: error: value of optional type 'UnsafeMutablePointer<sockaddr>?' must be unwrapped to refer to member 'pointee' of wrapped base type 'UnsafeMutablePointer<sockaddr>'
51 | continue
52 | }
53 | guard Address.family.rawValue == value.ifa_addr.pointee.sa_family else {
| |- error: value of optional type 'UnsafeMutablePointer<sockaddr>?' must be unwrapped to refer to member 'pointee' of wrapped base type 'UnsafeMutablePointer<sockaddr>'
| |- note: chain the optional using '?' to access member 'pointee' only for non-'nil' base values
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
54 | continue // incompatible address type
55 | }
/host/spi-builder-workspace/Sources/Socket/System/NetworkInterface.swift:56:63: error: value of optional type 'UnsafeMutablePointer<sockaddr>?' must be unwrapped to a value of type 'UnsafeMutablePointer<sockaddr>'
54 | continue // incompatible address type
55 | }
56 | let address = Address.withUnsafePointer(value.ifa_addr)
| |- error: value of optional type 'UnsafeMutablePointer<sockaddr>?' must be unwrapped to a value of type 'UnsafeMutablePointer<sockaddr>'
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
57 | let netmask = value.ifa_netmask == nil ? nil : Address.withUnsafePointer(value.ifa_netmask)
58 | let interface = Self.init(
/host/spi-builder-workspace/Sources/Socket/System/NetworkInterface.swift:57:96: error: value of optional type 'UnsafeMutablePointer<sockaddr>?' must be unwrapped to a value of type 'UnsafeMutablePointer<sockaddr>'
55 | }
56 | let address = Address.withUnsafePointer(value.ifa_addr)
57 | let netmask = value.ifa_netmask == nil ? nil : Address.withUnsafePointer(value.ifa_netmask)
| |- error: value of optional type 'UnsafeMutablePointer<sockaddr>?' must be unwrapped to a value of type 'UnsafeMutablePointer<sockaddr>'
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
58 | let interface = Self.init(
59 | id: id,
/host/spi-builder-workspace/Sources/Socket/System/NetworkInterface.swift:106:44: error: value of optional type 'UnsafeMutablePointer<CChar>?' (aka 'Optional<UnsafeMutablePointer<Int8>>') must be unwrapped to a value of type 'UnsafeMutablePointer<CChar>' (aka 'UnsafeMutablePointer<Int8>')
104 | init(_ cValue: CInterop.InterfaceNameIndex) {
105 | self.index = cValue.if_index
106 | self.name = String(cString: cValue.if_name)
| |- error: value of optional type 'UnsafeMutablePointer<CChar>?' (aka 'Optional<UnsafeMutablePointer<Int8>>') must be unwrapped to a value of type 'UnsafeMutablePointer<CChar>' (aka 'UnsafeMutablePointer<Int8>')
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
107 | }
108 | }
[46/81] Compiling Socket Poll.swift
/host/spi-builder-workspace/Sources/Socket/System/NetworkInterface.swift:48:54: error: no exact matches in call to initializer
46 | // next item in linked list
47 | defer { linkedListItem = linkedListItem?.pointee.ifa_next }
48 | let interfaceName = String(cString: .init(value.ifa_name))
| `- error: no exact matches in call to initializer
49 | guard let id = interfaceIDs.first(where: { $0.name == interfaceName }) else {
50 | assertionFailure("Unknown interface \(interfaceName)")
Swift.String.init:2:8: note: incorrect labels for candidate (have: '(_:)', expected: '(describing:)')
1 | struct String {
2 | public init<Subject>(describing instance: Subject)}
| `- note: incorrect labels for candidate (have: '(_:)', expected: '(describing:)')
3 |
Swift.String.init:2:8: note: incorrect labels for candidate (have: '(_:)', expected: '(reflecting:)')
1 | struct String {
2 | public init<Subject>(reflecting subject: Subject)}
| `- note: incorrect labels for candidate (have: '(_:)', expected: '(reflecting:)')
3 |
/host/spi-builder-workspace/Sources/Socket/System/NetworkInterface.swift:53:56: error: value of optional type 'UnsafeMutablePointer<sockaddr>?' must be unwrapped to refer to member 'pointee' of wrapped base type 'UnsafeMutablePointer<sockaddr>'
51 | continue
52 | }
53 | guard Address.family.rawValue == value.ifa_addr.pointee.sa_family else {
| |- error: value of optional type 'UnsafeMutablePointer<sockaddr>?' must be unwrapped to refer to member 'pointee' of wrapped base type 'UnsafeMutablePointer<sockaddr>'
| |- note: chain the optional using '?' to access member 'pointee' only for non-'nil' base values
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
54 | continue // incompatible address type
55 | }
/host/spi-builder-workspace/Sources/Socket/System/NetworkInterface.swift:56:63: error: value of optional type 'UnsafeMutablePointer<sockaddr>?' must be unwrapped to a value of type 'UnsafeMutablePointer<sockaddr>'
54 | continue // incompatible address type
55 | }
56 | let address = Address.withUnsafePointer(value.ifa_addr)
| |- error: value of optional type 'UnsafeMutablePointer<sockaddr>?' must be unwrapped to a value of type 'UnsafeMutablePointer<sockaddr>'
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
57 | let netmask = value.ifa_netmask == nil ? nil : Address.withUnsafePointer(value.ifa_netmask)
58 | let interface = Self.init(
/host/spi-builder-workspace/Sources/Socket/System/NetworkInterface.swift:57:96: error: value of optional type 'UnsafeMutablePointer<sockaddr>?' must be unwrapped to a value of type 'UnsafeMutablePointer<sockaddr>'
55 | }
56 | let address = Address.withUnsafePointer(value.ifa_addr)
57 | let netmask = value.ifa_netmask == nil ? nil : Address.withUnsafePointer(value.ifa_netmask)
| |- error: value of optional type 'UnsafeMutablePointer<sockaddr>?' must be unwrapped to a value of type 'UnsafeMutablePointer<sockaddr>'
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
58 | let interface = Self.init(
59 | id: id,
/host/spi-builder-workspace/Sources/Socket/System/NetworkInterface.swift:106:44: error: value of optional type 'UnsafeMutablePointer<CChar>?' (aka 'Optional<UnsafeMutablePointer<Int8>>') must be unwrapped to a value of type 'UnsafeMutablePointer<CChar>' (aka 'UnsafeMutablePointer<Int8>')
104 | init(_ cValue: CInterop.InterfaceNameIndex) {
105 | self.index = cValue.if_index
106 | self.name = String(cString: cValue.if_name)
| |- error: value of optional type 'UnsafeMutablePointer<CChar>?' (aka 'Optional<UnsafeMutablePointer<Int8>>') must be unwrapped to a value of type 'UnsafeMutablePointer<CChar>' (aka 'UnsafeMutablePointer<Int8>')
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
107 | }
108 | }
[47/81] Compiling Socket SocketAddress.swift
/host/spi-builder-workspace/Sources/Socket/System/NetworkInterface.swift:48:54: error: no exact matches in call to initializer
46 | // next item in linked list
47 | defer { linkedListItem = linkedListItem?.pointee.ifa_next }
48 | let interfaceName = String(cString: .init(value.ifa_name))
| `- error: no exact matches in call to initializer
49 | guard let id = interfaceIDs.first(where: { $0.name == interfaceName }) else {
50 | assertionFailure("Unknown interface \(interfaceName)")
Swift.String.init:2:8: note: incorrect labels for candidate (have: '(_:)', expected: '(describing:)')
1 | struct String {
2 | public init<Subject>(describing instance: Subject)}
| `- note: incorrect labels for candidate (have: '(_:)', expected: '(describing:)')
3 |
Swift.String.init:2:8: note: incorrect labels for candidate (have: '(_:)', expected: '(reflecting:)')
1 | struct String {
2 | public init<Subject>(reflecting subject: Subject)}
| `- note: incorrect labels for candidate (have: '(_:)', expected: '(reflecting:)')
3 |
/host/spi-builder-workspace/Sources/Socket/System/NetworkInterface.swift:53:56: error: value of optional type 'UnsafeMutablePointer<sockaddr>?' must be unwrapped to refer to member 'pointee' of wrapped base type 'UnsafeMutablePointer<sockaddr>'
51 | continue
52 | }
53 | guard Address.family.rawValue == value.ifa_addr.pointee.sa_family else {
| |- error: value of optional type 'UnsafeMutablePointer<sockaddr>?' must be unwrapped to refer to member 'pointee' of wrapped base type 'UnsafeMutablePointer<sockaddr>'
| |- note: chain the optional using '?' to access member 'pointee' only for non-'nil' base values
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
54 | continue // incompatible address type
55 | }
/host/spi-builder-workspace/Sources/Socket/System/NetworkInterface.swift:56:63: error: value of optional type 'UnsafeMutablePointer<sockaddr>?' must be unwrapped to a value of type 'UnsafeMutablePointer<sockaddr>'
54 | continue // incompatible address type
55 | }
56 | let address = Address.withUnsafePointer(value.ifa_addr)
| |- error: value of optional type 'UnsafeMutablePointer<sockaddr>?' must be unwrapped to a value of type 'UnsafeMutablePointer<sockaddr>'
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
57 | let netmask = value.ifa_netmask == nil ? nil : Address.withUnsafePointer(value.ifa_netmask)
58 | let interface = Self.init(
/host/spi-builder-workspace/Sources/Socket/System/NetworkInterface.swift:57:96: error: value of optional type 'UnsafeMutablePointer<sockaddr>?' must be unwrapped to a value of type 'UnsafeMutablePointer<sockaddr>'
55 | }
56 | let address = Address.withUnsafePointer(value.ifa_addr)
57 | let netmask = value.ifa_netmask == nil ? nil : Address.withUnsafePointer(value.ifa_netmask)
| |- error: value of optional type 'UnsafeMutablePointer<sockaddr>?' must be unwrapped to a value of type 'UnsafeMutablePointer<sockaddr>'
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
58 | let interface = Self.init(
59 | id: id,
/host/spi-builder-workspace/Sources/Socket/System/NetworkInterface.swift:106:44: error: value of optional type 'UnsafeMutablePointer<CChar>?' (aka 'Optional<UnsafeMutablePointer<Int8>>') must be unwrapped to a value of type 'UnsafeMutablePointer<CChar>' (aka 'UnsafeMutablePointer<Int8>')
104 | init(_ cValue: CInterop.InterfaceNameIndex) {
105 | self.index = cValue.if_index
106 | self.name = String(cString: cValue.if_name)
| |- error: value of optional type 'UnsafeMutablePointer<CChar>?' (aka 'Optional<UnsafeMutablePointer<Int8>>') must be unwrapped to a value of type 'UnsafeMutablePointer<CChar>' (aka 'UnsafeMutablePointer<Int8>')
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
107 | }
108 | }
[48/81] Compiling Socket CInterop.swift
/host/spi-builder-workspace/Sources/Socket/System/CInterop.swift:69:35: error: cannot find type 'sockaddr_un' in scope
67 |
68 | /// The C `sockaddr_in` type
69 | typealias UnixSocketAddress = sockaddr_un
| `- error: cannot find type 'sockaddr_un' in scope
70 |
71 | /// The C `sockaddr_in` type
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:170:79: error: cannot find 'INADDR_ANY' in scope
168 |
169 | @_alwaysEmitIntoClient
170 | internal var _INADDR_ANY: CInterop.IPv4Address { CInterop.IPv4Address(s_addr: INADDR_ANY) }
| `- error: cannot find 'INADDR_ANY' in scope
171 |
172 | @_alwaysEmitIntoClient
/root/.swiftpm/swift-sdks/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-15-a-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/linux/in.h:218:9: note: macro 'INADDR_ANY' unavailable: structure not supported
216 | #define IN_CLASSE_NET 0xffffffff
217 | #define IN_CLASSE_NSHIFT 0
218 | #define INADDR_ANY ((unsigned long int) 0x00000000)
| `- note: macro 'INADDR_ANY' unavailable: structure not supported
219 | #define INADDR_BROADCAST ((unsigned long int) 0xffffffff)
220 | #define INADDR_NONE ((unsigned long int) 0xffffffff)
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:173:84: error: cannot convert value of type 'Int32' to expected argument type 'in_addr_t' (aka 'UInt32')
171 |
172 | @_alwaysEmitIntoClient
173 | internal var _INADDR_LOOPBACK: CInterop.IPv4Address { CInterop.IPv4Address(s_addr: INADDR_LOOPBACK) }
| `- error: cannot convert value of type 'Int32' to expected argument type 'in_addr_t' (aka 'UInt32')
174 |
175 | @_alwaysEmitIntoClient
[49/81] Compiling Socket CSocketAddress.swift
/host/spi-builder-workspace/Sources/Socket/System/CInterop.swift:69:35: error: cannot find type 'sockaddr_un' in scope
67 |
68 | /// The C `sockaddr_in` type
69 | typealias UnixSocketAddress = sockaddr_un
| `- error: cannot find type 'sockaddr_un' in scope
70 |
71 | /// The C `sockaddr_in` type
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:170:79: error: cannot find 'INADDR_ANY' in scope
168 |
169 | @_alwaysEmitIntoClient
170 | internal var _INADDR_ANY: CInterop.IPv4Address { CInterop.IPv4Address(s_addr: INADDR_ANY) }
| `- error: cannot find 'INADDR_ANY' in scope
171 |
172 | @_alwaysEmitIntoClient
/root/.swiftpm/swift-sdks/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-15-a-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/linux/in.h:218:9: note: macro 'INADDR_ANY' unavailable: structure not supported
216 | #define IN_CLASSE_NET 0xffffffff
217 | #define IN_CLASSE_NSHIFT 0
218 | #define INADDR_ANY ((unsigned long int) 0x00000000)
| `- note: macro 'INADDR_ANY' unavailable: structure not supported
219 | #define INADDR_BROADCAST ((unsigned long int) 0xffffffff)
220 | #define INADDR_NONE ((unsigned long int) 0xffffffff)
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:173:84: error: cannot convert value of type 'Int32' to expected argument type 'in_addr_t' (aka 'UInt32')
171 |
172 | @_alwaysEmitIntoClient
173 | internal var _INADDR_LOOPBACK: CInterop.IPv4Address { CInterop.IPv4Address(s_addr: INADDR_LOOPBACK) }
| `- error: cannot convert value of type 'Int32' to expected argument type 'in_addr_t' (aka 'UInt32')
174 |
175 | @_alwaysEmitIntoClient
[50/81] Compiling Socket Constants.swift
/host/spi-builder-workspace/Sources/Socket/System/CInterop.swift:69:35: error: cannot find type 'sockaddr_un' in scope
67 |
68 | /// The C `sockaddr_in` type
69 | typealias UnixSocketAddress = sockaddr_un
| `- error: cannot find type 'sockaddr_un' in scope
70 |
71 | /// The C `sockaddr_in` type
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:170:79: error: cannot find 'INADDR_ANY' in scope
168 |
169 | @_alwaysEmitIntoClient
170 | internal var _INADDR_ANY: CInterop.IPv4Address { CInterop.IPv4Address(s_addr: INADDR_ANY) }
| `- error: cannot find 'INADDR_ANY' in scope
171 |
172 | @_alwaysEmitIntoClient
/root/.swiftpm/swift-sdks/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-15-a-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/linux/in.h:218:9: note: macro 'INADDR_ANY' unavailable: structure not supported
216 | #define IN_CLASSE_NET 0xffffffff
217 | #define IN_CLASSE_NSHIFT 0
218 | #define INADDR_ANY ((unsigned long int) 0x00000000)
| `- note: macro 'INADDR_ANY' unavailable: structure not supported
219 | #define INADDR_BROADCAST ((unsigned long int) 0xffffffff)
220 | #define INADDR_NONE ((unsigned long int) 0xffffffff)
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:173:84: error: cannot convert value of type 'Int32' to expected argument type 'in_addr_t' (aka 'UInt32')
171 |
172 | @_alwaysEmitIntoClient
173 | internal var _INADDR_LOOPBACK: CInterop.IPv4Address { CInterop.IPv4Address(s_addr: INADDR_LOOPBACK) }
| `- error: cannot convert value of type 'Int32' to expected argument type 'in_addr_t' (aka 'UInt32')
174 |
175 | @_alwaysEmitIntoClient
[51/81] Compiling Socket Errno.swift
/host/spi-builder-workspace/Sources/Socket/System/CInterop.swift:69:35: error: cannot find type 'sockaddr_un' in scope
67 |
68 | /// The C `sockaddr_in` type
69 | typealias UnixSocketAddress = sockaddr_un
| `- error: cannot find type 'sockaddr_un' in scope
70 |
71 | /// The C `sockaddr_in` type
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:170:79: error: cannot find 'INADDR_ANY' in scope
168 |
169 | @_alwaysEmitIntoClient
170 | internal var _INADDR_ANY: CInterop.IPv4Address { CInterop.IPv4Address(s_addr: INADDR_ANY) }
| `- error: cannot find 'INADDR_ANY' in scope
171 |
172 | @_alwaysEmitIntoClient
/root/.swiftpm/swift-sdks/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-15-a-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/linux/in.h:218:9: note: macro 'INADDR_ANY' unavailable: structure not supported
216 | #define IN_CLASSE_NET 0xffffffff
217 | #define IN_CLASSE_NSHIFT 0
218 | #define INADDR_ANY ((unsigned long int) 0x00000000)
| `- note: macro 'INADDR_ANY' unavailable: structure not supported
219 | #define INADDR_BROADCAST ((unsigned long int) 0xffffffff)
220 | #define INADDR_NONE ((unsigned long int) 0xffffffff)
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:173:84: error: cannot convert value of type 'Int32' to expected argument type 'in_addr_t' (aka 'UInt32')
171 |
172 | @_alwaysEmitIntoClient
173 | internal var _INADDR_LOOPBACK: CInterop.IPv4Address { CInterop.IPv4Address(s_addr: INADDR_LOOPBACK) }
| `- error: cannot convert value of type 'Int32' to expected argument type 'in_addr_t' (aka 'UInt32')
174 |
175 | @_alwaysEmitIntoClient
[52/81] Compiling Socket FileChange.swift
/host/spi-builder-workspace/Sources/Socket/System/CInterop.swift:69:35: error: cannot find type 'sockaddr_un' in scope
67 |
68 | /// The C `sockaddr_in` type
69 | typealias UnixSocketAddress = sockaddr_un
| `- error: cannot find type 'sockaddr_un' in scope
70 |
71 | /// The C `sockaddr_in` type
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:170:79: error: cannot find 'INADDR_ANY' in scope
168 |
169 | @_alwaysEmitIntoClient
170 | internal var _INADDR_ANY: CInterop.IPv4Address { CInterop.IPv4Address(s_addr: INADDR_ANY) }
| `- error: cannot find 'INADDR_ANY' in scope
171 |
172 | @_alwaysEmitIntoClient
/root/.swiftpm/swift-sdks/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-15-a-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/linux/in.h:218:9: note: macro 'INADDR_ANY' unavailable: structure not supported
216 | #define IN_CLASSE_NET 0xffffffff
217 | #define IN_CLASSE_NSHIFT 0
218 | #define INADDR_ANY ((unsigned long int) 0x00000000)
| `- note: macro 'INADDR_ANY' unavailable: structure not supported
219 | #define INADDR_BROADCAST ((unsigned long int) 0xffffffff)
220 | #define INADDR_NONE ((unsigned long int) 0xffffffff)
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:173:84: error: cannot convert value of type 'Int32' to expected argument type 'in_addr_t' (aka 'UInt32')
171 |
172 | @_alwaysEmitIntoClient
173 | internal var _INADDR_LOOPBACK: CInterop.IPv4Address { CInterop.IPv4Address(s_addr: INADDR_LOOPBACK) }
| `- error: cannot convert value of type 'Int32' to expected argument type 'in_addr_t' (aka 'UInt32')
174 |
175 | @_alwaysEmitIntoClient
[53/81] Compiling Socket FileEvent.swift
/host/spi-builder-workspace/Sources/Socket/System/CInterop.swift:69:35: error: cannot find type 'sockaddr_un' in scope
67 |
68 | /// The C `sockaddr_in` type
69 | typealias UnixSocketAddress = sockaddr_un
| `- error: cannot find type 'sockaddr_un' in scope
70 |
71 | /// The C `sockaddr_in` type
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:170:79: error: cannot find 'INADDR_ANY' in scope
168 |
169 | @_alwaysEmitIntoClient
170 | internal var _INADDR_ANY: CInterop.IPv4Address { CInterop.IPv4Address(s_addr: INADDR_ANY) }
| `- error: cannot find 'INADDR_ANY' in scope
171 |
172 | @_alwaysEmitIntoClient
/root/.swiftpm/swift-sdks/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-15-a-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/linux/in.h:218:9: note: macro 'INADDR_ANY' unavailable: structure not supported
216 | #define IN_CLASSE_NET 0xffffffff
217 | #define IN_CLASSE_NSHIFT 0
218 | #define INADDR_ANY ((unsigned long int) 0x00000000)
| `- note: macro 'INADDR_ANY' unavailable: structure not supported
219 | #define INADDR_BROADCAST ((unsigned long int) 0xffffffff)
220 | #define INADDR_NONE ((unsigned long int) 0xffffffff)
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:173:84: error: cannot convert value of type 'Int32' to expected argument type 'in_addr_t' (aka 'UInt32')
171 |
172 | @_alwaysEmitIntoClient
173 | internal var _INADDR_LOOPBACK: CInterop.IPv4Address { CInterop.IPv4Address(s_addr: INADDR_LOOPBACK) }
| `- error: cannot convert value of type 'Int32' to expected argument type 'in_addr_t' (aka 'UInt32')
174 |
175 | @_alwaysEmitIntoClient
[54/81] Compiling Socket FileFlags.swift
[55/81] Compiling Socket IOControl.swift
[56/81] Compiling Socket IODirection.swift
[57/81] Compiling Socket IOOperations.swift
[58/81] Compiling Socket IOType.swift
[59/81] Compiling Socket InternetProtocol.swift
[60/81] Compiling Socket LinkLayerProtocol.swift
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:106:9: error: cannot find 'Glibc' in scope
104 | #else
105 | internal var system_errno: CInt {
106 | get { Glibc.errno }
| `- error: cannot find 'Glibc' in scope
107 | set { Glibc.errno = newValue }
108 | }
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:107:9: error: cannot find 'Glibc' in scope
105 | internal var system_errno: CInt {
106 | get { Glibc.errno }
107 | set { Glibc.errno = newValue }
| `- error: cannot find 'Glibc' in scope
108 | }
109 | #endif
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:180:51: error: value of optional type 'UnsafeMutablePointer<UInt32>?' must be unwrapped to a value of type 'UnsafeMutablePointer<UInt32>'
178 | if mockingEnabled { return _mock(socket, level, option, value, length) }
179 | #endif
180 | return getsockopt(socket, level, option, value, length)
| |- error: value of optional type 'UnsafeMutablePointer<UInt32>?' must be unwrapped to a value of type 'UnsafeMutablePointer<UInt32>'
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
181 | }
182 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:202:26: error: value of optional type 'UnsafePointer<sockaddr>?' must be unwrapped to a value of type 'UnsafePointer<sockaddr>'
200 | if mockingEnabled { return _mock(socket, addr, len) }
201 | #endif
202 | return connect(socket, addr, len)
| |- error: value of optional type 'UnsafePointer<sockaddr>?' must be unwrapped to a value of type 'UnsafePointer<sockaddr>'
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
203 | }
204 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:229:49: error: value of optional type 'UnsafeMutablePointer<UnsafeMutablePointer<CInterop.AddressInfo>?>?' (aka 'Optional<UnsafeMutablePointer<Optional<UnsafeMutablePointer<addrinfo>>>>') must be unwrapped to a value of type 'UnsafeMutablePointer<UnsafeMutablePointer<CInterop.AddressInfo>?>' (aka 'UnsafeMutablePointer<Optional<UnsafeMutablePointer<addrinfo>>>')
227 | }
228 | #endif
229 | return getaddrinfo(hostname, servname, hints, res)
| |- error: value of optional type 'UnsafeMutablePointer<UnsafeMutablePointer<CInterop.AddressInfo>?>?' (aka 'Optional<UnsafeMutablePointer<Optional<UnsafeMutablePointer<addrinfo>>>>') must be unwrapped to a value of type 'UnsafeMutablePointer<UnsafeMutablePointer<CInterop.AddressInfo>?>' (aka 'UnsafeMutablePointer<Optional<UnsafeMutablePointer<addrinfo>>>')
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
230 | }
231 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:246:22: error: value of optional type 'UnsafePointer<CInterop.SocketAddress>?' (aka 'Optional<UnsafePointer<sockaddr>>') must be unwrapped to a value of type 'UnsafePointer<CInterop.SocketAddress>' (aka 'UnsafePointer<sockaddr>')
244 | }
245 | #endif
246 | return getnameinfo(sa, salen, host, hostlen, serv, servlen, flags)
| |- error: value of optional type 'UnsafePointer<CInterop.SocketAddress>?' (aka 'Optional<UnsafePointer<sockaddr>>') must be unwrapped to a value of type 'UnsafePointer<CInterop.SocketAddress>' (aka 'UnsafePointer<sockaddr>')
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
247 | }
248 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:246:39: error: cannot convert value of type 'UInt32' to expected argument type 'Int'
244 | }
245 | #endif
246 | return getnameinfo(sa, salen, host, hostlen, serv, servlen, flags)
| `- error: cannot convert value of type 'UInt32' to expected argument type 'Int'
247 | }
248 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:246:54: error: cannot convert value of type 'UInt32' to expected argument type 'Int'
244 | }
245 | #endif
246 | return getnameinfo(sa, salen, host, hostlen, serv, servlen, flags)
| `- error: cannot convert value of type 'UInt32' to expected argument type 'Int'
247 | }
248 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:288:23: error: value of optional type 'UnsafeRawPointer?' must be unwrapped to a value of type 'UnsafeRawPointer'
286 | if mockingEnabled { return _mockInt(socket, buffer, len, flags) }
287 | #endif
288 | return send(socket, buffer, len, flags)
| |- error: value of optional type 'UnsafeRawPointer?' must be unwrapped to a value of type 'UnsafeRawPointer'
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
289 | }
290 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:316:25: error: value of optional type 'UnsafeRawPointer?' must be unwrapped to a value of type 'UnsafeRawPointer'
314 | }
315 | #endif
316 | return sendto(socket, buffer, length, flags, dest_addr, dest_len)
| |- error: value of optional type 'UnsafeRawPointer?' must be unwrapped to a value of type 'UnsafeRawPointer'
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
317 | }
318 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:354:26: error: value of optional type 'UnsafePointer<CInterop.MessageHeader>?' (aka 'Optional<UnsafePointer<msghdr>>') must be unwrapped to a value of type 'UnsafePointer<CInterop.MessageHeader>' (aka 'UnsafePointer<msghdr>')
352 | if mockingEnabled { return _mockInt(socket, message, flags) }
353 | #endif
354 | return sendmsg(socket, message, flags)
| |- error: value of optional type 'UnsafePointer<CInterop.MessageHeader>?' (aka 'Optional<UnsafePointer<msghdr>>') must be unwrapped to a value of type 'UnsafePointer<CInterop.MessageHeader>' (aka 'UnsafePointer<msghdr>')
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
355 | }
356 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:365:26: error: value of optional type 'UnsafeMutablePointer<CInterop.MessageHeader>?' (aka 'Optional<UnsafeMutablePointer<msghdr>>') must be unwrapped to a value of type 'UnsafeMutablePointer<CInterop.MessageHeader>' (aka 'UnsafeMutablePointer<msghdr>')
363 | if mockingEnabled { return _mockInt(socket, message, flags) }
364 | #endif
365 | return recvmsg(socket, message, flags)
| |- error: value of optional type 'UnsafeMutablePointer<CInterop.MessageHeader>?' (aka 'Optional<UnsafeMutablePointer<msghdr>>') must be unwrapped to a value of type 'UnsafeMutablePointer<CInterop.MessageHeader>' (aka 'UnsafeMutablePointer<msghdr>')
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
366 | }
367 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:375:10: error: 'fcntl' is unavailable: Variadic function is unavailable
373 | if mockingEnabled { return _mock(fd, cmd) }
374 | #endif
375 | return fcntl(fd, cmd)
| `- error: 'fcntl' is unavailable: Variadic function is unavailable
376 | }
377 |
/root/.swiftpm/swift-sdks/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-15-a-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/bits/fcntl.h:46:5: note: 'fcntl' has been explicitly marked unavailable here
44 | * The return value depends on the operation.
45 | */
46 | int fcntl(int __fd, int __op, ...);
| `- note: 'fcntl' has been explicitly marked unavailable here
47 |
48 | __END_DECLS
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:386:10: error: 'fcntl' is unavailable: Variadic function is unavailable
384 | if mockingEnabled { return _mock(fd, cmd, value) }
385 | #endif
386 | return fcntl(fd, cmd, value)
| `- error: 'fcntl' is unavailable: Variadic function is unavailable
387 | }
388 |
/root/.swiftpm/swift-sdks/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-15-a-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/bits/fcntl.h:46:5: note: 'fcntl' has been explicitly marked unavailable here
44 | * The return value depends on the operation.
45 | */
46 | int fcntl(int __fd, int __op, ...);
| `- note: 'fcntl' has been explicitly marked unavailable here
47 |
48 | __END_DECLS
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:397:10: error: 'fcntl' is unavailable: Variadic function is unavailable
395 | if mockingEnabled { return _mock(fd, cmd, pointer) }
396 | #endif
397 | return fcntl(fd, cmd, pointer)
| `- error: 'fcntl' is unavailable: Variadic function is unavailable
398 | }
399 |
/root/.swiftpm/swift-sdks/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-15-a-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/bits/fcntl.h:46:5: note: 'fcntl' has been explicitly marked unavailable here
44 | * The return value depends on the operation.
45 | */
46 | int fcntl(int __fd, int __op, ...);
| `- note: 'fcntl' has been explicitly marked unavailable here
47 |
48 | __END_DECLS
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:408:10: error: no exact matches in call to global function 'ioctl'
406 | if mockingEnabled { return _mock(fd, request) }
407 | #endif
408 | return ioctl(fd, request)
| `- error: no exact matches in call to global function 'ioctl'
409 | }
410 |
/root/.swiftpm/swift-sdks/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-15-a-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/bits/ioctl.h:43:5: note: candidate expects value of type 'Int32' for parameter #2 (got 'CUnsignedLong' (aka 'UInt'))
41 | * [ioctl(2)](http://man7.org/linux/man-pages/man2/ioctl.2.html) operates on device files.
42 | */
43 | int ioctl(int __fd, int __op, ...);
| `- note: candidate expects value of type 'Int32' for parameter #2 (got 'CUnsignedLong' (aka 'UInt'))
44 |
45 | /*
:
58 | #if !defined(BIONIC_IOCTL_NO_SIGNEDNESS_OVERLOAD)
59 | /* enable_if(1) just exists to break overloading ties. */
60 | int ioctl(int __fd, unsigned __op, ...) __overloadable __enable_if(1, "") __RENAME(ioctl);
| `- note: candidate expects value of type 'UInt32' for parameter #2 (got 'CUnsignedLong' (aka 'UInt'))
61 | #endif
62 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:420:10: error: no exact matches in call to global function 'ioctl'
418 | if mockingEnabled { return _mock(fd, request, value) }
419 | #endif
420 | return ioctl(fd, request, value)
| `- error: no exact matches in call to global function 'ioctl'
421 | }
422 |
/root/.swiftpm/swift-sdks/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-15-a-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/bits/ioctl.h:43:5: note: candidate expects value of type 'Int32' for parameter #2 (got 'CUnsignedLong' (aka 'UInt'))
41 | * [ioctl(2)](http://man7.org/linux/man-pages/man2/ioctl.2.html) operates on device files.
42 | */
43 | int ioctl(int __fd, int __op, ...);
| `- note: candidate expects value of type 'Int32' for parameter #2 (got 'CUnsignedLong' (aka 'UInt'))
44 |
45 | /*
:
58 | #if !defined(BIONIC_IOCTL_NO_SIGNEDNESS_OVERLOAD)
59 | /* enable_if(1) just exists to break overloading ties. */
60 | int ioctl(int __fd, unsigned __op, ...) __overloadable __enable_if(1, "") __RENAME(ioctl);
| `- note: candidate expects value of type 'UInt32' for parameter #2 (got 'CUnsignedLong' (aka 'UInt'))
61 | #endif
62 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:432:10: error: no exact matches in call to global function 'ioctl'
430 | if mockingEnabled { return _mock(fd, request, pointer) }
431 | #endif
432 | return ioctl(fd, request, pointer)
| `- error: no exact matches in call to global function 'ioctl'
433 | }
434 |
/root/.swiftpm/swift-sdks/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-15-a-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/bits/ioctl.h:43:5: note: candidate expects value of type 'Int32' for parameter #2 (got 'CUnsignedLong' (aka 'UInt'))
41 | * [ioctl(2)](http://man7.org/linux/man-pages/man2/ioctl.2.html) operates on device files.
42 | */
43 | int ioctl(int __fd, int __op, ...);
| `- note: candidate expects value of type 'Int32' for parameter #2 (got 'CUnsignedLong' (aka 'UInt'))
44 |
45 | /*
:
58 | #if !defined(BIONIC_IOCTL_NO_SIGNEDNESS_OVERLOAD)
59 | /* enable_if(1) just exists to break overloading ties. */
60 | int ioctl(int __fd, unsigned __op, ...) __overloadable __enable_if(1, "") __RENAME(ioctl);
| `- note: candidate expects value of type 'UInt32' for parameter #2 (got 'CUnsignedLong' (aka 'UInt'))
61 | #endif
62 |
[61/81] Compiling Socket UnixProtocol.swift
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:106:9: error: cannot find 'Glibc' in scope
104 | #else
105 | internal var system_errno: CInt {
106 | get { Glibc.errno }
| `- error: cannot find 'Glibc' in scope
107 | set { Glibc.errno = newValue }
108 | }
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:107:9: error: cannot find 'Glibc' in scope
105 | internal var system_errno: CInt {
106 | get { Glibc.errno }
107 | set { Glibc.errno = newValue }
| `- error: cannot find 'Glibc' in scope
108 | }
109 | #endif
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:180:51: error: value of optional type 'UnsafeMutablePointer<UInt32>?' must be unwrapped to a value of type 'UnsafeMutablePointer<UInt32>'
178 | if mockingEnabled { return _mock(socket, level, option, value, length) }
179 | #endif
180 | return getsockopt(socket, level, option, value, length)
| |- error: value of optional type 'UnsafeMutablePointer<UInt32>?' must be unwrapped to a value of type 'UnsafeMutablePointer<UInt32>'
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
181 | }
182 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:202:26: error: value of optional type 'UnsafePointer<sockaddr>?' must be unwrapped to a value of type 'UnsafePointer<sockaddr>'
200 | if mockingEnabled { return _mock(socket, addr, len) }
201 | #endif
202 | return connect(socket, addr, len)
| |- error: value of optional type 'UnsafePointer<sockaddr>?' must be unwrapped to a value of type 'UnsafePointer<sockaddr>'
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
203 | }
204 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:229:49: error: value of optional type 'UnsafeMutablePointer<UnsafeMutablePointer<CInterop.AddressInfo>?>?' (aka 'Optional<UnsafeMutablePointer<Optional<UnsafeMutablePointer<addrinfo>>>>') must be unwrapped to a value of type 'UnsafeMutablePointer<UnsafeMutablePointer<CInterop.AddressInfo>?>' (aka 'UnsafeMutablePointer<Optional<UnsafeMutablePointer<addrinfo>>>')
227 | }
228 | #endif
229 | return getaddrinfo(hostname, servname, hints, res)
| |- error: value of optional type 'UnsafeMutablePointer<UnsafeMutablePointer<CInterop.AddressInfo>?>?' (aka 'Optional<UnsafeMutablePointer<Optional<UnsafeMutablePointer<addrinfo>>>>') must be unwrapped to a value of type 'UnsafeMutablePointer<UnsafeMutablePointer<CInterop.AddressInfo>?>' (aka 'UnsafeMutablePointer<Optional<UnsafeMutablePointer<addrinfo>>>')
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
230 | }
231 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:246:22: error: value of optional type 'UnsafePointer<CInterop.SocketAddress>?' (aka 'Optional<UnsafePointer<sockaddr>>') must be unwrapped to a value of type 'UnsafePointer<CInterop.SocketAddress>' (aka 'UnsafePointer<sockaddr>')
244 | }
245 | #endif
246 | return getnameinfo(sa, salen, host, hostlen, serv, servlen, flags)
| |- error: value of optional type 'UnsafePointer<CInterop.SocketAddress>?' (aka 'Optional<UnsafePointer<sockaddr>>') must be unwrapped to a value of type 'UnsafePointer<CInterop.SocketAddress>' (aka 'UnsafePointer<sockaddr>')
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
247 | }
248 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:246:39: error: cannot convert value of type 'UInt32' to expected argument type 'Int'
244 | }
245 | #endif
246 | return getnameinfo(sa, salen, host, hostlen, serv, servlen, flags)
| `- error: cannot convert value of type 'UInt32' to expected argument type 'Int'
247 | }
248 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:246:54: error: cannot convert value of type 'UInt32' to expected argument type 'Int'
244 | }
245 | #endif
246 | return getnameinfo(sa, salen, host, hostlen, serv, servlen, flags)
| `- error: cannot convert value of type 'UInt32' to expected argument type 'Int'
247 | }
248 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:288:23: error: value of optional type 'UnsafeRawPointer?' must be unwrapped to a value of type 'UnsafeRawPointer'
286 | if mockingEnabled { return _mockInt(socket, buffer, len, flags) }
287 | #endif
288 | return send(socket, buffer, len, flags)
| |- error: value of optional type 'UnsafeRawPointer?' must be unwrapped to a value of type 'UnsafeRawPointer'
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
289 | }
290 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:316:25: error: value of optional type 'UnsafeRawPointer?' must be unwrapped to a value of type 'UnsafeRawPointer'
314 | }
315 | #endif
316 | return sendto(socket, buffer, length, flags, dest_addr, dest_len)
| |- error: value of optional type 'UnsafeRawPointer?' must be unwrapped to a value of type 'UnsafeRawPointer'
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
317 | }
318 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:354:26: error: value of optional type 'UnsafePointer<CInterop.MessageHeader>?' (aka 'Optional<UnsafePointer<msghdr>>') must be unwrapped to a value of type 'UnsafePointer<CInterop.MessageHeader>' (aka 'UnsafePointer<msghdr>')
352 | if mockingEnabled { return _mockInt(socket, message, flags) }
353 | #endif
354 | return sendmsg(socket, message, flags)
| |- error: value of optional type 'UnsafePointer<CInterop.MessageHeader>?' (aka 'Optional<UnsafePointer<msghdr>>') must be unwrapped to a value of type 'UnsafePointer<CInterop.MessageHeader>' (aka 'UnsafePointer<msghdr>')
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
355 | }
356 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:365:26: error: value of optional type 'UnsafeMutablePointer<CInterop.MessageHeader>?' (aka 'Optional<UnsafeMutablePointer<msghdr>>') must be unwrapped to a value of type 'UnsafeMutablePointer<CInterop.MessageHeader>' (aka 'UnsafeMutablePointer<msghdr>')
363 | if mockingEnabled { return _mockInt(socket, message, flags) }
364 | #endif
365 | return recvmsg(socket, message, flags)
| |- error: value of optional type 'UnsafeMutablePointer<CInterop.MessageHeader>?' (aka 'Optional<UnsafeMutablePointer<msghdr>>') must be unwrapped to a value of type 'UnsafeMutablePointer<CInterop.MessageHeader>' (aka 'UnsafeMutablePointer<msghdr>')
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
366 | }
367 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:375:10: error: 'fcntl' is unavailable: Variadic function is unavailable
373 | if mockingEnabled { return _mock(fd, cmd) }
374 | #endif
375 | return fcntl(fd, cmd)
| `- error: 'fcntl' is unavailable: Variadic function is unavailable
376 | }
377 |
/root/.swiftpm/swift-sdks/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-15-a-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/bits/fcntl.h:46:5: note: 'fcntl' has been explicitly marked unavailable here
44 | * The return value depends on the operation.
45 | */
46 | int fcntl(int __fd, int __op, ...);
| `- note: 'fcntl' has been explicitly marked unavailable here
47 |
48 | __END_DECLS
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:386:10: error: 'fcntl' is unavailable: Variadic function is unavailable
384 | if mockingEnabled { return _mock(fd, cmd, value) }
385 | #endif
386 | return fcntl(fd, cmd, value)
| `- error: 'fcntl' is unavailable: Variadic function is unavailable
387 | }
388 |
/root/.swiftpm/swift-sdks/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-15-a-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/bits/fcntl.h:46:5: note: 'fcntl' has been explicitly marked unavailable here
44 | * The return value depends on the operation.
45 | */
46 | int fcntl(int __fd, int __op, ...);
| `- note: 'fcntl' has been explicitly marked unavailable here
47 |
48 | __END_DECLS
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:397:10: error: 'fcntl' is unavailable: Variadic function is unavailable
395 | if mockingEnabled { return _mock(fd, cmd, pointer) }
396 | #endif
397 | return fcntl(fd, cmd, pointer)
| `- error: 'fcntl' is unavailable: Variadic function is unavailable
398 | }
399 |
/root/.swiftpm/swift-sdks/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-15-a-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/bits/fcntl.h:46:5: note: 'fcntl' has been explicitly marked unavailable here
44 | * The return value depends on the operation.
45 | */
46 | int fcntl(int __fd, int __op, ...);
| `- note: 'fcntl' has been explicitly marked unavailable here
47 |
48 | __END_DECLS
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:408:10: error: no exact matches in call to global function 'ioctl'
406 | if mockingEnabled { return _mock(fd, request) }
407 | #endif
408 | return ioctl(fd, request)
| `- error: no exact matches in call to global function 'ioctl'
409 | }
410 |
/root/.swiftpm/swift-sdks/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-15-a-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/bits/ioctl.h:43:5: note: candidate expects value of type 'Int32' for parameter #2 (got 'CUnsignedLong' (aka 'UInt'))
41 | * [ioctl(2)](http://man7.org/linux/man-pages/man2/ioctl.2.html) operates on device files.
42 | */
43 | int ioctl(int __fd, int __op, ...);
| `- note: candidate expects value of type 'Int32' for parameter #2 (got 'CUnsignedLong' (aka 'UInt'))
44 |
45 | /*
:
58 | #if !defined(BIONIC_IOCTL_NO_SIGNEDNESS_OVERLOAD)
59 | /* enable_if(1) just exists to break overloading ties. */
60 | int ioctl(int __fd, unsigned __op, ...) __overloadable __enable_if(1, "") __RENAME(ioctl);
| `- note: candidate expects value of type 'UInt32' for parameter #2 (got 'CUnsignedLong' (aka 'UInt'))
61 | #endif
62 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:420:10: error: no exact matches in call to global function 'ioctl'
418 | if mockingEnabled { return _mock(fd, request, value) }
419 | #endif
420 | return ioctl(fd, request, value)
| `- error: no exact matches in call to global function 'ioctl'
421 | }
422 |
/root/.swiftpm/swift-sdks/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-15-a-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/bits/ioctl.h:43:5: note: candidate expects value of type 'Int32' for parameter #2 (got 'CUnsignedLong' (aka 'UInt'))
41 | * [ioctl(2)](http://man7.org/linux/man-pages/man2/ioctl.2.html) operates on device files.
42 | */
43 | int ioctl(int __fd, int __op, ...);
| `- note: candidate expects value of type 'Int32' for parameter #2 (got 'CUnsignedLong' (aka 'UInt'))
44 |
45 | /*
:
58 | #if !defined(BIONIC_IOCTL_NO_SIGNEDNESS_OVERLOAD)
59 | /* enable_if(1) just exists to break overloading ties. */
60 | int ioctl(int __fd, unsigned __op, ...) __overloadable __enable_if(1, "") __RENAME(ioctl);
| `- note: candidate expects value of type 'UInt32' for parameter #2 (got 'CUnsignedLong' (aka 'UInt'))
61 | #endif
62 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:432:10: error: no exact matches in call to global function 'ioctl'
430 | if mockingEnabled { return _mock(fd, request, pointer) }
431 | #endif
432 | return ioctl(fd, request, pointer)
| `- error: no exact matches in call to global function 'ioctl'
433 | }
434 |
/root/.swiftpm/swift-sdks/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-15-a-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/bits/ioctl.h:43:5: note: candidate expects value of type 'Int32' for parameter #2 (got 'CUnsignedLong' (aka 'UInt'))
41 | * [ioctl(2)](http://man7.org/linux/man-pages/man2/ioctl.2.html) operates on device files.
42 | */
43 | int ioctl(int __fd, int __op, ...);
| `- note: candidate expects value of type 'Int32' for parameter #2 (got 'CUnsignedLong' (aka 'UInt'))
44 |
45 | /*
:
58 | #if !defined(BIONIC_IOCTL_NO_SIGNEDNESS_OVERLOAD)
59 | /* enable_if(1) just exists to break overloading ties. */
60 | int ioctl(int __fd, unsigned __op, ...) __overloadable __enable_if(1, "") __RENAME(ioctl);
| `- note: candidate expects value of type 'UInt32' for parameter #2 (got 'CUnsignedLong' (aka 'UInt'))
61 | #endif
62 |
[62/81] Compiling Socket SocketType.swift
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:106:9: error: cannot find 'Glibc' in scope
104 | #else
105 | internal var system_errno: CInt {
106 | get { Glibc.errno }
| `- error: cannot find 'Glibc' in scope
107 | set { Glibc.errno = newValue }
108 | }
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:107:9: error: cannot find 'Glibc' in scope
105 | internal var system_errno: CInt {
106 | get { Glibc.errno }
107 | set { Glibc.errno = newValue }
| `- error: cannot find 'Glibc' in scope
108 | }
109 | #endif
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:180:51: error: value of optional type 'UnsafeMutablePointer<UInt32>?' must be unwrapped to a value of type 'UnsafeMutablePointer<UInt32>'
178 | if mockingEnabled { return _mock(socket, level, option, value, length) }
179 | #endif
180 | return getsockopt(socket, level, option, value, length)
| |- error: value of optional type 'UnsafeMutablePointer<UInt32>?' must be unwrapped to a value of type 'UnsafeMutablePointer<UInt32>'
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
181 | }
182 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:202:26: error: value of optional type 'UnsafePointer<sockaddr>?' must be unwrapped to a value of type 'UnsafePointer<sockaddr>'
200 | if mockingEnabled { return _mock(socket, addr, len) }
201 | #endif
202 | return connect(socket, addr, len)
| |- error: value of optional type 'UnsafePointer<sockaddr>?' must be unwrapped to a value of type 'UnsafePointer<sockaddr>'
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
203 | }
204 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:229:49: error: value of optional type 'UnsafeMutablePointer<UnsafeMutablePointer<CInterop.AddressInfo>?>?' (aka 'Optional<UnsafeMutablePointer<Optional<UnsafeMutablePointer<addrinfo>>>>') must be unwrapped to a value of type 'UnsafeMutablePointer<UnsafeMutablePointer<CInterop.AddressInfo>?>' (aka 'UnsafeMutablePointer<Optional<UnsafeMutablePointer<addrinfo>>>')
227 | }
228 | #endif
229 | return getaddrinfo(hostname, servname, hints, res)
| |- error: value of optional type 'UnsafeMutablePointer<UnsafeMutablePointer<CInterop.AddressInfo>?>?' (aka 'Optional<UnsafeMutablePointer<Optional<UnsafeMutablePointer<addrinfo>>>>') must be unwrapped to a value of type 'UnsafeMutablePointer<UnsafeMutablePointer<CInterop.AddressInfo>?>' (aka 'UnsafeMutablePointer<Optional<UnsafeMutablePointer<addrinfo>>>')
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
230 | }
231 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:246:22: error: value of optional type 'UnsafePointer<CInterop.SocketAddress>?' (aka 'Optional<UnsafePointer<sockaddr>>') must be unwrapped to a value of type 'UnsafePointer<CInterop.SocketAddress>' (aka 'UnsafePointer<sockaddr>')
244 | }
245 | #endif
246 | return getnameinfo(sa, salen, host, hostlen, serv, servlen, flags)
| |- error: value of optional type 'UnsafePointer<CInterop.SocketAddress>?' (aka 'Optional<UnsafePointer<sockaddr>>') must be unwrapped to a value of type 'UnsafePointer<CInterop.SocketAddress>' (aka 'UnsafePointer<sockaddr>')
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
247 | }
248 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:246:39: error: cannot convert value of type 'UInt32' to expected argument type 'Int'
244 | }
245 | #endif
246 | return getnameinfo(sa, salen, host, hostlen, serv, servlen, flags)
| `- error: cannot convert value of type 'UInt32' to expected argument type 'Int'
247 | }
248 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:246:54: error: cannot convert value of type 'UInt32' to expected argument type 'Int'
244 | }
245 | #endif
246 | return getnameinfo(sa, salen, host, hostlen, serv, servlen, flags)
| `- error: cannot convert value of type 'UInt32' to expected argument type 'Int'
247 | }
248 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:288:23: error: value of optional type 'UnsafeRawPointer?' must be unwrapped to a value of type 'UnsafeRawPointer'
286 | if mockingEnabled { return _mockInt(socket, buffer, len, flags) }
287 | #endif
288 | return send(socket, buffer, len, flags)
| |- error: value of optional type 'UnsafeRawPointer?' must be unwrapped to a value of type 'UnsafeRawPointer'
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
289 | }
290 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:316:25: error: value of optional type 'UnsafeRawPointer?' must be unwrapped to a value of type 'UnsafeRawPointer'
314 | }
315 | #endif
316 | return sendto(socket, buffer, length, flags, dest_addr, dest_len)
| |- error: value of optional type 'UnsafeRawPointer?' must be unwrapped to a value of type 'UnsafeRawPointer'
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
317 | }
318 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:354:26: error: value of optional type 'UnsafePointer<CInterop.MessageHeader>?' (aka 'Optional<UnsafePointer<msghdr>>') must be unwrapped to a value of type 'UnsafePointer<CInterop.MessageHeader>' (aka 'UnsafePointer<msghdr>')
352 | if mockingEnabled { return _mockInt(socket, message, flags) }
353 | #endif
354 | return sendmsg(socket, message, flags)
| |- error: value of optional type 'UnsafePointer<CInterop.MessageHeader>?' (aka 'Optional<UnsafePointer<msghdr>>') must be unwrapped to a value of type 'UnsafePointer<CInterop.MessageHeader>' (aka 'UnsafePointer<msghdr>')
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
355 | }
356 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:365:26: error: value of optional type 'UnsafeMutablePointer<CInterop.MessageHeader>?' (aka 'Optional<UnsafeMutablePointer<msghdr>>') must be unwrapped to a value of type 'UnsafeMutablePointer<CInterop.MessageHeader>' (aka 'UnsafeMutablePointer<msghdr>')
363 | if mockingEnabled { return _mockInt(socket, message, flags) }
364 | #endif
365 | return recvmsg(socket, message, flags)
| |- error: value of optional type 'UnsafeMutablePointer<CInterop.MessageHeader>?' (aka 'Optional<UnsafeMutablePointer<msghdr>>') must be unwrapped to a value of type 'UnsafeMutablePointer<CInterop.MessageHeader>' (aka 'UnsafeMutablePointer<msghdr>')
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
366 | }
367 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:375:10: error: 'fcntl' is unavailable: Variadic function is unavailable
373 | if mockingEnabled { return _mock(fd, cmd) }
374 | #endif
375 | return fcntl(fd, cmd)
| `- error: 'fcntl' is unavailable: Variadic function is unavailable
376 | }
377 |
/root/.swiftpm/swift-sdks/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-15-a-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/bits/fcntl.h:46:5: note: 'fcntl' has been explicitly marked unavailable here
44 | * The return value depends on the operation.
45 | */
46 | int fcntl(int __fd, int __op, ...);
| `- note: 'fcntl' has been explicitly marked unavailable here
47 |
48 | __END_DECLS
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:386:10: error: 'fcntl' is unavailable: Variadic function is unavailable
384 | if mockingEnabled { return _mock(fd, cmd, value) }
385 | #endif
386 | return fcntl(fd, cmd, value)
| `- error: 'fcntl' is unavailable: Variadic function is unavailable
387 | }
388 |
/root/.swiftpm/swift-sdks/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-15-a-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/bits/fcntl.h:46:5: note: 'fcntl' has been explicitly marked unavailable here
44 | * The return value depends on the operation.
45 | */
46 | int fcntl(int __fd, int __op, ...);
| `- note: 'fcntl' has been explicitly marked unavailable here
47 |
48 | __END_DECLS
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:397:10: error: 'fcntl' is unavailable: Variadic function is unavailable
395 | if mockingEnabled { return _mock(fd, cmd, pointer) }
396 | #endif
397 | return fcntl(fd, cmd, pointer)
| `- error: 'fcntl' is unavailable: Variadic function is unavailable
398 | }
399 |
/root/.swiftpm/swift-sdks/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-15-a-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/bits/fcntl.h:46:5: note: 'fcntl' has been explicitly marked unavailable here
44 | * The return value depends on the operation.
45 | */
46 | int fcntl(int __fd, int __op, ...);
| `- note: 'fcntl' has been explicitly marked unavailable here
47 |
48 | __END_DECLS
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:408:10: error: no exact matches in call to global function 'ioctl'
406 | if mockingEnabled { return _mock(fd, request) }
407 | #endif
408 | return ioctl(fd, request)
| `- error: no exact matches in call to global function 'ioctl'
409 | }
410 |
/root/.swiftpm/swift-sdks/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-15-a-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/bits/ioctl.h:43:5: note: candidate expects value of type 'Int32' for parameter #2 (got 'CUnsignedLong' (aka 'UInt'))
41 | * [ioctl(2)](http://man7.org/linux/man-pages/man2/ioctl.2.html) operates on device files.
42 | */
43 | int ioctl(int __fd, int __op, ...);
| `- note: candidate expects value of type 'Int32' for parameter #2 (got 'CUnsignedLong' (aka 'UInt'))
44 |
45 | /*
:
58 | #if !defined(BIONIC_IOCTL_NO_SIGNEDNESS_OVERLOAD)
59 | /* enable_if(1) just exists to break overloading ties. */
60 | int ioctl(int __fd, unsigned __op, ...) __overloadable __enable_if(1, "") __RENAME(ioctl);
| `- note: candidate expects value of type 'UInt32' for parameter #2 (got 'CUnsignedLong' (aka 'UInt'))
61 | #endif
62 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:420:10: error: no exact matches in call to global function 'ioctl'
418 | if mockingEnabled { return _mock(fd, request, value) }
419 | #endif
420 | return ioctl(fd, request, value)
| `- error: no exact matches in call to global function 'ioctl'
421 | }
422 |
/root/.swiftpm/swift-sdks/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-15-a-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/bits/ioctl.h:43:5: note: candidate expects value of type 'Int32' for parameter #2 (got 'CUnsignedLong' (aka 'UInt'))
41 | * [ioctl(2)](http://man7.org/linux/man-pages/man2/ioctl.2.html) operates on device files.
42 | */
43 | int ioctl(int __fd, int __op, ...);
| `- note: candidate expects value of type 'Int32' for parameter #2 (got 'CUnsignedLong' (aka 'UInt'))
44 |
45 | /*
:
58 | #if !defined(BIONIC_IOCTL_NO_SIGNEDNESS_OVERLOAD)
59 | /* enable_if(1) just exists to break overloading ties. */
60 | int ioctl(int __fd, unsigned __op, ...) __overloadable __enable_if(1, "") __RENAME(ioctl);
| `- note: candidate expects value of type 'UInt32' for parameter #2 (got 'CUnsignedLong' (aka 'UInt'))
61 | #endif
62 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:432:10: error: no exact matches in call to global function 'ioctl'
430 | if mockingEnabled { return _mock(fd, request, pointer) }
431 | #endif
432 | return ioctl(fd, request, pointer)
| `- error: no exact matches in call to global function 'ioctl'
433 | }
434 |
/root/.swiftpm/swift-sdks/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-15-a-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/bits/ioctl.h:43:5: note: candidate expects value of type 'Int32' for parameter #2 (got 'CUnsignedLong' (aka 'UInt'))
41 | * [ioctl(2)](http://man7.org/linux/man-pages/man2/ioctl.2.html) operates on device files.
42 | */
43 | int ioctl(int __fd, int __op, ...);
| `- note: candidate expects value of type 'Int32' for parameter #2 (got 'CUnsignedLong' (aka 'UInt'))
44 |
45 | /*
:
58 | #if !defined(BIONIC_IOCTL_NO_SIGNEDNESS_OVERLOAD)
59 | /* enable_if(1) just exists to break overloading ties. */
60 | int ioctl(int __fd, unsigned __op, ...) __overloadable __enable_if(1, "") __RENAME(ioctl);
| `- note: candidate expects value of type 'UInt32' for parameter #2 (got 'CUnsignedLong' (aka 'UInt'))
61 | #endif
62 |
[63/81] Compiling Socket Syscalls.swift
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:106:9: error: cannot find 'Glibc' in scope
104 | #else
105 | internal var system_errno: CInt {
106 | get { Glibc.errno }
| `- error: cannot find 'Glibc' in scope
107 | set { Glibc.errno = newValue }
108 | }
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:107:9: error: cannot find 'Glibc' in scope
105 | internal var system_errno: CInt {
106 | get { Glibc.errno }
107 | set { Glibc.errno = newValue }
| `- error: cannot find 'Glibc' in scope
108 | }
109 | #endif
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:180:51: error: value of optional type 'UnsafeMutablePointer<UInt32>?' must be unwrapped to a value of type 'UnsafeMutablePointer<UInt32>'
178 | if mockingEnabled { return _mock(socket, level, option, value, length) }
179 | #endif
180 | return getsockopt(socket, level, option, value, length)
| |- error: value of optional type 'UnsafeMutablePointer<UInt32>?' must be unwrapped to a value of type 'UnsafeMutablePointer<UInt32>'
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
181 | }
182 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:202:26: error: value of optional type 'UnsafePointer<sockaddr>?' must be unwrapped to a value of type 'UnsafePointer<sockaddr>'
200 | if mockingEnabled { return _mock(socket, addr, len) }
201 | #endif
202 | return connect(socket, addr, len)
| |- error: value of optional type 'UnsafePointer<sockaddr>?' must be unwrapped to a value of type 'UnsafePointer<sockaddr>'
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
203 | }
204 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:229:49: error: value of optional type 'UnsafeMutablePointer<UnsafeMutablePointer<CInterop.AddressInfo>?>?' (aka 'Optional<UnsafeMutablePointer<Optional<UnsafeMutablePointer<addrinfo>>>>') must be unwrapped to a value of type 'UnsafeMutablePointer<UnsafeMutablePointer<CInterop.AddressInfo>?>' (aka 'UnsafeMutablePointer<Optional<UnsafeMutablePointer<addrinfo>>>')
227 | }
228 | #endif
229 | return getaddrinfo(hostname, servname, hints, res)
| |- error: value of optional type 'UnsafeMutablePointer<UnsafeMutablePointer<CInterop.AddressInfo>?>?' (aka 'Optional<UnsafeMutablePointer<Optional<UnsafeMutablePointer<addrinfo>>>>') must be unwrapped to a value of type 'UnsafeMutablePointer<UnsafeMutablePointer<CInterop.AddressInfo>?>' (aka 'UnsafeMutablePointer<Optional<UnsafeMutablePointer<addrinfo>>>')
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
230 | }
231 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:246:22: error: value of optional type 'UnsafePointer<CInterop.SocketAddress>?' (aka 'Optional<UnsafePointer<sockaddr>>') must be unwrapped to a value of type 'UnsafePointer<CInterop.SocketAddress>' (aka 'UnsafePointer<sockaddr>')
244 | }
245 | #endif
246 | return getnameinfo(sa, salen, host, hostlen, serv, servlen, flags)
| |- error: value of optional type 'UnsafePointer<CInterop.SocketAddress>?' (aka 'Optional<UnsafePointer<sockaddr>>') must be unwrapped to a value of type 'UnsafePointer<CInterop.SocketAddress>' (aka 'UnsafePointer<sockaddr>')
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
247 | }
248 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:246:39: error: cannot convert value of type 'UInt32' to expected argument type 'Int'
244 | }
245 | #endif
246 | return getnameinfo(sa, salen, host, hostlen, serv, servlen, flags)
| `- error: cannot convert value of type 'UInt32' to expected argument type 'Int'
247 | }
248 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:246:54: error: cannot convert value of type 'UInt32' to expected argument type 'Int'
244 | }
245 | #endif
246 | return getnameinfo(sa, salen, host, hostlen, serv, servlen, flags)
| `- error: cannot convert value of type 'UInt32' to expected argument type 'Int'
247 | }
248 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:288:23: error: value of optional type 'UnsafeRawPointer?' must be unwrapped to a value of type 'UnsafeRawPointer'
286 | if mockingEnabled { return _mockInt(socket, buffer, len, flags) }
287 | #endif
288 | return send(socket, buffer, len, flags)
| |- error: value of optional type 'UnsafeRawPointer?' must be unwrapped to a value of type 'UnsafeRawPointer'
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
289 | }
290 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:316:25: error: value of optional type 'UnsafeRawPointer?' must be unwrapped to a value of type 'UnsafeRawPointer'
314 | }
315 | #endif
316 | return sendto(socket, buffer, length, flags, dest_addr, dest_len)
| |- error: value of optional type 'UnsafeRawPointer?' must be unwrapped to a value of type 'UnsafeRawPointer'
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
317 | }
318 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:354:26: error: value of optional type 'UnsafePointer<CInterop.MessageHeader>?' (aka 'Optional<UnsafePointer<msghdr>>') must be unwrapped to a value of type 'UnsafePointer<CInterop.MessageHeader>' (aka 'UnsafePointer<msghdr>')
352 | if mockingEnabled { return _mockInt(socket, message, flags) }
353 | #endif
354 | return sendmsg(socket, message, flags)
| |- error: value of optional type 'UnsafePointer<CInterop.MessageHeader>?' (aka 'Optional<UnsafePointer<msghdr>>') must be unwrapped to a value of type 'UnsafePointer<CInterop.MessageHeader>' (aka 'UnsafePointer<msghdr>')
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
355 | }
356 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:365:26: error: value of optional type 'UnsafeMutablePointer<CInterop.MessageHeader>?' (aka 'Optional<UnsafeMutablePointer<msghdr>>') must be unwrapped to a value of type 'UnsafeMutablePointer<CInterop.MessageHeader>' (aka 'UnsafeMutablePointer<msghdr>')
363 | if mockingEnabled { return _mockInt(socket, message, flags) }
364 | #endif
365 | return recvmsg(socket, message, flags)
| |- error: value of optional type 'UnsafeMutablePointer<CInterop.MessageHeader>?' (aka 'Optional<UnsafeMutablePointer<msghdr>>') must be unwrapped to a value of type 'UnsafeMutablePointer<CInterop.MessageHeader>' (aka 'UnsafeMutablePointer<msghdr>')
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
366 | }
367 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:375:10: error: 'fcntl' is unavailable: Variadic function is unavailable
373 | if mockingEnabled { return _mock(fd, cmd) }
374 | #endif
375 | return fcntl(fd, cmd)
| `- error: 'fcntl' is unavailable: Variadic function is unavailable
376 | }
377 |
/root/.swiftpm/swift-sdks/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-15-a-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/bits/fcntl.h:46:5: note: 'fcntl' has been explicitly marked unavailable here
44 | * The return value depends on the operation.
45 | */
46 | int fcntl(int __fd, int __op, ...);
| `- note: 'fcntl' has been explicitly marked unavailable here
47 |
48 | __END_DECLS
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:386:10: error: 'fcntl' is unavailable: Variadic function is unavailable
384 | if mockingEnabled { return _mock(fd, cmd, value) }
385 | #endif
386 | return fcntl(fd, cmd, value)
| `- error: 'fcntl' is unavailable: Variadic function is unavailable
387 | }
388 |
/root/.swiftpm/swift-sdks/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-15-a-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/bits/fcntl.h:46:5: note: 'fcntl' has been explicitly marked unavailable here
44 | * The return value depends on the operation.
45 | */
46 | int fcntl(int __fd, int __op, ...);
| `- note: 'fcntl' has been explicitly marked unavailable here
47 |
48 | __END_DECLS
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:397:10: error: 'fcntl' is unavailable: Variadic function is unavailable
395 | if mockingEnabled { return _mock(fd, cmd, pointer) }
396 | #endif
397 | return fcntl(fd, cmd, pointer)
| `- error: 'fcntl' is unavailable: Variadic function is unavailable
398 | }
399 |
/root/.swiftpm/swift-sdks/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-15-a-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/bits/fcntl.h:46:5: note: 'fcntl' has been explicitly marked unavailable here
44 | * The return value depends on the operation.
45 | */
46 | int fcntl(int __fd, int __op, ...);
| `- note: 'fcntl' has been explicitly marked unavailable here
47 |
48 | __END_DECLS
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:408:10: error: no exact matches in call to global function 'ioctl'
406 | if mockingEnabled { return _mock(fd, request) }
407 | #endif
408 | return ioctl(fd, request)
| `- error: no exact matches in call to global function 'ioctl'
409 | }
410 |
/root/.swiftpm/swift-sdks/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-15-a-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/bits/ioctl.h:43:5: note: candidate expects value of type 'Int32' for parameter #2 (got 'CUnsignedLong' (aka 'UInt'))
41 | * [ioctl(2)](http://man7.org/linux/man-pages/man2/ioctl.2.html) operates on device files.
42 | */
43 | int ioctl(int __fd, int __op, ...);
| `- note: candidate expects value of type 'Int32' for parameter #2 (got 'CUnsignedLong' (aka 'UInt'))
44 |
45 | /*
:
58 | #if !defined(BIONIC_IOCTL_NO_SIGNEDNESS_OVERLOAD)
59 | /* enable_if(1) just exists to break overloading ties. */
60 | int ioctl(int __fd, unsigned __op, ...) __overloadable __enable_if(1, "") __RENAME(ioctl);
| `- note: candidate expects value of type 'UInt32' for parameter #2 (got 'CUnsignedLong' (aka 'UInt'))
61 | #endif
62 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:420:10: error: no exact matches in call to global function 'ioctl'
418 | if mockingEnabled { return _mock(fd, request, value) }
419 | #endif
420 | return ioctl(fd, request, value)
| `- error: no exact matches in call to global function 'ioctl'
421 | }
422 |
/root/.swiftpm/swift-sdks/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-15-a-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/bits/ioctl.h:43:5: note: candidate expects value of type 'Int32' for parameter #2 (got 'CUnsignedLong' (aka 'UInt'))
41 | * [ioctl(2)](http://man7.org/linux/man-pages/man2/ioctl.2.html) operates on device files.
42 | */
43 | int ioctl(int __fd, int __op, ...);
| `- note: candidate expects value of type 'Int32' for parameter #2 (got 'CUnsignedLong' (aka 'UInt'))
44 |
45 | /*
:
58 | #if !defined(BIONIC_IOCTL_NO_SIGNEDNESS_OVERLOAD)
59 | /* enable_if(1) just exists to break overloading ties. */
60 | int ioctl(int __fd, unsigned __op, ...) __overloadable __enable_if(1, "") __RENAME(ioctl);
| `- note: candidate expects value of type 'UInt32' for parameter #2 (got 'CUnsignedLong' (aka 'UInt'))
61 | #endif
62 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:432:10: error: no exact matches in call to global function 'ioctl'
430 | if mockingEnabled { return _mock(fd, request, pointer) }
431 | #endif
432 | return ioctl(fd, request, pointer)
| `- error: no exact matches in call to global function 'ioctl'
433 | }
434 |
/root/.swiftpm/swift-sdks/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-15-a-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/bits/ioctl.h:43:5: note: candidate expects value of type 'Int32' for parameter #2 (got 'CUnsignedLong' (aka 'UInt'))
41 | * [ioctl(2)](http://man7.org/linux/man-pages/man2/ioctl.2.html) operates on device files.
42 | */
43 | int ioctl(int __fd, int __op, ...);
| `- note: candidate expects value of type 'Int32' for parameter #2 (got 'CUnsignedLong' (aka 'UInt'))
44 |
45 | /*
:
58 | #if !defined(BIONIC_IOCTL_NO_SIGNEDNESS_OVERLOAD)
59 | /* enable_if(1) just exists to break overloading ties. */
60 | int ioctl(int __fd, unsigned __op, ...) __overloadable __enable_if(1, "") __RENAME(ioctl);
| `- note: candidate expects value of type 'UInt32' for parameter #2 (got 'CUnsignedLong' (aka 'UInt'))
61 | #endif
62 |
[64/81] Compiling Socket Util.swift
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:106:9: error: cannot find 'Glibc' in scope
104 | #else
105 | internal var system_errno: CInt {
106 | get { Glibc.errno }
| `- error: cannot find 'Glibc' in scope
107 | set { Glibc.errno = newValue }
108 | }
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:107:9: error: cannot find 'Glibc' in scope
105 | internal var system_errno: CInt {
106 | get { Glibc.errno }
107 | set { Glibc.errno = newValue }
| `- error: cannot find 'Glibc' in scope
108 | }
109 | #endif
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:180:51: error: value of optional type 'UnsafeMutablePointer<UInt32>?' must be unwrapped to a value of type 'UnsafeMutablePointer<UInt32>'
178 | if mockingEnabled { return _mock(socket, level, option, value, length) }
179 | #endif
180 | return getsockopt(socket, level, option, value, length)
| |- error: value of optional type 'UnsafeMutablePointer<UInt32>?' must be unwrapped to a value of type 'UnsafeMutablePointer<UInt32>'
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
181 | }
182 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:202:26: error: value of optional type 'UnsafePointer<sockaddr>?' must be unwrapped to a value of type 'UnsafePointer<sockaddr>'
200 | if mockingEnabled { return _mock(socket, addr, len) }
201 | #endif
202 | return connect(socket, addr, len)
| |- error: value of optional type 'UnsafePointer<sockaddr>?' must be unwrapped to a value of type 'UnsafePointer<sockaddr>'
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
203 | }
204 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:229:49: error: value of optional type 'UnsafeMutablePointer<UnsafeMutablePointer<CInterop.AddressInfo>?>?' (aka 'Optional<UnsafeMutablePointer<Optional<UnsafeMutablePointer<addrinfo>>>>') must be unwrapped to a value of type 'UnsafeMutablePointer<UnsafeMutablePointer<CInterop.AddressInfo>?>' (aka 'UnsafeMutablePointer<Optional<UnsafeMutablePointer<addrinfo>>>')
227 | }
228 | #endif
229 | return getaddrinfo(hostname, servname, hints, res)
| |- error: value of optional type 'UnsafeMutablePointer<UnsafeMutablePointer<CInterop.AddressInfo>?>?' (aka 'Optional<UnsafeMutablePointer<Optional<UnsafeMutablePointer<addrinfo>>>>') must be unwrapped to a value of type 'UnsafeMutablePointer<UnsafeMutablePointer<CInterop.AddressInfo>?>' (aka 'UnsafeMutablePointer<Optional<UnsafeMutablePointer<addrinfo>>>')
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
230 | }
231 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:246:22: error: value of optional type 'UnsafePointer<CInterop.SocketAddress>?' (aka 'Optional<UnsafePointer<sockaddr>>') must be unwrapped to a value of type 'UnsafePointer<CInterop.SocketAddress>' (aka 'UnsafePointer<sockaddr>')
244 | }
245 | #endif
246 | return getnameinfo(sa, salen, host, hostlen, serv, servlen, flags)
| |- error: value of optional type 'UnsafePointer<CInterop.SocketAddress>?' (aka 'Optional<UnsafePointer<sockaddr>>') must be unwrapped to a value of type 'UnsafePointer<CInterop.SocketAddress>' (aka 'UnsafePointer<sockaddr>')
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
247 | }
248 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:246:39: error: cannot convert value of type 'UInt32' to expected argument type 'Int'
244 | }
245 | #endif
246 | return getnameinfo(sa, salen, host, hostlen, serv, servlen, flags)
| `- error: cannot convert value of type 'UInt32' to expected argument type 'Int'
247 | }
248 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:246:54: error: cannot convert value of type 'UInt32' to expected argument type 'Int'
244 | }
245 | #endif
246 | return getnameinfo(sa, salen, host, hostlen, serv, servlen, flags)
| `- error: cannot convert value of type 'UInt32' to expected argument type 'Int'
247 | }
248 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:288:23: error: value of optional type 'UnsafeRawPointer?' must be unwrapped to a value of type 'UnsafeRawPointer'
286 | if mockingEnabled { return _mockInt(socket, buffer, len, flags) }
287 | #endif
288 | return send(socket, buffer, len, flags)
| |- error: value of optional type 'UnsafeRawPointer?' must be unwrapped to a value of type 'UnsafeRawPointer'
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
289 | }
290 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:316:25: error: value of optional type 'UnsafeRawPointer?' must be unwrapped to a value of type 'UnsafeRawPointer'
314 | }
315 | #endif
316 | return sendto(socket, buffer, length, flags, dest_addr, dest_len)
| |- error: value of optional type 'UnsafeRawPointer?' must be unwrapped to a value of type 'UnsafeRawPointer'
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
317 | }
318 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:354:26: error: value of optional type 'UnsafePointer<CInterop.MessageHeader>?' (aka 'Optional<UnsafePointer<msghdr>>') must be unwrapped to a value of type 'UnsafePointer<CInterop.MessageHeader>' (aka 'UnsafePointer<msghdr>')
352 | if mockingEnabled { return _mockInt(socket, message, flags) }
353 | #endif
354 | return sendmsg(socket, message, flags)
| |- error: value of optional type 'UnsafePointer<CInterop.MessageHeader>?' (aka 'Optional<UnsafePointer<msghdr>>') must be unwrapped to a value of type 'UnsafePointer<CInterop.MessageHeader>' (aka 'UnsafePointer<msghdr>')
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
355 | }
356 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:365:26: error: value of optional type 'UnsafeMutablePointer<CInterop.MessageHeader>?' (aka 'Optional<UnsafeMutablePointer<msghdr>>') must be unwrapped to a value of type 'UnsafeMutablePointer<CInterop.MessageHeader>' (aka 'UnsafeMutablePointer<msghdr>')
363 | if mockingEnabled { return _mockInt(socket, message, flags) }
364 | #endif
365 | return recvmsg(socket, message, flags)
| |- error: value of optional type 'UnsafeMutablePointer<CInterop.MessageHeader>?' (aka 'Optional<UnsafeMutablePointer<msghdr>>') must be unwrapped to a value of type 'UnsafeMutablePointer<CInterop.MessageHeader>' (aka 'UnsafeMutablePointer<msghdr>')
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
366 | }
367 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:375:10: error: 'fcntl' is unavailable: Variadic function is unavailable
373 | if mockingEnabled { return _mock(fd, cmd) }
374 | #endif
375 | return fcntl(fd, cmd)
| `- error: 'fcntl' is unavailable: Variadic function is unavailable
376 | }
377 |
/root/.swiftpm/swift-sdks/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-15-a-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/bits/fcntl.h:46:5: note: 'fcntl' has been explicitly marked unavailable here
44 | * The return value depends on the operation.
45 | */
46 | int fcntl(int __fd, int __op, ...);
| `- note: 'fcntl' has been explicitly marked unavailable here
47 |
48 | __END_DECLS
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:386:10: error: 'fcntl' is unavailable: Variadic function is unavailable
384 | if mockingEnabled { return _mock(fd, cmd, value) }
385 | #endif
386 | return fcntl(fd, cmd, value)
| `- error: 'fcntl' is unavailable: Variadic function is unavailable
387 | }
388 |
/root/.swiftpm/swift-sdks/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-15-a-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/bits/fcntl.h:46:5: note: 'fcntl' has been explicitly marked unavailable here
44 | * The return value depends on the operation.
45 | */
46 | int fcntl(int __fd, int __op, ...);
| `- note: 'fcntl' has been explicitly marked unavailable here
47 |
48 | __END_DECLS
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:397:10: error: 'fcntl' is unavailable: Variadic function is unavailable
395 | if mockingEnabled { return _mock(fd, cmd, pointer) }
396 | #endif
397 | return fcntl(fd, cmd, pointer)
| `- error: 'fcntl' is unavailable: Variadic function is unavailable
398 | }
399 |
/root/.swiftpm/swift-sdks/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-15-a-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/bits/fcntl.h:46:5: note: 'fcntl' has been explicitly marked unavailable here
44 | * The return value depends on the operation.
45 | */
46 | int fcntl(int __fd, int __op, ...);
| `- note: 'fcntl' has been explicitly marked unavailable here
47 |
48 | __END_DECLS
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:408:10: error: no exact matches in call to global function 'ioctl'
406 | if mockingEnabled { return _mock(fd, request) }
407 | #endif
408 | return ioctl(fd, request)
| `- error: no exact matches in call to global function 'ioctl'
409 | }
410 |
/root/.swiftpm/swift-sdks/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-15-a-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/bits/ioctl.h:43:5: note: candidate expects value of type 'Int32' for parameter #2 (got 'CUnsignedLong' (aka 'UInt'))
41 | * [ioctl(2)](http://man7.org/linux/man-pages/man2/ioctl.2.html) operates on device files.
42 | */
43 | int ioctl(int __fd, int __op, ...);
| `- note: candidate expects value of type 'Int32' for parameter #2 (got 'CUnsignedLong' (aka 'UInt'))
44 |
45 | /*
:
58 | #if !defined(BIONIC_IOCTL_NO_SIGNEDNESS_OVERLOAD)
59 | /* enable_if(1) just exists to break overloading ties. */
60 | int ioctl(int __fd, unsigned __op, ...) __overloadable __enable_if(1, "") __RENAME(ioctl);
| `- note: candidate expects value of type 'UInt32' for parameter #2 (got 'CUnsignedLong' (aka 'UInt'))
61 | #endif
62 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:420:10: error: no exact matches in call to global function 'ioctl'
418 | if mockingEnabled { return _mock(fd, request, value) }
419 | #endif
420 | return ioctl(fd, request, value)
| `- error: no exact matches in call to global function 'ioctl'
421 | }
422 |
/root/.swiftpm/swift-sdks/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-15-a-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/bits/ioctl.h:43:5: note: candidate expects value of type 'Int32' for parameter #2 (got 'CUnsignedLong' (aka 'UInt'))
41 | * [ioctl(2)](http://man7.org/linux/man-pages/man2/ioctl.2.html) operates on device files.
42 | */
43 | int ioctl(int __fd, int __op, ...);
| `- note: candidate expects value of type 'Int32' for parameter #2 (got 'CUnsignedLong' (aka 'UInt'))
44 |
45 | /*
:
58 | #if !defined(BIONIC_IOCTL_NO_SIGNEDNESS_OVERLOAD)
59 | /* enable_if(1) just exists to break overloading ties. */
60 | int ioctl(int __fd, unsigned __op, ...) __overloadable __enable_if(1, "") __RENAME(ioctl);
| `- note: candidate expects value of type 'UInt32' for parameter #2 (got 'CUnsignedLong' (aka 'UInt'))
61 | #endif
62 |
/host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift:432:10: error: no exact matches in call to global function 'ioctl'
430 | if mockingEnabled { return _mock(fd, request, pointer) }
431 | #endif
432 | return ioctl(fd, request, pointer)
| `- error: no exact matches in call to global function 'ioctl'
433 | }
434 |
/root/.swiftpm/swift-sdks/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-15-a-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/bits/ioctl.h:43:5: note: candidate expects value of type 'Int32' for parameter #2 (got 'CUnsignedLong' (aka 'UInt'))
41 | * [ioctl(2)](http://man7.org/linux/man-pages/man2/ioctl.2.html) operates on device files.
42 | */
43 | int ioctl(int __fd, int __op, ...);
| `- note: candidate expects value of type 'Int32' for parameter #2 (got 'CUnsignedLong' (aka 'UInt'))
44 |
45 | /*
:
58 | #if !defined(BIONIC_IOCTL_NO_SIGNEDNESS_OVERLOAD)
59 | /* enable_if(1) just exists to break overloading ties. */
60 | int ioctl(int __fd, unsigned __op, ...) __overloadable __enable_if(1, "") __RENAME(ioctl);
| `- note: candidate expects value of type 'UInt32' for parameter #2 (got 'CUnsignedLong' (aka 'UInt'))
61 | #endif
62 |
[65/81] Compiling Socket SocketDescriptor.swift
[66/81] Compiling Socket SocketFlags.swift
[67/81] Compiling Socket SocketHelpers.swift
[68/81] Compiling Socket SocketOperations.swift
[69/81] Compiling Socket SocketOption.swift
[70/81] Compiling Socket IPv4SocketAddress.swift
/host/spi-builder-workspace/Sources/Socket/System/CInterop.swift:69:35: error: cannot find type 'sockaddr_un' in scope
67 |
68 | /// The C `sockaddr_in` type
69 | typealias UnixSocketAddress = sockaddr_un
| `- error: cannot find type 'sockaddr_un' in scope
70 |
71 | /// The C `sockaddr_in` type
/host/spi-builder-workspace/Sources/Socket/System/SocketAddress/UnixSocketAddress.swift:49:26: error: missing argument label 'path:' in call
47 | var socketAddress = CInterop.UnixSocketAddress()
48 | try socketAddress.withUnsafeMutablePointer(body)
49 | return self.init(socketAddress)
| `- error: missing argument label 'path:' in call
50 | }
51 |
/host/spi-builder-workspace/Sources/Socket/System/SocketAddress/UnixSocketAddress.swift:56:23: error: missing argument label 'path:' in call
54 | ) -> Self {
55 | pointer.withMemoryRebound(to: CInterop.UnixSocketAddress.self, capacity: 1) { pointer in
56 | Self.init(pointer.pointee)
| `- error: missing argument label 'path:' in call
57 | }
58 | }
[71/81] Compiling Socket IPv6SocketAddress.swift
/host/spi-builder-workspace/Sources/Socket/System/CInterop.swift:69:35: error: cannot find type 'sockaddr_un' in scope
67 |
68 | /// The C `sockaddr_in` type
69 | typealias UnixSocketAddress = sockaddr_un
| `- error: cannot find type 'sockaddr_un' in scope
70 |
71 | /// The C `sockaddr_in` type
/host/spi-builder-workspace/Sources/Socket/System/SocketAddress/UnixSocketAddress.swift:49:26: error: missing argument label 'path:' in call
47 | var socketAddress = CInterop.UnixSocketAddress()
48 | try socketAddress.withUnsafeMutablePointer(body)
49 | return self.init(socketAddress)
| `- error: missing argument label 'path:' in call
50 | }
51 |
/host/spi-builder-workspace/Sources/Socket/System/SocketAddress/UnixSocketAddress.swift:56:23: error: missing argument label 'path:' in call
54 | ) -> Self {
55 | pointer.withMemoryRebound(to: CInterop.UnixSocketAddress.self, capacity: 1) { pointer in
56 | Self.init(pointer.pointee)
| `- error: missing argument label 'path:' in call
57 | }
58 | }
[72/81] Compiling Socket LinkLayerSocketAddress.swift
/host/spi-builder-workspace/Sources/Socket/System/CInterop.swift:69:35: error: cannot find type 'sockaddr_un' in scope
67 |
68 | /// The C `sockaddr_in` type
69 | typealias UnixSocketAddress = sockaddr_un
| `- error: cannot find type 'sockaddr_un' in scope
70 |
71 | /// The C `sockaddr_in` type
/host/spi-builder-workspace/Sources/Socket/System/SocketAddress/UnixSocketAddress.swift:49:26: error: missing argument label 'path:' in call
47 | var socketAddress = CInterop.UnixSocketAddress()
48 | try socketAddress.withUnsafeMutablePointer(body)
49 | return self.init(socketAddress)
| `- error: missing argument label 'path:' in call
50 | }
51 |
/host/spi-builder-workspace/Sources/Socket/System/SocketAddress/UnixSocketAddress.swift:56:23: error: missing argument label 'path:' in call
54 | ) -> Self {
55 | pointer.withMemoryRebound(to: CInterop.UnixSocketAddress.self, capacity: 1) { pointer in
56 | Self.init(pointer.pointee)
| `- error: missing argument label 'path:' in call
57 | }
58 | }
[73/81] Compiling Socket UnixSocketAddress.swift
/host/spi-builder-workspace/Sources/Socket/System/CInterop.swift:69:35: error: cannot find type 'sockaddr_un' in scope
67 |
68 | /// The C `sockaddr_in` type
69 | typealias UnixSocketAddress = sockaddr_un
| `- error: cannot find type 'sockaddr_un' in scope
70 |
71 | /// The C `sockaddr_in` type
/host/spi-builder-workspace/Sources/Socket/System/SocketAddress/UnixSocketAddress.swift:49:26: error: missing argument label 'path:' in call
47 | var socketAddress = CInterop.UnixSocketAddress()
48 | try socketAddress.withUnsafeMutablePointer(body)
49 | return self.init(socketAddress)
| `- error: missing argument label 'path:' in call
50 | }
51 |
/host/spi-builder-workspace/Sources/Socket/System/SocketAddress/UnixSocketAddress.swift:56:23: error: missing argument label 'path:' in call
54 | ) -> Self {
55 | pointer.withMemoryRebound(to: CInterop.UnixSocketAddress.self, capacity: 1) { pointer in
56 | Self.init(pointer.pointee)
| `- error: missing argument label 'path:' in call
57 | }
58 | }
[74/81] Compiling Socket SocketAddressFamily.swift
/host/spi-builder-workspace/Sources/Socket/System/CInterop.swift:69:35: error: cannot find type 'sockaddr_un' in scope
67 |
68 | /// The C `sockaddr_in` type
69 | typealias UnixSocketAddress = sockaddr_un
| `- error: cannot find type 'sockaddr_un' in scope
70 |
71 | /// The C `sockaddr_in` type
/host/spi-builder-workspace/Sources/Socket/System/SocketAddress/UnixSocketAddress.swift:49:26: error: missing argument label 'path:' in call
47 | var socketAddress = CInterop.UnixSocketAddress()
48 | try socketAddress.withUnsafeMutablePointer(body)
49 | return self.init(socketAddress)
| `- error: missing argument label 'path:' in call
50 | }
51 |
/host/spi-builder-workspace/Sources/Socket/System/SocketAddress/UnixSocketAddress.swift:56:23: error: missing argument label 'path:' in call
54 | ) -> Self {
55 | pointer.withMemoryRebound(to: CInterop.UnixSocketAddress.self, capacity: 1) { pointer in
56 | Self.init(pointer.pointee)
| `- error: missing argument label 'path:' in call
57 | }
58 | }
error: emit-module command failed with exit code 1 (use -v to see invocation)
[75/81] Emitting module Socket
/host/spi-builder-workspace/Sources/Socket/System/CInterop.swift:69:35: error: cannot find type 'sockaddr_un' in scope
67 |
68 | /// The C `sockaddr_in` type
69 | typealias UnixSocketAddress = sockaddr_un
| `- error: cannot find type 'sockaddr_un' in scope
70 |
71 | /// The C `sockaddr_in` type
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:170:79: error: cannot find 'INADDR_ANY' in scope
168 |
169 | @_alwaysEmitIntoClient
170 | internal var _INADDR_ANY: CInterop.IPv4Address { CInterop.IPv4Address(s_addr: INADDR_ANY) }
| `- error: cannot find 'INADDR_ANY' in scope
171 |
172 | @_alwaysEmitIntoClient
/root/.swiftpm/swift-sdks/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-15-a-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/linux/in.h:218:9: note: macro 'INADDR_ANY' unavailable: structure not supported
216 | #define IN_CLASSE_NET 0xffffffff
217 | #define IN_CLASSE_NSHIFT 0
218 | #define INADDR_ANY ((unsigned long int) 0x00000000)
| `- note: macro 'INADDR_ANY' unavailable: structure not supported
219 | #define INADDR_BROADCAST ((unsigned long int) 0xffffffff)
220 | #define INADDR_NONE ((unsigned long int) 0xffffffff)
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:173:84: error: cannot convert value of type 'Int32' to expected argument type 'in_addr_t' (aka 'UInt32')
171 |
172 | @_alwaysEmitIntoClient
173 | internal var _INADDR_LOOPBACK: CInterop.IPv4Address { CInterop.IPv4Address(s_addr: INADDR_LOOPBACK) }
| `- error: cannot convert value of type 'Int32' to expected argument type 'in_addr_t' (aka 'UInt32')
174 |
175 | @_alwaysEmitIntoClient
error: compile command failed due to signal 6 (use -v to see invocation)
swift-frontend: /home/build-user/swift/include/swift/AST/GenericSignature.h:139: const GenericSignatureImpl *swift::GenericSignature::operator->() const: Assertion `Ptr && "Cannot dereference a null GenericSignature!"' failed.
Please submit a bug report (https://swift.org/contributing/#reporting-bugs) and include the crash backtrace.
Stack dump:
0. Program arguments: /root/.local/share/swiftly/toolchains/6.2-snapshot-2025-05-15/usr/bin/swift-frontend -frontend -c -primary-file /host/spi-builder-workspace/Sources/Socket/Socket.swift -primary-file /host/spi-builder-workspace/Sources/Socket/SocketContinuation.swift -primary-file /host/spi-builder-workspace/Sources/Socket/SocketManager.swift -primary-file /host/spi-builder-workspace/Sources/Socket/SocketManager/AsyncSocketManager.swift -primary-file /host/spi-builder-workspace/Sources/Socket/SocketManager/CFSocketManager.swift -primary-file /host/spi-builder-workspace/Sources/Socket/System/CInternetAddress.swift /host/spi-builder-workspace/Sources/Socket/System/CInterop.swift /host/spi-builder-workspace/Sources/Socket/System/CSocketAddress.swift /host/spi-builder-workspace/Sources/Socket/System/Constants.swift /host/spi-builder-workspace/Sources/Socket/System/Errno.swift /host/spi-builder-workspace/Sources/Socket/System/FileChange.swift /host/spi-builder-workspace/Sources/Socket/System/FileEvent.swift /host/spi-builder-workspace/Sources/Socket/System/FileFlags.swift /host/spi-builder-workspace/Sources/Socket/System/InputOutput/IOControl.swift /host/spi-builder-workspace/Sources/Socket/System/InputOutput/IODirection.swift /host/spi-builder-workspace/Sources/Socket/System/InputOutput/IOOperations.swift /host/spi-builder-workspace/Sources/Socket/System/InputOutput/IOType.swift /host/spi-builder-workspace/Sources/Socket/System/InternetProtocol.swift /host/spi-builder-workspace/Sources/Socket/System/MessageFlags.swift /host/spi-builder-workspace/Sources/Socket/System/NetworkInterface.swift /host/spi-builder-workspace/Sources/Socket/System/NetworkOrder.swift /host/spi-builder-workspace/Sources/Socket/System/Poll.swift /host/spi-builder-workspace/Sources/Socket/System/SocketAddress.swift /host/spi-builder-workspace/Sources/Socket/System/SocketAddress/IPv4SocketAddress.swift /host/spi-builder-workspace/Sources/Socket/System/SocketAddress/IPv6SocketAddress.swift /host/spi-builder-workspace/Sources/Socket/System/SocketAddress/LinkLayerSocketAddress.swift /host/spi-builder-workspace/Sources/Socket/System/SocketAddress/UnixSocketAddress.swift /host/spi-builder-workspace/Sources/Socket/System/SocketAddressFamily.swift /host/spi-builder-workspace/Sources/Socket/System/SocketDescriptor.swift /host/spi-builder-workspace/Sources/Socket/System/SocketFlags.swift /host/spi-builder-workspace/Sources/Socket/System/SocketHelpers.swift /host/spi-builder-workspace/Sources/Socket/System/SocketOperations.swift /host/spi-builder-workspace/Sources/Socket/System/SocketOption.swift /host/spi-builder-workspace/Sources/Socket/System/SocketOptionID.swift /host/spi-builder-workspace/Sources/Socket/System/SocketOptionLevel.swift /host/spi-builder-workspace/Sources/Socket/System/SocketProtocol.swift /host/spi-builder-workspace/Sources/Socket/System/SocketProtocol/IPv4Protocol.swift /host/spi-builder-workspace/Sources/Socket/System/SocketProtocol/IPv6Protocol.swift /host/spi-builder-workspace/Sources/Socket/System/SocketProtocol/LinkLayerProtocol.swift /host/spi-builder-workspace/Sources/Socket/System/SocketProtocol/UnixProtocol.swift /host/spi-builder-workspace/Sources/Socket/System/SocketType.swift /host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift /host/spi-builder-workspace/Sources/Socket/System/Util.swift -supplementary-output-file-map /tmp/TemporaryDirectory.fmqu30/supplementaryOutputs-1 -target aarch64-unknown-linux-android28 -Xllvm -aarch64-use-tbi -disable-objc-interop -sdk /root/.swiftpm/swift-sdks/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-15-a-android-0.1.artifactbundle/swift-android/ndk-sysroot -I /host/spi-builder-workspace/.build/aarch64-unknown-linux-android28/debug/Modules -no-color-diagnostics -Xcc -fno-color-diagnostics -enable-testing -g -debug-info-format=dwarf -dwarf-version=4 -module-cache-path /host/spi-builder-workspace/.build/aarch64-unknown-linux-android28/debug/ModuleCache -swift-version 6 -Onone -D SWIFT_PACKAGE -D DEBUG -D SWIFT_MODULE_RESOURCE_BUNDLE_UNAVAILABLE -empty-abi-descriptor -resource-dir /root/.swiftpm/swift-sdks/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-15-a-android-0.1.artifactbundle/swift-android/swift-resources/usr/lib/swift-aarch64 -enable-anonymous-context-mangled-names -file-compilation-dir /host/spi-builder-workspace -Xcc -fmodule-map-file=/host/spi-builder-workspace/Sources/CSocket/include/module.modulemap -Xcc -I -Xcc /host/spi-builder-workspace/Sources/CSocket/include -Xcc -fmodule-map-file=/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/CSystem/include/module.modulemap -Xcc -I -Xcc /host/spi-builder-workspace/.build/checkouts/swift-system/Sources/CSystem/include -Xcc --sysroot -Xcc /root/.swiftpm/swift-sdks/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-15-a-android-0.1.artifactbundle/swift-android/ndk-sysroot -Xcc -fPIC -Xcc -g -Xcc -fno-omit-frame-pointer -no-auto-bridging-header-chaining -module-name Socket -package-name spi_builder_workspace -in-process-plugin-server-path /root/.local/share/swiftly/toolchains/6.2-snapshot-2025-05-15/usr/lib/swift/host/libSwiftInProcPluginServer.so -plugin-path /root/.local/share/swiftly/toolchains/6.2-snapshot-2025-05-15/usr/lib/swift/host/plugins -plugin-path /root/.local/share/swiftly/toolchains/6.2-snapshot-2025-05-15/usr/local/lib/swift/host/plugins -parse-as-library -o /host/spi-builder-workspace/.build/aarch64-unknown-linux-android28/debug/Socket.build/Socket.swift.o -o /host/spi-builder-workspace/.build/aarch64-unknown-linux-android28/debug/Socket.build/SocketContinuation.swift.o -o /host/spi-builder-workspace/.build/aarch64-unknown-linux-android28/debug/Socket.build/SocketManager.swift.o -o /host/spi-builder-workspace/.build/aarch64-unknown-linux-android28/debug/Socket.build/AsyncSocketManager.swift.o -o /host/spi-builder-workspace/.build/aarch64-unknown-linux-android28/debug/Socket.build/CFSocketManager.swift.o -o /host/spi-builder-workspace/.build/aarch64-unknown-linux-android28/debug/Socket.build/CInternetAddress.swift.o -index-store-path /host/spi-builder-workspace/.build/aarch64-unknown-linux-android28/debug/index/store -index-system-modules
1. Swift version 6.2-dev (LLVM 74f18b3ab32b72c, Swift 245514cab31b823)
2. Compiling with the current language version
3. While evaluating request ASTLoweringRequest(Lowering AST to SIL for file "/host/spi-builder-workspace/Sources/Socket/SocketManager/AsyncSocketManager.swift")
4. While silgen emitFunction SIL function "@$s6Socket05AsyncA7ManagerC15startMonitoring33_2B1509B1E2EA90CA2DC4053AF21AD7DALLyyF".
for 'startMonitoring()' (at /host/spi-builder-workspace/Sources/Socket/SocketManager/AsyncSocketManager.swift:209:5)
5. While silgen closureexpr SIL function "@$s6Socket05AsyncA7ManagerC15startMonitoring33_2B1509B1E2EA90CA2DC4053AF21AD7DALLyyFyyYacfU_".
for expression at [/host/spi-builder-workspace/Sources/Socket/SocketManager/AsyncSocketManager.swift:215:70 - line:217:9] RangeText="{ [unowned self] in
await self.run()
"
6. While verifying SIL function "@$s6Socket05AsyncA7ManagerC15startMonitoring33_2B1509B1E2EA90CA2DC4053AF21AD7DALLyyFyyYacfU_".
for expression at [/host/spi-builder-workspace/Sources/Socket/SocketManager/AsyncSocketManager.swift:215:70 - line:217:9] RangeText="{ [unowned self] in
await self.run()
"
Stack dump without symbol names (ensure you have llvm-symbolizer in your PATH or set the environment var `LLVM_SYMBOLIZER_PATH` to point to it):
0 swift-frontend 0x000055fa30f8cc58
1 swift-frontend 0x000055fa30f8a77e
2 swift-frontend 0x000055fa30f8d2f1
3 libc.so.6 0x00007efe43230520
4 libc.so.6 0x00007efe432849fc pthread_kill + 300
5 libc.so.6 0x00007efe43230476 raise + 22
6 libc.so.6 0x00007efe432167f3 abort + 211
7 libc.so.6 0x00007efe4321671b
8 libc.so.6 0x00007efe43227e96
9 swift-frontend 0x000055fa2a73c85b
10 swift-frontend 0x000055fa2a7340db
11 swift-frontend 0x000055fa29b445e7
12 swift-frontend 0x000055fa29b42fcf
13 swift-frontend 0x000055fa29b4cb76
14 swift-frontend 0x000055fa2a67e1ee
15 swift-frontend 0x000055fa29b464c5
16 swift-frontend 0x000055fa29bc66e0
17 swift-frontend 0x000055fa29bc6175
18 swift-frontend 0x000055fa29bc5e1c
19 swift-frontend 0x000055fa29bc5d93
20 swift-frontend 0x000055fa29bb888d
21 swift-frontend 0x000055fa29baee26
22 swift-frontend 0x000055fa29ba1a3c
23 swift-frontend 0x000055fa29b7a874
24 swift-frontend 0x000055fa29b7aa84
25 swift-frontend 0x000055fa29b7a7ac
26 swift-frontend 0x000055fa29b7a94a
27 swift-frontend 0x000055fa29bbb88a
28 swift-frontend 0x000055fa29baeba9
29 swift-frontend 0x000055fa29ba1a3c
30 swift-frontend 0x000055fa29b7a874
31 swift-frontend 0x000055fa29c7d082
32 swift-frontend 0x000055fa29cb6376
33 swift-frontend 0x000055fa29c9f96c
34 swift-frontend 0x000055fa29cb3fa5
35 swift-frontend 0x000055fa29cc2a5a
36 swift-frontend 0x000055fa29cc1d3d
37 swift-frontend 0x000055fa29ca514c
38 swift-frontend 0x000055fa29ca2960
39 swift-frontend 0x000055fa29baead4
40 swift-frontend 0x000055fa29ba21d6
41 swift-frontend 0x000055fa29c5d5fa
42 swift-frontend 0x000055fa29c5bcdd
43 swift-frontend 0x000055fa29bd429a
44 swift-frontend 0x000055fa29b43bb2
45 swift-frontend 0x000055fa29b451ee
46 swift-frontend 0x000055fa29b421ec
47 swift-frontend 0x000055fa29c7b67a
48 swift-frontend 0x000055fa29c76238
49 swift-frontend 0x000055fa29c7618d
50 swift-frontend 0x000055fa29b482b3
51 swift-frontend 0x000055fa29b48a04
52 swift-frontend 0x000055fa29c5b5d6
53 swift-frontend 0x000055fa29b4d9b3
54 swift-frontend 0x000055fa29b4938f
55 swift-frontend 0x000055fa29327c18
56 swift-frontend 0x000055fa293397da
57 swift-frontend 0x000055fa2932abbe
58 swift-frontend 0x000055fa29329c5c
59 swift-frontend 0x000055fa290a55ab
60 libc.so.6 0x00007efe43217d90
61 libc.so.6 0x00007efe43217e40 __libc_start_main + 128
62 swift-frontend 0x000055fa290a45a5
BUILD FAILURE 6.2 android