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 SwiftXGBoost, reference 0.13.0 (569782), with Swift 6.2 (beta) for Wasm on 18 Jun 2025 09:49:56 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.2-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/kongzii/SwiftXGBoost.git
Reference: 0.13.0
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/kongzii/SwiftXGBoost
 * tag               0.13.0     -> FETCH_HEAD
HEAD is now at 5697823 Change default renderer to svg
Cloned https://github.com/kongzii/SwiftXGBoost.git
Revision (git rev-parse @):
569782385a8ae3f490108e73fd24db6f8972c4ed
SUCCESS checkout https://github.com/kongzii/SwiftXGBoost.git at 0.13.0
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.2
Building package at path:  $PWD
https://github.com/kongzii/SwiftXGBoost.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.2-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:44384f43f933eaa0f42803e9ef7c3d8388c5841ccc831a15a5edf63d8c273423
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.2-latest
Fetching https://github.com/KarthikRIyer/swiftplot.git
Fetching https://github.com/kongzii/PythonKit
Fetching https://github.com/apple/swift-log.git
[1/867] Fetching pythonkit
[868/4703] Fetching pythonkit, swift-log
[1099/11411] Fetching pythonkit, swift-log, swiftplot
Fetched https://github.com/kongzii/PythonKit from cache (0.49s)
Fetched https://github.com/apple/swift-log.git from cache (0.49s)
[1141/6708] Fetching swiftplot
Fetched https://github.com/KarthikRIyer/swiftplot.git from cache (1.45s)
Computing version for https://github.com/KarthikRIyer/swiftplot.git
Computed https://github.com/KarthikRIyer/swiftplot.git at 2.0.0 (1.96s)
Computing version for https://github.com/kongzii/PythonKit
Computed https://github.com/kongzii/PythonKit at 0.0.1 (0.92s)
Fetching https://github.com/apple/swift-argument-parser
Fetching https://github.com/kongzii/LoggerKit.git
[1/369] Fetching loggerkit
Fetched https://github.com/kongzii/LoggerKit.git from cache (0.29s)
[1/15380] Fetching swift-argument-parser
Fetched https://github.com/apple/swift-argument-parser from cache (0.87s)
Computing version for https://github.com/kongzii/LoggerKit.git
Computed https://github.com/kongzii/LoggerKit.git at 0.0.0 (1.26s)
Fetching https://github.com/onevcat/Rainbow
[1/1196] Fetching rainbow
Fetched https://github.com/onevcat/Rainbow from cache (0.26s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 0.0.6 (0.69s)
Computing version for https://github.com/onevcat/Rainbow
Computed https://github.com/onevcat/Rainbow at 3.2.0 (2.23s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.6.3 (0.38s)
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.6.3
Creating working copy for https://github.com/apple/swift-argument-parser
Working copy of https://github.com/apple/swift-argument-parser resolved at 0.0.6
Creating working copy for https://github.com/kongzii/LoggerKit.git
Working copy of https://github.com/kongzii/LoggerKit.git resolved at 0.0.0
Creating working copy for https://github.com/KarthikRIyer/swiftplot.git
Working copy of https://github.com/KarthikRIyer/swiftplot.git resolved at 2.0.0
Creating working copy for https://github.com/kongzii/PythonKit
Working copy of https://github.com/kongzii/PythonKit resolved at 0.0.1
Creating working copy for https://github.com/onevcat/Rainbow
Working copy of https://github.com/onevcat/Rainbow resolved at 3.2.0
warning: couldn't find pc file for xgboost
warning: you may be able to install freetype2 using your system-packager:
    apt-get install libfreetype6-dev
warning: couldn't find pc file for xgboost
warning: you may be able to install freetype2 using your system-packager:
    apt-get install libfreetype6-dev
