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 ShapeScript, reference main (93b783), with Swift 6.1 for Wasm on 28 Jun 2025 19:23:19 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.1-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/nicklockwood/ShapeScript.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/nicklockwood/ShapeScript
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 93b7836 Update for 1.8.11 release
Cloned https://github.com/nicklockwood/ShapeScript.git
Revision (git rev-parse @):
93b7836ab9175162031b21241d8e51138e8541ec
SUCCESS checkout https://github.com/nicklockwood/ShapeScript.git at main
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/nicklockwood/ShapeScript.git
https://github.com/nicklockwood/ShapeScript.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
    {
      "identity" : "euclid",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "0.7.15",
            "upper_bound" : "0.8.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/nicklockwood/Euclid.git"
    },
    {
      "identity" : "lrucache",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.0.7",
            "upper_bound" : "1.1.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/nicklockwood/LRUCache.git"
    },
    {
      "identity" : "svgpath",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.1.6",
            "upper_bound" : "1.2.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/nicklockwood/SVGPath.git"
    }
  ],
  "manifest_display_name" : "ShapeScript",
  "name" : "ShapeScript",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.14"
    },
    {
      "name" : "ios",
      "version" : "11.0"
    },
    {
      "name" : "tvos",
      "version" : "11.0"
    }
  ],
  "products" : [
    {
      "name" : "ShapeScript",
      "targets" : [
        "ShapeScript"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "shapescript",
      "targets" : [
        "CLI"
      ],
      "type" : {
        "executable" : null
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "ShapeScriptTests",
      "module_type" : "SwiftTarget",
      "name" : "ShapeScriptTests",
      "path" : "ShapeScriptTests",
      "sources" : [
        "GeometryTests.swift",
        "ImportExportTests.swift",
        "InterpreterTests.swift",
        "LexerTests.swift",
        "LoggingTests.swift",
        "MemberTests.swift",
        "MetadataTests.swift",
        "ParserTests.swift",
        "PlatformTests.swift",
        "RegressionTests.swift",
        "SVGPathTests.swift",
        "StandardLibraryTests.swift",
        "StringMatchingTests.swift",
        "TestDelegate.swift",
        "TypesystemTests.swift"
      ],
      "target_dependencies" : [
        "ShapeScript"
      ],
      "type" : "test"
    },
    {
      "c99name" : "ShapeScript",
      "module_type" : "SwiftTarget",
      "name" : "ShapeScript",
      "path" : "ShapeScript",
      "product_dependencies" : [
        "Euclid",
        "LRUCache",
        "SVGPath"
      ],
      "product_memberships" : [
        "ShapeScript",
        "shapescript"
      ],
      "sources" : [
        "Euclid+Extensions.swift",
        "Euclid+SVGPath.swift",
        "EvaluationContext.swift",
        "EvaluationDelegate.swift",
        "Geometry.swift",
        "GeometryCache.swift",
        "GeometryType.swift",
        "Interpreter.swift",
        "Lexer.swift",
        "Material+Brightness.swift",
        "Material+SceneKit.swift",
        "Material.swift",
        "Members.swift",
        "Parser.swift",
        "ProgramError.swift",
        "RandomSequence.swift",
        "Scene+SceneKit.swift",
        "Scene.swift",
        "StandardLibrary.swift",
        "String+Matching.swift",
        "String+Ordinals.swift",
        "Symbols.swift",
        "Types.swift",
        "Value+JSON.swift",
        "Value+Logging.swift",
        "Values.swift"
      ],
      "type" : "library"
    },
    {
      "c99name" : "CLI",
      "module_type" : "SwiftTarget",
      "name" : "CLI",
      "path" : "Viewer/CLI",
      "product_memberships" : [
        "shapescript"
      ],
      "sources" : [
        "CLI+Export.swift",
        "CLI.swift",
        "Geometry+ModelInfo.swift",
        "ProgramError+Formatting.swift",
        "main.swift"
      ],
      "target_dependencies" : [
        "ShapeScript"
      ],
      "type" : "executable"
    }
  ],
  "tools_version" : "5.1"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/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:8f9255989265d824b88e7d572b1a334a0dc9b701075ede1970390db95d315c35
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
Fetching https://github.com/nicklockwood/SVGPath.git
Fetching https://github.com/nicklockwood/LRUCache.git
[1/201] Fetching lrucache
[202/403] Fetching lrucache, svgpath
Fetched https://github.com/nicklockwood/LRUCache.git from cache (0.37s)
Fetched https://github.com/nicklockwood/SVGPath.git from cache (0.38s)
Fetching https://github.com/nicklockwood/Euclid.git
[1/10825] Fetching euclid
Fetched https://github.com/nicklockwood/Euclid.git from cache (2.35s)
Computing version for https://github.com/nicklockwood/SVGPath.git
Computed https://github.com/nicklockwood/SVGPath.git at 1.1.6 (3.57s)
Computing version for https://github.com/nicklockwood/LRUCache.git
Computed https://github.com/nicklockwood/LRUCache.git at 1.0.7 (0.82s)
Computing version for https://github.com/nicklockwood/Euclid.git
Computed https://github.com/nicklockwood/Euclid.git at 0.7.15 (0.68s)
Creating working copy for https://github.com/nicklockwood/Euclid.git
Working copy of https://github.com/nicklockwood/Euclid.git resolved at 0.7.15
Creating working copy for https://github.com/nicklockwood/LRUCache.git
Working copy of https://github.com/nicklockwood/LRUCache.git resolved at 1.0.7
Creating working copy for https://github.com/nicklockwood/SVGPath.git
Working copy of https://github.com/nicklockwood/SVGPath.git resolved at 1.1.6
Building for debugging...
[0/13] Write sources
[5/13] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[7/50] Emitting module LRUCache
/host/spi-builder-workspace/.build/checkouts/LRUCache/Sources/LRUCache.swift:57:37: error: cannot find type 'NotificationCenter' in scope
 55 |     private let lock: NSLock = .init()
 56 |     private var token: AnyObject?
 57 |     private let notificationCenter: NotificationCenter
    |                                     `- error: cannot find type 'NotificationCenter' in scope
 58 |
 59 |     /// The current total cost of values in the cache
/host/spi-builder-workspace/.build/checkouts/LRUCache/Sources/LRUCache.swift:77:29: error: cannot find type 'NotificationCenter' in scope
 75 |         totalCostLimit: Int = .max,
 76 |         countLimit: Int = .max,
 77 |         notificationCenter: NotificationCenter = .default
    |                             `- error: cannot find type 'NotificationCenter' in scope
 78 |     ) {
 79 |         self.totalCostLimit = totalCostLimit
[8/50] Compiling Euclid Angle.swift
[9/50] Compiling Euclid BSP.swift
[10/50] Compiling Euclid Bounded.swift
[11/50] Compiling Euclid Bounds.swift
[12/50] Compiling Euclid Color.swift
[13/50] Compiling LRUCache LRUCache.swift
/host/spi-builder-workspace/.build/checkouts/LRUCache/Sources/LRUCache.swift:57:37: error: cannot find type 'NotificationCenter' in scope
 55 |     private let lock: NSLock = .init()
 56 |     private var token: AnyObject?
 57 |     private let notificationCenter: NotificationCenter
    |                                     `- error: cannot find type 'NotificationCenter' in scope
 58 |
 59 |     /// The current total cost of values in the cache
/host/spi-builder-workspace/.build/checkouts/LRUCache/Sources/LRUCache.swift:77:29: error: cannot find type 'NotificationCenter' in scope
 75 |         totalCostLimit: Int = .max,
 76 |         countLimit: Int = .max,
 77 |         notificationCenter: NotificationCenter = .default
    |                             `- error: cannot find type 'NotificationCenter' in scope
 78 |     ) {
 79 |         self.totalCostLimit = totalCostLimit
/host/spi-builder-workspace/.build/checkouts/LRUCache/Sources/LRUCache.swift:85:21: error: 'nil' requires a contextual type
 83 |         self.token = notificationCenter.addObserver(
 84 |             forName: LRUCacheMemoryWarningNotification,
 85 |             object: nil,
    |                     `- error: 'nil' requires a contextual type
 86 |             queue: nil
 87 |         ) { [weak self] _ in
/host/spi-builder-workspace/.build/checkouts/LRUCache/Sources/LRUCache.swift:86:20: error: 'nil' requires a contextual type
 84 |             forName: LRUCacheMemoryWarningNotification,
 85 |             object: nil,
 86 |             queue: nil
    |                    `- error: 'nil' requires a contextual type
 87 |         ) { [weak self] _ in
 88 |             self?.removeAllValues()
/host/spi-builder-workspace/.build/checkouts/LRUCache/Sources/LRUCache.swift:87:25: error: cannot infer type of closure parameter '_' without a type annotation
 85 |             object: nil,
 86 |             queue: nil
 87 |         ) { [weak self] _ in
    |                         `- error: cannot infer type of closure parameter '_' without a type annotation
 88 |             self?.removeAllValues()
 89 |         }
[14/54] Compiling Euclid Polygon.swift
[15/54] Compiling Euclid Quaternion.swift
[16/54] Compiling Euclid Rotation.swift
[17/54] Compiling Euclid Stretchable.swift
[18/54] Emitting module SVGPath
[19/54] Compiling SVGPath SVGPath+CoreGraphics.swift
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/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:8f9255989265d824b88e7d572b1a334a0dc9b701075ede1970390db95d315c35
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/8] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[2/45] Emitting module LRUCache
/host/spi-builder-workspace/.build/checkouts/LRUCache/Sources/LRUCache.swift:57:37: error: cannot find type 'NotificationCenter' in scope
 55 |     private let lock: NSLock = .init()
 56 |     private var token: AnyObject?
 57 |     private let notificationCenter: NotificationCenter
    |                                     `- error: cannot find type 'NotificationCenter' in scope
 58 |
 59 |     /// The current total cost of values in the cache
/host/spi-builder-workspace/.build/checkouts/LRUCache/Sources/LRUCache.swift:77:29: error: cannot find type 'NotificationCenter' in scope
 75 |         totalCostLimit: Int = .max,
 76 |         countLimit: Int = .max,
 77 |         notificationCenter: NotificationCenter = .default
    |                             `- error: cannot find type 'NotificationCenter' in scope
 78 |     ) {
 79 |         self.totalCostLimit = totalCostLimit
[3/45] Compiling LRUCache LRUCache.swift
/host/spi-builder-workspace/.build/checkouts/LRUCache/Sources/LRUCache.swift:57:37: error: cannot find type 'NotificationCenter' in scope
 55 |     private let lock: NSLock = .init()
 56 |     private var token: AnyObject?
 57 |     private let notificationCenter: NotificationCenter
    |                                     `- error: cannot find type 'NotificationCenter' in scope
 58 |
 59 |     /// The current total cost of values in the cache
/host/spi-builder-workspace/.build/checkouts/LRUCache/Sources/LRUCache.swift:77:29: error: cannot find type 'NotificationCenter' in scope
 75 |         totalCostLimit: Int = .max,
 76 |         countLimit: Int = .max,
 77 |         notificationCenter: NotificationCenter = .default
    |                             `- error: cannot find type 'NotificationCenter' in scope
 78 |     ) {
 79 |         self.totalCostLimit = totalCostLimit
/host/spi-builder-workspace/.build/checkouts/LRUCache/Sources/LRUCache.swift:85:21: error: 'nil' requires a contextual type
 83 |         self.token = notificationCenter.addObserver(
 84 |             forName: LRUCacheMemoryWarningNotification,
 85 |             object: nil,
    |                     `- error: 'nil' requires a contextual type
 86 |             queue: nil
 87 |         ) { [weak self] _ in
/host/spi-builder-workspace/.build/checkouts/LRUCache/Sources/LRUCache.swift:86:20: error: 'nil' requires a contextual type
 84 |             forName: LRUCacheMemoryWarningNotification,
 85 |             object: nil,
 86 |             queue: nil
    |                    `- error: 'nil' requires a contextual type
 87 |         ) { [weak self] _ in
 88 |             self?.removeAllValues()
/host/spi-builder-workspace/.build/checkouts/LRUCache/Sources/LRUCache.swift:87:25: error: cannot infer type of closure parameter '_' without a type annotation
 85 |             object: nil,
 86 |             queue: nil
 87 |         ) { [weak self] _ in
    |                         `- error: cannot infer type of closure parameter '_' without a type annotation
 88 |             self?.removeAllValues()
 89 |         }
[4/45] Emitting module SVGPath
[5/45] Compiling SVGPath SVGPath+CoreGraphics.swift
BUILD FAILURE 6.1 wasm