The Swift Package Index logo.Swift Package Index

Build Information

Failed to build swift-system-extras, reference master (42f297), with Swift 6.3 for Wasm on 21 Apr 2026 10:37:25 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/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.3-latest swift build --swift-sdk swift-6.3-RELEASE_wasm 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/tayloraswift/swift-system-extras.git
Reference: master
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/tayloraswift/swift-system-extras
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 42f297a add license and readme
Cloned https://github.com/tayloraswift/swift-system-extras.git
Revision (git rev-parse @):
42f297a3191e668ed072878d5db3890db8eada50
SUCCESS checkout https://github.com/tayloraswift/swift-system-extras.git at master
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.3
Building package at path:  $PWD
https://github.com/tayloraswift/swift-system-extras.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/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.3-latest swift build --swift-sdk swift-6.3-RELEASE_wasm 2>&1
wasm-6.3-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:d69f4e7582c319245442d62a08b2d7c7fd5a0c0c69f5d2ef11d1530cd8d3329b
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest
Fetching https://github.com/apple/swift-system.git
[1/5601] Fetching swift-system
Fetched https://github.com/apple/swift-system.git from cache (0.79s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.6.4 (1.76s)
Creating working copy for https://github.com/apple/swift-system.git
Working copy of https://github.com/apple/swift-system.git resolved at 1.6.4
Building for debugging...
[0/4] Write sources
[2/4] Compiling CSystem shims.c
[3/4] Write swift-version-24593BA9C3E375BF.txt
[5/35] Emitting module SystemPackage
[6/39] Compiling SystemPackage FilePathSyntax.swift
[7/39] Compiling SystemPackage FilePathTemp.swift
[8/39] Compiling SystemPackage FilePathTempPosix.swift
[9/39] Compiling SystemPackage FilePathTempWindows.swift
[10/39] Compiling SystemPackage SystemString.swift
[11/39] Compiling SystemPackage Util+StringArray.swift
[12/39] Compiling SystemPackage Util.swift
[13/39] Compiling SystemPackage UtilConsumers.swift
[14/39] Compiling SystemPackage Errno.swift
[15/39] Compiling SystemPackage ErrnoWindows.swift
[16/39] Compiling SystemPackage FileDescriptor.swift
[17/39] Compiling SystemPackage FileHelpers.swift
[18/39] Compiling SystemPackage FileOperations.swift
[19/39] Compiling SystemPackage FilePath.swift
[20/39] Compiling SystemPackage FilePathComponentView.swift
[21/39] Compiling SystemPackage FilePathComponents.swift
[22/39] Compiling SystemPackage FilePathParsing.swift
[23/39] Compiling SystemPackage FilePathString.swift
[24/39] Compiling SystemPackage FilePathWindows.swift
[25/39] Compiling SystemPackage FilePermissions.swift
[26/39] Compiling SystemPackage IOCompletion.swift
[27/39] Compiling SystemPackage IORequest.swift
[28/39] Compiling SystemPackage IORing.swift
[29/39] Compiling SystemPackage RawIORequest.swift
[30/39] Compiling SystemPackage Backcompat.swift
[31/39] Compiling SystemPackage CInterop.swift
[32/39] Compiling SystemPackage Syscalls.swift
[33/39] Compiling SystemPackage WindowsSyscallAdapters.swift
[34/39] Compiling SystemPackage MachPort.swift
[35/39] Compiling SystemPackage PlatformString.swift
[36/39] Compiling SystemPackage Constants.swift
[37/39] Compiling SystemPackage Exports.swift
[38/39] Compiling SystemPackage Mocking.swift
[39/39] Compiling SystemPackage RawBuffer.swift
[41/43] Compiling SystemExtras FilePath.DirectoryView.swift
/host/spi-builder-workspace/Sources/SystemExtras/FilePath.DirectoryView.swift:10:8: error: unsupported platform
  8 | import Glibc
  9 | #else
 10 | #error("unsupported platform")
    |        `- error: unsupported platform
 11 | #endif
 12 |
/host/spi-builder-workspace/Sources/SystemExtras/FilePath.DirectoryView.swift:51:20: error: cannot find type 'StreamPointer' in scope
 49 |
 50 |         public
 51 |         var stream:StreamPointer?
    |                    `- error: cannot find type 'StreamPointer' in scope
 52 |
 53 |         /// - Parameter path: The file system path to provide directory entries for, should reference a directory
