Build Information
Failed to build RealmDatabase, reference v20.1.5 (b4192c), with Swift 6.1 for Wasm on 4 Jul 2026 00:47:01 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-53886769-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1Build Log
========================================
RunAll
========================================
Builder version: 0e64495ecc1688c3b3e031a5ef1348b5c05091ae
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/realm/realm-core.git
Reference: v20.1.5
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/realm/realm-core
* tag v20.1.5 -> FETCH_HEAD
HEAD is now at b4192c4 Add support for Xcode 27 (#8097)
Submodule path 'src/external/sha-1': checked out 'd9ae30f34095107ece9dceb224839f0dc2f9c1c7'
Submodule path 'src/external/sha-2': checked out '0e9aebf34101c6aa89355fd76ac9cd886735dee1'
Submodule path 'test/external/catch': checked out '8ac8190e494a381072c89f5e161b92a08d98b37b'
Submodule 'src/external/sha-1' (https://github.com/clibs/sha1.git) registered for path 'src/external/sha-1'
Submodule 'src/external/sha-2' (https://github.com/kalven/sha-2.git) registered for path 'src/external/sha-2'
Submodule 'test/external/catch' (https://github.com/catchorg/Catch2.git) registered for path 'test/external/catch'
Cloning into '/host/spi-builder-workspace/src/external/sha-1'...
Cloning into '/host/spi-builder-workspace/src/external/sha-2'...
Cloning into '/host/spi-builder-workspace/test/external/catch'...
Cloned https://github.com/realm/realm-core.git
Revision (git rev-parse @):
b4192c46305570577c4d08df790fddec5ab3aa04
SUCCESS checkout https://github.com/realm/realm-core.git at v20.1.5
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.1
Building package at path: $PWD
https://github.com/realm/realm-core.git
https://github.com/realm/realm-core.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-53886769-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images: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 saguaro1/spi-images
Digest: sha256:1ad245dad3d2ae0004e1afbc92334bd39884ed9ca587cf04d0a8d5f640fb02e9
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.1-latest
Building for debugging...
[0/346] Compiling Bid bid128_mul.c
/host/spi-builder-workspace/src/external/IntelRDFPMathLib20U2/LIBRARY/src/bid128_2_str_tables.c:41:16: warning: unknown attribute 'nonstring' ignored [-Wunknown-attributes]
41 | __attribute__((nonstring))
| ^~~~~~~~~
1 warning generated.
[1/346] Compiling Bid bid128_2_str_tables.c
[2/346] Compiling Bid bid128.c
[3/346] Compiling Bid bid128_compare.c
[4/346] Compiling Bid bid128_add.c
[5/346] Compiling catch_floating_point_helpers.cpp
[6/346] Compiling mathlimits.cc
[7/346] Compiling Bid bid128_div.c
[8/346] Compiling Bid bid128_fma.c
In file included from /host/spi-builder-workspace/src/external/s2/util/math/mathutil.cc:11:
In file included from /host/spi-builder-workspace/src/external/s2/util/math/mathutil.h:21:
In file included from /host/spi-builder-workspace/src/external/s2/base/logging.h:18:
In file included from /host/spi-builder-workspace/src/realm/util/logger.hpp:23:
/host/spi-builder-workspace/src/realm/util/thread.hpp:40:10: fatal error: 'pthread.h' file not found
40 | #include <pthread.h>
| ^~~~~~~~~~~
1 error generated.
[9/346] Write swift-version-24593BA9C3E375BF.txt
[9/346] Compiling mathutil.cc
[9/346] Compiling s2geometry s2pointregion.cc
[9/346] Compiling s2geometry s2polygonbuilder.cc
[9/346] Compiling s2geometry s2region.cc
[9/346] Compiling s2geometry s2r2rect.cc
[9/346] Compiling s2geometry s2polygon.cc
[9/346] Compiling s2geometry s2polyline.cc
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-53886769-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from saguaro1/spi-images
Digest: sha256:1ad245dad3d2ae0004e1afbc92334bd39884ed9ca587cf04d0a8d5f640fb02e9
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.1-latest
[0/1] Planning build
Building for debugging...
[0/337] Write swift-version-24593BA9C3E375BF.txt
In file included from /host/spi-builder-workspace/src/external/s2/util/math/mathutil.cc:11:
In file included from /host/spi-builder-workspace/src/external/s2/util/math/mathutil.h:21:
In file included from /host/spi-builder-workspace/src/external/s2/base/logging.h:18:
In file included from /host/spi-builder-workspace/src/realm/util/logger.hpp:23:
/host/spi-builder-workspace/src/realm/util/thread.hpp:40:10: fatal error: 'pthread.h' file not found
40 | #include <pthread.h>
| ^~~~~~~~~~~
1 error generated.
[1/337] Compiling mathutil.cc
In file included from /host/spi-builder-workspace/src/external/s2/s2r2rect.cc:3:
In file included from /host/spi-builder-workspace/src/external/s2/s2r2rect.h:7:
In file included from /host/spi-builder-workspace/src/external/s2/base/logging.h:18:
In file included from /host/spi-builder-workspace/src/realm/util/logger.hpp:23:
/host/spi-builder-workspace/src/realm/util/thread.hpp:40:10: fatal error: 'pthread.h' file not found
40 | #include <pthread.h>
| ^~~~~~~~~~~
[1/337] Compiling s2geometry s2r2rect.cc
[1/337] Compiling s2geometry s2loop.cc
In file included from /host/spi-builder-workspace/src/external/s2/s2polyline.cc:10:
In file included from /host/spi-builder-workspace/src/external/s2/s2.h:27:
In file included from /host/spi-builder-workspace/src/external/s2/base/logging.h:18:
In file included from /host/spi-builder-workspace/src/realm/util/logger.hpp:23:
/host/spi-builder-workspace/src/realm/util/thread.hpp:40:10: fatal error: 'pthread.h' file not found
40 | #include <pthread.h>
| ^~~~~~~~~~~
[1/337] Compiling s2geometry s2polyline.cc
In file included from /host/spi-builder-workspace/src/external/s2/s2polygon.cc:10:
In file included from /host/spi-builder-workspace/src/external/s2/s2.h:27:
In file included from /host/spi-builder-workspace/src/external/s2/base/logging.h:18:
In file included from /host/spi-builder-workspace/src/realm/util/logger.hpp:23:
/host/spi-builder-workspace/src/realm/util/thread.hpp:40:10: fatal error: 'pthread.h' file not found
40 | #include <pthread.h>
| ^~~~~~~~~~~
[1/337] Compiling s2geometry s2polygon.cc
In file included from /host/spi-builder-workspace/src/external/s2/s2polygonbuilder.cc:3:
In file included from /host/spi-builder-workspace/src/external/s2/s2polygonbuilder.h:21:
In file included from /host/spi-builder-workspace/src/external/s2/s2.h:27:
In file included from /host/spi-builder-workspace/src/external/s2/base/logging.h:18:
In file included from /host/spi-builder-workspace/src/realm/util/logger.hpp:23:
/host/spi-builder-workspace/src/realm/util/thread.hpp:40:10: fatal error: 'pthread.h' file not found
40 | #include <pthread.h>
| ^~~~~~~~~~~
[1/337] Compiling s2geometry s2polygonbuilder.cc
In file included from /host/spi-builder-workspace/src/external/s2/s2pointregion.cc:3:
In file included from /host/spi-builder-workspace/src/external/s2/s2pointregion.h:6:
In file included from /host/spi-builder-workspace/src/external/s2/base/logging.h:18:
In file included from /host/spi-builder-workspace/src/realm/util/logger.hpp:23:
/host/spi-builder-workspace/src/realm/util/thread.hpp:40:10: fatal error: 'pthread.h' file not found
40 | #include <pthread.h>
| ^~~~~~~~~~~
[1/337] Compiling s2geometry s2pointregion.cc
In file included from /host/spi-builder-workspace/src/external/s2/s2region.cc:3:
In file included from /host/spi-builder-workspace/src/external/s2/s2region.h:6:
In file included from /host/spi-builder-workspace/src/external/s2/s2.h:27:
In file included from /host/spi-builder-workspace/src/external/s2/base/logging.h:18:
In file included from /host/spi-builder-workspace/src/realm/util/logger.hpp:23:
/host/spi-builder-workspace/src/realm/util/thread.hpp:40:10: fatal error: 'pthread.h' file not found
40 | #include <pthread.h>
| ^~~~~~~~~~~
[1/337] Compiling s2geometry s2region.cc
BUILD FAILURE 6.1 wasm