Build Information
Failed to build swift-async-dns-resolver, reference main (2836c5), with Swift 6.2 for Android on 4 Nov 2025 16:16:25 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:android-6.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.68.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/apple/swift-async-dns-resolver.git
Reference: main
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: git branch -m <name>
From https://github.com/apple/swift-async-dns-resolver
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 2836c57 Drop Swift 5.10 support (#75)
Submodule path 'Sources/CAsyncDNSResolver/c-ares': checked out '6360e96b5cf8e5980c887ce58ef727e53d77243a'
Submodule 'c-ares' (https://github.com/c-ares/c-ares.git) registered for path 'Sources/CAsyncDNSResolver/c-ares'
Cloning into '/host/spi-builder-workspace/Sources/CAsyncDNSResolver/c-ares'...
Cloned https://github.com/apple/swift-async-dns-resolver.git
Revision (git rev-parse @):
2836c57c4c7c784569331cc35a4fe18941f6c796
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/apple/swift-async-dns-resolver.git at main
========================================
Build
========================================
Selected platform: android
Swift version: 6.2
Building package at path: $PWD
https://github.com/apple/swift-async-dns-resolver.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:android-6.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1
android-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:d70d83f328e9f1ae04a4e17e63e2d335ae10639f90ee796a5fe3bfb139eab948
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.2-latest
Building for debugging...
[0/62] Compiling ares__get_hostent.c
[1/62] Compiling ares__close_sockets.c
[2/62] Compiling ares__addrinfo_localhost.c
[3/62] Compiling ares__read_line.c
[4/62] Compiling ares__readaddrinfo.c
[5/62] Compiling ares__addrinfo2hostent.c
[6/62] Compiling windows_port.c
[7/62] Compiling inet_ntop.c
[8/62] Compiling ares__parse_into_addrinfo.c
[9/62] Compiling bitncmp.c
[10/62] Compiling inet_net_pton.c
[11/62] Compiling ares_version.c
[12/62] Compiling ares_writev.c
[13/62] Write swift-version--11D90AFD9DD3AB2.txt
[14/62] Compiling ares__sortaddrinfo.c
[15/62] Compiling ares_strcasecmp.c
[16/62] Compiling ares_timeout.c
[17/62] Compiling ares_send.c
[18/62] Compiling ares_strsplit.c
[18/62] Compiling ares_strdup.c
[20/62] Compiling ares_rand.c
[20/62] Compiling ares_strerror.c
[22/62] Compiling ares_search.c
[23/62] Compiling ares_query.c
[24/62] Compiling ares_platform.c
[25/62] Compiling ares_process.c
[26/62] Compiling ares_parse_ptr_reply.c
[27/62] Compiling ares_parse_srv_reply.c
[28/62] Compiling ares_parse_uri_reply.c
[29/62] Compiling ares_parse_txt_reply.c
[30/62] Compiling ares_parse_ns_reply.c
[30/62] Compiling ares_parse_soa_reply.c
[32/62] Compiling ares_parse_mx_reply.c
[33/62] Compiling ares_parse_naptr_reply.c
[34/62] Compiling ares_options.c
[35/62] Compiling ares_parse_a_reply.c
[36/62] Compiling ares_parse_caa_reply.c
[37/62] Compiling ares_parse_aaaa_reply.c
[38/62] Compiling ares_nowarn.c
[39/62] Compiling ares_mkquery.c
[40/62] Compiling ares_llist.c
[41/62] Compiling ares_library_init.c
[42/62] Compiling ares_getsock.c
[43/62] Compiling ares_getenv.c
[44/62] Compiling ares_gethostbyname.c
[45/62] Compiling ares_gethostbyaddr.c
[46/62] Compiling ares_getnameinfo.c
[47/62] Compiling ares_free_string.c
[48/62] Compiling ares_free_hostent.c
[49/62] Compiling ares_getaddrinfo.c
[50/62] Compiling ares_expand_name.c
[50/62] Compiling ares_expand_string.c
[52/62] Compiling ares_freeaddrinfo.c
[53/62] Compiling ares_init.c
[54/62] Write sources
[55/62] Compiling ares_fds.c
[56/62] Compiling ares_destroy.c
[57/62] Compiling ares_data.c
[58/62] Compiling ares_cancel.c
[59/62] Compiling ares_create_query.c
[60/62] Compiling ares_android.c
[61/62] Compiling ares__timeval.c
[63/70] Compiling AsyncDNSResolver Errors.swift
[64/71] Compiling AsyncDNSResolver Errors_dnssd.swift
[65/71] Compiling AsyncDNSResolver DNSResolver_dnssd.swift
[66/71] Compiling AsyncDNSResolver Errors_c-ares.swift
[67/71] Compiling AsyncDNSResolver AresOptions.swift
[68/71] Compiling AsyncDNSResolver AsyncDNSResolver.swift
[69/71] Emitting module AsyncDNSResolver
[70/71] Compiling AsyncDNSResolver AresChannel.swift
[71/71] Compiling AsyncDNSResolver DNSResolver_c-ares.swift
/host/spi-builder-workspace/Sources/AsyncDNSResolver/c-ares/DNSResolver_c-ares.swift:672:53: error: value of optional type 'UnsafeMutablePointer<Int8>?' must be unwrapped to a value of type 'UnsafeMutablePointer<Int8>'
670 | return addressBytes.withUnsafeMutableBufferPointer { addressBytesPtr -> String? in
671 | // The returned pointer is the same as addressBytesPtr.baseAddress but nil on error.
672 | if inet_ntop(family, bytes, addressBytesPtr.baseAddress, socklen_t(length)) == nil {
| |- error: value of optional type 'UnsafeMutablePointer<Int8>?' must be unwrapped to a value of type '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'
673 | return nil
674 | }
BUILD FAILURE 6.2 android