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 MetaversePythonFramework, reference v3.11.7 (e2f4ba), with Swift 6.1 for Wasm on 29 May 2025 12:53:14 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/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/wabiverse/MetaversePythonFramework.git
Reference: v3.11.7
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/wabiverse/MetaversePythonFramework
 * tag               v3.11.7    -> FETCH_HEAD
HEAD is now at e2f4ba8 Fix visionOS headers.
Updating files:  15% (772/5030)
Updating files:  16% (805/5030)
Updating files:  17% (856/5030)
Updating files:  18% (906/5030)
Updating files:  19% (956/5030)
Updating files:  20% (1006/5030)
Updating files:  21% (1057/5030)
Updating files:  22% (1107/5030)
Updating files:  23% (1157/5030)
Updating files:  24% (1208/5030)
Updating files:  25% (1258/5030)
Updating files:  26% (1308/5030)
Updating files:  27% (1359/5030)
Updating files:  28% (1409/5030)
Updating files:  29% (1459/5030)
Updating files:  30% (1509/5030)
Updating files:  31% (1560/5030)
Updating files:  32% (1610/5030)
Updating files:  33% (1660/5030)
Updating files:  34% (1711/5030)
Updating files:  35% (1761/5030)
Updating files:  36% (1811/5030)
Updating files:  37% (1862/5030)
Updating files:  38% (1912/5030)
Updating files:  39% (1962/5030)
Updating files:  40% (2012/5030)
Updating files:  41% (2063/5030)
Updating files:  42% (2113/5030)
Updating files:  43% (2163/5030)
Updating files:  44% (2214/5030)
Updating files:  45% (2264/5030)
Updating files:  46% (2314/5030)
Updating files:  47% (2365/5030)
Updating files:  48% (2415/5030)
Updating files:  49% (2465/5030)
Updating files:  50% (2515/5030)
Updating files:  51% (2566/5030)
Updating files:  52% (2616/5030)
Updating files:  53% (2666/5030)
Updating files:  53% (2695/5030)
Updating files:  54% (2717/5030)
Updating files:  55% (2767/5030)
Updating files:  56% (2817/5030)
Updating files:  57% (2868/5030)
Updating files:  58% (2918/5030)
Updating files:  59% (2968/5030)
Updating files:  60% (3018/5030)
Updating files:  61% (3069/5030)
Updating files:  62% (3119/5030)
Updating files:  63% (3169/5030)
Updating files:  64% (3220/5030)
Updating files:  65% (3270/5030)
Updating files:  66% (3320/5030)
Updating files:  67% (3371/5030)
Updating files:  68% (3421/5030)
Updating files:  69% (3471/5030)
Updating files:  70% (3521/5030)
Updating files:  71% (3572/5030)
Updating files:  72% (3622/5030)
Updating files:  73% (3672/5030)
Updating files:  74% (3723/5030)
Updating files:  75% (3773/5030)
Updating files:  76% (3823/5030)
Updating files:  77% (3874/5030)
Updating files:  78% (3924/5030)
Updating files:  79% (3974/5030)
Updating files:  80% (4024/5030)
Updating files:  81% (4075/5030)
Updating files:  82% (4125/5030)
Updating files:  83% (4175/5030)
Updating files:  84% (4226/5030)
Updating files:  85% (4276/5030)
Updating files:  86% (4326/5030)
Updating files:  87% (4377/5030)
Updating files:  88% (4427/5030)
Updating files:  89% (4477/5030)
Updating files:  90% (4527/5030)
Updating files:  91% (4578/5030)
Updating files:  92% (4628/5030)
Updating files:  93% (4678/5030)
Updating files:  94% (4729/5030)
Updating files:  95% (4779/5030)
Updating files:  96% (4829/5030)
Updating files:  97% (4880/5030)
Updating files:  98% (4930/5030)
Updating files:  99% (4980/5030)
Updating files: 100% (5030/5030)
Updating files: 100% (5030/5030), done.
Cloned https://github.com/wabiverse/MetaversePythonFramework.git
Revision (git rev-parse @):
e2f4ba867b7e287a283a27a0005ab64deef14279
SUCCESS checkout https://github.com/wabiverse/MetaversePythonFramework.git at v3.11.7
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/wabiverse/MetaversePythonFramework.git
https://github.com/wabiverse/MetaversePythonFramework.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
    {
      "identity" : "pythonkit",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "0.4.1",
            "upper_bound" : "1.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/pvieito/PythonKit.git"
    }
  ],
  "manifest_display_name" : "MetaversePythonFramework",
  "name" : "MetaversePythonFramework",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "14.0"
    },
    {
      "name" : "ios",
      "version" : "17.0"
    },
    {
      "name" : "tvos",
      "version" : "17.0"
    },
    {
      "name" : "visionos",
      "version" : "1.0"
    },
    {
      "name" : "watchos",
      "version" : "10.0"
    }
  ],
  "products" : [
    {
      "name" : "Python",
      "targets" : [
        "PyBundle",
        "Python"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "Python",
      "module_type" : "BinaryTarget",
      "name" : "Python",
      "path" : "Frameworks/3.11/Python.xcframework",
      "product_memberships" : [
        "Python"
      ],
      "sources" : [
      ],
      "type" : "binary"
    },
    {
      "c99name" : "PyBundleTests",
      "module_type" : "SwiftTarget",
      "name" : "PyBundleTests",
      "path" : "Tests/PyBundleTests",
      "sources" : [
        "PyBundleTests.swift"
      ],
      "target_dependencies" : [
        "PyBundle"
      ],
      "type" : "test"
    },
    {
      "c99name" : "PyBundle",
      "module_type" : "SwiftTarget",
      "name" : "PyBundle",
      "path" : "Sources/PyBundle",
      "product_dependencies" : [
        "PythonKit"
      ],
      "product_memberships" : [
        "Python"
      ],
      "resources" : [
        {
          "path" : "/host/spi-builder-workspace/Sources/PyBundle/Resources/python",
          "rule" : {
            "copy" : {
            }
          }
        }
      ],
      "sources" : [
        "PyBundler.swift"
      ],
      "target_dependencies" : [
        "Python"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.9"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/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/pvieito/PythonKit.git
[1/1643] Fetching pythonkit
Fetched https://github.com/pvieito/PythonKit.git from cache (0.30s)
Computing version for https://github.com/pvieito/PythonKit.git
Computed https://github.com/pvieito/PythonKit.git at 0.5.1 (2.95s)
Creating working copy for https://github.com/pvieito/PythonKit.git
Working copy of https://github.com/pvieito/PythonKit.git resolved at 0.5.1
Building for debugging...
[0/4] Write sources
[2/4] Write swift-version-24593BA9C3E375BF.txt
[3/9] Copying python
error: emit-module command failed with exit code 1 (use -v to see invocation)
[5/9] Compiling PythonKit Python.swift
[6/9] Compiling PythonKit PythonLibrary+Symbols.swift
[7/9] Compiling PythonKit NumpyConversion.swift
[8/9] Emitting module PythonKit
/host/spi-builder-workspace/.build/checkouts/PythonKit/PythonKit/PythonLibrary.swift:120:34: error: cannot find 'librarySearchPaths' in scope
118 |     private static let libraryPaths: [String] = {
119 |         var libraryPaths: [String] = []
120 |         for librarySearchPath in librarySearchPaths {
    |                                  `- error: cannot find 'librarySearchPaths' in scope
121 |             for libraryName in libraryNames {
122 |                 for libraryPathExtension in libraryPathExtensions {
/host/spi-builder-workspace/.build/checkouts/PythonKit/PythonKit/PythonLibrary.swift:121:32: error: cannot find 'libraryNames' in scope
119 |         var libraryPaths: [String] = []
120 |         for librarySearchPath in librarySearchPaths {
121 |             for libraryName in libraryNames {
    |                                `- error: cannot find 'libraryNames' in scope
122 |                 for libraryPathExtension in libraryPathExtensions {
123 |                     let libraryPath =
/host/spi-builder-workspace/.build/checkouts/PythonKit/PythonKit/PythonLibrary.swift:122:45: error: cannot find 'libraryPathExtensions' in scope
120 |         for librarySearchPath in librarySearchPaths {
121 |             for libraryName in libraryNames {
122 |                 for libraryPathExtension in libraryPathExtensions {
    |                                             `- error: cannot find 'libraryPathExtensions' in scope
123 |                     let libraryPath =
124 |                     librarySearchPath + libraryName + libraryPathExtension
[9/9] Compiling PythonKit PythonLibrary.swift
/host/spi-builder-workspace/.build/checkouts/PythonKit/PythonKit/PythonLibrary.swift:120:34: error: cannot find 'librarySearchPaths' in scope
118 |     private static let libraryPaths: [String] = {
119 |         var libraryPaths: [String] = []
120 |         for librarySearchPath in librarySearchPaths {
    |                                  `- error: cannot find 'librarySearchPaths' in scope
121 |             for libraryName in libraryNames {
122 |                 for libraryPathExtension in libraryPathExtensions {
/host/spi-builder-workspace/.build/checkouts/PythonKit/PythonKit/PythonLibrary.swift:121:32: error: cannot find 'libraryNames' in scope
119 |         var libraryPaths: [String] = []
120 |         for librarySearchPath in librarySearchPaths {
121 |             for libraryName in libraryNames {
    |                                `- error: cannot find 'libraryNames' in scope
122 |                 for libraryPathExtension in libraryPathExtensions {
123 |                     let libraryPath =
/host/spi-builder-workspace/.build/checkouts/PythonKit/PythonKit/PythonLibrary.swift:122:45: error: cannot find 'libraryPathExtensions' in scope
120 |         for librarySearchPath in librarySearchPaths {
121 |             for libraryName in libraryNames {
122 |                 for libraryPathExtension in libraryPathExtensions {
    |                                             `- error: cannot find 'libraryPathExtensions' in scope
123 |                     let libraryPath =
124 |                     librarySearchPath + libraryName + libraryPathExtension
/host/spi-builder-workspace/.build/checkouts/PythonKit/PythonKit/PythonLibrary.swift:141:20: error: cannot find 'dlsym' in scope
139 |             return unsafeBitCast(moduleSymbol, to: UnsafeMutableRawPointer?.self)
140 | #else
141 |             return dlsym(libraryHandle, name)
    |                    `- error: cannot find 'dlsym' in scope
142 | #endif
143 |         }
/host/spi-builder-workspace/.build/checkouts/PythonKit/PythonKit/PythonLibrary.swift:194:36: error: cannot find 'libraryVersionSeparator' in scope
192 |             let libraryVersionString = versionString
193 |                 .split(separator: PythonVersion.versionSeparator)
194 |                 .joined(separator: libraryVersionSeparator)
    |                                    `- error: cannot find 'libraryVersionSeparator' in scope
195 |             let path = path.split(separator: libraryPathVersionCharacter)
196 |                 .joined(separator: libraryVersionString)
/host/spi-builder-workspace/.build/checkouts/PythonKit/PythonKit/PythonLibrary.swift:207:35: error: cannot find 'dlopen' in scope
205 |         // Must be RTLD_GLOBAL because subsequent .so files from the imported python
206 |         // modules may depend on this .so file.
207 |         let pythonLibraryHandle = dlopen(path, RTLD_LAZY | RTLD_GLOBAL)
    |                                   `- error: cannot find 'dlopen' in scope
208 | #endif
209 |
/host/spi-builder-workspace/.build/checkouts/PythonKit/PythonKit/PythonLibrary.swift:207:48: error: cannot find 'RTLD_LAZY' in scope
205 |         // Must be RTLD_GLOBAL because subsequent .so files from the imported python
206 |         // modules may depend on this .so file.
207 |         let pythonLibraryHandle = dlopen(path, RTLD_LAZY | RTLD_GLOBAL)
    |                                                `- error: cannot find 'RTLD_LAZY' in scope
208 | #endif
209 |
/host/spi-builder-workspace/.build/checkouts/PythonKit/PythonKit/PythonLibrary.swift:207:60: error: cannot find 'RTLD_GLOBAL' in scope
205 |         // Must be RTLD_GLOBAL because subsequent .so files from the imported python
206 |         // modules may depend on this .so file.
207 |         let pythonLibraryHandle = dlopen(path, RTLD_LAZY | RTLD_GLOBAL)
    |                                                            `- error: cannot find 'RTLD_GLOBAL' in scope
208 | #endif
209 |
/host/spi-builder-workspace/.build/checkouts/PythonKit/PythonKit/PythonLibrary.swift:287:33: error: cannot find 'getenv' in scope
285 |
286 |         var value: String? {
287 |             guard let cString = getenv(key) else { return nil }
    |                                 `- error: cannot find 'getenv' in scope
288 |             let value = String(cString: cString)
289 |             guard !value.isEmpty else { return nil }
/host/spi-builder-workspace/.build/checkouts/PythonKit/PythonKit/PythonLibrary.swift:297:13: error: cannot find 'setenv' in scope
295 |             _putenv_s(key, value)
296 | #else
297 |             setenv(key, value, 1)
    |             `- error: cannot find 'setenv' in scope
298 | #endif
299 |         }
/host/spi-builder-workspace/.build/checkouts/PythonKit/PythonKit/PythonLibrary.swift:307:9: error: cannot find 'fputs' in scope
305 |     private static func log(_ message: String) {
306 |         guard Environment.loaderLogging.value != nil else { return }
307 |         fputs(message + "\n", stderr)
    |         `- error: cannot find 'fputs' in scope
308 |     }
309 | }
/host/spi-builder-workspace/.build/checkouts/PythonKit/PythonKit/PythonLibrary.swift:307:31: error: cannot find 'stderr' in scope
305 |     private static func log(_ message: String) {
306 |         guard Environment.loaderLogging.value != nil else { return }
307 |         fputs(message + "\n", stderr)
    |                               `- error: cannot find 'stderr' in scope
308 |     }
309 | }
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/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/6] Compiling PythonKit PythonLibrary.swift
/host/spi-builder-workspace/.build/checkouts/PythonKit/PythonKit/PythonLibrary.swift:120:34: error: cannot find 'librarySearchPaths' in scope
118 |     private static let libraryPaths: [String] = {
119 |         var libraryPaths: [String] = []
120 |         for librarySearchPath in librarySearchPaths {
    |                                  `- error: cannot find 'librarySearchPaths' in scope
121 |             for libraryName in libraryNames {
122 |                 for libraryPathExtension in libraryPathExtensions {
/host/spi-builder-workspace/.build/checkouts/PythonKit/PythonKit/PythonLibrary.swift:121:32: error: cannot find 'libraryNames' in scope
119 |         var libraryPaths: [String] = []
120 |         for librarySearchPath in librarySearchPaths {
121 |             for libraryName in libraryNames {
    |                                `- error: cannot find 'libraryNames' in scope
122 |                 for libraryPathExtension in libraryPathExtensions {
123 |                     let libraryPath =
/host/spi-builder-workspace/.build/checkouts/PythonKit/PythonKit/PythonLibrary.swift:122:45: error: cannot find 'libraryPathExtensions' in scope
120 |         for librarySearchPath in librarySearchPaths {
121 |             for libraryName in libraryNames {
122 |                 for libraryPathExtension in libraryPathExtensions {
    |                                             `- error: cannot find 'libraryPathExtensions' in scope
123 |                     let libraryPath =
124 |                     librarySearchPath + libraryName + libraryPathExtension
/host/spi-builder-workspace/.build/checkouts/PythonKit/PythonKit/PythonLibrary.swift:141:20: error: cannot find 'dlsym' in scope
139 |             return unsafeBitCast(moduleSymbol, to: UnsafeMutableRawPointer?.self)
140 | #else
141 |             return dlsym(libraryHandle, name)
    |                    `- error: cannot find 'dlsym' in scope
142 | #endif
143 |         }
/host/spi-builder-workspace/.build/checkouts/PythonKit/PythonKit/PythonLibrary.swift:194:36: error: cannot find 'libraryVersionSeparator' in scope
192 |             let libraryVersionString = versionString
193 |                 .split(separator: PythonVersion.versionSeparator)
194 |                 .joined(separator: libraryVersionSeparator)
    |                                    `- error: cannot find 'libraryVersionSeparator' in scope
195 |             let path = path.split(separator: libraryPathVersionCharacter)
196 |                 .joined(separator: libraryVersionString)
/host/spi-builder-workspace/.build/checkouts/PythonKit/PythonKit/PythonLibrary.swift:207:35: error: cannot find 'dlopen' in scope
205 |         // Must be RTLD_GLOBAL because subsequent .so files from the imported python
206 |         // modules may depend on this .so file.
207 |         let pythonLibraryHandle = dlopen(path, RTLD_LAZY | RTLD_GLOBAL)
    |                                   `- error: cannot find 'dlopen' in scope
208 | #endif
209 |
/host/spi-builder-workspace/.build/checkouts/PythonKit/PythonKit/PythonLibrary.swift:207:48: error: cannot find 'RTLD_LAZY' in scope
205 |         // Must be RTLD_GLOBAL because subsequent .so files from the imported python
206 |         // modules may depend on this .so file.
207 |         let pythonLibraryHandle = dlopen(path, RTLD_LAZY | RTLD_GLOBAL)
    |                                                `- error: cannot find 'RTLD_LAZY' in scope
208 | #endif
209 |
/host/spi-builder-workspace/.build/checkouts/PythonKit/PythonKit/PythonLibrary.swift:207:60: error: cannot find 'RTLD_GLOBAL' in scope
205 |         // Must be RTLD_GLOBAL because subsequent .so files from the imported python
206 |         // modules may depend on this .so file.
207 |         let pythonLibraryHandle = dlopen(path, RTLD_LAZY | RTLD_GLOBAL)
    |                                                            `- error: cannot find 'RTLD_GLOBAL' in scope
208 | #endif
209 |
/host/spi-builder-workspace/.build/checkouts/PythonKit/PythonKit/PythonLibrary.swift:287:33: error: cannot find 'getenv' in scope
285 |
286 |         var value: String? {
287 |             guard let cString = getenv(key) else { return nil }
    |                                 `- error: cannot find 'getenv' in scope
288 |             let value = String(cString: cString)
289 |             guard !value.isEmpty else { return nil }
/host/spi-builder-workspace/.build/checkouts/PythonKit/PythonKit/PythonLibrary.swift:297:13: error: cannot find 'setenv' in scope
295 |             _putenv_s(key, value)
296 | #else
297 |             setenv(key, value, 1)
    |             `- error: cannot find 'setenv' in scope
298 | #endif
299 |         }
/host/spi-builder-workspace/.build/checkouts/PythonKit/PythonKit/PythonLibrary.swift:307:9: error: cannot find 'fputs' in scope
305 |     private static func log(_ message: String) {
306 |         guard Environment.loaderLogging.value != nil else { return }
307 |         fputs(message + "\n", stderr)
    |         `- error: cannot find 'fputs' in scope
308 |     }
309 | }
/host/spi-builder-workspace/.build/checkouts/PythonKit/PythonKit/PythonLibrary.swift:307:31: error: cannot find 'stderr' in scope
305 |     private static func log(_ message: String) {
306 |         guard Environment.loaderLogging.value != nil else { return }
307 |         fputs(message + "\n", stderr)
    |                               `- error: cannot find 'stderr' in scope
308 |     }
309 | }
[3/6] Compiling PythonKit PythonLibrary+Symbols.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/6] Compiling PythonKit NumpyConversion.swift
[5/6] Compiling PythonKit Python.swift
[6/6] Emitting module PythonKit
/host/spi-builder-workspace/.build/checkouts/PythonKit/PythonKit/PythonLibrary.swift:120:34: error: cannot find 'librarySearchPaths' in scope
118 |     private static let libraryPaths: [String] = {
119 |         var libraryPaths: [String] = []
120 |         for librarySearchPath in librarySearchPaths {
    |                                  `- error: cannot find 'librarySearchPaths' in scope
121 |             for libraryName in libraryNames {
122 |                 for libraryPathExtension in libraryPathExtensions {
/host/spi-builder-workspace/.build/checkouts/PythonKit/PythonKit/PythonLibrary.swift:121:32: error: cannot find 'libraryNames' in scope
119 |         var libraryPaths: [String] = []
120 |         for librarySearchPath in librarySearchPaths {
121 |             for libraryName in libraryNames {
    |                                `- error: cannot find 'libraryNames' in scope
122 |                 for libraryPathExtension in libraryPathExtensions {
123 |                     let libraryPath =
/host/spi-builder-workspace/.build/checkouts/PythonKit/PythonKit/PythonLibrary.swift:122:45: error: cannot find 'libraryPathExtensions' in scope
120 |         for librarySearchPath in librarySearchPaths {
121 |             for libraryName in libraryNames {
122 |                 for libraryPathExtension in libraryPathExtensions {
    |                                             `- error: cannot find 'libraryPathExtensions' in scope
123 |                     let libraryPath =
124 |                     librarySearchPath + libraryName + libraryPathExtension
BUILD FAILURE 6.1 wasm