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 Benchmark, reference main (5c4569), with Swift 6.1 for Wasm on 31 May 2025 00:02:54 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/ordo-one/package-benchmark.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/ordo-one/package-benchmark
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 5c4569a fix(patch): Rename 'Shared' target to 'BenchmarkShared' (#324)
Cloned https://github.com/ordo-one/package-benchmark.git
Revision (git rev-parse @):
5c4569a9e7e9acac4db43f31e58252539ca71f0b
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/ordo-one/package-benchmark.git at main
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/ordo-one/package-benchmark.git
https://github.com/ordo-one/package-benchmark.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
    {
      "identity" : "swift-system",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.1.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-system.git"
    },
    {
      "identity" : "swift-argument-parser",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.1.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-argument-parser.git"
    },
    {
      "identity" : "texttable",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "0.0.1",
            "upper_bound" : "1.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/ordo-one/TextTable.git"
    },
    {
      "identity" : "hdrhistogram-swift",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "0.1.0",
            "upper_bound" : "1.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/HdrHistogram/hdrhistogram-swift.git"
    },
    {
      "identity" : "swift-atomics",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.0.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-atomics.git"
    },
    {
      "identity" : "package-jemalloc",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.0.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/ordo-one/package-jemalloc.git"
    }
  ],
  "manifest_display_name" : "Benchmark",
  "name" : "Benchmark",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "13.0"
    },
    {
      "name" : "ios",
      "version" : "16.0"
    }
  ],
  "products" : [
    {
      "name" : "BenchmarkCommandPlugin",
      "targets" : [
        "BenchmarkCommandPlugin"
      ],
      "type" : {
        "plugin" : null
      }
    },
    {
      "name" : "BenchmarkPlugin",
      "targets" : [
        "BenchmarkPlugin"
      ],
      "type" : {
        "plugin" : null
      }
    },
    {
      "name" : "Benchmark",
      "targets" : [
        "Benchmark"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "BenchmarkTool",
      "targets" : [
        "BenchmarkTool"
      ],
      "type" : {
        "executable" : null
      }
    },
    {
      "name" : "BenchmarkHelpGenerator",
      "targets" : [
        "BenchmarkHelpGenerator"
      ],
      "type" : {
        "executable" : null
      }
    },
    {
      "name" : "BenchmarkBoilerplateGenerator",
      "targets" : [
        "BenchmarkBoilerplateGenerator"
      ],
      "type" : {
        "executable" : null
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SwiftRuntimeHooks",
      "module_type" : "ClangTarget",
      "name" : "SwiftRuntimeHooks",
      "path" : "Sources/SwiftRuntimeHooks",
      "product_memberships" : [
        "BenchmarkCommandPlugin",
        "Benchmark",
        "BenchmarkTool"
      ],
      "sources" : [
        "shims.c"
      ],
      "type" : "library"
    },
    {
      "c99name" : "CLinuxOperatingSystemStats",
      "module_type" : "ClangTarget",
      "name" : "CLinuxOperatingSystemStats",
      "path" : "Platform/CLinuxOperatingSystemStats",
      "product_memberships" : [
        "BenchmarkCommandPlugin",
        "Benchmark",
        "BenchmarkTool"
      ],
      "sources" : [
        "CLinuxOperatingSystemStats.c"
      ],
      "type" : "library"
    },
    {
      "c99name" : "CDarwinOperatingSystemStats",
      "module_type" : "ClangTarget",
      "name" : "CDarwinOperatingSystemStats",
      "path" : "Platform/CDarwinOperatingSystemStats",
      "product_memberships" : [
        "BenchmarkCommandPlugin",
        "Benchmark",
        "BenchmarkTool"
      ],
      "sources" : [
        "CDarwinOperatingSystemStats.c"
      ],
      "type" : "library"
    },
    {
      "c99name" : "BenchmarkTool",
      "module_type" : "SwiftTarget",
      "name" : "BenchmarkTool",
      "path" : "Plugins/BenchmarkTool",
      "product_dependencies" : [
        "ArgumentParser",
        "SystemPackage",
        "TextTable"
      ],
      "product_memberships" : [
        "BenchmarkCommandPlugin",
        "BenchmarkTool"
      ],
      "sources" : [
        "BenchmarkTool+Baselines.swift",
        "BenchmarkTool+CreateBenchmark.swift",
        "BenchmarkTool+Export+InfluxCSVFormatter.swift",
        "BenchmarkTool+Export+JMHElement.swift",
        "BenchmarkTool+Export+JMHFormatter.swift",
        "BenchmarkTool+Export.swift",
        "BenchmarkTool+JSON.swift",
        "BenchmarkTool+Machine.swift",
        "BenchmarkTool+Operations.swift",
        "BenchmarkTool+PrettyPrinting.swift",
        "BenchmarkTool+ReadP90AbsoluteThresholds.swift",
        "BenchmarkTool+Thresholds.swift",
        "BenchmarkTool.swift",
        "FilePath+Additions.swift",
        "FilePath+DirectoryView.swift",
        "String+Additions.swift"
      ],
      "target_dependencies" : [
        "Benchmark",
        "BenchmarkShared"
      ],
      "type" : "executable"
    },
    {
      "c99name" : "BenchmarkTests",
      "module_type" : "SwiftTarget",
      "name" : "BenchmarkTests",
      "path" : "Tests/BenchmarkTests",
      "sources" : [
        "AdditionalTests.swift",
        "BenchmarkMetricsTests.swift",
        "BenchmarkResultTests.swift",
        "BenchmarkRunnerTests.swift",
        "BenchmarkTests.swift",
        "OperatingSystemAndMallocTests.swift",
        "StatisticsTests.swift"
      ],
      "target_dependencies" : [
        "Benchmark"
      ],
      "type" : "test"
    },
    {
      "c99name" : "BenchmarkShared",
      "module_type" : "SwiftTarget",
      "name" : "BenchmarkShared",
      "path" : "Sources/BenchmarkShared",
      "product_memberships" : [
        "BenchmarkCommandPlugin",
        "Benchmark",
        "BenchmarkTool",
        "BenchmarkHelpGenerator"
      ],
      "sources" : [
        "Command+Helpers.swift"
      ],
      "type" : "library"
    },
    {
      "c99name" : "BenchmarkPlugin",
      "module_type" : "PluginTarget",
      "name" : "BenchmarkPlugin",
      "path" : "Plugins/BenchmarkPlugin",
      "plugin_capability" : {
        "type" : "buildTool"
      },
      "product_memberships" : [
        "BenchmarkPlugin"
      ],
      "sources" : [
        "BenchmarkSupportPlugin.swift"
      ],
      "target_dependencies" : [
        "BenchmarkBoilerplateGenerator"
      ],
      "type" : "plugin"
    },
    {
      "c99name" : "BenchmarkHelpGenerator",
      "module_type" : "SwiftTarget",
      "name" : "BenchmarkHelpGenerator",
      "path" : "Plugins/BenchmarkHelpGenerator",
      "product_dependencies" : [
        "ArgumentParser"
      ],
      "product_memberships" : [
        "BenchmarkHelpGenerator"
      ],
      "sources" : [
        "BenchmarkHelpGenerator.swift"
      ],
      "target_dependencies" : [
        "BenchmarkShared"
      ],
      "type" : "executable"
    },
    {
      "c99name" : "BenchmarkCommandPlugin",
      "module_type" : "PluginTarget",
      "name" : "BenchmarkCommandPlugin",
      "path" : "Plugins/BenchmarkCommandPlugin",
      "plugin_capability" : {
        "intent" : {
          "description" : "Run the Benchmark performance test suite.",
          "type" : "custom",
          "verb" : "benchmark"
        },
        "permissions" : [
        ],
        "type" : "command"
      },
      "product_memberships" : [
        "BenchmarkCommandPlugin"
      ],
      "sources" : [
        "ArgumentExtractor+Extensions.swift",
        "BenchmarkCommandPlugin.swift",
        "BenchmarkPlugin+Help.swift",
        "Command+Helpers.swift"
      ],
      "target_dependencies" : [
        "BenchmarkTool"
      ],
      "type" : "plugin"
    },
    {
      "c99name" : "BenchmarkBoilerplateGenerator",
      "module_type" : "SwiftTarget",
      "name" : "BenchmarkBoilerplateGenerator",
      "path" : "Plugins/BenchmarkBoilerplateGenerator",
      "product_dependencies" : [
        "ArgumentParser",
        "SystemPackage"
      ],
      "product_memberships" : [
        "BenchmarkPlugin",
        "BenchmarkBoilerplateGenerator"
      ],
      "sources" : [
        "BenchmarkBoilerplateGenerator.swift"
      ],
      "type" : "executable"
    },
    {
      "c99name" : "Benchmark",
      "module_type" : "SwiftTarget",
      "name" : "Benchmark",
      "path" : "Sources/Benchmark",
      "product_dependencies" : [
        "Histogram",
        "ArgumentParser",
        "SystemPackage",
        "Atomics",
        "jemalloc"
      ],
      "product_memberships" : [
        "BenchmarkCommandPlugin",
        "Benchmark",
        "BenchmarkTool"
      ],
      "sources" : [
        "ARCStats/ARCStats.swift",
        "ARCStats/ARCStatsProducer.swift",
        "Benchmark+ConvenienceInitializers.swift",
        "Benchmark.swift",
        "BenchmarkClock.swift",
        "BenchmarkExecutor+Extensions.swift",
        "BenchmarkExecutor.swift",
        "BenchmarkInternals.swift",
        "BenchmarkMetric+Defaults.swift",
        "BenchmarkMetric.swift",
        "BenchmarkResult.swift",
        "BenchmarkRunner+ReadWrite.swift",
        "BenchmarkRunner.swift",
        "BenchmarkThresholds+Defaults.swift",
        "BenchmarkThresholds.swift",
        "Blackhole.swift",
        "Int+Extensions.swift",
        "MallocStats/MallocStats+jemalloc-support.swift",
        "MallocStats/MallocStats.swift",
        "MallocStats/MallocStatsProducer+jemalloc.swift",
        "NIOConcurrencyHelpers/NIOLock.swift",
        "NIOConcurrencyHelpers/lock.swift",
        "OperatingSystemStats/OperatingSystemStats.swift",
        "OperatingSystemStats/OperatingSystemStatsProducer+Darwin.swift",
        "OperatingSystemStats/OperatingSystemStatsProducer+Linux.swift",
        "OutputSuppressor.swift",
        "Progress/Progress.swift",
        "Progress/ProgressElements.swift",
        "Progress/Utilities.swift",
        "Statistics.swift"
      ],
      "target_dependencies" : [
        "CDarwinOperatingSystemStats",
        "CLinuxOperatingSystemStats",
        "SwiftRuntimeHooks",
        "BenchmarkShared"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.9"
}
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 -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 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/ordo-one/TextTable.git
Fetching https://github.com/apple/swift-atomics.git
Fetching https://github.com/apple/swift-argument-parser.git
Fetching https://github.com/ordo-one/package-jemalloc.git
Fetching https://github.com/HdrHistogram/hdrhistogram-swift.git
Fetching https://github.com/apple/swift-system.git
[1/35] Fetching package-jemalloc
[36/4426] Fetching package-jemalloc, swift-system
[168/5028] Fetching package-jemalloc, swift-system, hdrhistogram-swift
[2614/6745] Fetching package-jemalloc, swift-system, hdrhistogram-swift, swift-atomics
[4904/6948] Fetching package-jemalloc, swift-system, hdrhistogram-swift, swift-atomics, texttable
[6949/22334] Fetching package-jemalloc, swift-system, hdrhistogram-swift, swift-atomics, texttable, swift-argument-parser
Fetched https://github.com/apple/swift-atomics.git from cache (1.51s)
Fetched https://github.com/ordo-one/TextTable.git from cache (1.52s)
Fetched https://github.com/HdrHistogram/hdrhistogram-swift.git from cache (1.51s)
Fetched https://github.com/ordo-one/package-jemalloc.git from cache (1.51s)
Fetched https://github.com/apple/swift-system.git from cache (1.52s)
Fetched https://github.com/apple/swift-argument-parser.git from cache (1.54s)
Computing version for https://github.com/ordo-one/package-jemalloc.git
Computed https://github.com/ordo-one/package-jemalloc.git at 1.0.0 (2.44s)
Computing version for https://github.com/ordo-one/TextTable.git
Computed https://github.com/ordo-one/TextTable.git at 0.0.2 (8.83s)
Computing version for https://github.com/HdrHistogram/hdrhistogram-swift.git
Computed https://github.com/HdrHistogram/hdrhistogram-swift.git at 0.1.3 (0.76s)
Fetching https://github.com/apple/swift-numerics
[1/5706] Fetching swift-numerics
Fetched https://github.com/apple/swift-numerics from cache (0.40s)
Computing version for https://github.com/apple/swift-numerics
Computed https://github.com/apple/swift-numerics at 1.0.3 (1.27s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 1.2.0 (0.88s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.5.0 (0.54s)
Computing version for https://github.com/apple/swift-argument-parser.git
Computed https://github.com/apple/swift-argument-parser.git at 1.5.1 (0.67s)
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-atomics.git
Working copy of https://github.com/apple/swift-atomics.git resolved at 1.2.0
Creating working copy for https://github.com/ordo-one/TextTable.git
Working copy of https://github.com/ordo-one/TextTable.git resolved at 0.0.2
Creating working copy for https://github.com/HdrHistogram/hdrhistogram-swift.git
Working copy of https://github.com/HdrHistogram/hdrhistogram-swift.git resolved at 0.1.3
Creating working copy for https://github.com/ordo-one/package-jemalloc.git
Working copy of https://github.com/ordo-one/package-jemalloc.git resolved at 1.0.0
Creating working copy for https://github.com/apple/swift-argument-parser.git
Working copy of https://github.com/apple/swift-argument-parser.git resolved at 1.5.1
Creating working copy for https://github.com/apple/swift-numerics
Working copy of https://github.com/apple/swift-numerics resolved at 1.0.3
warning: couldn't find pc file for jemalloc
warning: couldn't find pc file for jemalloc
[1/1] Compiling plugin BenchmarkPlugin
[2/2] Compiling plugin BenchmarkCommandPlugin
[3/3] Compiling plugin GenerateManual
Building for debugging...
[3/77] Write sources
[16/77] Compiling _AtomicsShims.c
[17/77] Write sources
[19/77] Compiling _NumericsShims _NumericsShims.c
[20/77] Write sources
[24/77] Compiling _NumericsShims _NumericsShims.c
[24/77] Compiling _AtomicsShims.c
[24/77] Write sources
[34/77] Compiling CSystem shims.c
[35/77] Compiling SwiftRuntimeHooks shims.c
[36/77] Compiling CSystem shims.c
[37/77] Compiling CLinuxOperatingSystemStats CLinuxOperatingSystemStats.c
[38/77] Compiling SwiftRuntimeHooks shims.c
[39/77] Write swift-version-24593BA9C3E375BF.txt
[41/181] Emitting module ArgumentParserToolInfo
[42/181] Emitting module RealModule
[43/182] Compiling RealModule ElementaryFunctions.swift
[44/182] Emitting module ArgumentParserToolInfo
[45/182] Compiling ArgumentParserToolInfo ToolInfo.swift
[47/182] Compiling RealModule Real.swift
[49/185] Compiling RealModule Float80+Real.swift
[50/185] Compiling RealModule RealFunctions.swift
[51/185] Compiling RealModule Float80+Real.swift
[52/185] Compiling RealModule Float+Real.swift
[53/185] Compiling RealModule Float16+Real.swift
[54/185] Compiling SystemPackage MachPort.swift
[55/185] Compiling SystemPackage PlatformString.swift
[56/185] Compiling SystemPackage SystemString.swift
[57/185] Compiling SystemPackage FilePathComponentView.swift
[58/185] Compiling SystemPackage FilePathComponents.swift
[59/185] Compiling SystemPackage FileOperations.swift
[60/185] Compiling SystemPackage FilePath.swift
[61/185] Compiling RealModule Float+Real.swift
[62/185] Compiling RealModule ElementaryFunctions.swift
[63/185] Emitting module RealModule
[64/188] Compiling RealModule Float16+Real.swift
[69/189] Emitting module SystemPackage
[70/189] Compiling SystemPackage Errno.swift
[71/189] Compiling SystemPackage ErrnoWindows.swift
[72/189] Compiling SystemPackage FileDescriptor.swift
[73/189] Compiling SystemPackage FileHelpers.swift
[74/189] Compiling SystemPackage FilePathParsing.swift
[75/189] Compiling SystemPackage FilePathString.swift
[76/189] Compiling SystemPackage FilePathSyntax.swift
[77/189] Compiling SystemPackage FilePathTemp.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[82/189] 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)
[85/192] Compiling RealModule RealFunctions.swift
[88/221] Compiling SystemPackage Backcompat.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 |
[89/221] Compiling SystemPackage CInterop.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 |
[90/221] Compiling SystemPackage Constants.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 |
[91/221] Compiling SystemPackage Exports.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 |
[92/221] Compiling Atomics UnsafeAtomic.swift
[93/221] Compiling Atomics UnsafeAtomicLazyReference.swift
[94/221] Compiling SystemPackage Syscalls.swift
[95/221] Compiling SystemPackage WindowsSyscallAdapters.swift
[99/221] Compiling Atomics IntegerConformances.swift
[100/221] Compiling Atomics PointerConformances.swift
[101/221] Compiling Atomics Primitives.native.swift
[102/221] Compiling Atomics Primitives.shims.swift
[103/221] Compiling Atomics AtomicValue.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)
[104/221] Compiling Atomics AtomicMemoryOrderings.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)
[105/221] Compiling Atomics DoubleWord.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)
[106/221] Compiling Atomics ManagedAtomic.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)
[107/221] Compiling Atomics ManagedAtomicLazyReference.swift
[108/221] Compiling Atomics OptionalRawRepresentable.swift
[109/221] Compiling Atomics RawRepresentable.swift
[110/221] Compiling Atomics AtomicBool.swift
[111/221] Compiling Atomics AtomicInteger.swift
[112/221] Compiling Atomics AtomicOptionalWrappable.swift
[113/221] Compiling Atomics AtomicReference.swift
[114/221] Compiling Atomics AtomicStorage.swift
[115/221] Emitting module BenchmarkShared
[116/221] Compiling BenchmarkShared Command+Helpers.swift
[117/222] Emitting module BenchmarkShared
[120/222] Compiling BenchmarkShared Command+Helpers.swift
[125/225] Compiling SystemPackage Util+StringArray.swift
[126/225] Compiling SystemPackage Util.swift
[127/225] Compiling SystemPackage UtilConsumers.swift
[130/225] Compiling ComplexModule Arithmetic.swift
[134/225] Compiling ComplexModule Differentiable.swift
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
warning: couldn't find pc file for jemalloc
warning: couldn't find pc file for jemalloc
[0/1] Planning build
[1/1] Compiling plugin BenchmarkPlugin
[2/2] Compiling plugin BenchmarkCommandPlugin
[3/3] Compiling plugin GenerateManual
Building for debugging...
[3/41] Write swift-version-24593BA9C3E375BF.txt
[5/145] Emitting module BenchmarkShared
[6/145] Compiling BenchmarkShared Command+Helpers.swift
[7/146] Compiling RealModule Real.swift
[9/146] Compiling RealModule Float80+Real.swift
[10/148] Emitting module BenchmarkShared
[11/148] Compiling BenchmarkShared Command+Helpers.swift
[13/149] Compiling RealModule Float+Real.swift
[14/149] Compiling RealModule ElementaryFunctions.swift
[15/149] Compiling RealModule Float80+Real.swift
[16/149] Compiling RealModule Float16+Real.swift
[17/149] Compiling RealModule ElementaryFunctions.swift
[18/149] Compiling RealModule RealFunctions.swift
[20/149] Compiling RealModule Float+Real.swift
[21/149] Compiling RealModule Float16+Real.swift
[23/149] Compiling SystemPackage FileOperations.swift
[24/149] Compiling SystemPackage FilePath.swift
[25/149] Compiling SystemPackage FilePathComponentView.swift
[26/149] Compiling SystemPackage FilePathComponents.swift
[31/149] Emitting module RealModule
[32/150] Compiling SystemPackage FilePathTempPosix.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)
[33/150] Compiling SystemPackage FilePathTempWindows.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)
[34/150] Compiling SystemPackage FilePathWindows.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)
[35/150] Compiling SystemPackage FilePermissions.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)
[37/153] Emitting module RealModule
[39/154] Compiling TextTable RstFormat.swift
[40/155] Compiling TextTable SimpleFormat.swift
[41/155] Compiling TextTable String+Util.swift
[42/170] Compiling Atomics AtomicReference.swift
[43/170] Compiling Atomics AtomicStorage.swift
[44/195] Emitting module SystemPackage
[45/203] Compiling Atomics AtomicStorage.swift
[46/203] Compiling Atomics AtomicValue.swift
[47/203] Compiling Atomics Primitives.shims.swift
[48/203] Compiling Atomics AtomicInteger.swift
[49/203] Emitting module TextTable
[50/203] Compiling Atomics AtomicOptionalWrappable.swift
[51/203] Compiling Atomics AtomicReference.swift
[54/203] Compiling Atomics IntegerConformances.swift
[55/203] Compiling Atomics PointerConformances.swift
[56/203] Compiling SystemPackage MachPort.swift
[57/203] Compiling SystemPackage PlatformString.swift
[58/203] Compiling SystemPackage SystemString.swift
[59/203] Compiling Atomics UnsafeAtomic.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 |
[60/203] Compiling Atomics UnsafeAtomicLazyReference.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 |
[61/203] 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 |
[62/203] 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 |
[63/203] Compiling SystemPackage Backcompat.swift
[64/203] Compiling SystemPackage CInterop.swift
[65/203] Compiling SystemPackage Constants.swift
[66/203] Compiling SystemPackage Exports.swift
[70/203] Compiling Atomics AtomicMemoryOrderings.swift
[71/203] Compiling Atomics DoubleWord.swift
[72/203] Compiling Atomics ManagedAtomic.swift
[73/203] Compiling Atomics ManagedAtomicLazyReference.swift
[94/207] Compiling TextTable TextTable.swift
[95/208] Compiling SystemPackage Util+StringArray.swift
[96/208] Compiling SystemPackage Util.swift
[97/208] Compiling SystemPackage UtilConsumers.swift
[108/209] Compiling Atomics IntegerOperations.swift
[109/209] Compiling Atomics Unmanaged extensions.swift
[110/209] Compiling TextTable SimpleFormat.swift
[111/209] Compiling TextTable RstFormat.swift
[112/209] Compiling TextTable String+Util.swift
[115/209] Emitting module TextTable
[118/209] Compiling ComplexModule Arithmetic.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[119/209] 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)
[120/209] Compiling Atomics Primitives.native.swift
[121/209] Compiling Atomics OptionalRawRepresentable.swift
[122/209] Compiling Atomics RawRepresentable.swift
[123/209] Compiling Atomics AtomicBool.swift
[141/209] Emitting module ArgumentParserToolInfo
BUILD FAILURE 6.1 wasm