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 LeafMarkdown, reference 3.0.1 (ecec9a), with Swift 6.2 (beta) for Wasm on 19 Jun 2025 01:51:16 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-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/vapor-community/leaf-markdown.git
Reference: 3.0.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/vapor-community/leaf-markdown
 * tag               3.0.1      -> FETCH_HEAD
HEAD is now at ecec9a9 Update for UnsafeUnescapedLeafTag
Cloned https://github.com/vapor-community/leaf-markdown.git
Revision (git rev-parse @):
ecec9a93102139609aa5a84c51990fc305fbc1d6
SUCCESS checkout https://github.com/vapor-community/leaf-markdown.git at 3.0.1
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.2
Building package at path:  $PWD
https://github.com/vapor-community/leaf-markdown.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-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/vapor-community/markdown.git
Fetching https://github.com/vapor/leaf-kit.git
[3/246] Fetching markdown
[2/5184] Fetching markdown, leaf-kit
Fetched https://github.com/vapor-community/markdown.git from cache (0.66s)
Fetched https://github.com/vapor/leaf-kit.git from cache (0.66s)
Computing version for https://github.com/vapor-community/markdown.git
Computed https://github.com/vapor-community/markdown.git at 0.7.1 (1.10s)
Fetching https://github.com/brokenhandsio/cmark-gfm.git
[1/12300] Fetching cmark-gfm
Fetched https://github.com/brokenhandsio/cmark-gfm.git from cache (0.66s)
Computing version for https://github.com/brokenhandsio/cmark-gfm.git
Computed https://github.com/brokenhandsio/cmark-gfm.git at 2.1.0 (1.03s)
Computing version for https://github.com/vapor/leaf-kit.git
Computed https://github.com/vapor/leaf-kit.git at 1.13.1 (0.47s)
Fetching https://github.com/apple/swift-nio.git
[1/76327] Fetching swift-nio
Fetched https://github.com/apple/swift-nio.git from cache (4.16s)
Computing version for https://github.com/apple/swift-nio.git
Computed https://github.com/apple/swift-nio.git at 2.83.0 (5.41s)
Fetching https://github.com/apple/swift-system.git
Fetching https://github.com/apple/swift-collections.git
Fetching https://github.com/apple/swift-atomics.git
[1/1797] Fetching swift-atomics
[1798/6233] Fetching swift-atomics, swift-system
[2109/22873] Fetching swift-atomics, swift-system, swift-collections
Fetched https://github.com/apple/swift-atomics.git from cache (0.94s)
Fetched https://github.com/apple/swift-system.git from cache (1.01s)
Fetched https://github.com/apple/swift-collections.git from cache (1.04s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 1.3.0 (1.36s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.5.0 (0.31s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.2.0 (0.59s)
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
Creating working copy for https://github.com/brokenhandsio/cmark-gfm.git
Working copy of https://github.com/brokenhandsio/cmark-gfm.git resolved at 2.1.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-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-collections.git
Working copy of https://github.com/apple/swift-collections.git resolved at 1.2.0
Creating working copy for https://github.com/vapor-community/markdown.git
Working copy of https://github.com/vapor-community/markdown.git resolved at 0.7.1
Creating working copy for https://github.com/vapor/leaf-kit.git
Working copy of https://github.com/vapor/leaf-kit.git resolved at 1.13.1
Building for debugging...
[0/62] Compiling cmark plugin.c
[1/62] Compiling cmark linked_list.c
[2/62] Compiling cmark map.c
[3/62] Compiling cmark man.c
[4/62] Compiling cmark plaintext.c
[5/62] Compiling cmark references.c
[5/62] Write swift-version-24593BA9C3E375BF.txt
[7/62] Compiling cmark xml.c
[8/62] Compiling cmark tagfilter.c
[9/62] Compiling cmark node.c
[10/62] Compiling cmark tasklist.c
[11/62] Compiling cmark syntax_extension.c
[12/62] Compiling cmark registry.c
[13/62] Compiling cmark strikethrough.c
[14/62] Compiling cmark table.c
[15/62] Compiling cmark render.c
[16/62] Compiling cmark latex.c
[17/62] Compiling cmark iterator.c
[18/62] Compiling cmark houdini_html_e.c
[19/62] Compiling cmark html.c
[20/62] Compiling cmark houdini_href_e.c
[21/62] Compiling cmark footnotes.c
[22/62] Compiling cmark core-extensions.c
[23/62] Compiling cmark cmark_ctype.c
[24/62] Compiling cmark houdini_html_u.c
[25/62] Compiling cmark inlines.c
[26/62] Compiling cmark ext_scanners.c
[27/62] Compiling cmark cmark.c
[28/62] Write sources
[30/62] Compiling cmark buffer.c
[30/62] Write sources
[32/62] Compiling cmark commonmark.c
[33/62] Compiling cmark arena.c
[33/62] Write sources
[47/62] Compiling _AtomicsShims.c
[48/62] Compiling CSystem shims.c
[49/63] Compiling CNIOWindows shim.c
[50/65] Compiling cmark autolink.c
[51/78] Compiling cmark blocks.c
[52/80] Compiling CNIOWindows WSAStartup.c
[53/82] Compiling CNIOWASI CNIOWASI.c
[54/82] Compiling CNIOLinux shim.c
[55/83] Compiling CNIOLinux liburing_shims.c
[56/110] Compiling CNIODarwin shim.c
[58/110] Emitting module _NIODataStructures
[58/110] Compiling cmark scanners.c
[59/110] Write sources
[60/120] Compiling cmark utf8.c
[61/130] Compiling c-nioatomics.c
[62/130] Compiling c-atomics.c
[64/136] Compiling Atomics AtomicStorage.swift
[65/136] Compiling Atomics AtomicValue.swift
[66/138] Compiling InternalCollectionsUtilities UnsafeBufferPointer+Extras.swift
[67/138] Emitting module SwiftMarkdown
[68/138] Compiling SwiftMarkdown SwiftMarkdown.swift
[70/140] Compiling Atomics AtomicInteger.swift
[71/140] Compiling Atomics AtomicOptionalWrappable.swift
[72/140] Compiling Atomics AtomicReference.swift
[74/140] Compiling Atomics OptionalRawRepresentable.swift
[75/140] Compiling Atomics RawRepresentable.swift
[76/140] Compiling Atomics AtomicBool.swift
[77/140] Emitting module InternalCollectionsUtilities
[80/140] Compiling Atomics IntegerConformances.swift
[81/140] Compiling Atomics PointerConformances.swift
[82/140] Compiling Atomics Primitives.native.swift
[83/140] Compiling SystemPackage MachPort.swift
[84/140] Compiling SystemPackage PlatformString.swift
[85/140] Compiling SystemPackage SystemString.swift
[86/143] Compiling Atomics ManagedAtomic.swift
[87/143] Compiling Atomics ManagedAtomicLazyReference.swift
[88/143] Compiling Atomics UnsafeAtomic.swift
[89/143] Compiling Atomics UnsafeAtomicLazyReference.swift
[90/143] Emitting module _NIOBase64
[91/143] Compiling _NIOBase64 Base64.swift
[97/143] Compiling Atomics AtomicMemoryOrderings.swift
[99/144] Compiling Atomics DoubleWord.swift
[100/144] Compiling InternalCollectionsUtilities UnsafeMutableBufferPointer+Extras.swift
[101/145] Emitting module Atomics
error: emit-module command failed with exit code 1 (use -v to see invocation)
[110/145] Emitting module SystemPackage
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Internals/Syscalls.swift:197:57: error: cannot find type 'DIR' in scope
195 | internal typealias system_DIRPtr = OpaquePointer
196 | #else
197 | internal typealias system_DIRPtr = UnsafeMutablePointer<DIR>
    |                                                         `- error: cannot find type 'DIR' in scope
198 | #endif
199 |
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Internals/Syscalls.swift:192:30: error: cannot find 'DT_DIR' in scope
190 | #if !os(Windows)
191 | internal let SYSTEM_AT_REMOVE_DIR = AT_REMOVEDIR
192 | internal let SYSTEM_DT_DIR = DT_DIR
    |                              `- error: cannot find 'DT_DIR' in scope
