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 swift-wallet, reference main (68d795), with Swift 6.1 for Wasm on 2 Jun 2025 00:49:47 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.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/fpseverino/swift-wallet.git
Reference: main
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/fpseverino/swift-wallet
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 68d795e Fix an JSON encoding bug for dates. (#6)
Cloned https://github.com/fpseverino/swift-wallet.git
Revision (git rev-parse @):
68d795ee394c035c5c4c50f9b8e8cf405b167988
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/fpseverino/swift-wallet.git at main
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/fpseverino/swift-wallet.git
https://github.com/fpseverino/swift-wallet.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
    {
      "identity" : "swift-certificates",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.6.1",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-certificates.git"
    },
    {
      "identity" : "swift-zip-archive",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "0.5.0",
            "upper_bound" : "1.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/adam-fowler/swift-zip-archive.git"
    }
  ],
  "manifest_display_name" : "swift-wallet",
  "name" : "swift-wallet",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "13.0"
    }
  ],
  "products" : [
    {
      "name" : "WalletPasses",
      "targets" : [
        "WalletPasses"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "WalletOrders",
      "targets" : [
        "WalletOrders"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "WalletPassesTests",
      "module_type" : "SwiftTarget",
      "name" : "WalletPassesTests",
      "path" : "Tests/WalletPassesTests",
      "resources" : [
        {
          "path" : "/host/spi-builder-workspace/Tests/WalletPassesTests/SourceFiles",
          "rule" : {
            "copy" : {
            }
          }
        }
      ],
      "sources" : [
        "Utils/TestCertificate.swift",
        "Utils/TestPass.swift",
        "WalletPassesTests.swift"
      ],
      "target_dependencies" : [
        "WalletPasses"
      ],
      "type" : "test"
    },
    {
      "c99name" : "WalletPasses",
      "module_type" : "SwiftTarget",
      "name" : "WalletPasses",
      "path" : "Sources/WalletPasses",
      "product_dependencies" : [
        "X509",
        "ZipArchive"
      ],
      "product_memberships" : [
        "WalletPasses"
      ],
      "sources" : [
        "PassBuilder.swift",
        "PassJSON.swift",
        "PersonalizationJSON.swift",
        "WalletPassesError.swift"
      ],
      "type" : "library"
    },
    {
      "c99name" : "WalletOrdersTests",
      "module_type" : "SwiftTarget",
      "name" : "WalletOrdersTests",
      "path" : "Tests/WalletOrdersTests",
      "resources" : [
        {
          "path" : "/host/spi-builder-workspace/Tests/WalletOrdersTests/SourceFiles",
          "rule" : {
            "copy" : {
            }
          }
        }
      ],
      "sources" : [
        "Utils/TestCertificate.swift",
        "Utils/TestOrder.swift",
        "WalletOrdersTests.swift"
      ],
      "target_dependencies" : [
        "WalletOrders"
      ],
      "type" : "test"
    },
    {
      "c99name" : "WalletOrders",
      "module_type" : "SwiftTarget",
      "name" : "WalletOrders",
      "path" : "Sources/WalletOrders",
      "product_dependencies" : [
        "X509",
        "ZipArchive"
      ],
      "product_memberships" : [
        "WalletOrders"
      ],
      "sources" : [
        "OrderBuilder.swift",
        "OrderJSON.swift",
        "WalletOrdersError.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "6.0"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
Fetching https://github.com/adam-fowler/swift-zip-archive.git
Fetching https://github.com/apple/swift-certificates.git
[1/716] Fetching swift-zip-archive
[717/6871] Fetching swift-zip-archive, swift-certificates
Fetched https://github.com/adam-fowler/swift-zip-archive.git from cache (0.35s)
Fetched https://github.com/apple/swift-certificates.git from cache (0.36s)
Computing version for https://github.com/adam-fowler/swift-zip-archive.git
Computed https://github.com/adam-fowler/swift-zip-archive.git at 0.6.3 (2.26s)
Fetching https://github.com/apple/swift-system.git
[1/4391] Fetching swift-system
Fetched https://github.com/apple/swift-system.git from cache (0.36s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.5.0 (0.80s)
Computing version for https://github.com/apple/swift-certificates.git
Computed https://github.com/apple/swift-certificates.git at 1.10.0 (1.88s)
Fetching https://github.com/apple/swift-asn1.git
Fetching https://github.com/apple/swift-crypto.git
[1/1590] Fetching swift-asn1
[1591/15526] Fetching swift-asn1, swift-crypto
Fetched https://github.com/apple/swift-asn1.git from cache (1.92s)
Fetched https://github.com/apple/swift-crypto.git from cache (1.96s)
Computing version for https://github.com/apple/swift-crypto.git
Computed https://github.com/apple/swift-crypto.git at 3.12.3 (4.66s)
Computing version for https://github.com/apple/swift-asn1.git
Computed https://github.com/apple/swift-asn1.git at 1.3.2 (0.88s)
Creating working copy for https://github.com/apple/swift-certificates.git
Working copy of https://github.com/apple/swift-certificates.git resolved at 1.10.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-asn1.git
Working copy of https://github.com/apple/swift-asn1.git resolved at 1.3.2
Creating working copy for https://github.com/apple/swift-crypto.git
Working copy of https://github.com/apple/swift-crypto.git resolved at 3.12.3
Creating working copy for https://github.com/adam-fowler/swift-zip-archive.git
Working copy of https://github.com/adam-fowler/swift-zip-archive.git resolved at 0.6.3
Building for debugging...
[0/373] Write sources
[10/373] Compiling CZipZlib empty.c
[11/373] Compiling CSystem shims.c
[12/373] Compiling fiat_p256_adx_sqr.S
[13/373] Compiling fiat_p256_adx_mul.S
[14/373] Compiling fiat_curve25519_adx_square.S
[15/373] Write swift-version-24593BA9C3E375BF.txt
[16/373] Compiling fiat_curve25519_adx_mul.S
[17/373] Compiling md5-x86_64-linux.S
[18/373] Compiling CCryptoBoringSSLShims shims.c
[19/373] Compiling a_d2i_fp.cc
[20/373] Compiling md5-x86_64-apple.S
[21/414] Compiling md5-586-linux.S
[22/418] Compiling a_bitstr.cc
[23/420] Compiling a_dup.cc
[24/420] Compiling md5-586-apple.S
[25/420] Compiling chacha20_poly1305_x86_64-linux.S
[26/420] Compiling a_octet.cc
[27/420] Compiling chacha20_poly1305_x86_64-apple.S
[28/420] Compiling chacha20_poly1305_armv8-win.S
[29/420] Compiling chacha20_poly1305_armv8-linux.S
[30/420] Compiling chacha-x86_64-linux.S
[31/420] Compiling chacha20_poly1305_armv8-apple.S
[32/420] Compiling chacha-x86_64-apple.S
[33/420] Compiling a_bool.cc
[34/420] Compiling chacha-x86-apple.S
[35/420] Compiling chacha-x86-linux.S
[36/420] Compiling chacha-armv8-win.S
[37/420] Compiling chacha-armv8-apple.S
[37/420] Compiling chacha-armv8-linux.S
[39/420] Compiling chacha-armv4-linux.S
[40/420] Compiling aes128gcmsiv-x86_64-linux.S
[41/420] Compiling aes128gcmsiv-x86_64-apple.S
[42/420] Compiling x86_64-mont5-apple.S
[43/420] Compiling x86_64-mont5-linux.S
[44/420] Compiling x86-mont-linux.S
[45/420] Compiling x86_64-mont-apple.S
[46/420] Compiling x86_64-mont-linux.S
[47/420] Compiling x86-mont-apple.S
[48/420] Compiling vpaes-x86_64-apple.S
[49/420] Compiling vpaes-x86-linux.S
[50/420] Compiling vpaes-x86_64-linux.S
[51/420] Compiling err_data.cc
[52/420] Compiling vpaes-x86-apple.S
[53/420] Compiling vpaes-armv8-win.S
[54/420] Compiling vpaes-armv8-linux.S
[55/420] Compiling vpaes-armv8-apple.S
[56/420] Compiling sha512-x86_64-linux.S
[56/420] Compiling vpaes-armv7-linux.S
[58/420] Compiling sha512-x86_64-apple.S
[59/420] Compiling sha512-armv8-win.S
[60/420] Compiling sha512-armv8-linux.S
[61/420] Compiling sha512-586-linux.S
[62/420] Compiling sha512-armv8-apple.S
[63/420] Compiling sha512-armv4-linux.S
[64/420] Compiling sha512-586-apple.S
[65/420] Compiling sha256-x86_64-apple.S
[66/420] Compiling sha256-x86_64-linux.S
[67/420] Compiling sha256-armv8-win.S
[68/420] Compiling sha256-armv8-linux.S
[69/420] Compiling sha256-586-linux.S
[70/420] Compiling sha256-armv4-linux.S
[71/420] Compiling sha256-armv8-apple.S
[72/420] Compiling sha1-x86_64-apple.S
[73/420] Compiling sha256-586-apple.S
[74/420] Compiling sha1-x86_64-linux.S
[75/420] Compiling sha1-armv8-win.S
[76/420] Compiling sha1-armv8-linux.S
[77/420] Compiling sha1-armv8-apple.S
[78/420] Compiling sha1-armv4-large-linux.S
[79/420] Compiling sha1-586-linux.S
[80/420] Compiling rsaz-avx2-linux.S
[81/420] Compiling sha1-586-apple.S
[82/420] Compiling rdrand-x86_64-linux.S
[83/420] Compiling rsaz-avx2-apple.S
[84/420] Compiling rdrand-x86_64-apple.S
[85/420] Compiling p256_beeu-x86_64-asm-linux.S
[86/420] Compiling p256_beeu-x86_64-asm-apple.S
[87/420] Compiling p256_beeu-armv8-asm-linux.S
[88/420] Compiling p256_beeu-armv8-asm-win.S
[89/420] Compiling p256_beeu-armv8-asm-apple.S
[90/420] Compiling p256-x86_64-asm-linux.S
[91/420] Compiling p256-x86_64-asm-apple.S
[92/420] Compiling p256-armv8-asm-win.S
[93/420] Compiling p256-armv8-asm-linux.S
[94/420] Compiling p256-armv8-asm-apple.S
[95/420] Compiling ghashv8-armv8-win.S
[95/420] Compiling ghashv8-armv8-linux.S
[97/420] Compiling ghashv8-armv8-apple.S
[98/420] Compiling ghashv8-armv7-linux.S
[99/420] Compiling ghash-x86_64-apple.S
[100/420] Compiling ghash-x86-linux.S
[101/420] Compiling ghash-x86-apple.S
[102/420] Compiling ghash-x86_64-linux.S
[103/420] Compiling ghash-ssse3-x86-linux.S
[104/420] Compiling ghash-ssse3-x86_64-linux.S
[105/420] Compiling ghash-ssse3-x86_64-apple.S
[106/420] Compiling ghash-neon-armv8-apple.S
[107/420] Compiling ghash-neon-armv8-linux.S
[108/420] Compiling ghash-ssse3-x86-apple.S
[109/420] Compiling ghash-armv4-linux.S
[110/420] Compiling ghash-neon-armv8-win.S
[111/420] Compiling co-586-apple.S
[112/420] Compiling co-586-linux.S
[113/420] Compiling bsaes-armv7-linux.S
[114/420] Compiling bn-armv8-linux.S
[115/420] Compiling bn-armv8-win.S
[116/420] Compiling bn-armv8-apple.S
[117/420] Compiling bn-586-linux.S
[118/420] Compiling bn-586-apple.S
[119/420] Compiling armv8-mont-win.S
[120/420] Compiling armv4-mont-linux.S
[121/420] Compiling armv8-mont-linux.S
[122/420] Compiling armv8-mont-apple.S
[123/420] Compiling aesv8-gcm-armv8-win.S
[124/420] Compiling aesv8-gcm-armv8-linux.S
[125/420] Compiling aesv8-armv8-win.S
[126/420] Compiling aesv8-gcm-armv8-apple.S
[127/420] Compiling aesv8-armv8-apple.S
[128/420] Compiling aesv8-armv8-linux.S
[129/420] Compiling aesv8-armv7-linux.S
[130/420] Compiling aesni-x86-linux.S
[131/420] Compiling aesni-x86_64-linux.S
[132/420] Compiling aesni-x86-apple.S
[133/420] Compiling aesni-x86_64-apple.S
[134/420] Compiling aesni-gcm-x86_64-linux.S
[135/420] Compiling aesni-gcm-x86_64-apple.S
[136/420] Compiling aes-gcm-avx10-x86_64-linux.S
[137/420] Compiling aes-gcm-avx10-x86_64-apple.S
[138/420] Compiling x_x509a.cc
[139/420] Compiling x_val.cc
[140/420] Compiling x_x509.cc
[140/420] Compiling x_sig.cc
[142/420] Compiling x_spki.cc
[143/420] Compiling x_req.cc
[145/420] Emitting module SwiftASN1
[146/422] Compiling _CertificateInternals _TinyArray.swift
[147/422] Emitting module _CertificateInternals
[148/423] Compiling SwiftASN1 ASN1OctetString.swift
[149/423] Compiling SwiftASN1 ASN1Strings.swift
[150/423] Compiling SwiftASN1 ArraySliceBigint.swift
[151/423] Compiling SwiftASN1 GeneralizedTime.swift
[152/423] Compiling SwiftASN1 TimeUtilities.swift
[153/423] Compiling SwiftASN1 UTCTime.swift
[154/423] Compiling SwiftASN1 ASN1BitString.swift
[155/423] Compiling SwiftASN1 ASN1Boolean.swift
[156/423] Compiling SwiftASN1 ASN1Identifier.swift
[157/423] Compiling SwiftASN1 ASN1Integer.swift
[158/423] Compiling SwiftASN1 ASN1Null.swift
[159/423] Compiling SwiftASN1 ASN1.swift
[160/423] Compiling SwiftASN1 BER.swift
[161/423] Compiling SwiftASN1 ASN1Any.swift
[162/423] Compiling SystemPackage MachPort.swift
[163/423] Compiling SystemPackage PlatformString.swift
[164/423] Compiling SystemPackage SystemString.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[170/426] 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)
[174/426] Compiling x_exten.cc
[175/426] Compiling x_pubkey.cc
[176/426] Compiling x_name.cc
[177/426] Compiling x_crl.cc
[179/426] Compiling SystemPackage Util+StringArray.swift
[180/426] Compiling SystemPackage Util.swift
[181/426] Compiling SystemPackage UtilConsumers.swift
[182/426] 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 |
[183/426] 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 |
[184/426] 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 |
[185/426] 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 |
[186/426] Compiling SwiftASN1 ObjectIdentifier.swift
[187/426] Compiling SwiftASN1 PEMDocument.swift
[188/426] Compiling SwiftASN1 DER.swift
[189/426] Compiling SwiftASN1 Errors.swift
[190/426] Compiling SystemPackage Constants.swift
[191/426] 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)
/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)
[199/426] Compiling x509rset.cc
[199/426] Compiling x509spki.cc
[199/426] Compiling x509name.cc
[199/426] Compiling x_algor.cc
[199/426] Compiling x_attrib.cc
[199/426] Compiling x_all.cc
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
[0/1] Planning build
Building for debugging...
[0/226] Compiling x_algor.cc
[1/226] Compiling x509cset.cc
[2/226] Compiling x_all.cc
[3/226] Compiling x509rset.cc
[4/226] Write swift-version-24593BA9C3E375BF.txt
[5/226] Compiling x_attrib.cc
[6/226] Compiling x509_vpm.cc
[7/228] Compiling x509spki.cc
[8/228] Compiling x509name.cc
[9/273] Compiling x509_txt.cc
[11/273] Compiling _CertificateInternals _TinyArray.swift
[12/273] Emitting module _CertificateInternals
[13/274] Compiling x509_vfy.cc
[15/274] Compiling SwiftASN1 ObjectIdentifier.swift
[16/274] Compiling SwiftASN1 PEMDocument.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)
[19/276] Compiling SwiftASN1 TimeUtilities.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)
[20/276] Compiling SwiftASN1 UTCTime.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)
[20/279] Compiling x509_trs.cc
[21/279] Compiling x509_v3.cc
[22/279] Compiling x509_obj.cc
[24/279] Compiling SwiftASN1 ASN1Boolean.swift
[25/279] Compiling SwiftASN1 ASN1Identifier.swift
[26/279] Compiling SwiftASN1 ASN1Integer.swift
[27/279] Compiling SwiftASN1 ASN1Null.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[28/279] 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)
[29/279] Compiling SystemPackage FilePathSyntax.swift
[30/279] Compiling SystemPackage FilePathTemp.swift
[30/279] Compiling x509_set.cc
[32/279] Compiling SwiftASN1 ASN1BitString.swift
[35/279] Compiling SwiftASN1 DER.swift
[36/279] Compiling SwiftASN1 Errors.swift
[39/279] Compiling SystemPackage Util+StringArray.swift
[40/279] Compiling SystemPackage Util.swift
[41/279] Compiling SystemPackage UtilConsumers.swift
[41/279] Compiling x509_ext.cc
[42/279] Compiling x509_lu.cc
[44/279] Compiling SwiftASN1 ASN1.swift
[45/279] Compiling SwiftASN1 BER.swift
[46/279] Compiling SwiftASN1 ASN1Any.swift
[48/279] 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 |
[49/279] 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 |
[50/279] 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 |
[51/279] 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 |
[54/279] Compiling SystemPackage Constants.swift
[55/279] Compiling SystemPackage Exports.swift
[56/279] Compiling SystemPackage MachPort.swift
[57/279] Compiling SystemPackage PlatformString.swift
[58/279] Compiling SystemPackage SystemString.swift
[61/279] Compiling SystemPackage FilePathParsing.swift
[62/279] Compiling SystemPackage FilePathString.swift
[62/279] Compiling x509_req.cc
[67/279] Compiling x509_att.cc
[68/279] Compiling x509.cc
[69/279] Compiling v3_skey.cc
[69/279] Compiling v3_utl.cc
[69/279] Compiling x509_d2.cc
[69/279] Compiling v3_purp.cc
[69/279] Compiling x509_def.cc
[69/279] Compiling x509_cmp.cc
BUILD FAILURE 6.1 wasm