Building for debugging...
[0/47] Write sources
[14/47] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[16/87] Emitting module SwiftPlot
/host/spi-builder-workspace/.build/checkouts/swiftplot/Sources/SwiftPlot/BarChart.swift:1:8: error: no such module 'Foundation'
  1 | import Foundation
    |        `- error: no such module 'Foundation'
  2 |
  3 | fileprivate let MAX_DIV: Float = 50
[17/91] Compiling PythonKit Python.swift
/host/spi-builder-workspace/.build/checkouts/PythonKit/PythonKit/Python.swift:40:17: error: type referenced from a stored property in a '@frozen' struct must be '@usableFromInline' or public
  26 | /// Typealias used when passing or returning a `PyObject` pointer with
  27 | /// implied ownership.
  28 | typealias OwnedPyObjectPointer = PyObjectPointer
     |           `- note: type declared here
  29 |
  30 | /// A primitive reference to a Python C API `PyObject`.
     :
  38 | @usableFromInline @_fixed_layout
  39 | final class PyReference {
  40 |     private var pointer: OwnedPyObjectPointer
     |                 `- error: type referenced from a stored property in a '@frozen' struct must be '@usableFromInline' or public
  41 |
  42 |     // This `PyReference`, once deleted, will make no delta change to the
[18/91] Compiling SwiftPlot ColorMap.swift
/host/spi-builder-workspace/.build/checkouts/swiftplot/Sources/SwiftPlot/BarChart.swift:1:8: error: no such module 'Foundation'
  1 | import Foundation
    |        `- error: no such module 'Foundation'
  2 |
  3 | fileprivate let MAX_DIV: Float = 50
[19/91] Compiling SwiftPlot ColorMapData.swift
/host/spi-builder-workspace/.build/checkouts/swiftplot/Sources/SwiftPlot/BarChart.swift:1:8: error: no such module 'Foundation'
  1 | import Foundation
    |        `- error: no such module 'Foundation'
  2 |
  3 | fileprivate let MAX_DIV: Float = 50
[20/91] Compiling SwiftPlot FloatConvertible.swift
/host/spi-builder-workspace/.build/checkouts/swiftplot/Sources/SwiftPlot/BarChart.swift:1:8: error: no such module 'Foundation'
  1 | import Foundation
    |        `- error: no such module 'Foundation'
  2 |
  3 | fileprivate let MAX_DIV: Float = 50
[21/91] Compiling SwiftPlot EdgeComponents.swift
/host/spi-builder-workspace/.build/checkouts/swiftplot/Sources/SwiftPlot/BarChart.swift:1:8: error: no such module 'Foundation'
  1 | import Foundation
    |        `- error: no such module 'Foundation'
  2 |
  3 | fileprivate let MAX_DIV: Float = 50
[22/91] Compiling SwiftPlot Heatmap.swift
/host/spi-builder-workspace/.build/checkouts/swiftplot/Sources/SwiftPlot/BarChart.swift:1:8: error: no such module 'Foundation'
  1 | import Foundation
    |        `- error: no such module 'Foundation'
  2 |
  3 | fileprivate let MAX_DIV: Float = 50
[23/91] Compiling SwiftPlot HelperFunction.swift
/host/spi-builder-workspace/.build/checkouts/swiftplot/Sources/SwiftPlot/BarChart.swift:1:8: error: no such module 'Foundation'
  1 | import Foundation
    |        `- error: no such module 'Foundation'
  2 |
  3 | fileprivate let MAX_DIV: Float = 50
[24/91] Compiling SwiftPlot Histogram.swift
/host/spi-builder-workspace/.build/checkouts/swiftplot/Sources/SwiftPlot/BarChart.swift:1:8: error: no such module 'Foundation'
  1 | import Foundation
    |        `- error: no such module 'Foundation'
  2 |
  3 | fileprivate let MAX_DIV: Float = 50
[25/91] Compiling SwiftPlot HistogramSeries.swift
/host/spi-builder-workspace/.build/checkouts/swiftplot/Sources/SwiftPlot/BarChart.swift:1:8: error: no such module 'Foundation'
  1 | import Foundation
    |        `- error: no such module 'Foundation'
  2 |
  3 | fileprivate let MAX_DIV: Float = 50
[26/91] Compiling PythonKit PythonLibrary.swift
/host/spi-builder-workspace/.build/checkouts/PythonKit/PythonKit/PythonLibrary.swift:175:34: error: cannot find 'librarySearchPaths' in scope
173 |     static let libraryPaths: [String] = {
174 |         var libraryPaths: [String] = []
175 |         for librarySearchPath in librarySearchPaths {
    |                                  `- error: cannot find 'librarySearchPaths' in scope
176 |             for libraryName in libraryNames {
177 |                 for libraryPathExtension in libraryPathExtensions {
/host/spi-builder-workspace/.build/checkouts/PythonKit/PythonKit/PythonLibrary.swift:176:32: error: cannot find 'libraryNames' in scope
174 |         var libraryPaths: [String] = []
175 |         for librarySearchPath in librarySearchPaths {
176 |             for libraryName in libraryNames {
    |                                `- error: cannot find 'libraryNames' in scope
177 |                 for libraryPathExtension in libraryPathExtensions {
178 |                     let libraryPath =
/host/spi-builder-workspace/.build/checkouts/PythonKit/PythonKit/PythonLibrary.swift:177:45: error: cannot find 'libraryPathExtensions' in scope
175 |         for librarySearchPath in librarySearchPaths {
176 |             for libraryName in libraryNames {
177 |                 for libraryPathExtension in libraryPathExtensions {
    |                                             `- error: cannot find 'libraryPathExtensions' in scope
178 |                     let libraryPath =
179 |                         librarySearchPath + libraryName + libraryPathExtension
/host/spi-builder-workspace/.build/checkouts/PythonKit/PythonKit/PythonLibrary.swift:135:31: error: cannot find 'getenv' in scope
133 |
134 |         var value: String? {
135 |             guard let value = getenv(key) else { return nil }
    |                               `- error: cannot find 'getenv' in scope
136 |             return String(cString: value)
137 |         }
/host/spi-builder-workspace/.build/checkouts/PythonKit/PythonKit/PythonLibrary.swift:221:32: error: cannot find 'libraryVersionSeparator' in scope
219 |         let libraryVersionString = versionString
220 |             .split(separator: PythonVersion.versionSeparator)
221 |             .joined(separator: libraryVersionSeparator)
    |                                `- error: cannot find 'libraryVersionSeparator' in scope
222 |         let path = path.split(separator: libraryPathVersionCharacter)
223 |             .joined(separator: libraryVersionString)
/host/spi-builder-workspace/.build/checkouts/PythonKit/PythonKit/PythonLibrary.swift:237:12: error: instance member 'pythonLibraryHandle' cannot be used on type 'PythonLibrary'
235 |         #endif
236 |
237 |         if pythonLibraryHandle != nil {
    |            `- error: instance member 'pythonLibraryHandle' cannot be used on type 'PythonLibrary'
238 |             log("Library at '\(path)' was sucessfully loaded.")
239 |         }
/host/spi-builder-workspace/.build/checkouts/PythonKit/PythonKit/PythonLibrary.swift:240:16: error: instance member 'pythonLibraryHandle' cannot be used on type 'PythonLibrary'
238 |             log("Library at '\(path)' was sucessfully loaded.")
239 |         }
240 |         return pythonLibraryHandle
    |                `- error: instance member 'pythonLibraryHandle' cannot be used on type 'PythonLibrary'
241 |     }
242 | }
/host/spi-builder-workspace/.build/checkouts/PythonKit/PythonKit/PythonLibrary.swift:248:9: error: cannot find 'fputs' in scope
246 |     static func log(_ message: String) {
247 |         guard Environment.loaderLogging.value != nil else { return }
248 |         fputs(message + "\n", stderr)
    |         `- error: cannot find 'fputs' in scope
249 |     }
250 | }
/host/spi-builder-workspace/.build/checkouts/PythonKit/PythonKit/PythonLibrary.swift:248:31: error: cannot find 'stderr' in scope
246 |     static func log(_ message: String) {
247 |         guard Environment.loaderLogging.value != nil else { return }
248 |         fputs(message + "\n", stderr)
    |                               `- error: cannot find 'stderr' in scope
249 |     }
250 | }
[27/91] Emitting module Logging
[28/91] Compiling SwiftPlot PlotMarkers.swift
/host/spi-builder-workspace/.build/checkouts/swiftplot/Sources/SwiftPlot/BarChart.swift:1:8: error: no such module 'Foundation'
  1 | import Foundation
    |        `- error: no such module 'Foundation'
  2 |
  3 | fileprivate let MAX_DIV: Float = 50
[29/91] Compiling SwiftPlot PlotStyleHelpers.swift
/host/spi-builder-workspace/.build/checkouts/swiftplot/Sources/SwiftPlot/BarChart.swift:1:8: error: no such module 'Foundation'
  1 | import Foundation
    |        `- error: no such module 'Foundation'
  2 |
  3 | fileprivate let MAX_DIV: Float = 50
[30/91] Compiling SwiftPlot Renderer.swift
/host/spi-builder-workspace/.build/checkouts/swiftplot/Sources/SwiftPlot/BarChart.swift:1:8: error: no such module 'Foundation'
  1 | import Foundation
    |        `- error: no such module 'Foundation'
  2 |
  3 | fileprivate let MAX_DIV: Float = 50
[31/91] Compiling SwiftPlot ScatterChart.swift
/host/spi-builder-workspace/.build/checkouts/swiftplot/Sources/SwiftPlot/BarChart.swift:1:8: error: no such module 'Foundation'
  1 | import Foundation
    |        `- error: no such module 'Foundation'
  2 |
  3 | fileprivate let MAX_DIV: Float = 50
[32/91] Compiling SwiftPlot AdaptersNamespace.swift
/host/spi-builder-workspace/.build/checkouts/swiftplot/Sources/SwiftPlot/BarChart.swift:1:8: error: no such module 'Foundation'
  1 | import Foundation
    |        `- error: no such module 'Foundation'
  2 |
  3 | fileprivate let MAX_DIV: Float = 50
[33/91] Compiling SwiftPlot Axis.swift
/host/spi-builder-workspace/.build/checkouts/swiftplot/Sources/SwiftPlot/BarChart.swift:1:8: error: no such module 'Foundation'
  1 | import Foundation
    |        `- error: no such module 'Foundation'
  2 |
  3 | fileprivate let MAX_DIV: Float = 50
[34/91] Compiling SwiftPlot BarChart.swift
/host/spi-builder-workspace/.build/checkouts/swiftplot/Sources/SwiftPlot/BarChart.swift:1:8: error: no such module 'Foundation'
  1 | import Foundation
    |        `- error: no such module 'Foundation'
  2 |
  3 | fileprivate let MAX_DIV: Float = 50
[35/91] Compiling SwiftPlot BarGraphSeriesOptions.swift
/host/spi-builder-workspace/.build/checkouts/swiftplot/Sources/SwiftPlot/BarChart.swift:1:8: error: no such module 'Foundation'
  1 | import Foundation
    |        `- error: no such module 'Foundation'
  2 |
  3 | fileprivate let MAX_DIV: Float = 50
[36/91] Compiling SwiftPlot Color.swift
/host/spi-builder-workspace/.build/checkouts/swiftplot/Sources/SwiftPlot/BarChart.swift:1:8: error: no such module 'Foundation'
  1 | import Foundation
    |        `- error: no such module 'Foundation'
  2 |
  3 | fileprivate let MAX_DIV: Float = 50
[37/91] Compiling SwiftPlot HistogramSeriesOptions.swift
/host/spi-builder-workspace/.build/checkouts/swiftplot/Sources/SwiftPlot/BarChart.swift:1:8: error: no such module 'Foundation'
  1 | import Foundation
    |        `- error: no such module 'Foundation'
  2 |
  3 | fileprivate let MAX_DIV: Float = 50
[38/91] Compiling SwiftPlot Label.swift
/host/spi-builder-workspace/.build/checkouts/swiftplot/Sources/SwiftPlot/BarChart.swift:1:8: error: no such module 'Foundation'
  1 | import Foundation
    |        `- error: no such module 'Foundation'
  2 |
  3 | fileprivate let MAX_DIV: Float = 50
[39/91] Compiling SwiftPlot LayoutComponent.swift
/host/spi-builder-workspace/.build/checkouts/swiftplot/Sources/SwiftPlot/BarChart.swift:1:8: error: no such module 'Foundation'
  1 | import Foundation
    |        `- error: no such module 'Foundation'
  2 |
  3 | fileprivate let MAX_DIV: Float = 50
[40/91] Compiling SwiftPlot Spacing.swift
/host/spi-builder-workspace/.build/checkouts/swiftplot/Sources/SwiftPlot/BarChart.swift:1:8: error: no such module 'Foundation'
  1 | import Foundation
    |        `- error: no such module 'Foundation'
  2 |
  3 | fileprivate let MAX_DIV: Float = 50
[41/91] Compiling SwiftPlot Rect.swift
/host/spi-builder-workspace/.build/checkouts/swiftplot/Sources/SwiftPlot/BarChart.swift:1:8: error: no such module 'Foundation'
  1 | import Foundation
    |        `- error: no such module 'Foundation'
  2 |
  3 | fileprivate let MAX_DIV: Float = 50
[42/91] Compiling SwiftPlot Size.swift
/host/spi-builder-workspace/.build/checkouts/swiftplot/Sources/SwiftPlot/BarChart.swift:1:8: error: no such module 'Foundation'
  1 | import Foundation
    |        `- error: no such module 'Foundation'
  2 |
  3 | fileprivate let MAX_DIV: Float = 50
[43/91] Compiling SwiftPlot GraphLayout.swift
/host/spi-builder-workspace/.build/checkouts/swiftplot/Sources/SwiftPlot/BarChart.swift:1:8: error: no such module 'Foundation'
  1 | import Foundation
    |        `- error: no such module 'Foundation'
  2 |
  3 | fileprivate let MAX_DIV: Float = 50
[44/91] Compiling SwiftPlot Heatmap-adapter.swift
/host/spi-builder-workspace/.build/checkouts/swiftplot/Sources/SwiftPlot/BarChart.swift:1:8: error: no such module 'Foundation'
  1 | import Foundation
    |        `- error: no such module 'Foundation'
  2 |
  3 | fileprivate let MAX_DIV: Float = 50
[45/91] Compiling SwiftPlot LineChart.swift
/host/spi-builder-workspace/.build/checkouts/swiftplot/Sources/SwiftPlot/BarChart.swift:1:8: error: no such module 'Foundation'
  1 | import Foundation
    |        `- error: no such module 'Foundation'
  2 |
  3 | fileprivate let MAX_DIV: Float = 50
[46/91] Compiling SwiftPlot Pair.swift
/host/spi-builder-workspace/.build/checkouts/swiftplot/Sources/SwiftPlot/BarChart.swift:1:8: error: no such module 'Foundation'
  1 | import Foundation
    |        `- error: no such module 'Foundation'
  2 |
  3 | fileprivate let MAX_DIV: Float = 50
[47/91] Compiling SwiftPlot Plot.swift
/host/spi-builder-workspace/.build/checkouts/swiftplot/Sources/SwiftPlot/BarChart.swift:1:8: error: no such module 'Foundation'
  1 | import Foundation
    |        `- error: no such module 'Foundation'
  2 |
  3 | fileprivate let MAX_DIV: Float = 50
[48/91] Compiling SwiftPlot PlotDimensions.swift
/host/spi-builder-workspace/.build/checkouts/swiftplot/Sources/SwiftPlot/BarChart.swift:1:8: error: no such module 'Foundation'
  1 | import Foundation
    |        `- error: no such module 'Foundation'
  2 |
  3 | fileprivate let MAX_DIV: Float = 50
error: emit-module command failed with exit code 1 (use -v to see invocation)
[49/91] Emitting module PythonKit
/host/spi-builder-workspace/.build/checkouts/PythonKit/PythonKit/Python.swift:40:17: error: type referenced from a stored property in a '@frozen' struct must be '@usableFromInline' or public
  26 | /// Typealias used when passing or returning a `PyObject` pointer with
  27 | /// implied ownership.
  28 | typealias OwnedPyObjectPointer = PyObjectPointer
     |           `- note: type declared here
  29 |
  30 | /// A primitive reference to a Python C API `PyObject`.
     :
  38 | @usableFromInline @_fixed_layout
  39 | final class PyReference {
  40 |     private var pointer: OwnedPyObjectPointer
     |                 `- error: type referenced from a stored property in a '@frozen' struct must be '@usableFromInline' or public
  41 |
  42 |     // This `PyReference`, once deleted, will make no delta change to the
/host/spi-builder-workspace/.build/checkouts/PythonKit/PythonKit/PythonLibrary.swift:175:34: error: cannot find 'librarySearchPaths' in scope
173 |     static let libraryPaths: [String] = {
174 |         var libraryPaths: [String] = []
175 |         for librarySearchPath in librarySearchPaths {
    |                                  `- error: cannot find 'librarySearchPaths' in scope
176 |             for libraryName in libraryNames {
177 |                 for libraryPathExtension in libraryPathExtensions {
/host/spi-builder-workspace/.build/checkouts/PythonKit/PythonKit/PythonLibrary.swift:176:32: error: cannot find 'libraryNames' in scope
174 |         var libraryPaths: [String] = []
175 |         for librarySearchPath in librarySearchPaths {
176 |             for libraryName in libraryNames {
    |                                `- error: cannot find 'libraryNames' in scope
177 |                 for libraryPathExtension in libraryPathExtensions {
178 |                     let libraryPath =
/host/spi-builder-workspace/.build/checkouts/PythonKit/PythonKit/PythonLibrary.swift:177:45: error: cannot find 'libraryPathExtensions' in scope
175 |         for librarySearchPath in librarySearchPaths {
176 |             for libraryName in libraryNames {
177 |                 for libraryPathExtension in libraryPathExtensions {
    |                                             `- error: cannot find 'libraryPathExtensions' in scope
178 |                     let libraryPath =
179 |                         librarySearchPath + libraryName + libraryPathExtension
[50/91] Compiling PythonKit NumpyConversion.swift
[51/91] Compiling SwiftPlot ScatterPlotSeriesOptions.swift
/host/spi-builder-workspace/.build/checkouts/swiftplot/Sources/SwiftPlot/BarChart.swift:1:8: error: no such module 'Foundation'
  1 | import Foundation
    |        `- error: no such module 'Foundation'
  2 |
  3 | fileprivate let MAX_DIV: Float = 50
[52/91] Compiling SwiftPlot SequencePlots.swift
/host/spi-builder-workspace/.build/checkouts/swiftplot/Sources/SwiftPlot/BarChart.swift:1:8: error: no such module 'Foundation'
  1 | import Foundation
    |        `- error: no such module 'Foundation'
  2 |
  3 | fileprivate let MAX_DIV: Float = 50
[53/91] Compiling SwiftPlot Series.swift
/host/spi-builder-workspace/.build/checkouts/swiftplot/Sources/SwiftPlot/BarChart.swift:1:8: error: no such module 'Foundation'
  1 | import Foundation
    |        `- error: no such module 'Foundation'
  2 |
  3 | fileprivate let MAX_DIV: Float = 50
[54/91] Compiling SwiftPlot SubPlot.swift
/host/spi-builder-workspace/.build/checkouts/swiftplot/Sources/SwiftPlot/BarChart.swift:1:8: error: no such module 'Foundation'
  1 | import Foundation
    |        `- error: no such module 'Foundation'
  2 |
  3 | fileprivate let MAX_DIV: Float = 50
BUILD FAILURE 6.2 wasm