Build Information
Failed to build swift-log-elk, reference 0.2.2 (585e57), with Swift 6.2 for Wasm on 19 Jun 2025 14:31:24 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.2-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Apodini/swift-log-elk.git
Reference: 0.2.2
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/Apodini/swift-log-elk
* tag 0.2.2 -> FETCH_HEAD
HEAD is now at 585e574 Merge branch 'develop' of https://github.com/Apodini/swift-log-elk into develop
Cloned https://github.com/Apodini/swift-log-elk.git
Revision (git rev-parse @):
585e574ad949f421aa9eba5e8e121d95790f67f2
SUCCESS checkout https://github.com/Apodini/swift-log-elk.git at 0.2.2
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.2
Building package at path: $PWD
https://github.com/Apodini/swift-log-elk.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-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/swift-server/async-http-client.git
Fetching https://github.com/apple/swift-log.git
[1/3836] Fetching swift-log
[960/17850] Fetching swift-log, async-http-client
Fetched https://github.com/apple/swift-log.git from cache (0.81s)
[6307/14014] Fetching async-http-client
Fetched https://github.com/swift-server/async-http-client.git from cache (1.69s)
Computing version for https://github.com/swift-server/async-http-client.git
Computed https://github.com/swift-server/async-http-client.git at 1.5.1 (2.69s)
Fetching https://github.com/apple/swift-nio.git
Fetching https://github.com/apple/swift-nio-extras.git
Fetching https://github.com/apple/swift-nio-transport-services.git
Fetching https://github.com/apple/swift-nio-ssl.git
[1/2667] Fetching swift-nio-transport-services
[348/8609] Fetching swift-nio-transport-services, swift-nio-extras
[7066/23499] Fetching swift-nio-transport-services, swift-nio-extras, swift-nio-ssl
[10099/99826] Fetching swift-nio-transport-services, swift-nio-extras, swift-nio-ssl, swift-nio
Fetched https://github.com/apple/swift-nio-extras.git from cache (3.72s)
Fetched https://github.com/apple/swift-nio-transport-services.git from cache (3.72s)
[68604/91217] Fetching swift-nio-ssl, swift-nio
Fetched https://github.com/apple/swift-nio-ssl.git from cache (3.78s)
[54193/76327] Fetching swift-nio
Fetched https://github.com/apple/swift-nio.git from cache (9.19s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.4.4 (10.06s)
Computing version for https://github.com/apple/swift-nio-transport-services.git
Computed https://github.com/apple/swift-nio-transport-services.git at 1.24.0 (0.85s)
Fetching https://github.com/apple/swift-atomics.git
[1/1797] Fetching swift-atomics
Fetched https://github.com/apple/swift-atomics.git from cache (0.69s)
Computing version for https://github.com/apple/swift-nio.git
Computed https://github.com/apple/swift-nio.git at 2.83.0 (2.30s)
Fetching https://github.com/apple/swift-system.git
Fetching https://github.com/apple/swift-collections.git
[1/4436] Fetching swift-system
[1465/21076] Fetching swift-system, swift-collections
Fetched https://github.com/apple/swift-system.git from cache (2.05s)
Fetched https://github.com/apple/swift-collections.git from cache (2.09s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 1.3.0 (2.84s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.5.0 (0.72s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.2.0 (1.29s)
Computing version for https://github.com/apple/swift-nio-extras.git
Computed https://github.com/apple/swift-nio-extras.git at 1.26.0 (1.09s)
Fetching https://github.com/apple/swift-algorithms.git
Fetching https://github.com/apple/swift-http-types.git
Fetching https://github.com/apple/swift-nio-http2.git
Fetching https://github.com/apple/swift-http-structured-headers.git
[1/1152] Fetching swift-http-structured-headers
[1142/7111] Fetching swift-http-structured-headers, swift-algorithms
[1273/8015] Fetching swift-http-structured-headers, swift-algorithms, swift-http-types
[2832/19547] Fetching swift-http-structured-headers, swift-algorithms, swift-http-types, swift-nio-http2
Fetched https://github.com/apple/swift-http-structured-headers.git from cache (0.56s)
[4048/18395] Fetching swift-algorithms, swift-http-types, swift-nio-http2
Fetched https://github.com/apple/swift-http-types.git from cache (2.18s)
Fetched https://github.com/apple/swift-algorithms.git from cache (2.19s)
Fetched https://github.com/apple/swift-nio-http2.git from cache (2.21s)
Computing version for https://github.com/apple/swift-algorithms.git
Computed https://github.com/apple/swift-algorithms.git at 1.2.1 (3.07s)
Fetching https://github.com/apple/swift-numerics.git
[1/5757] Fetching swift-numerics
Fetched https://github.com/apple/swift-numerics.git from cache (0.75s)
Computing version for https://github.com/apple/swift-http-types.git
Computed https://github.com/apple/swift-http-types.git at 1.4.0 (1.57s)
Computing version for https://github.com/apple/swift-http-structured-headers.git
Computed https://github.com/apple/swift-http-structured-headers.git at 1.3.0 (0.82s)
Computing version for https://github.com/apple/swift-numerics.git
Computed https://github.com/apple/swift-numerics.git at 1.0.3 (1.09s)
Computing version for https://github.com/apple/swift-nio-http2.git
Computed https://github.com/apple/swift-nio-http2.git at 1.36.0 (0.83s)
Computing version for https://github.com/apple/swift-nio-ssl.git
Computed https://github.com/apple/swift-nio-ssl.git at 2.32.0 (1.10s)
Creating working copy for https://github.com/apple/swift-nio-extras.git
Working copy of https://github.com/apple/swift-nio-extras.git resolved at 1.26.0
Creating working copy for https://github.com/apple/swift-nio-http2.git
Working copy of https://github.com/apple/swift-nio-http2.git resolved at 1.36.0
Creating working copy for https://github.com/apple/swift-system.git
Working copy of https://github.com/apple/swift-system.git resolved at 1.5.0
Creating working copy for https://github.com/apple/swift-nio-transport-services.git
Working copy of https://github.com/apple/swift-nio-transport-services.git resolved at 1.24.0
Creating working copy for https://github.com/apple/swift-algorithms.git
Working copy of https://github.com/apple/swift-algorithms.git resolved at 1.2.1
Creating working copy for https://github.com/swift-server/async-http-client.git
Working copy of https://github.com/swift-server/async-http-client.git resolved at 1.5.1
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.4.4
Creating working copy for https://github.com/apple/swift-collections.git
Working copy of https://github.com/apple/swift-collections.git resolved at 1.2.0
Creating working copy for https://github.com/apple/swift-http-types.git
Working copy of https://github.com/apple/swift-http-types.git resolved at 1.4.0
Creating working copy for https://github.com/apple/swift-http-structured-headers.git
Working copy of https://github.com/apple/swift-http-structured-headers.git resolved at 1.3.0
Creating working copy for https://github.com/apple/swift-nio.git
Working copy of https://github.com/apple/swift-nio.git resolved at 2.83.0
Creating working copy for https://github.com/apple/swift-nio-ssl.git
Working copy of https://github.com/apple/swift-nio-ssl.git resolved at 2.32.0
Creating working copy for https://github.com/apple/swift-numerics.git
Working copy of https://github.com/apple/swift-numerics.git resolved at 1.0.3
Creating working copy for https://github.com/apple/swift-atomics.git
Working copy of https://github.com/apple/swift-atomics.git resolved at 1.3.0
Building for debugging...
[0/434] Write sources
[19/434] Compiling _AtomicsShims.c
[20/434] Compiling CNIOWindows shim.c
[21/434] Compiling CNIOLLHTTP c_nio_http.c
[22/434] Compiling CNIOWindows WSAStartup.c
[23/434] Compiling CNIOWASI CNIOWASI.c
[24/434] Write swift-version-24593BA9C3E375BF.txt
[25/434] Compiling CNIOLinux liburing_shims.c
[26/434] Compiling CNIOLinux shim.c
[27/434] Compiling CNIOExtrasZlib empty.c
[28/434] Compiling CNIODarwin shim.c
[29/434] Compiling CNIOLLHTTP c_nio_api.c
[30/458] Compiling a_d2i_fp.cc
[31/458] Compiling fiat_p256_adx_sqr.S
[32/458] Compiling fiat_p256_adx_mul.S
[33/458] Compiling fiat_curve25519_adx_square.S
[34/458] Compiling fiat_curve25519_adx_mul.S
[35/458] Compiling CNIOBoringSSLShims shims.c
[36/458] Compiling a_dup.cc
[38/458] Emitting module InternalCollectionsUtilities
[38/459] Compiling tls_record.cc
[39/459] Compiling tls_method.cc
[40/459] Compiling CNIOLLHTTP c_nio_llhttp.c
[41/459] Compiling tls13_server.cc
[42/459] Compiling tls13_enc.cc
[43/459] Compiling tls13_client.cc
[44/459] Compiling tls13_both.cc
[45/459] Compiling t1_enc.cc
[47/459] Compiling InternalCollectionsUtilities UnsafeMutableBufferPointer+Extras.swift
[48/459] Compiling InternalCollectionsUtilities UInt+first and last set bit.swift
[49/459] Compiling InternalCollectionsUtilities UInt+reversed.swift
[50/459] Compiling InternalCollectionsUtilities _UniqueCollection.swift
[51/459] Compiling InternalCollectionsUtilities Debugging.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[52/459] Emitting module Logging
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Locks.swift:52:49: error: cannot find type 'pthread_mutex_t' in scope
50 | UnsafeMutablePointer.allocate(capacity: 1)
51 | #else
52 | fileprivate let mutex: UnsafeMutablePointer<pthread_mutex_t> =
| `- error: cannot find type 'pthread_mutex_t' in scope
53 | UnsafeMutablePointer.allocate(capacity: 1)
54 | #endif
[53/459] Compiling InternalCollectionsUtilities _UnsafeBitSet+Index.swift
[54/459] Compiling InternalCollectionsUtilities _UnsafeBitSet+_Word.swift
[55/459] Compiling InternalCollectionsUtilities Descriptions.swift
[56/459] Compiling InternalCollectionsUtilities RandomAccessCollection+Offsets.swift
[57/459] Compiling InternalCollectionsUtilities UnsafeBufferPointer+Extras.swift
[57/459] Compiling ssl_x509.cc
[59/459] Compiling InternalCollectionsUtilities _UnsafeBitSet.swift
[60/459] Compiling InternalCollectionsUtilities _SortedCollection.swift
[61/459] Emitting module _NIOBase64
[62/459] Compiling _NIOBase64 Base64.swift
[63/460] Compiling InternalCollectionsUtilities FixedWidthInteger+roundUpToPowerOfTwo.swift
[64/460] Compiling InternalCollectionsUtilities Integer rank.swift
[67/476] Compiling _NIODataStructures PriorityQueue.swift
[68/476] Compiling _NIODataStructures _TinyArray.swift
[68/476] Compiling ssl_stat.cc
[69/476] Compiling ssl_versions.cc
[71/476] Compiling DequeModule Deque+Extras.swift
[72/476] Compiling DequeModule Deque+Hashable.swift
[73/476] Compiling DequeModule Deque+Testing.swift
[74/476] Compiling DequeModule Deque._Storage.swift
[75/476] Compiling DequeModule Deque+Equatable.swift
[76/476] Compiling DequeModule Deque+ExpressibleByArrayLiteral.swift
[77/476] Compiling DequeModule Deque+CustomReflectable.swift
[78/476] Compiling DequeModule Deque+Descriptions.swift
[78/478] Compiling ssl_transcript.cc
[80/478] Emitting module _NIODataStructures
[81/478] Compiling _NIODataStructures Heap.swift
[82/479] Compiling DequeModule _DequeSlot.swift
[83/479] Compiling DequeModule _UnsafeWrappedBuffer.swift
[85/479] Compiling DequeModule Deque._UnsafeHandle.swift
[86/479] Compiling DequeModule Deque.swift
[87/479] Compiling DequeModule _DequeBuffer.swift
[88/479] Compiling DequeModule _DequeBufferHeader.swift
[89/479] Compiling Logging LogHandler.swift
[90/479] Compiling Logging Locks.swift
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Locks.swift:52:49: error: cannot find type 'pthread_mutex_t' in scope
50 | UnsafeMutablePointer.allocate(capacity: 1)
51 | #else
52 | fileprivate let mutex: UnsafeMutablePointer<pthread_mutex_t> =
| `- error: cannot find type 'pthread_mutex_t' in scope
53 | UnsafeMutablePointer.allocate(capacity: 1)
54 | #endif
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Locks.swift:61:20: error: cannot find 'pthread_mutexattr_t' in scope
59 | InitializeSRWLock(self.mutex)
60 | #else
61 | var attr = pthread_mutexattr_t()
| `- error: cannot find 'pthread_mutexattr_t' in scope
62 | pthread_mutexattr_init(&attr)
63 | pthread_mutexattr_settype(&attr, .init(PTHREAD_MUTEX_ERRORCHECK))
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Locks.swift:62:9: error: cannot find 'pthread_mutexattr_init' in scope
60 | #else
61 | var attr = pthread_mutexattr_t()
62 | pthread_mutexattr_init(&attr)
| `- error: cannot find 'pthread_mutexattr_init' in scope
63 | pthread_mutexattr_settype(&attr, .init(PTHREAD_MUTEX_ERRORCHECK))
64 |
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Locks.swift:63:9: error: cannot find 'pthread_mutexattr_settype' in scope
61 | var attr = pthread_mutexattr_t()
62 | pthread_mutexattr_init(&attr)
63 | pthread_mutexattr_settype(&attr, .init(PTHREAD_MUTEX_ERRORCHECK))
| `- error: cannot find 'pthread_mutexattr_settype' in scope
64 |
65 | let err = pthread_mutex_init(self.mutex, &attr)
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Locks.swift:63:48: error: cannot find 'PTHREAD_MUTEX_ERRORCHECK' in scope
61 | var attr = pthread_mutexattr_t()
62 | pthread_mutexattr_init(&attr)
63 | pthread_mutexattr_settype(&attr, .init(PTHREAD_MUTEX_ERRORCHECK))
| `- error: cannot find 'PTHREAD_MUTEX_ERRORCHECK' in scope
64 |
65 | let err = pthread_mutex_init(self.mutex, &attr)
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Locks.swift:63:43: error: cannot infer contextual base in reference to member 'init'
61 | var attr = pthread_mutexattr_t()
62 | pthread_mutexattr_init(&attr)
63 | pthread_mutexattr_settype(&attr, .init(PTHREAD_MUTEX_ERRORCHECK))
| `- error: cannot infer contextual base in reference to member 'init'
64 |
65 | let err = pthread_mutex_init(self.mutex, &attr)
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Locks.swift:65:19: error: cannot find 'pthread_mutex_init' in scope
63 | pthread_mutexattr_settype(&attr, .init(PTHREAD_MUTEX_ERRORCHECK))
64 |
65 | let err = pthread_mutex_init(self.mutex, &attr)
| `- error: cannot find 'pthread_mutex_init' in scope
66 | precondition(err == 0, "\(#function) failed in pthread_mutex with error \(err)")
67 | #endif
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Locks.swift:74:19: error: cannot find 'pthread_mutex_destroy' in scope
72 | // SRWLOCK does not need to be free'd
73 | #else
74 | let err = pthread_mutex_destroy(self.mutex)
| `- error: cannot find 'pthread_mutex_destroy' in scope
75 | precondition(err == 0, "\(#function) failed in pthread_mutex with error \(err)")
76 | #endif
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Locks.swift:88:19: error: cannot find 'pthread_mutex_lock' in scope
86 | AcquireSRWLockExclusive(self.mutex)
87 | #else
88 | let err = pthread_mutex_lock(self.mutex)
| `- error: cannot find 'pthread_mutex_lock' in scope
89 | precondition(err == 0, "\(#function) failed in pthread_mutex with error \(err)")
90 | #endif
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Locks.swift:101:19: error: cannot find 'pthread_mutex_unlock' in scope
99 | ReleaseSRWLockExclusive(self.mutex)
100 | #else
101 | let err = pthread_mutex_unlock(self.mutex)
| `- error: cannot find 'pthread_mutex_unlock' in scope
102 | precondition(err == 0, "\(#function) failed in pthread_mutex with error \(err)")
103 | #endif
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Locks.swift:171:14: error: value of type 'ReadWriteLock' has no member 'rwlock'
169 | precondition(err == 0, "\(#function) failed in pthread_rwlock with error \(err)")
170 | #endif
171 | self.rwlock.deallocate()
| `- error: value of type 'ReadWriteLock' has no member 'rwlock'
172 | }
173 |
[91/479] Compiling Logging Logging.swift
[91/479] Compiling ssl_file.cc
[91/479] Compiling ssl_credential.cc
[91/479] Compiling ssl_key_share.cc
[91/479] Compiling ssl_session.cc
[91/479] Compiling ssl_lib.cc
[91/479] Compiling ssl_privkey.cc
BUILD FAILURE 6.2 wasm