The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Failed to build Empire, reference main (b5c84e), with Swift 6.2 (beta) for Wasm on 24 Jun 2025 12:46:35 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.2-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/mattmassicotte/Empire.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/mattmassicotte/Empire
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at b5c84e0 Update ci.yml to Xcode 16.4 (#11)
Submodule path 'lmdb': checked out 'f20e41de09d97e4461946b7e26ec831d0c24fac7'
Submodule 'lmdb' (https://github.com/LMDB/lmdb.git) registered for path 'lmdb'
Cloning into '/host/spi-builder-workspace/lmdb'...
Cloned https://github.com/mattmassicotte/Empire.git
Revision (git rev-parse @):
b5c84e0ce388f759dc58a812eb14f30d5a235b5f
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/mattmassicotte/Empire.git at main
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.2
Building package at path:  $PWD
https://github.com/mattmassicotte/Empire.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.2-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:44384f43f933eaa0f42803e9ef7c3d8388c5841ccc831a15a5edf63d8c273423
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.2-latest
Fetching https://github.com/swiftlang/swift-syntax.git
[1/70927] Fetching swift-syntax
Fetched https://github.com/swiftlang/swift-syntax.git from cache (7.04s)
Computing version for https://github.com/swiftlang/swift-syntax.git
Computed https://github.com/swiftlang/swift-syntax.git at 601.0.1 (12.69s)
Creating working copy for https://github.com/swiftlang/swift-syntax.git
Working copy of https://github.com/swiftlang/swift-syntax.git resolved at 601.0.1
Building for debugging...
[0/48] Write sources
[24/48] Compiling _SwiftSyntaxCShims dummy.c
[25/48] Compiling CLMDB midl.c
[27/48] Write swift-version-24593BA9C3E375BF.txt
In file included from /host/spi-builder-workspace/lmdb/libraries/liblmdb/mdb.c:107:
/root/.swiftpm/swift-sdks/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-30-a_wasm.artifactbundle/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-30-a_wasm/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, \
      |  ^
In file included from /host/spi-builder-workspace/lmdb/libraries/liblmdb/mdb.c:181:
/root/.swiftpm/swift-sdks/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-30-a_wasm.artifactbundle/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-30-a_wasm/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, \
      |  ^
/host/spi-builder-workspace/lmdb/libraries/liblmdb/mdb.c:2888:8: error: call to undeclared function 'msync'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
 2888 |                         if (MDB_MSYNC(env->me_map, env->me_psize * numpgs, flags))
      |                             ^
/host/spi-builder-workspace/lmdb/libraries/liblmdb/mdb.c:548:36: note: expanded from macro 'MDB_MSYNC'
  548 | # define MDB_MSYNC(addr,len,flags)      msync(addr,len,flags)
      |                                         ^
/host/spi-builder-workspace/lmdb/libraries/liblmdb/mdb.c:2888:8: note: did you mean 'fsync'?
/host/spi-builder-workspace/lmdb/libraries/liblmdb/mdb.c:548:36: note: expanded from macro 'MDB_MSYNC'
  548 | # define MDB_MSYNC(addr,len,flags)      msync(addr,len,flags)
      |                                         ^
/root/.swiftpm/swift-sdks/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-30-a_wasm.artifactbundle/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-30-a_wasm/wasm32-unknown-wasi/WASI.sdk/include/wasm32-wasi/unistd.h:88:5: note: 'fsync' declared here
   88 | int fsync(int);
      |     ^
/host/spi-builder-workspace/lmdb/libraries/liblmdb/mdb.c:3000:11: error: use of undeclared identifier 'F_SETLK'; did you mean 'FD_SET'?
 3000 |         Pidset = F_SETLK, Pidcheck = F_GETLK
      |                  ^~~~~~~
      |                  FD_SET
/root/.swiftpm/swift-sdks/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-30-a_wasm.artifactbundle/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-30-a_wasm/wasm32-unknown-wasi/WASI.sdk/include/wasm32-wasi/__fd_set.h:42:22: note: 'FD_SET' declared here
   42 | static __inline void FD_SET(int __fd, fd_set *__set) {
      |                      ^
/host/spi-builder-workspace/lmdb/libraries/liblmdb/mdb.c:3000:11: error: integer constant expression must have integer type, not 'void (int, fd_set *)'
 3000 |         Pidset = F_SETLK, Pidcheck = F_GETLK
      |                  ^~~~~~~
/host/spi-builder-workspace/lmdb/libraries/liblmdb/mdb.c:3000:31: error: use of undeclared identifier 'F_GETLK'
 3000 |         Pidset = F_SETLK, Pidcheck = F_GETLK
      |                                      ^
/host/spi-builder-workspace/lmdb/libraries/liblmdb/mdb.c:3033:22: error: use of undeclared identifier 'F_WRLCK'
 3033 |                 lock_info.l_type = F_WRLCK;
      |                                    ^
/host/spi-builder-workspace/lmdb/libraries/liblmdb/mdb.c:3038:14: error: use of undeclared identifier 'F_GETLK'
 3038 |                         if (op == F_GETLK && lock_info.l_type != F_UNLCK)
      |                                   ^
/host/spi-builder-workspace/lmdb/libraries/liblmdb/mdb.c:3038:45: error: use of undeclared identifier 'F_UNLCK'
 3038 |                         if (op == F_GETLK && lock_info.l_type != F_UNLCK)
      |                                                                  ^
/host/spi-builder-workspace/lmdb/libraries/liblmdb/mdb.c:4400:8: error: call to undeclared function 'msync'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
 4400 |                         if (MDB_MSYNC(ptr, meta_size, rc)) {
      |                             ^
/host/spi-builder-workspace/lmdb/libraries/liblmdb/mdb.c:548:36: note: expanded from macro 'MDB_MSYNC'
  548 | # define MDB_MSYNC(addr,len,flags)      msync(addr,len,flags)
      |                                         ^
/host/spi-builder-workspace/lmdb/libraries/liblmdb/mdb.c:4511:14: warning: 'getpid' is deprecated: WASI lacks process identifiers; to enable emulation of the `getpid` function using a placeholder value, which doesn't reflect the host PID of the program, compile with -D_WASI_EMULATED_GETPID and link with -lwasi-emulated-getpid [-Wdeprecated-declarations]
 4511 |         e->me_pid = getpid();
      |                     ^
/root/.swiftpm/swift-sdks/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-30-a_wasm.artifactbundle/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-30-a_wasm/wasm32-unknown-wasi/WASI.sdk/include/wasm32-wasi/unistd.h:155:16: note: 'getpid' has been explicitly marked deprecated here
  155 | __attribute__((__deprecated__(
      |                ^
/host/spi-builder-workspace/lmdb/libraries/liblmdb/mdb.c:4588:19: error: use of undeclared identifier 'MAP_SHARED'
 4588 |         int mmap_flags = MAP_SHARED;
      |                          ^
/host/spi-builder-workspace/lmdb/libraries/liblmdb/mdb.c:4589:13: error: use of undeclared identifier 'PROT_READ'
 4589 |         int prot = PROT_READ;
      |                    ^
/host/spi-builder-workspace/lmdb/libraries/liblmdb/mdb.c:4604:11: error: use of undeclared identifier 'PROT_WRITE'
 4604 |                 prot |= PROT_WRITE;
      |                         ^
/host/spi-builder-workspace/lmdb/libraries/liblmdb/mdb.c:4608:16: error: call to undeclared function 'mmap'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
 4608 |         env->me_map = mmap(addr, env->me_mapsize, prot, mmap_flags,
      |                       ^
/host/spi-builder-workspace/lmdb/libraries/liblmdb/mdb.c:4608:14: error: incompatible integer to pointer conversion assigning to 'char *' from 'int' [-Wint-conversion]
 4608 |         env->me_map = mmap(addr, env->me_mapsize, prot, mmap_flags,
      |                     ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 4609 |                 env->me_fd, 0);
      |                 ~~~~~~~~~~~~~~
/host/spi-builder-workspace/lmdb/libraries/liblmdb/mdb.c:4610:21: error: use of undeclared identifier 'MAP_FAILED'
 4610 |         if (env->me_map == MAP_FAILED) {
      |                            ^
/host/spi-builder-workspace/lmdb/libraries/liblmdb/mdb.c:4670:3: error: call to undeclared function 'munmap'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
 4670 |                 munmap(env->me_map, env->me_mapsize);
      |                 ^
/host/spi-builder-workspace/lmdb/libraries/liblmdb/mdb.c:5120:24: warning: 'getpid' is deprecated: WASI lacks process identifiers; to enable emulation of the `getpid` function using a placeholder value, which doesn't reflect the host PID of the program, compile with -D_WASI_EMULATED_GETPID and link with -lwasi-emulated-getpid [-Wdeprecated-declarations]
 5120 |         if (reader->mr_pid == getpid()) /* catch pthread_exit() in child process */
      |                               ^
/root/.swiftpm/swift-sdks/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-30-a_wasm.artifactbundle/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-30-a_wasm/wasm32-unknown-wasi/WASI.sdk/include/wasm32-wasi/unistd.h:155:16: note: 'getpid' has been explicitly marked deprecated here
  155 | __attribute__((__deprecated__(
      |                ^
/host/spi-builder-workspace/lmdb/libraries/liblmdb/mdb.c:5211:22: error: use of undeclared identifier 'F_RDLCK'
 5211 |                 lock_info.l_type = F_RDLCK;
      |                                    ^
/host/spi-builder-workspace/lmdb/libraries/liblmdb/mdb.c:5215:35: error: use of undeclared identifier 'F_SETLK'; did you mean 'FD_SET'?
 5215 |                 while ((rc = fcntl(env->me_lfd, F_SETLK, &lock_info)) &&
      |                                                 ^~~~~~~
      |                                                 FD_SET
/root/.swiftpm/swift-sdks/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-30-a_wasm.artifactbundle/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-30-a_wasm/wasm32-unknown-wasi/WASI.sdk/include/wasm32-wasi/__fd_set.h:42:22: note: 'FD_SET' declared here
   42 | static __inline void FD_SET(int __fd, fd_set *__set) {
      |                      ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
2 warnings and 20 errors generated.
[28/77] Compiling CLMDB mdb.c
[29/81] Emitting module SwiftSyntax600
[29/81] Compiling CLMDB mdb.c
BUILD FAILURE 6.2 wasm