/host/spi-builder-workspace/Sources/SystemExtras/FilePath.DirectoryView.swift:57:51: error: cannot find 'opendir' in scope
 55 |         init(_ path:FilePath)
 56 |         {
 57 |             self.stream = path.withPlatformString(opendir(_:))
    |                                                   `- error: cannot find 'opendir' in scope
 58 |         }
 59 |
/host/spi-builder-workspace/Sources/SystemExtras/FilePath.DirectoryView.swift:57:51: error: converting non-escaping value to '(UnsafePointer<CInterop.PlatformChar>) throws -> Result' (aka '(UnsafePointer<Int8>) throws -> Result') may allow it to escape
 55 |         init(_ path:FilePath)
 56 |         {
 57 |             self.stream = path.withPlatformString(opendir(_:))
    |                                                   `- error: converting non-escaping value to '(UnsafePointer<CInterop.PlatformChar>) throws -> Result' (aka '(UnsafePointer<Int8>) throws -> Result') may allow it to escape
 58 |         }
 59 |
/host/spi-builder-workspace/Sources/SystemExtras/FilePath.DirectoryView.swift:63:30: error: cannot find type 'StreamPointer' in scope
 61 |         func next() -> Component?
 62 |         {
 63 |             guard let stream:StreamPointer = self.stream
    |                              `- error: cannot find type 'StreamPointer' in scope
 64 |             else
 65 |             {
/host/spi-builder-workspace/Sources/SystemExtras/FilePath.DirectoryView.swift:68:49: error: cannot find type 'dirent' in scope
 66 |                 return nil
 67 |             }
 68 |             guard let offset:Int = MemoryLayout<dirent>.offset(of: \.d_name)
    |                                                 `- error: cannot find type 'dirent' in scope
 69 |             else
 70 |             {
/host/spi-builder-workspace/Sources/SystemExtras/FilePath.DirectoryView.swift:68:68: error: cannot infer key path type from context; consider explicitly specifying a root type
 66 |                 return nil
 67 |             }
 68 |             guard let offset:Int = MemoryLayout<dirent>.offset(of: \.d_name)
    |                                                                    `- error: cannot infer key path type from context; consider explicitly specifying a root type
 69 |             else
 70 |             {
/host/spi-builder-workspace/Sources/SystemExtras/FilePath.DirectoryView.swift:73:50: error: cannot find type 'dirent' in scope
 71 |                 fatalError("invalid `dirent` layout")
 72 |             }
 73 |             while let entry:UnsafeMutablePointer<dirent> = readdir(stream)
    |                                                  `- error: cannot find type 'dirent' in scope
 74 |             {
 75 |                 // `entry` is likely statically-allocated, and has variable-length layout.
/host/spi-builder-workspace/Sources/SystemExtras/FilePath.DirectoryView.swift:73:60: error: cannot find 'readdir' in scope
 71 |                 fatalError("invalid `dirent` layout")
 72 |             }
 73 |             while let entry:UnsafeMutablePointer<dirent> = readdir(stream)
    |                                                            `- error: cannot find 'readdir' in scope
 74 |             {
 75 |                 // `entry` is likely statically-allocated, and has variable-length layout.
/host/spi-builder-workspace/Sources/SystemExtras/FilePath.DirectoryView.swift:94:13: error: cannot find 'closedir' in scope
 92 |             }
 93 |
 94 |             closedir(stream)
    |             `- error: cannot find 'closedir' in scope
 95 |             self.stream = nil
 96 |             return nil
[42/43] Compiling SystemExtras FilePath.swift
/host/spi-builder-workspace/Sources/SystemExtras/FilePath.DirectoryView.swift:10:8: error: unsupported platform
  8 | import Glibc
  9 | #else
 10 | #error("unsupported platform")
    |        `- error: unsupported platform
 11 | #endif
 12 |
error: emit-module command failed with exit code 1 (use -v to see invocation)
[43/43] Emitting module SystemExtras
/host/spi-builder-workspace/Sources/SystemExtras/FilePath.DirectoryView.swift:10:8: error: unsupported platform
  8 | import Glibc
  9 | #else
 10 | #error("unsupported platform")
    |        `- error: unsupported platform
 11 | #endif
 12 |
/host/spi-builder-workspace/Sources/SystemExtras/FilePath.DirectoryView.swift:51:20: error: cannot find type 'StreamPointer' in scope
 49 |
 50 |         public
 51 |         var stream:StreamPointer?
    |                    `- error: cannot find type 'StreamPointer' in scope
 52 |
 53 |         /// - Parameter path: The file system path to provide directory entries for, should reference a directory
BUILD FAILURE 6.3 wasm