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 EffectiveNovelCore, reference main (68ba8d), with Swift 6.1 for Wasm on 30 May 2025 09:26:44 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/mui-z/EffectiveNovelCore.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/mui-z/EffectiveNovelCore
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 68ba8d4 Swift6 (#26)
Cloned https://github.com/mui-z/EffectiveNovelCore.git
Revision (git rev-parse @):
68ba8d49afa210cc20ebfeb720d5578d4b275d6f
SUCCESS checkout https://github.com/mui-z/EffectiveNovelCore.git at main
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/mui-z/EffectiveNovelCore.git
https://github.com/mui-z/EffectiveNovelCore.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
    {
      "identity" : "factory",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "2.1.5",
            "upper_bound" : "2.2.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/hmlongco/Factory"
    }
  ],
  "manifest_display_name" : "EffectiveNovelCore",
  "name" : "EffectiveNovelCore",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.15"
    },
    {
      "name" : "ios",
      "version" : "16.0"
    }
  ],
  "products" : [
    {
      "name" : "EffectiveNovelCore",
      "targets" : [
        "EffectiveNovelCore"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "EffectiveNovelCoreTests",
      "module_type" : "SwiftTarget",
      "name" : "EffectiveNovelCoreTests",
      "path" : "Tests/EffectiveNovelCoreTests",
      "product_dependencies" : [
        "Factory"
      ],
      "sources" : [
        "Application/UseCase/ValidateScriptUseCaseTest.swift",
        "Controller/ControllerTest.swift",
        "Domain/Parser/PreProcessor/CommentRemoverTest.swift",
        "Domain/Parser/PreProcessor/NewlineCharacterRemoverTest.swift",
        "Domain/Parser/ScriptParserTests.swift",
        "Domain/Validator/BracketsPairValidatorTest.swift",
        "Domain/Validator/MustContainsIncludeTagsValidatorTest.swift",
        "Domain/Validator/ParseToDisplayEventsValidatorTest.swift"
      ],
      "target_dependencies" : [
        "EffectiveNovelCore"
      ],
      "type" : "test"
    },
    {
      "c99name" : "EffectiveNovelCore",
      "module_type" : "SwiftTarget",
      "name" : "EffectiveNovelCore",
      "path" : "Sources/EffectiveNovelCore",
      "product_dependencies" : [
        "Factory"
      ],
      "product_memberships" : [
        "EffectiveNovelCore"
      ],
      "sources" : [
        "Application/UseCase/UseCaseContainer.swift",
        "Application/UseCase/ValidateScriptUseCase.swift",
        "Controller/EFNovelController.swift",
        "Domain/DomainContainer.swift",
        "Domain/Entity/EFNovelScript.swift",
        "Domain/Parser/PreProcessor/CommentOutRemover.swift",
        "Domain/Parser/PreProcessor/NewlineCharacterRemover.swift",
        "Domain/Parser/PreProcessor/PreProcessor.swift",
        "Domain/Parser/ScriptParser.swift",
        "Domain/Syntax/NovelSyntax.swift",
        "Domain/Validator/AllStringSyntaxValidatorProtocol.swift",
        "Domain/Validator/BracketsPairValidator.swift",
        "Domain/Validator/LineSyntaxValidatorProtocol.swift",
        "Domain/Validator/MustContainsIncludeTagsValidator.swift",
        "Domain/Validator/ParseToDisplayEventsValidator.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/hmlongco/Factory
[1/18195] Fetching factory
Fetched https://github.com/hmlongco/Factory from cache (1.03s)
Computing version for https://github.com/hmlongco/Factory
Computed https://github.com/hmlongco/Factory at 2.1.5 (4.08s)
Creating working copy for https://github.com/hmlongco/Factory
Working copy of https://github.com/hmlongco/Factory resolved at 2.1.5
Building for debugging...
[0/3] Write sources
[2/3] Write swift-version-24593BA9C3E375BF.txt
[4/11] Compiling Factory Contexts.swift
[5/12] Compiling Factory Globals.swift
/host/spi-builder-workspace/.build/checkouts/Factory/Sources/Factory/Factory/Globals.swift:37:9: error: cannot find 'pthread_mutexattr_init' in scope
35 |     init() {
36 |         let mutexAttr = UnsafeMutablePointer<pthread_mutexattr_t>.allocate(capacity: 1)
37 |         pthread_mutexattr_init(mutexAttr)
   |         `- error: cannot find 'pthread_mutexattr_init' in scope
38 |         pthread_mutexattr_settype(mutexAttr, Int32(PTHREAD_MUTEX_RECURSIVE))
39 |         mutex = UnsafeMutablePointer<pthread_mutex_t>.allocate(capacity: 1)
/host/spi-builder-workspace/.build/checkouts/Factory/Sources/Factory/Factory/Globals.swift:38:9: error: cannot find 'pthread_mutexattr_settype' in scope
36 |         let mutexAttr = UnsafeMutablePointer<pthread_mutexattr_t>.allocate(capacity: 1)
37 |         pthread_mutexattr_init(mutexAttr)
38 |         pthread_mutexattr_settype(mutexAttr, Int32(PTHREAD_MUTEX_RECURSIVE))
   |         `- error: cannot find 'pthread_mutexattr_settype' in scope
39 |         mutex = UnsafeMutablePointer<pthread_mutex_t>.allocate(capacity: 1)
40 |         pthread_mutex_init(mutex, mutexAttr)
/host/spi-builder-workspace/.build/checkouts/Factory/Sources/Factory/Factory/Globals.swift:38:52: error: cannot find 'PTHREAD_MUTEX_RECURSIVE' in scope
36 |         let mutexAttr = UnsafeMutablePointer<pthread_mutexattr_t>.allocate(capacity: 1)
37 |         pthread_mutexattr_init(mutexAttr)
38 |         pthread_mutexattr_settype(mutexAttr, Int32(PTHREAD_MUTEX_RECURSIVE))
   |                                                    `- error: cannot find 'PTHREAD_MUTEX_RECURSIVE' in scope
39 |         mutex = UnsafeMutablePointer<pthread_mutex_t>.allocate(capacity: 1)
40 |         pthread_mutex_init(mutex, mutexAttr)
/host/spi-builder-workspace/.build/checkouts/Factory/Sources/Factory/Factory/Globals.swift:40:9: error: cannot find 'pthread_mutex_init' in scope
38 |         pthread_mutexattr_settype(mutexAttr, Int32(PTHREAD_MUTEX_RECURSIVE))
39 |         mutex = UnsafeMutablePointer<pthread_mutex_t>.allocate(capacity: 1)
40 |         pthread_mutex_init(mutex, mutexAttr)
   |         `- error: cannot find 'pthread_mutex_init' in scope
41 |         pthread_mutexattr_destroy(mutexAttr)
42 |         mutexAttr.deallocate()
/host/spi-builder-workspace/.build/checkouts/Factory/Sources/Factory/Factory/Globals.swift:41:9: error: cannot find 'pthread_mutexattr_destroy' in scope
39 |         mutex = UnsafeMutablePointer<pthread_mutex_t>.allocate(capacity: 1)
40 |         pthread_mutex_init(mutex, mutexAttr)
41 |         pthread_mutexattr_destroy(mutexAttr)
   |         `- error: cannot find 'pthread_mutexattr_destroy' in scope
42 |         mutexAttr.deallocate()
43 |     }
/host/spi-builder-workspace/.build/checkouts/Factory/Sources/Factory/Factory/Globals.swift:45:9: error: cannot find 'pthread_mutex_destroy' in scope
43 |     }
44 |     deinit {
45 |         pthread_mutex_destroy(mutex)
   |         `- error: cannot find 'pthread_mutex_destroy' in scope
46 |         mutex.deallocate()
47 |     }
/host/spi-builder-workspace/.build/checkouts/Factory/Sources/Factory/Factory/Globals.swift:49:9: error: cannot find 'pthread_mutex_lock' in scope
47 |     }
48 |     @inlinable func lock() {
49 |         pthread_mutex_lock(mutex)
   |         `- error: cannot find 'pthread_mutex_lock' in scope
50 |     }
51 |     @inlinable func unlock() {
/host/spi-builder-workspace/.build/checkouts/Factory/Sources/Factory/Factory/Globals.swift:52:9: error: cannot find 'pthread_mutex_unlock' in scope
50 |     }
51 |     @inlinable func unlock() {
52 |         pthread_mutex_unlock(mutex)
   |         `- error: cannot find 'pthread_mutex_unlock' in scope
53 |     }
54 |     private var mutex: UnsafeMutablePointer<pthread_mutex_t>
[6/12] Compiling Factory Factory.swift
[7/12] Compiling Factory Injections.swift
[8/12] Compiling Factory Modifiers.swift
[9/12] Compiling Factory Registrations.swift
[10/12] Compiling Factory Containers.swift
[11/12] Emitting module Factory
[12/12] Compiling Factory Scopes.swift
/host/spi-builder-workspace/.build/checkouts/Factory/Sources/Factory/Factory/Scopes.swift:59:27: error: cannot find 'CFAbsoluteTimeGetCurrent' in scope
 57 |         if let box = cache.value(forKey: id), let cached: T = unboxed(box: box) {
 58 |             if let ttl = ttl {
 59 |                 let now = CFAbsoluteTimeGetCurrent()
    |                           `- error: cannot find 'CFAbsoluteTimeGetCurrent' in scope
 60 |                 if (box.timestamp + ttl) > now {
 61 |                     cache.set(timestamp: now, forKey: id)
/host/spi-builder-workspace/.build/checkouts/Factory/Sources/Factory/Factory/Scopes.swift:84:66: error: cannot find 'CFAbsoluteTimeGetCurrent' in scope
 82 |         if let optional = instance as? OptionalProtocol {
 83 |             if optional.hasWrappedValue {
 84 |                 return StrongBox<T>(scopeID: scopeID, timestamp: CFAbsoluteTimeGetCurrent(), boxed: instance)
    |                                                                  `- error: cannot find 'CFAbsoluteTimeGetCurrent' in scope
 85 |             }
 86 |             return nil
/host/spi-builder-workspace/.build/checkouts/Factory/Sources/Factory/Factory/Scopes.swift:88:58: error: cannot find 'CFAbsoluteTimeGetCurrent' in scope
 86 |             return nil
 87 |         }
 88 |         return StrongBox<T>(scopeID: scopeID, timestamp: CFAbsoluteTimeGetCurrent(), boxed: instance)
    |                                                          `- error: cannot find 'CFAbsoluteTimeGetCurrent' in scope
 89 |     }
 90 |
/host/spi-builder-workspace/.build/checkouts/Factory/Sources/Factory/Factory/Scopes.swift:149:65: error: cannot find 'CFAbsoluteTimeGetCurrent' in scope
147 |             if let optional = instance as? OptionalProtocol {
148 |                 if let unwrapped = optional.wrappedValue, type(of: unwrapped) is AnyObject.Type {
149 |                     return WeakBox(scopeID: scopeID, timestamp: CFAbsoluteTimeGetCurrent(), boxed: unwrapped as AnyObject)
    |                                                                 `- error: cannot find 'CFAbsoluteTimeGetCurrent' in scope
150 |                 }
151 |             } else if type(of: instance as Any) is AnyObject.Type {
/host/spi-builder-workspace/.build/checkouts/Factory/Sources/Factory/Factory/Scopes.swift:152:61: error: cannot find 'CFAbsoluteTimeGetCurrent' in scope
150 |                 }
151 |             } else if type(of: instance as Any) is AnyObject.Type {
152 |                 return WeakBox(scopeID: scopeID, timestamp: CFAbsoluteTimeGetCurrent(), boxed: instance as AnyObject)
    |                                                             `- error: cannot find 'CFAbsoluteTimeGetCurrent' in scope
153 |             }
154 |             return nil
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/1] Write swift-version-24593BA9C3E375BF.txt
[2/9] Compiling Factory Contexts.swift
[3/9] Compiling Factory Factory.swift
[4/10] Compiling Factory Globals.swift
/host/spi-builder-workspace/.build/checkouts/Factory/Sources/Factory/Factory/Globals.swift:37:9: error: cannot find 'pthread_mutexattr_init' in scope
35 |     init() {
36 |         let mutexAttr = UnsafeMutablePointer<pthread_mutexattr_t>.allocate(capacity: 1)
37 |         pthread_mutexattr_init(mutexAttr)
   |         `- error: cannot find 'pthread_mutexattr_init' in scope
38 |         pthread_mutexattr_settype(mutexAttr, Int32(PTHREAD_MUTEX_RECURSIVE))
39 |         mutex = UnsafeMutablePointer<pthread_mutex_t>.allocate(capacity: 1)
/host/spi-builder-workspace/.build/checkouts/Factory/Sources/Factory/Factory/Globals.swift:38:9: error: cannot find 'pthread_mutexattr_settype' in scope
36 |         let mutexAttr = UnsafeMutablePointer<pthread_mutexattr_t>.allocate(capacity: 1)
37 |         pthread_mutexattr_init(mutexAttr)
38 |         pthread_mutexattr_settype(mutexAttr, Int32(PTHREAD_MUTEX_RECURSIVE))
   |         `- error: cannot find 'pthread_mutexattr_settype' in scope
39 |         mutex = UnsafeMutablePointer<pthread_mutex_t>.allocate(capacity: 1)
40 |         pthread_mutex_init(mutex, mutexAttr)
/host/spi-builder-workspace/.build/checkouts/Factory/Sources/Factory/Factory/Globals.swift:38:52: error: cannot find 'PTHREAD_MUTEX_RECURSIVE' in scope
36 |         let mutexAttr = UnsafeMutablePointer<pthread_mutexattr_t>.allocate(capacity: 1)
37 |         pthread_mutexattr_init(mutexAttr)
38 |         pthread_mutexattr_settype(mutexAttr, Int32(PTHREAD_MUTEX_RECURSIVE))
   |                                                    `- error: cannot find 'PTHREAD_MUTEX_RECURSIVE' in scope
39 |         mutex = UnsafeMutablePointer<pthread_mutex_t>.allocate(capacity: 1)
40 |         pthread_mutex_init(mutex, mutexAttr)
/host/spi-builder-workspace/.build/checkouts/Factory/Sources/Factory/Factory/Globals.swift:40:9: error: cannot find 'pthread_mutex_init' in scope
38 |         pthread_mutexattr_settype(mutexAttr, Int32(PTHREAD_MUTEX_RECURSIVE))
39 |         mutex = UnsafeMutablePointer<pthread_mutex_t>.allocate(capacity: 1)
40 |         pthread_mutex_init(mutex, mutexAttr)
   |         `- error: cannot find 'pthread_mutex_init' in scope
41 |         pthread_mutexattr_destroy(mutexAttr)
42 |         mutexAttr.deallocate()
/host/spi-builder-workspace/.build/checkouts/Factory/Sources/Factory/Factory/Globals.swift:41:9: error: cannot find 'pthread_mutexattr_destroy' in scope
39 |         mutex = UnsafeMutablePointer<pthread_mutex_t>.allocate(capacity: 1)
40 |         pthread_mutex_init(mutex, mutexAttr)
41 |         pthread_mutexattr_destroy(mutexAttr)
   |         `- error: cannot find 'pthread_mutexattr_destroy' in scope
42 |         mutexAttr.deallocate()
43 |     }
/host/spi-builder-workspace/.build/checkouts/Factory/Sources/Factory/Factory/Globals.swift:45:9: error: cannot find 'pthread_mutex_destroy' in scope
43 |     }
44 |     deinit {
45 |         pthread_mutex_destroy(mutex)
   |         `- error: cannot find 'pthread_mutex_destroy' in scope
46 |         mutex.deallocate()
47 |     }
/host/spi-builder-workspace/.build/checkouts/Factory/Sources/Factory/Factory/Globals.swift:49:9: error: cannot find 'pthread_mutex_lock' in scope
47 |     }
48 |     @inlinable func lock() {
49 |         pthread_mutex_lock(mutex)
   |         `- error: cannot find 'pthread_mutex_lock' in scope
50 |     }
51 |     @inlinable func unlock() {
/host/spi-builder-workspace/.build/checkouts/Factory/Sources/Factory/Factory/Globals.swift:52:9: error: cannot find 'pthread_mutex_unlock' in scope
50 |     }
51 |     @inlinable func unlock() {
52 |         pthread_mutex_unlock(mutex)
   |         `- error: cannot find 'pthread_mutex_unlock' in scope
53 |     }
54 |     private var mutex: UnsafeMutablePointer<pthread_mutex_t>
[5/10] Compiling Factory Registrations.swift
[6/10] Compiling Factory Modifiers.swift
[7/10] Compiling Factory Injections.swift
[8/10] Compiling Factory Containers.swift
[9/10] Emitting module Factory
[10/10] Compiling Factory Scopes.swift
/host/spi-builder-workspace/.build/checkouts/Factory/Sources/Factory/Factory/Scopes.swift:59:27: error: cannot find 'CFAbsoluteTimeGetCurrent' in scope
 57 |         if let box = cache.value(forKey: id), let cached: T = unboxed(box: box) {
 58 |             if let ttl = ttl {
 59 |                 let now = CFAbsoluteTimeGetCurrent()
    |                           `- error: cannot find 'CFAbsoluteTimeGetCurrent' in scope
 60 |                 if (box.timestamp + ttl) > now {
 61 |                     cache.set(timestamp: now, forKey: id)
/host/spi-builder-workspace/.build/checkouts/Factory/Sources/Factory/Factory/Scopes.swift:84:66: error: cannot find 'CFAbsoluteTimeGetCurrent' in scope
 82 |         if let optional = instance as? OptionalProtocol {
 83 |             if optional.hasWrappedValue {
 84 |                 return StrongBox<T>(scopeID: scopeID, timestamp: CFAbsoluteTimeGetCurrent(), boxed: instance)
    |                                                                  `- error: cannot find 'CFAbsoluteTimeGetCurrent' in scope
 85 |             }
 86 |             return nil
/host/spi-builder-workspace/.build/checkouts/Factory/Sources/Factory/Factory/Scopes.swift:88:58: error: cannot find 'CFAbsoluteTimeGetCurrent' in scope
 86 |             return nil
 87 |         }
 88 |         return StrongBox<T>(scopeID: scopeID, timestamp: CFAbsoluteTimeGetCurrent(), boxed: instance)
    |                                                          `- error: cannot find 'CFAbsoluteTimeGetCurrent' in scope
 89 |     }
 90 |
/host/spi-builder-workspace/.build/checkouts/Factory/Sources/Factory/Factory/Scopes.swift:149:65: error: cannot find 'CFAbsoluteTimeGetCurrent' in scope
147 |             if let optional = instance as? OptionalProtocol {
148 |                 if let unwrapped = optional.wrappedValue, type(of: unwrapped) is AnyObject.Type {
149 |                     return WeakBox(scopeID: scopeID, timestamp: CFAbsoluteTimeGetCurrent(), boxed: unwrapped as AnyObject)
    |                                                                 `- error: cannot find 'CFAbsoluteTimeGetCurrent' in scope
150 |                 }
151 |             } else if type(of: instance as Any) is AnyObject.Type {
/host/spi-builder-workspace/.build/checkouts/Factory/Sources/Factory/Factory/Scopes.swift:152:61: error: cannot find 'CFAbsoluteTimeGetCurrent' in scope
150 |                 }
151 |             } else if type(of: instance as Any) is AnyObject.Type {
152 |                 return WeakBox(scopeID: scopeID, timestamp: CFAbsoluteTimeGetCurrent(), boxed: instance as AnyObject)
    |                                                             `- error: cannot find 'CFAbsoluteTimeGetCurrent' in scope
153 |             }
154 |             return nil
BUILD FAILURE 6.1 wasm