193 | internal typealias system_dirent = dirent
194 | #if os(Linux) || os(Android) || os(FreeBSD) || os(OpenBSD)
[116/145] Compiling _NIODataStructures PriorityQueue.swift
[117/145] Compiling _NIODataStructures _TinyArray.swift
[118/160] Compiling Atomics IntegerOperations.swift
[119/160] Compiling Atomics Unmanaged extensions.swift
[121/161] Compiling DequeModule _DequeBuffer.swift
[122/161] Compiling DequeModule _DequeBufferHeader.swift
[123/163] Compiling DequeModule Deque+CustomReflectable.swift
[124/163] Compiling DequeModule Deque+Descriptions.swift
[125/163] Compiling DequeModule Deque+Extras.swift
[126/163] Compiling DequeModule Deque+Hashable.swift
[127/163] Compiling _NIODataStructures Heap.swift
[129/164] Compiling DequeModule Deque._UnsafeHandle.swift
[130/164] Compiling DequeModule Deque.swift
[131/164] Compiling DequeModule _DequeSlot.swift
[132/164] Compiling DequeModule _UnsafeWrappedBuffer.swift
[136/164] Compiling SystemPackage Exports.swift
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Internals/Syscalls.swift:197:57: error: cannot find type 'DIR' in scope
195 | internal typealias system_DIRPtr = OpaquePointer
196 | #else
197 | internal typealias system_DIRPtr = UnsafeMutablePointer<DIR>
    |                                                         `- error: cannot find type 'DIR' in scope
198 | #endif
199 |
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Internals/Syscalls.swift:192:30: error: cannot find 'DT_DIR' in scope
190 | #if !os(Windows)
191 | internal let SYSTEM_AT_REMOVE_DIR = AT_REMOVEDIR
192 | internal let SYSTEM_DT_DIR = DT_DIR
    |                              `- error: cannot find 'DT_DIR' in scope
