Build Information
Failed to build CommonLog, reference v3.0.6 (a1127f), with Swift 6.2 for Wasm on 8 Apr 2026 21:13:15 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/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.2-latest swift build --swift-sdk wasm32-unknown-wasip1 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.69.2
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/swift-universal/common-log.git
Reference: v3.0.6
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/swift-universal/common-log
* tag v3.0.6 -> FETCH_HEAD
HEAD is now at a1127f9 Lower iOS deployment to v15
Cloned https://github.com/swift-universal/common-log.git
Revision (git rev-parse @):
a1127f913e345fe66e1169d9fa8b5fc023203dee
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/swift-universal/common-log.git at v3.0.6
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.2
Building package at path: $PWD
https://github.com/swift-universal/common-log.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/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.2-latest swift build --swift-sdk wasm32-unknown-wasip1 2>&1
wasm-6.2-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:2a8b2d9e022a9894c61e0736af7cdaa1ee64c002dbb133a55c0d7e8980b3ad16
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.2-latest
warning: multiple Swift SDKs match target triple `wasm32-unknown-wasip1` and host triple x86_64-unknown-linux-gnu, selected one at /root/.swiftpm/swift-sdks/swift-6.2-RELEASE_wasm.artifactbundle/swift-6.2-RELEASE_wasm/wasm32-unknown-wasip1/embedded-swift-sdk.json
Fetching https://github.com/apple/swift-docc-plugin
Fetching https://github.com/apple/swift-log.git
[1/2266] Fetching swift-docc-plugin
[455/8640] Fetching swift-docc-plugin, swift-log
Fetched https://github.com/apple/swift-log.git from cache (0.63s)
Fetched https://github.com/apple/swift-docc-plugin from cache (0.63s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.11.0 (1.00s)
Computing version for https://github.com/apple/swift-docc-plugin
Computed https://github.com/apple/swift-docc-plugin at 1.4.6 (2.16s)
Fetching https://github.com/swiftlang/swift-docc-symbolkit
[1/3672] Fetching swift-docc-symbolkit
Fetched https://github.com/swiftlang/swift-docc-symbolkit from cache (0.39s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (0.83s)
Creating working copy for https://github.com/apple/swift-docc-plugin
Working copy of https://github.com/apple/swift-docc-plugin resolved at 1.4.6
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.11.0
Creating working copy for https://github.com/swiftlang/swift-docc-symbolkit
Working copy of https://github.com/swiftlang/swift-docc-symbolkit resolved at 1.0.0
[1/1] Compiling plugin Swift-DocC Preview
[2/2] Compiling plugin Swift-DocC
Building for debugging...
[2/5] Write sources
[4/5] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[6/7] Emitting module Logging
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Locks.swift:48:8: error: The concurrency lock module was unable to identify your C library.
46 | #endif
47 | #else
48 | #error("The concurrency lock module was unable to identify your C library.")
| `- error: The concurrency lock module was unable to identify your C library.
49 | #endif
50 |
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:28:8: error: Unsupported runtime
26 | import WASILibc
27 | #else
28 | #error("Unsupported runtime")
| `- error: Unsupported runtime
29 | #endif
30 |
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1510:16: error: Unsupported runtime
1508 | )
1509 | #else
1510 | #error("Unsupported runtime")
| `- error: Unsupported runtime
1511 | #endif
1512 | }()
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1582:16: error: Unsupported runtime
1580 | )
1581 | #else
1582 | #error("Unsupported runtime")
| `- error: Unsupported runtime
1583 | #endif
1584 | }()
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/MetadataProvider.swift:28:8: error: Unsupported runtime
26 | import WASILibc
27 | #else
28 | #error("Unsupported runtime")
| `- error: Unsupported runtime
29 | #endif
30 |
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Locks.swift:194:50: error: cannot find type 'pthread_rwlock_t' in scope
192 | UnsafeMutablePointer.allocate(capacity: 1)
193 | #else
194 | fileprivate let rwlock: UnsafeMutablePointer<pthread_rwlock_t> =
| `- error: cannot find type 'pthread_rwlock_t' in scope
195 | UnsafeMutablePointer.allocate(capacity: 1)
196 | #endif
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:990:32: error: 'Codable' is unavailable: unavailable in embedded Swift
988 | /// Log levels are ordered by their severity, with `.trace` being the least severe and
989 | /// `.critical` being the most severe.
990 | public enum Level: String, Codable, CaseIterable {
| `- error: 'Codable' is unavailable: unavailable in embedded Swift
991 | /// Appropriate for messages that contain information normally of use only when
992 | /// tracing the execution of a program.
Swift.Codable:2:18: note: 'Codable' has been explicitly marked unavailable here
1 | @_unavailableInEmbedded
2 | public typealias Codable = Decodable & Encodable
| `- note: 'Codable' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1442:53: error: cannot convert value of type '()' to closure result type 'StdioOutputStream'
1440 | }
1441 |
1442 | internal static let stderr: StdioOutputStream = {
| `- error: cannot convert value of type '()' to closure result type 'StdioOutputStream'
1443 | #if canImport(Darwin)
1444 | return StdioOutputStream(
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1514:53: error: cannot convert value of type '()' to closure result type 'StdioOutputStream'
1512 | }()
1513 |
1514 | internal static let stdout: StdioOutputStream = {
| `- error: cannot convert value of type '()' to closure result type 'StdioOutputStream'
1515 | #if canImport(Darwin)
1516 | return StdioOutputStream(
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1770:25: error: cannot find 'time' in scope
1768 | _ = strftime(&buffer, buffer.count, "%Y-%m-%dT%H:%M:%S%z", &localTime)
1769 | #else
1770 | var timestamp = time(nil)
| `- error: cannot find 'time' in scope
1771 | guard let localTime = localtime(×tamp) else {
1772 | return "<unknown>"
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1770:30: error: 'nil' requires a contextual type
1768 | _ = strftime(&buffer, buffer.count, "%Y-%m-%dT%H:%M:%S%z", &localTime)
1769 | #else
1770 | var timestamp = time(nil)
| `- error: 'nil' requires a contextual type
1771 | guard let localTime = localtime(×tamp) else {
1772 | return "<unknown>"
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1771:31: error: cannot find 'localtime' in scope
1769 | #else
1770 | var timestamp = time(nil)
1771 | guard let localTime = localtime(×tamp) else {
| `- error: cannot find 'localtime' in scope
1772 | return "<unknown>"
1773 | }
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1774:9: error: cannot find 'strftime' in scope
1772 | return "<unknown>"
1773 | }
1774 | strftime(&buffer, buffer.count, "%Y-%m-%dT%H:%M:%S%z", localTime)
| `- error: cannot find 'strftime' in scope
1775 | #endif
1776 | return buffer.withUnsafeBufferPointer {
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1895:54: error: 'description' is unavailable: unavailable in embedded Swift
1893 | switch self {
1894 | case .dictionary(let dict):
1895 | return dict.mapValues { $0.description }.description
| `- error: 'description' is unavailable: unavailable in embedded Swift
1896 | case .array(let list):
1897 | return list.map { $0.description }.description
Swift.Dictionary.description:2:12: note: 'description' has been explicitly marked unavailable here
1 | generic struct Dictionary {
2 | public var description: String { get }}
| `- note: 'description' has been explicitly marked unavailable here
3 |
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1897:48: error: 'description' is unavailable: unavailable in embedded Swift
1895 | return dict.mapValues { $0.description }.description
1896 | case .array(let list):
1897 | return list.map { $0.description }.description
| `- error: 'description' is unavailable: unavailable in embedded Swift
1898 | case .string(let str):
1899 | return str
Swift.Array.description:2:12: note: 'description' has been explicitly marked unavailable here
1 | generic struct Array {
2 | public var description: String { get }}
| `- note: 'description' has been explicitly marked unavailable here
3 |
[7/7] Compiling Logging Locks.swift
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Locks.swift:48:8: error: The concurrency lock module was unable to identify your C library.
46 | #endif
47 | #else
48 | #error("The concurrency lock module was unable to identify your C library.")
| `- error: The concurrency lock module was unable to identify your C library.
49 | #endif
50 |
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:28:8: error: Unsupported runtime
26 | import WASILibc
27 | #else
28 | #error("Unsupported runtime")
| `- error: Unsupported runtime
29 | #endif
30 |
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1510:16: error: Unsupported runtime
1508 | )
1509 | #else
1510 | #error("Unsupported runtime")
| `- error: Unsupported runtime
1511 | #endif
1512 | }()
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1582:16: error: Unsupported runtime
1580 | )
1581 | #else
1582 | #error("Unsupported runtime")
| `- error: Unsupported runtime
1583 | #endif
1584 | }()
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/MetadataProvider.swift:28:8: error: Unsupported runtime
26 | import WASILibc
27 | #else
28 | #error("Unsupported runtime")
| `- error: Unsupported runtime
29 | #endif
30 |
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Locks.swift:194:50: error: cannot find type 'pthread_rwlock_t' in scope
192 | UnsafeMutablePointer.allocate(capacity: 1)
193 | #else
194 | fileprivate let rwlock: UnsafeMutablePointer<pthread_rwlock_t> =
| `- error: cannot find type 'pthread_rwlock_t' in scope
195 | UnsafeMutablePointer.allocate(capacity: 1)
196 | #endif
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:990:32: error: 'Codable' is unavailable: unavailable in embedded Swift
988 | /// Log levels are ordered by their severity, with `.trace` being the least severe and
989 | /// `.critical` being the most severe.
990 | public enum Level: String, Codable, CaseIterable {
| `- error: 'Codable' is unavailable: unavailable in embedded Swift
991 | /// Appropriate for messages that contain information normally of use only when
992 | /// tracing the execution of a program.
Swift.Codable:2:18: note: 'Codable' has been explicitly marked unavailable here
1 | @_unavailableInEmbedded
2 | public typealias Codable = Decodable & Encodable
| `- note: 'Codable' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1442:53: error: cannot convert value of type '()' to closure result type 'StdioOutputStream'
1440 | }
1441 |
1442 | internal static let stderr: StdioOutputStream = {
| `- error: cannot convert value of type '()' to closure result type 'StdioOutputStream'
1443 | #if canImport(Darwin)
1444 | return StdioOutputStream(
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1514:53: error: cannot convert value of type '()' to closure result type 'StdioOutputStream'
1512 | }()
1513 |
1514 | internal static let stdout: StdioOutputStream = {
| `- error: cannot convert value of type '()' to closure result type 'StdioOutputStream'
1515 | #if canImport(Darwin)
1516 | return StdioOutputStream(
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1770:25: error: cannot find 'time' in scope
1768 | _ = strftime(&buffer, buffer.count, "%Y-%m-%dT%H:%M:%S%z", &localTime)
1769 | #else
1770 | var timestamp = time(nil)
| `- error: cannot find 'time' in scope
1771 | guard let localTime = localtime(×tamp) else {
1772 | return "<unknown>"
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1770:30: error: 'nil' requires a contextual type
1768 | _ = strftime(&buffer, buffer.count, "%Y-%m-%dT%H:%M:%S%z", &localTime)
1769 | #else
1770 | var timestamp = time(nil)
| `- error: 'nil' requires a contextual type
1771 | guard let localTime = localtime(×tamp) else {
1772 | return "<unknown>"
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1771:31: error: cannot find 'localtime' in scope
1769 | #else
1770 | var timestamp = time(nil)
1771 | guard let localTime = localtime(×tamp) else {
| `- error: cannot find 'localtime' in scope
1772 | return "<unknown>"
1773 | }
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1774:9: error: cannot find 'strftime' in scope
1772 | return "<unknown>"
1773 | }
1774 | strftime(&buffer, buffer.count, "%Y-%m-%dT%H:%M:%S%z", localTime)
| `- error: cannot find 'strftime' in scope
1775 | #endif
1776 | return buffer.withUnsafeBufferPointer {
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1895:54: error: 'description' is unavailable: unavailable in embedded Swift
1893 | switch self {
1894 | case .dictionary(let dict):
1895 | return dict.mapValues { $0.description }.description
| `- error: 'description' is unavailable: unavailable in embedded Swift
1896 | case .array(let list):
1897 | return list.map { $0.description }.description
Swift.Dictionary.description:2:12: note: 'description' has been explicitly marked unavailable here
1 | generic struct Dictionary {
2 | public var description: String { get }}
| `- note: 'description' has been explicitly marked unavailable here
3 |
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1897:48: error: 'description' is unavailable: unavailable in embedded Swift
1895 | return dict.mapValues { $0.description }.description
1896 | case .array(let list):
1897 | return list.map { $0.description }.description
| `- error: 'description' is unavailable: unavailable in embedded Swift
1898 | case .string(let str):
1899 | return str
Swift.Array.description:2:12: note: 'description' has been explicitly marked unavailable here
1 | generic struct Array {
2 | public var description: String { get }}
| `- note: 'description' has been explicitly marked unavailable here
3 |
BUILD FAILURE 6.2 wasm