Build Information
Failed to build aws-crt-swift, reference main (c03abd), with Swift 6.1 for Wasm on 29 Apr 2026 00:38:21 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/awslabs/aws-crt-swift.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/awslabs/aws-crt-swift
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at c03abd4 builder -> v0.9.92 (#381)
Submodule path 'aws-common-runtime/aws-c-auth': checked out 'fc4b87655e5cd3921f18d1859193c74af4102071'
Submodule path 'aws-common-runtime/aws-c-cal': checked out '1cb9412158890201a6ffceed779f90fe1f48180c'
Submodule path 'aws-common-runtime/aws-c-common': checked out '95515a8b1ff40d5bb14f965ca4cbbe99ad1843df'
Submodule path 'aws-common-runtime/aws-c-compression': checked out 'd8264e64f698341eb03039b96b4f44702a9b3f83'
Submodule path 'aws-common-runtime/aws-c-event-stream': checked out '66cafb1d8bb1bfeb62a7601ce03d1a6fcd4798ed'
Submodule path 'aws-common-runtime/aws-c-http': checked out '0d8e1a933f46b8af984dfc8168ebcdf32748c184'
Submodule path 'aws-common-runtime/aws-c-io': checked out 'bfb0819d3906502483611ce832a5ec6b897c8421'
Submodule path 'aws-common-runtime/aws-c-mqtt': checked out '3c2ceee52b66db42228053a4fb55210c8f8433a0'
Submodule path 'aws-common-runtime/aws-c-sdkutils': checked out 'f678bda9e21f7217e4bbf35e0d1ea59540687933'
Submodule path 'aws-common-runtime/aws-checksums': checked out '1d5f2f1f3e5d013aae8810878ceb5b3f6f258c4e'
Submodule path 'aws-common-runtime/s2n': checked out 'f5e5e83031be60691f22442373fb8371274fcd56'
Submodule path 'aws-common-runtime/s2n/tests/cbmc/aws-verification-model-for-libcrypto': checked out '5d420698d032de0613688a82b2db5a4791b85284'
Submodule 'aws-common-runtime/aws-c-auth' (https://github.com/awslabs/aws-c-auth.git) registered for path 'aws-common-runtime/aws-c-auth'
Submodule 'aws-common-runtime/aws-c-cal' (https://github.com/awslabs/aws-c-cal) registered for path 'aws-common-runtime/aws-c-cal'
Submodule 'aws-common-runtime/aws-c-common' (https://github.com/awslabs/aws-c-common.git) registered for path 'aws-common-runtime/aws-c-common'
Submodule 'aws-common-runtime/aws-c-compression' (https://github.com/awslabs/aws-c-compression.git) registered for path 'aws-common-runtime/aws-c-compression'
Submodule 'aws-common-runtime/aws-c-event-stream' (https://github.com/awslabs/aws-c-event-stream) registered for path 'aws-common-runtime/aws-c-event-stream'
Submodule 'aws-common-runtime/aws-c-http' (https://github.com/awslabs/aws-c-http.git) registered for path 'aws-common-runtime/aws-c-http'
Submodule 'aws-common-runtime/aws-c-io' (https://github.com/awslabs/aws-c-io.git) registered for path 'aws-common-runtime/aws-c-io'
Submodule 'aws-common-runtime/aws-c-mqtt' (https://github.com/awslabs/aws-c-mqtt.git) registered for path 'aws-common-runtime/aws-c-mqtt'
Submodule 'aws-common-runtime/aws-c-sdkutils' (https://github.com/awslabs/aws-c-sdkutils) registered for path 'aws-common-runtime/aws-c-sdkutils'
Submodule 'aws-common-runtime/aws-checksums' (https://github.com/awslabs/aws-checksums) registered for path 'aws-common-runtime/aws-checksums'
Submodule 'aws-common-runtime/s2n' (https://github.com/aws/s2n-tls.git) registered for path 'aws-common-runtime/s2n'
Cloning into '/host/spi-builder-workspace/aws-common-runtime/aws-c-auth'...
Cloning into '/host/spi-builder-workspace/aws-common-runtime/aws-c-cal'...
Cloning into '/host/spi-builder-workspace/aws-common-runtime/aws-c-common'...
Cloning into '/host/spi-builder-workspace/aws-common-runtime/aws-c-compression'...
Cloning into '/host/spi-builder-workspace/aws-common-runtime/aws-c-event-stream'...
Cloning into '/host/spi-builder-workspace/aws-common-runtime/aws-c-http'...
Cloning into '/host/spi-builder-workspace/aws-common-runtime/aws-c-io'...
Cloning into '/host/spi-builder-workspace/aws-common-runtime/aws-c-mqtt'...
Cloning into '/host/spi-builder-workspace/aws-common-runtime/aws-c-sdkutils'...
Cloning into '/host/spi-builder-workspace/aws-common-runtime/aws-checksums'...
Cloning into '/host/spi-builder-workspace/aws-common-runtime/s2n'...
Submodule 'tests/cbmc/aws-verification-model-for-libcrypto' (https://github.com/awslabs/aws-verification-model-for-libcrypto.git) registered for path 'aws-common-runtime/s2n/tests/cbmc/aws-verification-model-for-libcrypto'
Cloning into '/host/spi-builder-workspace/aws-common-runtime/s2n/tests/cbmc/aws-verification-model-for-libcrypto'...
Cloned https://github.com/awslabs/aws-crt-swift.git
Revision (git rev-parse @):
c03abd459cf82685f1a4bdb78b363d8bbd9822be
SUCCESS checkout https://github.com/awslabs/aws-crt-swift.git at main
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.1
Building package at path: $PWD
https://github.com/awslabs/aws-crt-swift.git
https://github.com/awslabs/aws-crt-swift.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
wasm-6.1-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:276d66a16377d3ee059b2e3429cbc1154d9f01e42871e5d702fd5d8b9044d93d
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.1-latest
warning: 'spi-builder-workspace': Invalid Exclude '/host/spi-builder-workspace/aws-common-runtime/s2n/docker-images': File not found.
warning: you may be able to install libcrypto using your system-packager:
apt-get install openssl libssl-dev
warning: you may be able to install libcrypto using your system-packager:
apt-get install openssl libssl-dev
Building for debugging...
In file included from /host/spi-builder-workspace/aws-common-runtime/aws-c-event-stream/source/event_stream_channel_handler.c:16:
In file included from /host/spi-builder-workspace/aws-common-runtime/aws-c-event-stream/include/aws/event-stream/event_stream.h:11:
In file included from /host/spi-builder-workspace/aws-common-runtime/aws-c-common/include/aws/common/logging.h:11:
/host/spi-builder-workspace/aws-common-runtime/aws-c-common/include/aws/common/thread.h:12:14: fatal error: 'pthread.h' file not found
12 | # include <pthread.h>
| ^~~~~~~~~~~
1 error generated.
[0/426] Compiling event_stream_channel_handler.c
In file included from /host/spi-builder-workspace/aws-common-runtime/aws-c-auth/source/aws_profile.c:6:
In file included from /host/spi-builder-workspace/aws-common-runtime/aws-c-auth/include/aws/auth/private/aws_profile.h:9:
In file included from /host/spi-builder-workspace/aws-common-runtime/aws-c-auth/include/aws/auth/auth.h:11:
In file included from /host/spi-builder-workspace/aws-common-runtime/aws-c-io/include/aws/io/logging.h:11:
In file included from /host/spi-builder-workspace/aws-common-runtime/aws-c-common/include/aws/common/logging.h:11:
/host/spi-builder-workspace/aws-common-runtime/aws-c-common/include/aws/common/thread.h:12:14: fatal error: 'pthread.h' file not found
12 | # include <pthread.h>
| ^~~~~~~~~~~
1 error generated.
[0/426] Compiling aws_profile.c
In file included from /host/spi-builder-workspace/aws-common-runtime/aws-c-auth/source/aws_imds_client.c:6:
In file included from /host/spi-builder-workspace/aws-common-runtime/aws-c-auth/include/aws/auth/aws_imds_client.h:8:
In file included from /host/spi-builder-workspace/aws-common-runtime/aws-c-auth/include/aws/auth/auth.h:11:
In file included from /host/spi-builder-workspace/aws-common-runtime/aws-c-io/include/aws/io/logging.h:11:
In file included from /host/spi-builder-workspace/aws-common-runtime/aws-c-common/include/aws/common/logging.h:11:
/host/spi-builder-workspace/aws-common-runtime/aws-c-common/include/aws/common/thread.h:12:14: fatal error: 'pthread.h' file not found
12 | # include <pthread.h>
| ^~~~~~~~~~~
[0/426] Compiling aws_imds_client.c
In file included from /host/spi-builder-workspace/aws-common-runtime/aws-c-auth/source/credentials_provider_cached.c:6:
In file included from /host/spi-builder-workspace/aws-common-runtime/aws-c-auth/include/aws/auth/credentials.h:9:
In file included from /host/spi-builder-workspace/aws-common-runtime/aws-c-auth/include/aws/auth/auth.h:11:
In file included from /host/spi-builder-workspace/aws-common-runtime/aws-c-io/include/aws/io/logging.h:11:
In file included from /host/spi-builder-workspace/aws-common-runtime/aws-c-common/include/aws/common/logging.h:11:
/host/spi-builder-workspace/aws-common-runtime/aws-c-common/include/aws/common/thread.h:12:14: fatal error: 'pthread.h' file not found
12 | # include <pthread.h>
| ^~~~~~~~~~~
[0/426] Compiling credentials_provider_cached.c
In file included from /host/spi-builder-workspace/aws-common-runtime/aws-c-auth/source/aws_http_credentials_provider.c:6:
In file included from /host/spi-builder-workspace/aws-common-runtime/aws-c-auth/include/aws/auth/credentials.h:9:
In file included from /host/spi-builder-workspace/aws-common-runtime/aws-c-auth/include/aws/auth/auth.h:11:
In file included from /host/spi-builder-workspace/aws-common-runtime/aws-c-io/include/aws/io/logging.h:11:
In file included from /host/spi-builder-workspace/aws-common-runtime/aws-c-common/include/aws/common/logging.h:11:
/host/spi-builder-workspace/aws-common-runtime/aws-c-common/include/aws/common/thread.h:12:14: fatal error: 'pthread.h' file not found
12 | # include <pthread.h>
| ^~~~~~~~~~~
[0/426] Compiling aws_http_credentials_provider.c
In file included from /host/spi-builder-workspace/aws-common-runtime/aws-c-event-stream/source/event_stream_rpc.c:5:
In file included from /host/spi-builder-workspace/aws-common-runtime/aws-c-event-stream/include/aws/event-stream/event_stream_rpc.h:7:
In file included from /host/spi-builder-workspace/aws-common-runtime/aws-c-event-stream/include/aws/event-stream/event_stream.h:11:
In file included from /host/spi-builder-workspace/aws-common-runtime/aws-c-common/include/aws/common/logging.h:11:
/host/spi-builder-workspace/aws-common-runtime/aws-c-common/include/aws/common/thread.h:12:14: fatal error: 'pthread.h' file not found
12 | # include <pthread.h>
| ^~~~~~~~~~~
1 error generated.
[0/426] Compiling event_stream_rpc.c
In file included from /host/spi-builder-workspace/aws-common-runtime/aws-c-auth/source/aws_signing.c:6:
In file included from /host/spi-builder-workspace/aws-common-runtime/aws-c-auth/include/aws/auth/private/aws_signing.h:9:
In file included from /host/spi-builder-workspace/aws-common-runtime/aws-c-auth/include/aws/auth/auth.h:11:
In file included from /host/spi-builder-workspace/aws-common-runtime/aws-c-io/include/aws/io/logging.h:11:
In file included from /host/spi-builder-workspace/aws-common-runtime/aws-c-common/include/aws/common/logging.h:11:
/host/spi-builder-workspace/aws-common-runtime/aws-c-common/include/aws/common/thread.h:12:14: fatal error: 'pthread.h' file not found
12 | # include <pthread.h>
| ^~~~~~~~~~~
[0/426] Compiling aws_signing.c
[0/426] Write swift-version-24593BA9C3E375BF.txt
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:276d66a16377d3ee059b2e3429cbc1154d9f01e42871e5d702fd5d8b9044d93d
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.1-latest
warning: 'spi-builder-workspace': Invalid Exclude '/host/spi-builder-workspace/aws-common-runtime/s2n/docker-images': File not found.
warning: you may be able to install libcrypto using your system-packager:
apt-get install openssl libssl-dev
warning: you may be able to install libcrypto using your system-packager:
apt-get install openssl libssl-dev
[0/1] Planning build
Building for debugging...
[0/426] Copying PrivacyInfo.xcprivacy
[1/426] Compiling s2n_rfc5952.c
[2/426] Compiling s2n_safety.c
In file included from /host/spi-builder-workspace/aws-common-runtime/s2n/utils/s2n_timer.c:18:
In file included from /host/spi-builder-workspace/aws-common-runtime/s2n/tls/s2n_config.h:24:
/host/spi-builder-workspace/aws-common-runtime/s2n/crypto/s2n_certificate.h:18:10: fatal error: 'openssl/x509.h' file not found
18 | #include <openssl/x509.h>
| ^~~~~~~~~~~~~~~~
1 error generated.
[3/426] Compiling s2n_timer.c
In file included from /host/spi-builder-workspace/aws-common-runtime/s2n/utils/s2n_map.c:16:
In file included from /host/spi-builder-workspace/aws-common-runtime/s2n/utils/s2n_map.h:19:
/host/spi-builder-workspace/aws-common-runtime/s2n/crypto/s2n_hash.h:18:10: fatal error: 'openssl/md5.h' file not found
18 | #include <openssl/md5.h>
| ^~~~~~~~~~~~~~~
[3/426] Compiling s2n_map.c
/host/spi-builder-workspace/aws-common-runtime/s2n/utils/s2n_random.c:56:10: fatal error: 'openssl/rand.h' file not found
56 | #include <openssl/rand.h>
| ^~~~~~~~~~~~~~~~
1 error generated.
[3/426] Compiling s2n_random.c
In file included from /host/spi-builder-workspace/aws-common-runtime/s2n/utils/s2n_socket.c:16:
In file included from /host/spi-builder-workspace/aws-common-runtime/s2n/utils/s2n_socket.h:18:
In file included from /host/spi-builder-workspace/aws-common-runtime/s2n/tls/s2n_connection.h:19:
/root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/WASI.sdk/include/wasm32-wasi/signal.h:2:2: error: "wasm lacks signal support; to enable minimal signal emulation, compile with -D_WASI_EMULATED_SIGNAL and link with -lwasi-emulated-signal"
2 | #error "wasm lacks signal support; to enable minimal signal emulation, \
| ^
In file included from /host/spi-builder-workspace/aws-common-runtime/s2n/utils/s2n_socket.c:16:
In file included from /host/spi-builder-workspace/aws-common-runtime/s2n/utils/s2n_socket.h:18:
In file included from /host/spi-builder-workspace/aws-common-runtime/s2n/tls/s2n_connection.h:23:
/host/spi-builder-workspace/aws-common-runtime/s2n/crypto/s2n_hash.h:18:10: fatal error: 'openssl/md5.h' file not found
18 | #include <openssl/md5.h>
| ^~~~~~~~~~~~~~~
2 errors generated.
[3/426] Compiling s2n_socket.c
[3/426] Compiling s2n_io.c
[3/426] Compiling s2n_init.c
In file included from /host/spi-builder-workspace/aws-common-runtime/s2n/utils/s2n_mem.c:24:
/root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/WASI.sdk/include/wasm32-wasi/sys/mman.h:2:2: error: "WASI lacks a true mmap; to enable minimal mmap emulation, compile with -D_WASI_EMULATED_MMAN and link with -lwasi-emulated-mman"
2 | #error "WASI lacks a true mmap; to enable minimal mmap emulation, \
| ^
/host/spi-builder-workspace/aws-common-runtime/s2n/utils/s2n_mem.c:78:5: error: call to undeclared function 'munlock'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
78 | munlock(ptr, size);
| ^
/host/spi-builder-workspace/aws-common-runtime/s2n/utils/s2n_mem.c:114:9: error: call to undeclared function 'mlock'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
114 | if (mlock(*ptr, *allocated) != 0) {
| ^
[3/426] Compiling s2n_mem.c
[3/426] Write swift-version-24593BA9C3E375BF.txt
BUILD FAILURE 6.1 wasm