193 | internal typealias system_dirent = dirent
194 | #if os(Linux) || os(Android) || os(FreeBSD) || os(OpenBSD)
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Internals/Syscalls.swift:197:57: error: cannot find type 'DIR' in scope
195 | internal typealias system_DIRPtr = OpaquePointer
196 | #else
197 | internal typealias system_DIRPtr = UnsafeMutablePointer<DIR>
    |                                                         `- error: cannot find type 'DIR' in scope
198 | #endif
199 |
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Internals/Syscalls.swift:192:30: error: cannot find 'DT_DIR' in scope
190 | #if !os(Windows)
191 | internal let SYSTEM_AT_REMOVE_DIR = AT_REMOVEDIR
192 | internal let SYSTEM_DT_DIR = DT_DIR
    |                              `- error: cannot find 'DT_DIR' in scope
193 | internal typealias system_dirent = dirent
194 | #if os(Linux) || os(Android) || os(FreeBSD) || os(OpenBSD)
[139/164] Compiling DequeModule Deque+Testing.swift
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Internals/Syscalls.swift:197:57: error: cannot find type 'DIR' in scope
195 | internal typealias system_DIRPtr = OpaquePointer
196 | #else
197 | internal typealias system_DIRPtr = UnsafeMutablePointer<DIR>
    |                                                         `- error: cannot find type 'DIR' in scope
198 | #endif
199 |
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Internals/Syscalls.swift:192:30: error: cannot find 'DT_DIR' in scope
190 | #if !os(Windows)
191 | internal let SYSTEM_AT_REMOVE_DIR = AT_REMOVEDIR
192 | internal let SYSTEM_DT_DIR = DT_DIR
    |                              `- error: cannot find 'DT_DIR' in scope
193 | internal typealias system_dirent = dirent
194 | #if os(Linux) || os(Android) || os(FreeBSD) || os(OpenBSD)
[140/164] Compiling DequeModule Deque._Storage.swift
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Internals/Syscalls.swift:197:57: error: cannot find type 'DIR' in scope
195 | internal typealias system_DIRPtr = OpaquePointer
196 | #else
197 | internal typealias system_DIRPtr = UnsafeMutablePointer<DIR>
    |                                                         `- error: cannot find type 'DIR' in scope
198 | #endif
199 |
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Internals/Syscalls.swift:192:30: error: cannot find 'DT_DIR' in scope
190 | #if !os(Windows)
191 | internal let SYSTEM_AT_REMOVE_DIR = AT_REMOVEDIR
192 | internal let SYSTEM_DT_DIR = DT_DIR
    |                              `- error: cannot find 'DT_DIR' in scope
193 | internal typealias system_dirent = dirent
194 | #if os(Linux) || os(Android) || os(FreeBSD) || os(OpenBSD)
[141/164] Compiling NIOConcurrencyHelpers lock.swift
[142/164] Compiling SystemPackage Mocking.swift
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Internals/Syscalls.swift:192:30: error: cannot find 'DT_DIR' in scope
190 | #if !os(Windows)
191 | internal let SYSTEM_AT_REMOVE_DIR = AT_REMOVEDIR
192 | internal let SYSTEM_DT_DIR = DT_DIR
    |                              `- error: cannot find 'DT_DIR' in scope
193 | internal typealias system_dirent = dirent
194 | #if os(Linux) || os(Android) || os(FreeBSD) || os(OpenBSD)
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Internals/Syscalls.swift:197:57: error: cannot find type 'DIR' in scope
195 | internal typealias system_DIRPtr = OpaquePointer
196 | #else
197 | internal typealias system_DIRPtr = UnsafeMutablePointer<DIR>
    |                                                         `- error: cannot find type 'DIR' in scope
