Build Information
Failed to build VaporOAuth, reference 0.6.1 (134885
), with Swift 6.2 (beta) for Wasm on 21 Jun 2025 17:39:18 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/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/brokenhandsio/vapor-oauth.git
Reference: 0.6.1
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/brokenhandsio/vapor-oauth
* tag 0.6.1 -> FETCH_HEAD
HEAD is now at 1348859 Merge pull request #6 from TheSwiftyCoder/master
Cloned https://github.com/brokenhandsio/vapor-oauth.git
Revision (git rev-parse @):
1348859f6c6b459edb64c9af0fc0037d08924530
SUCCESS checkout https://github.com/brokenhandsio/vapor-oauth.git at 0.6.1
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.2
Building package at path: $PWD
https://github.com/brokenhandsio/vapor-oauth.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/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/vapor/vapor.git
Fetching https://github.com/vapor/auth-provider.git
[1/262] Fetching auth-provider
[263/74808] Fetching auth-provider, vapor
Fetched https://github.com/vapor/auth-provider.git from cache (1.89s)
Fetched https://github.com/vapor/vapor.git from cache (1.93s)
Computing version for https://github.com/vapor/auth-provider.git
Computed https://github.com/vapor/auth-provider.git at 1.2.0 (2.32s)
Fetching https://github.com/vapor/auth.git
[1/1048] Fetching auth
Fetched https://github.com/vapor/auth.git from cache (0.19s)
Computing version for https://github.com/vapor/auth.git
Computed https://github.com/vapor/auth.git at 1.2.1 (0.60s)
Fetching https://github.com/vapor/fluent.git
[1/13421] Fetching fluent
Fetched https://github.com/vapor/fluent.git from cache (0.56s)
Computing version for https://github.com/vapor/vapor.git
Computed https://github.com/vapor/vapor.git at 2.4.5 (1.02s)
Fetching https://github.com/vapor/multipart.git
Fetching https://github.com/vapor/node.git
Fetching https://github.com/vapor/routing.git
Fetching https://github.com/vapor/crypto.git
Fetching https://github.com/vapor/json.git
Fetching https://github.com/vapor/engine.git
[1/4211] Fetching node
[2318/6997] Fetching node, crypto
[5020/27849] Fetching node, crypto, routing
[6010/28847] Fetching node, crypto, routing, json
[6189/32315] Fetching node, crypto, routing, json, multipart
[6190/57782] Fetching node, crypto, routing, json, multipart, engine
Fetched https://github.com/vapor/node.git from cache (0.44s)
[31004/53571] Fetching crypto, routing, json, multipart, engine
Fetching https://github.com/vapor/core.git
Fetched https://github.com/vapor/crypto.git from cache (0.67s)
[39164/50785] Fetching routing, json, multipart, engine
Fetching https://github.com/vapor/console.git
[42131/70928] Fetching routing, json, multipart, engine, core
[61521/76946] Fetching routing, json, multipart, engine, core, console
Fetched https://github.com/vapor/console.git from cache (0.55s)
Fetching https://github.com/vapor/bcrypt.git
[64743/70928] Fetching routing, json, multipart, engine, core
Fetched https://github.com/vapor/routing.git from cache (1.30s)
[44304/50076] Fetching json, multipart, engine, core
Fetched https://github.com/vapor/json.git from cache (1.39s)
Fetched https://github.com/vapor/engine.git from cache (1.40s)
[21264/23710] Fetching multipart, core, bcrypt
Fetched https://github.com/vapor/bcrypt.git from cache (0.36s)
[21288/23611] Fetching multipart, core
Fetched https://github.com/vapor/core.git from cache (1.22s)
[2220/3468] Fetching multipart
Fetched https://github.com/vapor/multipart.git from cache (1.99s)
Computing version for https://github.com/vapor/bcrypt.git
Computed https://github.com/vapor/bcrypt.git at 1.1.1 (2.37s)
Fetching https://github.com/vapor/random.git
[1/148] Fetching random
Fetched https://github.com/vapor/random.git from cache (0.29s)
Computing version for https://github.com/vapor/random.git
Computed https://github.com/vapor/random.git at 1.2.0 (0.70s)
Computing version for https://github.com/vapor/routing.git
Computed https://github.com/vapor/routing.git at 2.2.1 (0.43s)
Fetching https://github.com/vapor/debugging.git
[1/260] Fetching debugging
Fetched https://github.com/vapor/debugging.git from cache (0.21s)
Computing version for https://github.com/vapor/debugging.git
Computed https://github.com/vapor/debugging.git at 1.1.1 (0.62s)
Computing version for https://github.com/vapor/json.git
Computed https://github.com/vapor/json.git at 2.2.2 (0.41s)
Computing version for https://github.com/vapor/core.git
Computed https://github.com/vapor/core.git at 2.2.1 (0.41s)
Fetching https://github.com/vapor/bits.git
[1/358] Fetching bits
Fetched https://github.com/vapor/bits.git from cache (0.22s)
Computing version for https://github.com/vapor/bits.git
Computed https://github.com/vapor/bits.git at 1.1.1 (0.62s)
Computing version for https://github.com/vapor/multipart.git
Computed https://github.com/vapor/multipart.git at 2.2.1 (0.40s)
Computing version for https://github.com/vapor/crypto.git
Computed https://github.com/vapor/crypto.git at 2.1.3 (0.41s)
Fetching https://github.com/vapor/ctls.git
[1/71] Fetching ctls
Fetched https://github.com/vapor/ctls.git from cache (0.22s)
Computing version for https://github.com/vapor/console.git
Computed https://github.com/vapor/console.git at 2.3.1 (0.37s)
Computing version for https://github.com/vapor/ctls.git
Computed https://github.com/vapor/ctls.git at 1.1.3 (0.38s)
Computing version for https://github.com/vapor/node.git
Computed https://github.com/vapor/node.git at 2.1.5 (2.71s)
Computing version for https://github.com/vapor/engine.git
Computed https://github.com/vapor/engine.git at 2.2.5 (0.45s)
Fetching https://github.com/vapor/sockets.git
Fetching https://github.com/vapor/tls.git
[1/1144] Fetching tls
[1145/4456] Fetching tls, sockets
Fetched https://github.com/vapor/tls.git from cache (0.27s)
Fetched https://github.com/vapor/sockets.git from cache (0.31s)
Computing version for https://github.com/vapor/tls.git
Computed https://github.com/vapor/tls.git at 2.1.3 (0.89s)
Computing version for https://github.com/vapor/sockets.git
Computed https://github.com/vapor/sockets.git at 2.2.3 (0.44s)
Computing version for https://github.com/vapor/fluent.git
Computed https://github.com/vapor/fluent.git at 2.5.1 (0.63s)
Fetching https://github.com/vapor/sqlite.git
[1/2112] Fetching sqlite
Fetched https://github.com/vapor/sqlite.git from cache (1.87s)
Computing version for https://github.com/vapor/sqlite.git
Computed https://github.com/vapor/sqlite.git at 2.3.1 (2.53s)
Creating working copy for https://github.com/vapor/fluent.git
Working copy of https://github.com/vapor/fluent.git resolved at 2.5.1
Creating working copy for https://github.com/vapor/auth-provider.git
Working copy of https://github.com/vapor/auth-provider.git resolved at 1.2.0
Creating working copy for https://github.com/vapor/sockets.git
Working copy of https://github.com/vapor/sockets.git resolved at 2.2.3
Creating working copy for https://github.com/vapor/bcrypt.git
Working copy of https://github.com/vapor/bcrypt.git resolved at 1.1.1
Creating working copy for https://github.com/vapor/json.git
Working copy of https://github.com/vapor/json.git resolved at 2.2.2
Creating working copy for https://github.com/vapor/sqlite.git
Working copy of https://github.com/vapor/sqlite.git resolved at 2.3.1
Creating working copy for https://github.com/vapor/bits.git
Working copy of https://github.com/vapor/bits.git resolved at 1.1.1
Creating working copy for https://github.com/vapor/multipart.git
Working copy of https://github.com/vapor/multipart.git resolved at 2.2.1
Creating working copy for https://github.com/vapor/engine.git
Working copy of https://github.com/vapor/engine.git resolved at 2.2.5
Creating working copy for https://github.com/vapor/ctls.git
Working copy of https://github.com/vapor/ctls.git resolved at 1.1.3
Creating working copy for https://github.com/vapor/console.git
Working copy of https://github.com/vapor/console.git resolved at 2.3.1
Creating working copy for https://github.com/vapor/routing.git
Working copy of https://github.com/vapor/routing.git resolved at 2.2.1
Creating working copy for https://github.com/vapor/auth.git
Working copy of https://github.com/vapor/auth.git resolved at 1.2.1
Creating working copy for https://github.com/vapor/random.git
Working copy of https://github.com/vapor/random.git resolved at 1.2.0
Creating working copy for https://github.com/vapor/crypto.git
Working copy of https://github.com/vapor/crypto.git resolved at 2.1.3
Creating working copy for https://github.com/vapor/core.git
Working copy of https://github.com/vapor/core.git resolved at 2.2.1
Creating working copy for https://github.com/vapor/debugging.git
Working copy of https://github.com/vapor/debugging.git resolved at 1.1.1
Creating working copy for https://github.com/vapor/node.git
Working copy of https://github.com/vapor/node.git resolved at 2.1.5
Creating working copy for https://github.com/vapor/tls.git
Working copy of https://github.com/vapor/tls.git resolved at 2.1.3
Creating working copy for https://github.com/vapor/vapor.git
Working copy of https://github.com/vapor/vapor.git resolved at 2.4.5
warning: 'ctls': ignoring declared target(s) 'CTLS' in the system package
warning: you may be able to install ctls using your system-packager:
apt-get install libssl-dev
warning: you may be able to install ctls using your system-packager:
apt-get install libssl-dev
Building for debugging...
[0/36] Write sources
[33/36] Compiling CHTTP http_parser.c
[33/36] Write swift-version-24593BA9C3E375BF.txt
[36/61] Emitting module PathIndexable
error: emit-module command failed with exit code 1 (use -v to see invocation)
[37/61] Emitting module Bits
/host/spi-builder-workspace/.build/checkouts/bits/Sources/Bits/Byte+Random.swift:4:23: error: no such module 'Darwin.C'
2 | @_exported import Glibc
3 | #else
4 | @_exported import Darwin.C
| `- error: no such module 'Darwin.C'
5 | #endif
6 |
In file included from /host/spi-builder-workspace/.build/checkouts/sqlite/Sources/CSQLite/sqlite3.c:29678:
/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, \
| ^
/host/spi-builder-workspace/.build/checkouts/sqlite/Sources/CSQLite/sqlite3.c:30230:42: error: use of undeclared identifier 'fchown'
30230 | { "fchown", (sqlite3_syscall_ptr)fchown, 0 },
| ^
/host/spi-builder-workspace/.build/checkouts/sqlite/Sources/CSQLite/sqlite3.c:30236:42: error: use of undeclared identifier 'geteuid'
30236 | { "geteuid", (sqlite3_syscall_ptr)geteuid, 0 },
| ^
/host/spi-builder-workspace/.build/checkouts/sqlite/Sources/CSQLite/sqlite3.c:30240:42: error: use of undeclared identifier 'mmap'
30240 | { "mmap", (sqlite3_syscall_ptr)mmap, 0 },
| ^
/host/spi-builder-workspace/.build/checkouts/sqlite/Sources/CSQLite/sqlite3.c:30247:42: error: use of undeclared identifier 'munmap'
30247 | { "munmap", (sqlite3_syscall_ptr)munmap, 0 },
| ^
/host/spi-builder-workspace/.build/checkouts/sqlite/Sources/CSQLite/sqlite3.c:30317:22: error: invalid application of 'sizeof' to an incomplete type 'struct unix_syscall[]'
30317 | for(i=0; i<sizeof(aSyscall)/sizeof(aSyscall[0]); i++){
| ^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/sqlite/Sources/CSQLite/sqlite3.c:30326:22: error: invalid application of 'sizeof' to an incomplete type 'struct unix_syscall[]'
30326 | for(i=0; i<sizeof(aSyscall)/sizeof(aSyscall[0]); i++){
| ^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/sqlite/Sources/CSQLite/sqlite3.c:30353:20: error: invalid application of 'sizeof' to an incomplete type 'struct unix_syscall[]'
30353 | for(i=0; i<sizeof(aSyscall)/sizeof(aSyscall[0]); i++){
| ^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/sqlite/Sources/CSQLite/sqlite3.c:30370:16: error: invalid application of 'sizeof' to an incomplete type 'struct unix_syscall[]'
30370 | for(i=0; i<ArraySize(aSyscall)-1; i++){
| ^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/sqlite/Sources/CSQLite/sqlite3.c:12034:38: note: expanded from macro 'ArraySize'
12034 | #define ArraySize(X) ((int)(sizeof(X)/sizeof(X[0])))
| ^~~
/host/spi-builder-workspace/.build/checkouts/sqlite/Sources/CSQLite/sqlite3.c:30374:14: error: invalid application of 'sizeof' to an incomplete type 'struct unix_syscall[]'
30374 | for(i++; i<ArraySize(aSyscall); i++){
| ^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/sqlite/Sources/CSQLite/sqlite3.c:12034:38: note: expanded from macro 'ArraySize'
12034 | #define ArraySize(X) ((int)(sizeof(X)/sizeof(X[0])))
| ^~~
/host/spi-builder-workspace/.build/checkouts/sqlite/Sources/CSQLite/sqlite3.c:31200:19: error: use of undeclared identifier 'F_WRLCK'
31200 | lock.l_type = F_WRLCK;
| ^
/host/spi-builder-workspace/.build/checkouts/sqlite/Sources/CSQLite/sqlite3.c:31201:27: error: use of undeclared identifier 'F_GETLK'
31201 | if( osFcntl(pFile->h, F_GETLK, &lock) ){
| ^
/host/spi-builder-workspace/.build/checkouts/sqlite/Sources/CSQLite/sqlite3.c:31204:29: error: use of undeclared identifier 'F_UNLCK'
31204 | } else if( lock.l_type!=F_UNLCK ){
| ^
/host/spi-builder-workspace/.build/checkouts/sqlite/Sources/CSQLite/sqlite3.c:31248:21: error: use of undeclared identifier 'F_WRLCK'
31248 | lock.l_type = F_WRLCK;
| ^
/host/spi-builder-workspace/.build/checkouts/sqlite/Sources/CSQLite/sqlite3.c:31249:30: error: use of undeclared identifier 'F_SETLK'; did you mean 'FD_SET'?
31249 | rc = osFcntl(pFile->h, F_SETLK, &lock);
| ^~~~~~~
| 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/.build/checkouts/sqlite/Sources/CSQLite/sqlite3.c:31257:28: error: use of undeclared identifier 'F_SETLK'; did you mean 'FD_SET'?
31257 | rc = osFcntl(pFile->h, F_SETLK, pLock);
| ^~~~~~~
| 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/.build/checkouts/sqlite/Sources/CSQLite/sqlite3.c:31397:43: error: use of undeclared identifier 'F_RDLCK'
31397 | lock.l_type = (eFileLock==SHARED_LOCK?F_RDLCK:F_WRLCK);
| ^
/host/spi-builder-workspace/.build/checkouts/sqlite/Sources/CSQLite/sqlite3.c:31397:51: error: use of undeclared identifier 'F_WRLCK'
31397 | lock.l_type = (eFileLock==SHARED_LOCK?F_RDLCK:F_WRLCK);
| ^
/host/spi-builder-workspace/.build/checkouts/sqlite/Sources/CSQLite/sqlite3.c:31429:19: error: use of undeclared identifier 'F_UNLCK'
31429 | lock.l_type = F_UNLCK;
| ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
[37/63] Compiling CSQLite sqlite3.c
error: emit-module command failed with exit code 1 (use -v to see invocation)
[38/63] Emitting module libc
/host/spi-builder-workspace/.build/checkouts/core/Sources/libc/libc.swift:4:20: error: no such module 'Darwin.C'
2 | @_exported import Glibc
3 | #else
4 | @_exported import Darwin.C
| `- error: no such module 'Darwin.C'
5 | #endif
6 |
[39/63] Emitting module Debugging
BUILD FAILURE 6.2 wasm