198 | #endif
199 |
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Internals/Syscalls.swift:252:10: error: cannot find 'umask' in scope
250 |   _ mode: CInterop.Mode
251 | ) -> CInterop.Mode {
252 |   return umask(mode)
    |          `- error: cannot find 'umask' in scope
253 | }
254 |
[143/164] Compiling SystemPackage RawBuffer.swift
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Internals/Syscalls.swift:192:30: error: cannot find 'DT_DIR' in scope
190 | #if !os(Windows)
191 | internal let SYSTEM_AT_REMOVE_DIR = AT_REMOVEDIR
192 | internal let SYSTEM_DT_DIR = DT_DIR
    |                              `- error: cannot find 'DT_DIR' in scope
193 | internal typealias system_dirent = dirent
194 | #if os(Linux) || os(Android) || os(FreeBSD) || os(OpenBSD)
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Internals/Syscalls.swift:197:57: error: cannot find type 'DIR' in scope
195 | internal typealias system_DIRPtr = OpaquePointer
196 | #else
197 | internal typealias system_DIRPtr = UnsafeMutablePointer<DIR>
    |                                                         `- error: cannot find type 'DIR' in scope
198 | #endif
199 |
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Internals/Syscalls.swift:252:10: error: cannot find 'umask' in scope
250 |   _ mode: CInterop.Mode
251 | ) -> CInterop.Mode {
252 |   return umask(mode)
    |          `- error: cannot find 'umask' in scope
253 | }
254 |
[144/164] Compiling SystemPackage Syscalls.swift
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Internals/Syscalls.swift:192:30: error: cannot find 'DT_DIR' in scope
190 | #if !os(Windows)
191 | internal let SYSTEM_AT_REMOVE_DIR = AT_REMOVEDIR
192 | internal let SYSTEM_DT_DIR = DT_DIR
    |                              `- error: cannot find 'DT_DIR' in scope
193 | internal typealias system_dirent = dirent
194 | #if os(Linux) || os(Android) || os(FreeBSD) || os(OpenBSD)
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Internals/Syscalls.swift:197:57: error: cannot find type 'DIR' in scope
195 | internal typealias system_DIRPtr = OpaquePointer
196 | #else
197 | internal typealias system_DIRPtr = UnsafeMutablePointer<DIR>
    |                                                         `- error: cannot find type 'DIR' in scope
198 | #endif
199 |
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Internals/Syscalls.swift:252:10: error: cannot find 'umask' in scope
250 |   _ mode: CInterop.Mode
251 | ) -> CInterop.Mode {
252 |   return umask(mode)
    |          `- error: cannot find 'umask' in scope
253 | }
254 |
[145/164] Compiling SystemPackage WindowsSyscallAdapters.swift
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Internals/Syscalls.swift:192:30: error: cannot find 'DT_DIR' in scope
190 | #if !os(Windows)
191 | internal let SYSTEM_AT_REMOVE_DIR = AT_REMOVEDIR
192 | internal let SYSTEM_DT_DIR = DT_DIR
    |                              `- error: cannot find 'DT_DIR' in scope
193 | internal typealias system_dirent = dirent
194 | #if os(Linux) || os(Android) || os(FreeBSD) || os(OpenBSD)
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Internals/Syscalls.swift:197:57: error: cannot find type 'DIR' in scope
195 | internal typealias system_DIRPtr = OpaquePointer
196 | #else
197 | internal typealias system_DIRPtr = UnsafeMutablePointer<DIR>
    |                                                         `- error: cannot find type 'DIR' in scope
198 | #endif
199 |
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Internals/Syscalls.swift:252:10: error: cannot find 'umask' in scope
250 |   _ mode: CInterop.Mode
251 | ) -> CInterop.Mode {
252 |   return umask(mode)
    |          `- error: cannot find 'umask' in scope
253 | }
254 |
[146/164] Compiling SystemPackage Util+StringArray.swift
[147/164] Compiling SystemPackage Util.swift
[148/164] Compiling SystemPackage UtilConsumers.swift
[149/164] Compiling NIOConcurrencyHelpers NIOAtomic.swift
[150/164] Emitting module NIOConcurrencyHelpers
[151/164] Compiling NIOConcurrencyHelpers NIOLockedValueBox.swift
[152/164] Compiling NIOConcurrencyHelpers NIOLock.swift
BUILD FAILURE 6.2 wasm