The Swift Package Index logo.Swift Package Index

Build Information

Failed to build DL4S, reference master (c396af), with Swift 6.3 for Android on 29 Sep 2026 02:53:06 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-54344845-2":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:android-6.3-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1

Build Log

122 | long double sinhl(long double __x);
123 |
124 | double tanh(double __x);
    |        `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
125 | float tanhf(float __x);
126 | long double tanhl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Int32.swift:98:21: error: cannot convert value of type 'Float' to expected argument type 'Double'
 96 |
 97 |     public func tanh() -> Int32 {
 98 |         Int32(round(Float(Foundation.tanh(Float(self)))))
    |                     `- error: cannot convert value of type 'Float' to expected argument type 'Double'
 99 |     }
100 | }
/host/spi-builder-workspace/Sources/DL4S/Numerics/Float.swift:58:25: error: cannot convert value of type 'Float' to expected argument type 'Double'
56 |
57 |     public func sqrt() -> Float {
58 |         Foundation.sqrt(self)
   |                         `- error: cannot convert value of type 'Float' to expected argument type 'Double'
59 |     }
60 |
/host/spi-builder-workspace/Sources/DL4S/Numerics/Float.swift:58:20: error: cannot convert return expression of type 'Double' to return type 'Float'
56 |
57 |     public func sqrt() -> Float {
58 |         Foundation.sqrt(self)
   |                    `- error: cannot convert return expression of type 'Double' to return type 'Float'
59 |     }
60 |
/host/spi-builder-workspace/Sources/DL4S/Numerics/Float.swift:62:20: error: no exact matches in call to global function 'exp'
60 |
61 |     public func exp() -> Float {
62 |         Foundation.exp(self)
   |                    `- error: no exact matches in call to global function 'exp'
63 |     }
64 |
Foundation.exp:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func exp(_ x: CGFloat) -> CGFloat
  |             `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:128:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
126 | long double tanhl(long double __x);
127 |
128 | double exp(double __x);
    |        `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
129 | float expf(float __x);
130 | long double expl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Float.swift:62:20: error: no 'exp' candidates produce the expected contextual result type 'Float'
60 |
61 |     public func exp() -> Float {
62 |         Foundation.exp(self)
   |                    `- error: no 'exp' candidates produce the expected contextual result type 'Float'
63 |     }
64 |
Foundation.exp:1:13: note: 'exp' produces 'CGFloat', not the expected contextual result type 'Float'
1 | public func exp(_ x: CGFloat) -> CGFloat
  |             `- note: 'exp' produces 'CGFloat', not the expected contextual result type 'Float'
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:128:8: note: 'exp' produces 'Double', not the expected contextual result type 'Float'
126 | long double tanhl(long double __x);
127 |
128 | double exp(double __x);
    |        `- note: 'exp' produces 'Double', not the expected contextual result type 'Float'
129 | float expf(float __x);
130 | long double expl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Float.swift:66:20: error: no exact matches in call to global function 'log'
64 |
65 |     public func log() -> Float {
66 |         Foundation.log(self)
   |                    `- error: no exact matches in call to global function 'log'
67 |     }
68 |
Foundation.log:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func log(_ x: CGFloat) -> CGFloat
  |             `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:152:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
150 | long double ldexpl(long double __x, int __exponent);
151 |
152 | double log(double __x);
    |        `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
153 | float logf(float __x);
154 | long double logl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Float.swift:66:20: error: no 'log' candidates produce the expected contextual result type 'Float'
64 |
65 |     public func log() -> Float {
66 |         Foundation.log(self)
   |                    `- error: no 'log' candidates produce the expected contextual result type 'Float'
67 |     }
68 |
Foundation.log:1:13: note: 'log' produces 'CGFloat', not the expected contextual result type 'Float'
1 | public func log(_ x: CGFloat) -> CGFloat
  |             `- note: 'log' produces 'CGFloat', not the expected contextual result type 'Float'
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:152:8: note: 'log' produces 'Double', not the expected contextual result type 'Float'
150 | long double ldexpl(long double __x, int __exponent);
151 |
152 | double log(double __x);
    |        `- note: 'log' produces 'Double', not the expected contextual result type 'Float'
153 | float logf(float __x);
154 | long double logl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Float.swift:70:20: error: no exact matches in call to global function 'sin'
68 |
69 |     public func sin() -> Float {
70 |         Foundation.sin(self)
   |                    `- error: no exact matches in call to global function 'sin'
71 |     }
72 |
Foundation.sin:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func sin(_ x: CGFloat) -> CGFloat
  |             `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:96:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
 94 | long double cosl(long double __x);
 95 |
 96 | double sin(double __x);
    |        `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
 97 | float sinf(float __x);
 98 | long double sinl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Float.swift:70:20: error: no 'sin' candidates produce the expected contextual result type 'Float'
68 |
69 |     public func sin() -> Float {
70 |         Foundation.sin(self)
   |                    `- error: no 'sin' candidates produce the expected contextual result type 'Float'
71 |     }
72 |
Foundation.sin:1:13: note: 'sin' produces 'CGFloat', not the expected contextual result type 'Float'
1 | public func sin(_ x: CGFloat) -> CGFloat
  |             `- note: 'sin' produces 'CGFloat', not the expected contextual result type 'Float'
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:96:8: note: 'sin' produces 'Double', not the expected contextual result type 'Float'
 94 | long double cosl(long double __x);
 95 |
 96 | double sin(double __x);
    |        `- note: 'sin' produces 'Double', not the expected contextual result type 'Float'
 97 | float sinf(float __x);
 98 | long double sinl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Float.swift:74:20: error: no exact matches in call to global function 'cos'
72 |
73 |     public func cos() -> Float {
74 |         Foundation.cos(self)
   |                    `- error: no exact matches in call to global function 'cos'
75 |     }
76 |
Foundation.cos:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func cos(_ x: CGFloat) -> CGFloat
  |             `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:92:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
 90 | long double atan2l(long double __y, long double __x);
 91 |
 92 | double cos(double __x);
    |        `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
 93 | float cosf(float __x);
 94 | long double cosl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Float.swift:74:20: error: no 'cos' candidates produce the expected contextual result type 'Float'
72 |
73 |     public func cos() -> Float {
74 |         Foundation.cos(self)
   |                    `- error: no 'cos' candidates produce the expected contextual result type 'Float'
75 |     }
76 |
Foundation.cos:1:13: note: 'cos' produces 'CGFloat', not the expected contextual result type 'Float'
1 | public func cos(_ x: CGFloat) -> CGFloat
  |             `- note: 'cos' produces 'CGFloat', not the expected contextual result type 'Float'
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:92:8: note: 'cos' produces 'Double', not the expected contextual result type 'Float'
 90 | long double atan2l(long double __y, long double __x);
 91 |
 92 | double cos(double __x);
    |        `- note: 'cos' produces 'Double', not the expected contextual result type 'Float'
 93 | float cosf(float __x);
 94 | long double cosl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Float.swift:78:20: error: no exact matches in call to global function 'tanh'
76 |
77 |     public func tan() -> Float {
78 |         Foundation.tanh(self)
   |                    `- error: no exact matches in call to global function 'tanh'
79 |     }
80 |
Foundation.tanh:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func tanh(_ x: CGFloat) -> CGFloat
  |             `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:124:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
122 | long double sinhl(long double __x);
123 |
124 | double tanh(double __x);
    |        `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
125 | float tanhf(float __x);
126 | long double tanhl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Float.swift:78:20: error: no 'tanh' candidates produce the expected contextual result type 'Float'
76 |
77 |     public func tan() -> Float {
78 |         Foundation.tanh(self)
   |                    `- error: no 'tanh' candidates produce the expected contextual result type 'Float'
79 |     }
80 |
Foundation.tanh:1:13: note: 'tanh' produces 'CGFloat', not the expected contextual result type 'Float'
1 | public func tanh(_ x: CGFloat) -> CGFloat
  |             `- note: 'tanh' produces 'CGFloat', not the expected contextual result type 'Float'
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:124:8: note: 'tanh' produces 'Double', not the expected contextual result type 'Float'
122 | long double sinhl(long double __x);
123 |
124 | double tanh(double __x);
    |        `- note: 'tanh' produces 'Double', not the expected contextual result type 'Float'
125 | float tanhf(float __x);
126 | long double tanhl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Float.swift:82:20: error: no exact matches in call to global function 'sinh'
80 |
81 |     public func sinh() -> Float {
82 |         Foundation.sinh(self)
   |                    `- error: no exact matches in call to global function 'sinh'
83 |     }
84 |
Foundation.sinh:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func sinh(_ x: CGFloat) -> CGFloat
  |             `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:120:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
118 | long double coshl(long double __x);
119 |
120 | double sinh(double __x);
    |        `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
121 | float sinhf(float __x);
122 | long double sinhl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Float.swift:82:20: error: no 'sinh' candidates produce the expected contextual result type 'Float'
80 |
81 |     public func sinh() -> Float {
82 |         Foundation.sinh(self)
   |                    `- error: no 'sinh' candidates produce the expected contextual result type 'Float'
83 |     }
84 |
Foundation.sinh:1:13: note: 'sinh' produces 'CGFloat', not the expected contextual result type 'Float'
1 | public func sinh(_ x: CGFloat) -> CGFloat
  |             `- note: 'sinh' produces 'CGFloat', not the expected contextual result type 'Float'
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:120:8: note: 'sinh' produces 'Double', not the expected contextual result type 'Float'
118 | long double coshl(long double __x);
119 |
120 | double sinh(double __x);
    |        `- note: 'sinh' produces 'Double', not the expected contextual result type 'Float'
121 | float sinhf(float __x);
122 | long double sinhl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Float.swift:86:20: error: no exact matches in call to global function 'cosh'
84 |
85 |     public func cosh() -> Float {
86 |         Foundation.cosh(self)
   |                    `- error: no exact matches in call to global function 'cosh'
87 |     }
88 |
Foundation.cosh:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func cosh(_ x: CGFloat) -> CGFloat
  |             `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:116:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
114 | long double atanhl(long double __x);
115 |
116 | double cosh(double __x);
    |        `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
117 | float coshf(float __x);
118 | long double coshl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Float.swift:86:20: error: no 'cosh' candidates produce the expected contextual result type 'Float'
84 |
85 |     public func cosh() -> Float {
86 |         Foundation.cosh(self)
   |                    `- error: no 'cosh' candidates produce the expected contextual result type 'Float'
87 |     }
88 |
Foundation.cosh:1:13: note: 'cosh' produces 'CGFloat', not the expected contextual result type 'Float'
1 | public func cosh(_ x: CGFloat) -> CGFloat
  |             `- note: 'cosh' produces 'CGFloat', not the expected contextual result type 'Float'
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:116:8: note: 'cosh' produces 'Double', not the expected contextual result type 'Float'
114 | long double atanhl(long double __x);
115 |
116 | double cosh(double __x);
    |        `- note: 'cosh' produces 'Double', not the expected contextual result type 'Float'
117 | float coshf(float __x);
118 | long double coshl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Float.swift:90:20: error: no exact matches in call to global function 'tanh'
88 |
89 |     public func tanh() -> Float {
90 |         Foundation.tanh(self)
   |                    `- error: no exact matches in call to global function 'tanh'
91 |     }
92 | }
Foundation.tanh:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func tanh(_ x: CGFloat) -> CGFloat
  |             `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:124:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
122 | long double sinhl(long double __x);
123 |
124 | double tanh(double __x);
    |        `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
125 | float tanhf(float __x);
126 | long double tanhl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Float.swift:90:20: error: no 'tanh' candidates produce the expected contextual result type 'Float'
88 |
89 |     public func tanh() -> Float {
90 |         Foundation.tanh(self)
   |                    `- error: no 'tanh' candidates produce the expected contextual result type 'Float'
91 |     }
92 | }
Foundation.tanh:1:13: note: 'tanh' produces 'CGFloat', not the expected contextual result type 'Float'
1 | public func tanh(_ x: CGFloat) -> CGFloat
  |             `- note: 'tanh' produces 'CGFloat', not the expected contextual result type 'Float'
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:124:8: note: 'tanh' produces 'Double', not the expected contextual result type 'Float'
122 | long double sinhl(long double __x);
123 |
124 | double tanh(double __x);
    |        `- note: 'tanh' produces 'Double', not the expected contextual result type 'Float'
125 | float tanhf(float __x);
126 | long double tanhl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Int32.swift:66:31: error: cannot convert value of type 'Float' to expected argument type 'Double'
 64 |
 65 |     public func sqrt() -> Int32 {
 66 |         Int32(Foundation.sqrt(Float(self)))
    |                               `- error: cannot convert value of type 'Float' to expected argument type 'Double'
 67 |     }
 68 |
/host/spi-builder-workspace/Sources/DL4S/Numerics/Int32.swift:70:26: error: no exact matches in call to global function 'log'
 68 |
 69 |     public func log() -> Int32 {
 70 |         Int32(Foundation.log(Float(self)))
    |                          `- error: no exact matches in call to global function 'log'
 71 |     }
 72 |
Foundation.log:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func log(_ x: CGFloat) -> CGFloat
  |             `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:152:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
150 | long double ldexpl(long double __x, int __exponent);
151 |
152 | double log(double __x);
    |        `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
153 | float logf(float __x);
154 | long double logl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Int32.swift:74:26: error: no exact matches in call to global function 'exp'
 72 |
 73 |     public func exp() -> Int32 {
 74 |         Int32(Foundation.exp(Float(self)))
    |                          `- error: no exact matches in call to global function 'exp'
 75 |     }
 76 |
Foundation.exp:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func exp(_ x: CGFloat) -> CGFloat
  |             `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:128:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
126 | long double tanhl(long double __x);
127 |
128 | double exp(double __x);
    |        `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
129 | float expf(float __x);
130 | long double expl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Int32.swift:78:38: error: no exact matches in call to global function 'sin'
 76 |
 77 |     public func sin() -> Int32 {
 78 |         Int32(round(Float(Foundation.sin(Float(self)))))
    |                                      `- error: no exact matches in call to global function 'sin'
 79 |     }
 80 |
Foundation.sin:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func sin(_ x: CGFloat) -> CGFloat
  |             `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:96:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
 94 | long double cosl(long double __x);
 95 |
 96 | double sin(double __x);
    |        `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
 97 | float sinf(float __x);
 98 | long double sinl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Int32.swift:78:21: error: cannot convert value of type 'Float' to expected argument type 'Double'
 76 |
 77 |     public func sin() -> Int32 {
 78 |         Int32(round(Float(Foundation.sin(Float(self)))))
    |                     `- error: cannot convert value of type 'Float' to expected argument type 'Double'
 79 |     }
 80 |
/host/spi-builder-workspace/Sources/DL4S/Numerics/Int32.swift:82:38: error: no exact matches in call to global function 'cos'
 80 |
 81 |     public func cos() -> Int32 {
 82 |         Int32(round(Float(Foundation.cos(Float(self)))))
    |                                      `- error: no exact matches in call to global function 'cos'
 83 |     }
 84 |
Foundation.cos:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func cos(_ x: CGFloat) -> CGFloat
  |             `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:92:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
 90 | long double atan2l(long double __y, long double __x);
 91 |
 92 | double cos(double __x);
    |        `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
 93 | float cosf(float __x);
 94 | long double cosl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Int32.swift:82:21: error: cannot convert value of type 'Float' to expected argument type 'Double'
 80 |
 81 |     public func cos() -> Int32 {
 82 |         Int32(round(Float(Foundation.cos(Float(self)))))
    |                     `- error: cannot convert value of type 'Float' to expected argument type 'Double'
 83 |     }
 84 |
/host/spi-builder-workspace/Sources/DL4S/Numerics/Int32.swift:86:38: error: no exact matches in call to global function 'tan'
 84 |
 85 |     public func tan() -> Int32 {
 86 |         Int32(round(Float(Foundation.tan(Float(self)))))
    |                                      `- error: no exact matches in call to global function 'tan'
 87 |     }
 88 |
Foundation.tan:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func tan(_ x: CGFloat) -> CGFloat
  |             `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:100:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
 98 | long double sinl(long double __x);
 99 |
100 | double tan(double __x);
    |        `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
101 | float tanf(float __x);
102 | long double tanl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Int32.swift:86:21: error: cannot convert value of type 'Float' to expected argument type 'Double'
 84 |
 85 |     public func tan() -> Int32 {
 86 |         Int32(round(Float(Foundation.tan(Float(self)))))
    |                     `- error: cannot convert value of type 'Float' to expected argument type 'Double'
 87 |     }
 88 |
/host/spi-builder-workspace/Sources/DL4S/Numerics/Int32.swift:90:38: error: no exact matches in call to global function 'sinh'
 88 |
 89 |     public func sinh() -> Int32 {
 90 |         Int32(round(Float(Foundation.sinh(Float(self)))))
    |                                      `- error: no exact matches in call to global function 'sinh'
 91 |     }
 92 |
Foundation.sinh:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func sinh(_ x: CGFloat) -> CGFloat
  |             `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:120:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
118 | long double coshl(long double __x);
119 |
120 | double sinh(double __x);
    |        `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
121 | float sinhf(float __x);
122 | long double sinhl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Int32.swift:90:21: error: cannot convert value of type 'Float' to expected argument type 'Double'
 88 |
 89 |     public func sinh() -> Int32 {
 90 |         Int32(round(Float(Foundation.sinh(Float(self)))))
    |                     `- error: cannot convert value of type 'Float' to expected argument type 'Double'
 91 |     }
 92 |
/host/spi-builder-workspace/Sources/DL4S/Numerics/Int32.swift:94:38: error: no exact matches in call to global function 'cosh'
 92 |
 93 |     public func cosh() -> Int32 {
 94 |         Int32(round(Float(Foundation.cosh(Float(self)))))
    |                                      `- error: no exact matches in call to global function 'cosh'
 95 |     }
 96 |
Foundation.cosh:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func cosh(_ x: CGFloat) -> CGFloat
  |             `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:116:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
114 | long double atanhl(long double __x);
115 |
116 | double cosh(double __x);
    |        `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
117 | float coshf(float __x);
118 | long double coshl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Int32.swift:94:21: error: cannot convert value of type 'Float' to expected argument type 'Double'
 92 |
 93 |     public func cosh() -> Int32 {
 94 |         Int32(round(Float(Foundation.cosh(Float(self)))))
    |                     `- error: cannot convert value of type 'Float' to expected argument type 'Double'
 95 |     }
 96 |
/host/spi-builder-workspace/Sources/DL4S/Numerics/Int32.swift:98:38: error: no exact matches in call to global function 'tanh'
 96 |
 97 |     public func tanh() -> Int32 {
 98 |         Int32(round(Float(Foundation.tanh(Float(self)))))
    |                                      `- error: no exact matches in call to global function 'tanh'
 99 |     }
100 | }
Foundation.tanh:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func tanh(_ x: CGFloat) -> CGFloat
  |             `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:124:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
122 | long double sinhl(long double __x);
123 |
124 | double tanh(double __x);
    |        `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
125 | float tanhf(float __x);
126 | long double tanhl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Int32.swift:98:21: error: cannot convert value of type 'Float' to expected argument type 'Double'
 96 |
 97 |     public func tanh() -> Int32 {
 98 |         Int32(round(Float(Foundation.tanh(Float(self)))))
    |                     `- error: cannot convert value of type 'Float' to expected argument type 'Double'
 99 |     }
100 | }
/host/spi-builder-workspace/Sources/DL4S/Numerics/Float.swift:58:25: error: cannot convert value of type 'Float' to expected argument type 'Double'
56 |
57 |     public func sqrt() -> Float {
58 |         Foundation.sqrt(self)
   |                         `- error: cannot convert value of type 'Float' to expected argument type 'Double'
59 |     }
60 |
/host/spi-builder-workspace/Sources/DL4S/Numerics/Float.swift:58:20: error: cannot convert return expression of type 'Double' to return type 'Float'
56 |
57 |     public func sqrt() -> Float {
58 |         Foundation.sqrt(self)
   |                    `- error: cannot convert return expression of type 'Double' to return type 'Float'
59 |     }
60 |
/host/spi-builder-workspace/Sources/DL4S/Numerics/Float.swift:62:20: error: no exact matches in call to global function 'exp'
60 |
61 |     public func exp() -> Float {
62 |         Foundation.exp(self)
   |                    `- error: no exact matches in call to global function 'exp'
63 |     }
64 |
Foundation.exp:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func exp(_ x: CGFloat) -> CGFloat
  |             `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:128:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
126 | long double tanhl(long double __x);
127 |
128 | double exp(double __x);
    |        `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
129 | float expf(float __x);
130 | long double expl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Float.swift:62:20: error: no 'exp' candidates produce the expected contextual result type 'Float'
60 |
61 |     public func exp() -> Float {
62 |         Foundation.exp(self)
   |                    `- error: no 'exp' candidates produce the expected contextual result type 'Float'
63 |     }
64 |
Foundation.exp:1:13: note: 'exp' produces 'CGFloat', not the expected contextual result type 'Float'
1 | public func exp(_ x: CGFloat) -> CGFloat
  |             `- note: 'exp' produces 'CGFloat', not the expected contextual result type 'Float'
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:128:8: note: 'exp' produces 'Double', not the expected contextual result type 'Float'
126 | long double tanhl(long double __x);
127 |
128 | double exp(double __x);
    |        `- note: 'exp' produces 'Double', not the expected contextual result type 'Float'
129 | float expf(float __x);
130 | long double expl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Float.swift:66:20: error: no exact matches in call to global function 'log'
64 |
65 |     public func log() -> Float {
66 |         Foundation.log(self)
   |                    `- error: no exact matches in call to global function 'log'
67 |     }
68 |
Foundation.log:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func log(_ x: CGFloat) -> CGFloat
  |             `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:152:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
150 | long double ldexpl(long double __x, int __exponent);
151 |
152 | double log(double __x);
    |        `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
153 | float logf(float __x);
154 | long double logl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Float.swift:66:20: error: no 'log' candidates produce the expected contextual result type 'Float'
64 |
65 |     public func log() -> Float {
66 |         Foundation.log(self)
   |                    `- error: no 'log' candidates produce the expected contextual result type 'Float'
67 |     }
68 |
Foundation.log:1:13: note: 'log' produces 'CGFloat', not the expected contextual result type 'Float'
1 | public func log(_ x: CGFloat) -> CGFloat
  |             `- note: 'log' produces 'CGFloat', not the expected contextual result type 'Float'
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:152:8: note: 'log' produces 'Double', not the expected contextual result type 'Float'
150 | long double ldexpl(long double __x, int __exponent);
151 |
152 | double log(double __x);
    |        `- note: 'log' produces 'Double', not the expected contextual result type 'Float'
153 | float logf(float __x);
154 | long double logl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Float.swift:70:20: error: no exact matches in call to global function 'sin'
68 |
69 |     public func sin() -> Float {
70 |         Foundation.sin(self)
   |                    `- error: no exact matches in call to global function 'sin'
71 |     }
72 |
Foundation.sin:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func sin(_ x: CGFloat) -> CGFloat
  |             `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:96:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
 94 | long double cosl(long double __x);
 95 |
 96 | double sin(double __x);
    |        `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
 97 | float sinf(float __x);
 98 | long double sinl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Float.swift:70:20: error: no 'sin' candidates produce the expected contextual result type 'Float'
68 |
69 |     public func sin() -> Float {
70 |         Foundation.sin(self)
   |                    `- error: no 'sin' candidates produce the expected contextual result type 'Float'
71 |     }
72 |
Foundation.sin:1:13: note: 'sin' produces 'CGFloat', not the expected contextual result type 'Float'
1 | public func sin(_ x: CGFloat) -> CGFloat
  |             `- note: 'sin' produces 'CGFloat', not the expected contextual result type 'Float'
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:96:8: note: 'sin' produces 'Double', not the expected contextual result type 'Float'
 94 | long double cosl(long double __x);
 95 |
 96 | double sin(double __x);
    |        `- note: 'sin' produces 'Double', not the expected contextual result type 'Float'
 97 | float sinf(float __x);
 98 | long double sinl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Float.swift:74:20: error: no exact matches in call to global function 'cos'
72 |
73 |     public func cos() -> Float {
74 |         Foundation.cos(self)
   |                    `- error: no exact matches in call to global function 'cos'
75 |     }
76 |
Foundation.cos:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func cos(_ x: CGFloat) -> CGFloat
  |             `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:92:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
 90 | long double atan2l(long double __y, long double __x);
 91 |
 92 | double cos(double __x);
    |        `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
 93 | float cosf(float __x);
 94 | long double cosl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Float.swift:74:20: error: no 'cos' candidates produce the expected contextual result type 'Float'
72 |
73 |     public func cos() -> Float {
74 |         Foundation.cos(self)
   |                    `- error: no 'cos' candidates produce the expected contextual result type 'Float'
75 |     }
76 |
Foundation.cos:1:13: note: 'cos' produces 'CGFloat', not the expected contextual result type 'Float'
1 | public func cos(_ x: CGFloat) -> CGFloat
  |             `- note: 'cos' produces 'CGFloat', not the expected contextual result type 'Float'
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:92:8: note: 'cos' produces 'Double', not the expected contextual result type 'Float'
 90 | long double atan2l(long double __y, long double __x);
 91 |
 92 | double cos(double __x);
    |        `- note: 'cos' produces 'Double', not the expected contextual result type 'Float'
 93 | float cosf(float __x);
 94 | long double cosl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Float.swift:78:20: error: no exact matches in call to global function 'tanh'
76 |
77 |     public func tan() -> Float {
78 |         Foundation.tanh(self)
   |                    `- error: no exact matches in call to global function 'tanh'
79 |     }
80 |
Foundation.tanh:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func tanh(_ x: CGFloat) -> CGFloat
  |             `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:124:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
122 | long double sinhl(long double __x);
123 |
124 | double tanh(double __x);
    |        `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
125 | float tanhf(float __x);
126 | long double tanhl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Float.swift:78:20: error: no 'tanh' candidates produce the expected contextual result type 'Float'
76 |
77 |     public func tan() -> Float {
78 |         Foundation.tanh(self)
   |                    `- error: no 'tanh' candidates produce the expected contextual result type 'Float'
79 |     }
80 |
Foundation.tanh:1:13: note: 'tanh' produces 'CGFloat', not the expected contextual result type 'Float'
1 | public func tanh(_ x: CGFloat) -> CGFloat
  |             `- note: 'tanh' produces 'CGFloat', not the expected contextual result type 'Float'
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:124:8: note: 'tanh' produces 'Double', not the expected contextual result type 'Float'
122 | long double sinhl(long double __x);
123 |
124 | double tanh(double __x);
    |        `- note: 'tanh' produces 'Double', not the expected contextual result type 'Float'
125 | float tanhf(float __x);
126 | long double tanhl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Float.swift:82:20: error: no exact matches in call to global function 'sinh'
80 |
81 |     public func sinh() -> Float {
82 |         Foundation.sinh(self)
   |                    `- error: no exact matches in call to global function 'sinh'
83 |     }
84 |
Foundation.sinh:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func sinh(_ x: CGFloat) -> CGFloat
  |             `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:120:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
118 | long double coshl(long double __x);
119 |
120 | double sinh(double __x);
    |        `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
121 | float sinhf(float __x);
122 | long double sinhl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Float.swift:82:20: error: no 'sinh' candidates produce the expected contextual result type 'Float'
80 |
81 |     public func sinh() -> Float {
82 |         Foundation.sinh(self)
   |                    `- error: no 'sinh' candidates produce the expected contextual result type 'Float'
83 |     }
84 |
Foundation.sinh:1:13: note: 'sinh' produces 'CGFloat', not the expected contextual result type 'Float'
1 | public func sinh(_ x: CGFloat) -> CGFloat
  |             `- note: 'sinh' produces 'CGFloat', not the expected contextual result type 'Float'
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:120:8: note: 'sinh' produces 'Double', not the expected contextual result type 'Float'
118 | long double coshl(long double __x);
119 |
120 | double sinh(double __x);
    |        `- note: 'sinh' produces 'Double', not the expected contextual result type 'Float'
121 | float sinhf(float __x);
122 | long double sinhl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Float.swift:86:20: error: no exact matches in call to global function 'cosh'
84 |
85 |     public func cosh() -> Float {
86 |         Foundation.cosh(self)
   |                    `- error: no exact matches in call to global function 'cosh'
87 |     }
88 |
Foundation.cosh:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func cosh(_ x: CGFloat) -> CGFloat
  |             `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:116:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
114 | long double atanhl(long double __x);
115 |
116 | double cosh(double __x);
    |        `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
117 | float coshf(float __x);
118 | long double coshl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Float.swift:86:20: error: no 'cosh' candidates produce the expected contextual result type 'Float'
84 |
85 |     public func cosh() -> Float {
86 |         Foundation.cosh(self)
   |                    `- error: no 'cosh' candidates produce the expected contextual result type 'Float'
87 |     }
88 |
Foundation.cosh:1:13: note: 'cosh' produces 'CGFloat', not the expected contextual result type 'Float'
1 | public func cosh(_ x: CGFloat) -> CGFloat
  |             `- note: 'cosh' produces 'CGFloat', not the expected contextual result type 'Float'
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:116:8: note: 'cosh' produces 'Double', not the expected contextual result type 'Float'
114 | long double atanhl(long double __x);
115 |
116 | double cosh(double __x);
    |        `- note: 'cosh' produces 'Double', not the expected contextual result type 'Float'
117 | float coshf(float __x);
118 | long double coshl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Float.swift:90:20: error: no exact matches in call to global function 'tanh'
88 |
89 |     public func tanh() -> Float {
90 |         Foundation.tanh(self)
   |                    `- error: no exact matches in call to global function 'tanh'
91 |     }
92 | }
Foundation.tanh:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func tanh(_ x: CGFloat) -> CGFloat
  |             `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:124:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
122 | long double sinhl(long double __x);
123 |
124 | double tanh(double __x);
    |        `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
125 | float tanhf(float __x);
126 | long double tanhl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Float.swift:90:20: error: no 'tanh' candidates produce the expected contextual result type 'Float'
88 |
89 |     public func tanh() -> Float {
90 |         Foundation.tanh(self)
   |                    `- error: no 'tanh' candidates produce the expected contextual result type 'Float'
91 |     }
92 | }
Foundation.tanh:1:13: note: 'tanh' produces 'CGFloat', not the expected contextual result type 'Float'
1 | public func tanh(_ x: CGFloat) -> CGFloat
  |             `- note: 'tanh' produces 'CGFloat', not the expected contextual result type 'Float'
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:124:8: note: 'tanh' produces 'Double', not the expected contextual result type 'Float'
122 | long double sinhl(long double __x);
123 |
124 | double tanh(double __x);
    |        `- note: 'tanh' produces 'Double', not the expected contextual result type 'Float'
125 | float tanhf(float __x);
126 | long double tanhl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Int32.swift:66:31: error: cannot convert value of type 'Float' to expected argument type 'Double'
 64 |
 65 |     public func sqrt() -> Int32 {
 66 |         Int32(Foundation.sqrt(Float(self)))
    |                               `- error: cannot convert value of type 'Float' to expected argument type 'Double'
 67 |     }
 68 |
/host/spi-builder-workspace/Sources/DL4S/Numerics/Int32.swift:70:26: error: no exact matches in call to global function 'log'
 68 |
 69 |     public func log() -> Int32 {
 70 |         Int32(Foundation.log(Float(self)))
    |                          `- error: no exact matches in call to global function 'log'
 71 |     }
 72 |
Foundation.log:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func log(_ x: CGFloat) -> CGFloat
  |             `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:152:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
150 | long double ldexpl(long double __x, int __exponent);
151 |
152 | double log(double __x);
    |        `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
153 | float logf(float __x);
154 | long double logl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Int32.swift:74:26: error: no exact matches in call to global function 'exp'
 72 |
 73 |     public func exp() -> Int32 {
 74 |         Int32(Foundation.exp(Float(self)))
    |                          `- error: no exact matches in call to global function 'exp'
 75 |     }
 76 |
Foundation.exp:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func exp(_ x: CGFloat) -> CGFloat
  |             `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:128:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
126 | long double tanhl(long double __x);
127 |
128 | double exp(double __x);
    |        `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
129 | float expf(float __x);
130 | long double expl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Int32.swift:78:38: error: no exact matches in call to global function 'sin'
 76 |
 77 |     public func sin() -> Int32 {
 78 |         Int32(round(Float(Foundation.sin(Float(self)))))
    |                                      `- error: no exact matches in call to global function 'sin'
 79 |     }
 80 |
Foundation.sin:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func sin(_ x: CGFloat) -> CGFloat
  |             `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:96:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
 94 | long double cosl(long double __x);
 95 |
 96 | double sin(double __x);
    |        `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
 97 | float sinf(float __x);
 98 | long double sinl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Int32.swift:78:21: error: cannot convert value of type 'Float' to expected argument type 'Double'
 76 |
 77 |     public func sin() -> Int32 {
 78 |         Int32(round(Float(Foundation.sin(Float(self)))))
    |                     `- error: cannot convert value of type 'Float' to expected argument type 'Double'
 79 |     }
 80 |
/host/spi-builder-workspace/Sources/DL4S/Numerics/Int32.swift:82:38: error: no exact matches in call to global function 'cos'
 80 |
 81 |     public func cos() -> Int32 {
 82 |         Int32(round(Float(Foundation.cos(Float(self)))))
    |                                      `- error: no exact matches in call to global function 'cos'
 83 |     }
 84 |
Foundation.cos:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func cos(_ x: CGFloat) -> CGFloat
  |             `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:92:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
 90 | long double atan2l(long double __y, long double __x);
 91 |
 92 | double cos(double __x);
    |        `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
 93 | float cosf(float __x);
 94 | long double cosl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Int32.swift:82:21: error: cannot convert value of type 'Float' to expected argument type 'Double'
 80 |
 81 |     public func cos() -> Int32 {
 82 |         Int32(round(Float(Foundation.cos(Float(self)))))
    |                     `- error: cannot convert value of type 'Float' to expected argument type 'Double'
 83 |     }
 84 |
/host/spi-builder-workspace/Sources/DL4S/Numerics/Int32.swift:86:38: error: no exact matches in call to global function 'tan'
 84 |
 85 |     public func tan() -> Int32 {
 86 |         Int32(round(Float(Foundation.tan(Float(self)))))
    |                                      `- error: no exact matches in call to global function 'tan'
 87 |     }
 88 |
Foundation.tan:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func tan(_ x: CGFloat) -> CGFloat
  |             `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:100:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
 98 | long double sinl(long double __x);
 99 |
100 | double tan(double __x);
    |        `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
101 | float tanf(float __x);
102 | long double tanl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Int32.swift:86:21: error: cannot convert value of type 'Float' to expected argument type 'Double'
 84 |
 85 |     public func tan() -> Int32 {
 86 |         Int32(round(Float(Foundation.tan(Float(self)))))
    |                     `- error: cannot convert value of type 'Float' to expected argument type 'Double'
 87 |     }
 88 |
/host/spi-builder-workspace/Sources/DL4S/Numerics/Int32.swift:90:38: error: no exact matches in call to global function 'sinh'
 88 |
 89 |     public func sinh() -> Int32 {
 90 |         Int32(round(Float(Foundation.sinh(Float(self)))))
    |                                      `- error: no exact matches in call to global function 'sinh'
 91 |     }
 92 |
Foundation.sinh:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func sinh(_ x: CGFloat) -> CGFloat
  |             `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:120:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
118 | long double coshl(long double __x);
119 |
120 | double sinh(double __x);
    |        `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
121 | float sinhf(float __x);
122 | long double sinhl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Int32.swift:90:21: error: cannot convert value of type 'Float' to expected argument type 'Double'
 88 |
 89 |     public func sinh() -> Int32 {
 90 |         Int32(round(Float(Foundation.sinh(Float(self)))))
    |                     `- error: cannot convert value of type 'Float' to expected argument type 'Double'
 91 |     }
 92 |
/host/spi-builder-workspace/Sources/DL4S/Numerics/Int32.swift:94:38: error: no exact matches in call to global function 'cosh'
 92 |
 93 |     public func cosh() -> Int32 {
 94 |         Int32(round(Float(Foundation.cosh(Float(self)))))
    |                                      `- error: no exact matches in call to global function 'cosh'
 95 |     }
 96 |
Foundation.cosh:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func cosh(_ x: CGFloat) -> CGFloat
  |             `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:116:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
114 | long double atanhl(long double __x);
115 |
116 | double cosh(double __x);
    |        `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
117 | float coshf(float __x);
118 | long double coshl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Int32.swift:94:21: error: cannot convert value of type 'Float' to expected argument type 'Double'
 92 |
 93 |     public func cosh() -> Int32 {
 94 |         Int32(round(Float(Foundation.cosh(Float(self)))))
    |                     `- error: cannot convert value of type 'Float' to expected argument type 'Double'
 95 |     }
 96 |
/host/spi-builder-workspace/Sources/DL4S/Numerics/Int32.swift:98:38: error: no exact matches in call to global function 'tanh'
 96 |
 97 |     public func tanh() -> Int32 {
 98 |         Int32(round(Float(Foundation.tanh(Float(self)))))
    |                                      `- error: no exact matches in call to global function 'tanh'
 99 |     }
100 | }
Foundation.tanh:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func tanh(_ x: CGFloat) -> CGFloat
  |             `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:124:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
122 | long double sinhl(long double __x);
123 |
124 | double tanh(double __x);
    |        `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
125 | float tanhf(float __x);
126 | long double tanhl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Int32.swift:98:21: error: cannot convert value of type 'Float' to expected argument type 'Double'
 96 |
 97 |     public func tanh() -> Int32 {
 98 |         Int32(round(Float(Foundation.tanh(Float(self)))))
    |                     `- error: cannot convert value of type 'Float' to expected argument type 'Double'
 99 |     }
100 | }
/host/spi-builder-workspace/Sources/DL4S/Numerics/Float.swift:58:25: error: cannot convert value of type 'Float' to expected argument type 'Double'
56 |
57 |     public func sqrt() -> Float {
58 |         Foundation.sqrt(self)
   |                         `- error: cannot convert value of type 'Float' to expected argument type 'Double'
59 |     }
60 |
/host/spi-builder-workspace/Sources/DL4S/Numerics/Float.swift:58:20: error: cannot convert return expression of type 'Double' to return type 'Float'
56 |
57 |     public func sqrt() -> Float {
58 |         Foundation.sqrt(self)
   |                    `- error: cannot convert return expression of type 'Double' to return type 'Float'
59 |     }
60 |
/host/spi-builder-workspace/Sources/DL4S/Numerics/Float.swift:62:20: error: no exact matches in call to global function 'exp'
60 |
61 |     public func exp() -> Float {
62 |         Foundation.exp(self)
   |                    `- error: no exact matches in call to global function 'exp'
63 |     }
64 |
Foundation.exp:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func exp(_ x: CGFloat) -> CGFloat
  |             `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:128:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
126 | long double tanhl(long double __x);
127 |
128 | double exp(double __x);
    |        `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
129 | float expf(float __x);
130 | long double expl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Float.swift:62:20: error: no 'exp' candidates produce the expected contextual result type 'Float'
60 |
61 |     public func exp() -> Float {
62 |         Foundation.exp(self)
   |                    `- error: no 'exp' candidates produce the expected contextual result type 'Float'
63 |     }
64 |
Foundation.exp:1:13: note: 'exp' produces 'CGFloat', not the expected contextual result type 'Float'
1 | public func exp(_ x: CGFloat) -> CGFloat
  |             `- note: 'exp' produces 'CGFloat', not the expected contextual result type 'Float'
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:128:8: note: 'exp' produces 'Double', not the expected contextual result type 'Float'
126 | long double tanhl(long double __x);
127 |
128 | double exp(double __x);
    |        `- note: 'exp' produces 'Double', not the expected contextual result type 'Float'
129 | float expf(float __x);
130 | long double expl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Float.swift:66:20: error: no exact matches in call to global function 'log'
64 |
65 |     public func log() -> Float {
66 |         Foundation.log(self)
   |                    `- error: no exact matches in call to global function 'log'
67 |     }
68 |
Foundation.log:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func log(_ x: CGFloat) -> CGFloat
  |             `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:152:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
150 | long double ldexpl(long double __x, int __exponent);
151 |
152 | double log(double __x);
    |        `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
153 | float logf(float __x);
154 | long double logl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Float.swift:66:20: error: no 'log' candidates produce the expected contextual result type 'Float'
64 |
65 |     public func log() -> Float {
66 |         Foundation.log(self)
   |                    `- error: no 'log' candidates produce the expected contextual result type 'Float'
67 |     }
68 |
Foundation.log:1:13: note: 'log' produces 'CGFloat', not the expected contextual result type 'Float'
1 | public func log(_ x: CGFloat) -> CGFloat
  |             `- note: 'log' produces 'CGFloat', not the expected contextual result type 'Float'
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:152:8: note: 'log' produces 'Double', not the expected contextual result type 'Float'
150 | long double ldexpl(long double __x, int __exponent);
151 |
152 | double log(double __x);
    |        `- note: 'log' produces 'Double', not the expected contextual result type 'Float'
153 | float logf(float __x);
154 | long double logl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Float.swift:70:20: error: no exact matches in call to global function 'sin'
68 |
69 |     public func sin() -> Float {
70 |         Foundation.sin(self)
   |                    `- error: no exact matches in call to global function 'sin'
71 |     }
72 |
Foundation.sin:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func sin(_ x: CGFloat) -> CGFloat
  |             `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:96:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
 94 | long double cosl(long double __x);
 95 |
 96 | double sin(double __x);
    |        `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
 97 | float sinf(float __x);
 98 | long double sinl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Float.swift:70:20: error: no 'sin' candidates produce the expected contextual result type 'Float'
68 |
69 |     public func sin() -> Float {
70 |         Foundation.sin(self)
   |                    `- error: no 'sin' candidates produce the expected contextual result type 'Float'
71 |     }
72 |
Foundation.sin:1:13: note: 'sin' produces 'CGFloat', not the expected contextual result type 'Float'
1 | public func sin(_ x: CGFloat) -> CGFloat
  |             `- note: 'sin' produces 'CGFloat', not the expected contextual result type 'Float'
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:96:8: note: 'sin' produces 'Double', not the expected contextual result type 'Float'
 94 | long double cosl(long double __x);
 95 |
 96 | double sin(double __x);
    |        `- note: 'sin' produces 'Double', not the expected contextual result type 'Float'
 97 | float sinf(float __x);
 98 | long double sinl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Float.swift:74:20: error: no exact matches in call to global function 'cos'
72 |
73 |     public func cos() -> Float {
74 |         Foundation.cos(self)
   |                    `- error: no exact matches in call to global function 'cos'
75 |     }
76 |
Foundation.cos:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func cos(_ x: CGFloat) -> CGFloat
  |             `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:92:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
 90 | long double atan2l(long double __y, long double __x);
 91 |
 92 | double cos(double __x);
    |        `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
 93 | float cosf(float __x);
 94 | long double cosl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Float.swift:74:20: error: no 'cos' candidates produce the expected contextual result type 'Float'
72 |
73 |     public func cos() -> Float {
74 |         Foundation.cos(self)
   |                    `- error: no 'cos' candidates produce the expected contextual result type 'Float'
75 |     }
76 |
Foundation.cos:1:13: note: 'cos' produces 'CGFloat', not the expected contextual result type 'Float'
1 | public func cos(_ x: CGFloat) -> CGFloat
  |             `- note: 'cos' produces 'CGFloat', not the expected contextual result type 'Float'
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:92:8: note: 'cos' produces 'Double', not the expected contextual result type 'Float'
 90 | long double atan2l(long double __y, long double __x);
 91 |
 92 | double cos(double __x);
    |        `- note: 'cos' produces 'Double', not the expected contextual result type 'Float'
 93 | float cosf(float __x);
 94 | long double cosl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Float.swift:78:20: error: no exact matches in call to global function 'tanh'
76 |
77 |     public func tan() -> Float {
78 |         Foundation.tanh(self)
   |                    `- error: no exact matches in call to global function 'tanh'
79 |     }
80 |
Foundation.tanh:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func tanh(_ x: CGFloat) -> CGFloat
  |             `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:124:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
122 | long double sinhl(long double __x);
123 |
124 | double tanh(double __x);
    |        `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
125 | float tanhf(float __x);
126 | long double tanhl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Float.swift:78:20: error: no 'tanh' candidates produce the expected contextual result type 'Float'
76 |
77 |     public func tan() -> Float {
78 |         Foundation.tanh(self)
   |                    `- error: no 'tanh' candidates produce the expected contextual result type 'Float'
79 |     }
80 |
Foundation.tanh:1:13: note: 'tanh' produces 'CGFloat', not the expected contextual result type 'Float'
1 | public func tanh(_ x: CGFloat) -> CGFloat
  |             `- note: 'tanh' produces 'CGFloat', not the expected contextual result type 'Float'
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:124:8: note: 'tanh' produces 'Double', not the expected contextual result type 'Float'
122 | long double sinhl(long double __x);
123 |
124 | double tanh(double __x);
    |        `- note: 'tanh' produces 'Double', not the expected contextual result type 'Float'
125 | float tanhf(float __x);
126 | long double tanhl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Float.swift:82:20: error: no exact matches in call to global function 'sinh'
80 |
81 |     public func sinh() -> Float {
82 |         Foundation.sinh(self)
   |                    `- error: no exact matches in call to global function 'sinh'
83 |     }
84 |
Foundation.sinh:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func sinh(_ x: CGFloat) -> CGFloat
  |             `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:120:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
118 | long double coshl(long double __x);
119 |
120 | double sinh(double __x);
    |        `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
121 | float sinhf(float __x);
122 | long double sinhl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Float.swift:82:20: error: no 'sinh' candidates produce the expected contextual result type 'Float'
80 |
81 |     public func sinh() -> Float {
82 |         Foundation.sinh(self)
   |                    `- error: no 'sinh' candidates produce the expected contextual result type 'Float'
83 |     }
84 |
Foundation.sinh:1:13: note: 'sinh' produces 'CGFloat', not the expected contextual result type 'Float'
1 | public func sinh(_ x: CGFloat) -> CGFloat
  |             `- note: 'sinh' produces 'CGFloat', not the expected contextual result type 'Float'
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:120:8: note: 'sinh' produces 'Double', not the expected contextual result type 'Float'
118 | long double coshl(long double __x);
119 |
120 | double sinh(double __x);
    |        `- note: 'sinh' produces 'Double', not the expected contextual result type 'Float'
121 | float sinhf(float __x);
122 | long double sinhl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Float.swift:86:20: error: no exact matches in call to global function 'cosh'
84 |
85 |     public func cosh() -> Float {
86 |         Foundation.cosh(self)
   |                    `- error: no exact matches in call to global function 'cosh'
87 |     }
88 |
Foundation.cosh:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func cosh(_ x: CGFloat) -> CGFloat
  |             `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:116:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
114 | long double atanhl(long double __x);
115 |
116 | double cosh(double __x);
    |        `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
117 | float coshf(float __x);
118 | long double coshl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Float.swift:86:20: error: no 'cosh' candidates produce the expected contextual result type 'Float'
84 |
85 |     public func cosh() -> Float {
86 |         Foundation.cosh(self)
   |                    `- error: no 'cosh' candidates produce the expected contextual result type 'Float'
87 |     }
88 |
Foundation.cosh:1:13: note: 'cosh' produces 'CGFloat', not the expected contextual result type 'Float'
1 | public func cosh(_ x: CGFloat) -> CGFloat
  |             `- note: 'cosh' produces 'CGFloat', not the expected contextual result type 'Float'
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:116:8: note: 'cosh' produces 'Double', not the expected contextual result type 'Float'
114 | long double atanhl(long double __x);
115 |
116 | double cosh(double __x);
    |        `- note: 'cosh' produces 'Double', not the expected contextual result type 'Float'
117 | float coshf(float __x);
118 | long double coshl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Float.swift:90:20: error: no exact matches in call to global function 'tanh'
88 |
89 |     public func tanh() -> Float {
90 |         Foundation.tanh(self)
   |                    `- error: no exact matches in call to global function 'tanh'
91 |     }
92 | }
Foundation.tanh:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func tanh(_ x: CGFloat) -> CGFloat
  |             `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:124:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
122 | long double sinhl(long double __x);
123 |
124 | double tanh(double __x);
    |        `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
125 | float tanhf(float __x);
126 | long double tanhl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Float.swift:90:20: error: no 'tanh' candidates produce the expected contextual result type 'Float'
88 |
89 |     public func tanh() -> Float {
90 |         Foundation.tanh(self)
   |                    `- error: no 'tanh' candidates produce the expected contextual result type 'Float'
91 |     }
92 | }
Foundation.tanh:1:13: note: 'tanh' produces 'CGFloat', not the expected contextual result type 'Float'
1 | public func tanh(_ x: CGFloat) -> CGFloat
  |             `- note: 'tanh' produces 'CGFloat', not the expected contextual result type 'Float'
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:124:8: note: 'tanh' produces 'Double', not the expected contextual result type 'Float'
122 | long double sinhl(long double __x);
123 |
124 | double tanh(double __x);
    |        `- note: 'tanh' produces 'Double', not the expected contextual result type 'Float'
125 | float tanhf(float __x);
126 | long double tanhl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Int32.swift:66:31: error: cannot convert value of type 'Float' to expected argument type 'Double'
 64 |
 65 |     public func sqrt() -> Int32 {
 66 |         Int32(Foundation.sqrt(Float(self)))
    |                               `- error: cannot convert value of type 'Float' to expected argument type 'Double'
 67 |     }
 68 |
/host/spi-builder-workspace/Sources/DL4S/Numerics/Int32.swift:70:26: error: no exact matches in call to global function 'log'
 68 |
 69 |     public func log() -> Int32 {
 70 |         Int32(Foundation.log(Float(self)))
    |                          `- error: no exact matches in call to global function 'log'
 71 |     }
 72 |
Foundation.log:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func log(_ x: CGFloat) -> CGFloat
  |             `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:152:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
150 | long double ldexpl(long double __x, int __exponent);
151 |
152 | double log(double __x);
    |        `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
153 | float logf(float __x);
154 | long double logl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Int32.swift:74:26: error: no exact matches in call to global function 'exp'
 72 |
 73 |     public func exp() -> Int32 {
 74 |         Int32(Foundation.exp(Float(self)))
    |                          `- error: no exact matches in call to global function 'exp'
 75 |     }
 76 |
Foundation.exp:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func exp(_ x: CGFloat) -> CGFloat
  |             `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:128:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
126 | long double tanhl(long double __x);
127 |
128 | double exp(double __x);
    |        `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
129 | float expf(float __x);
130 | long double expl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Int32.swift:78:38: error: no exact matches in call to global function 'sin'
 76 |
 77 |     public func sin() -> Int32 {
 78 |         Int32(round(Float(Foundation.sin(Float(self)))))
    |                                      `- error: no exact matches in call to global function 'sin'
 79 |     }
 80 |
Foundation.sin:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func sin(_ x: CGFloat) -> CGFloat
  |             `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:96:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
 94 | long double cosl(long double __x);
 95 |
 96 | double sin(double __x);
    |        `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
 97 | float sinf(float __x);
 98 | long double sinl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Int32.swift:78:21: error: cannot convert value of type 'Float' to expected argument type 'Double'
 76 |
 77 |     public func sin() -> Int32 {
 78 |         Int32(round(Float(Foundation.sin(Float(self)))))
    |                     `- error: cannot convert value of type 'Float' to expected argument type 'Double'
 79 |     }
 80 |
/host/spi-builder-workspace/Sources/DL4S/Numerics/Int32.swift:82:38: error: no exact matches in call to global function 'cos'
 80 |
 81 |     public func cos() -> Int32 {
 82 |         Int32(round(Float(Foundation.cos(Float(self)))))
    |                                      `- error: no exact matches in call to global function 'cos'
 83 |     }
 84 |
Foundation.cos:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func cos(_ x: CGFloat) -> CGFloat
  |             `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:92:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
 90 | long double atan2l(long double __y, long double __x);
 91 |
 92 | double cos(double __x);
    |        `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
 93 | float cosf(float __x);
 94 | long double cosl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Int32.swift:82:21: error: cannot convert value of type 'Float' to expected argument type 'Double'
 80 |
 81 |     public func cos() -> Int32 {
 82 |         Int32(round(Float(Foundation.cos(Float(self)))))
    |                     `- error: cannot convert value of type 'Float' to expected argument type 'Double'
 83 |     }
 84 |
/host/spi-builder-workspace/Sources/DL4S/Numerics/Int32.swift:86:38: error: no exact matches in call to global function 'tan'
 84 |
 85 |     public func tan() -> Int32 {
 86 |         Int32(round(Float(Foundation.tan(Float(self)))))
    |                                      `- error: no exact matches in call to global function 'tan'
 87 |     }
 88 |
Foundation.tan:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func tan(_ x: CGFloat) -> CGFloat
  |             `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:100:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
 98 | long double sinl(long double __x);
 99 |
100 | double tan(double __x);
    |        `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
101 | float tanf(float __x);
102 | long double tanl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Int32.swift:86:21: error: cannot convert value of type 'Float' to expected argument type 'Double'
 84 |
 85 |     public func tan() -> Int32 {
 86 |         Int32(round(Float(Foundation.tan(Float(self)))))
    |                     `- error: cannot convert value of type 'Float' to expected argument type 'Double'
 87 |     }
 88 |
/host/spi-builder-workspace/Sources/DL4S/Numerics/Int32.swift:90:38: error: no exact matches in call to global function 'sinh'
 88 |
 89 |     public func sinh() -> Int32 {
 90 |         Int32(round(Float(Foundation.sinh(Float(self)))))
    |                                      `- error: no exact matches in call to global function 'sinh'
 91 |     }
 92 |
Foundation.sinh:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func sinh(_ x: CGFloat) -> CGFloat
  |             `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:120:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
118 | long double coshl(long double __x);
119 |
120 | double sinh(double __x);
    |        `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
121 | float sinhf(float __x);
122 | long double sinhl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Int32.swift:90:21: error: cannot convert value of type 'Float' to expected argument type 'Double'
 88 |
 89 |     public func sinh() -> Int32 {
 90 |         Int32(round(Float(Foundation.sinh(Float(self)))))
    |                     `- error: cannot convert value of type 'Float' to expected argument type 'Double'
 91 |     }
 92 |
/host/spi-builder-workspace/Sources/DL4S/Numerics/Int32.swift:94:38: error: no exact matches in call to global function 'cosh'
 92 |
 93 |     public func cosh() -> Int32 {
 94 |         Int32(round(Float(Foundation.cosh(Float(self)))))
    |                                      `- error: no exact matches in call to global function 'cosh'
 95 |     }
 96 |
Foundation.cosh:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func cosh(_ x: CGFloat) -> CGFloat
  |             `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:116:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
114 | long double atanhl(long double __x);
115 |
116 | double cosh(double __x);
    |        `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
117 | float coshf(float __x);
118 | long double coshl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Int32.swift:94:21: error: cannot convert value of type 'Float' to expected argument type 'Double'
 92 |
 93 |     public func cosh() -> Int32 {
 94 |         Int32(round(Float(Foundation.cosh(Float(self)))))
    |                     `- error: cannot convert value of type 'Float' to expected argument type 'Double'
 95 |     }
 96 |
/host/spi-builder-workspace/Sources/DL4S/Numerics/Int32.swift:98:38: error: no exact matches in call to global function 'tanh'
 96 |
 97 |     public func tanh() -> Int32 {
 98 |         Int32(round(Float(Foundation.tanh(Float(self)))))
    |                                      `- error: no exact matches in call to global function 'tanh'
 99 |     }
100 | }
Foundation.tanh:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func tanh(_ x: CGFloat) -> CGFloat
  |             `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:124:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
122 | long double sinhl(long double __x);
123 |
124 | double tanh(double __x);
    |        `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
125 | float tanhf(float __x);
126 | long double tanhl(long double __x);
/host/spi-builder-workspace/Sources/DL4S/Numerics/Int32.swift:98:21: error: cannot convert value of type 'Float' to expected argument type 'Double'
 96 |
 97 |     public func tanh() -> Int32 {
 98 |         Int32(round(Float(Foundation.tanh(Float(self)))))
    |                     `- error: cannot convert value of type 'Float' to expected argument type 'Double'
 99 |     }
100 | }
/host/spi-builder-workspace/Sources/DL4S/Memory Management/Allocator.swift:53:22: warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)' [#DeprecatedDeclaration]
51 |         precondition(self.count >= count, "Out of bounds write")
52 |         // memcpy(self.baseAddress!, ptr.baseAddress!, count * MemoryLayout<Element>.stride)
53 |         baseAddress!.assign(from: ptr.baseAddress!, count: count)
   |                      |- warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)' [#DeprecatedDeclaration]
   |                      `- note: use 'update(from:count:)' instead
54 |     }
55 |
/host/spi-builder-workspace/Sources/DL4S/NN/Layer/Embedding.swift:105:13: error: cannot find 'autoreleasepool' in scope
103 |
104 |         for line in File(url: embeddingsURL) {
105 |             autoreleasepool {
    |             `- error: cannot find 'autoreleasepool' in scope
106 |                 let components = line.split(whereSeparator: { $0.isWhitespace })
107 |
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
/host/spi-builder-workspace/Sources/DL4S/Memory Management/Allocator.swift:53:22: warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)' [#DeprecatedDeclaration]
51 |         precondition(self.count >= count, "Out of bounds write")
52 |         // memcpy(self.baseAddress!, ptr.baseAddress!, count * MemoryLayout<Element>.stride)
53 |         baseAddress!.assign(from: ptr.baseAddress!, count: count)
   |                      |- warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)' [#DeprecatedDeclaration]
   |                      `- note: use 'update(from:count:)' instead
54 |     }
55 |
/host/spi-builder-workspace/Sources/DL4S/NN/Layer/Embedding.swift:105:13: error: cannot find 'autoreleasepool' in scope
103 |
104 |         for line in File(url: embeddingsURL) {
105 |             autoreleasepool {
    |             `- error: cannot find 'autoreleasepool' in scope
106 |                 let components = line.split(whereSeparator: { $0.isWhitespace })
107 |
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
/host/spi-builder-workspace/Sources/DL4S/Memory Management/Allocator.swift:53:22: warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)' [#DeprecatedDeclaration]
51 |         precondition(self.count >= count, "Out of bounds write")
52 |         // memcpy(self.baseAddress!, ptr.baseAddress!, count * MemoryLayout<Element>.stride)
53 |         baseAddress!.assign(from: ptr.baseAddress!, count: count)
   |                      |- warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)' [#DeprecatedDeclaration]
   |                      `- note: use 'update(from:count:)' instead
54 |     }
55 |
/host/spi-builder-workspace/Sources/DL4S/NN/Layer/Embedding.swift:105:13: error: cannot find 'autoreleasepool' in scope
103 |
104 |         for line in File(url: embeddingsURL) {
105 |             autoreleasepool {
    |             `- error: cannot find 'autoreleasepool' in scope
106 |                 let components = line.split(whereSeparator: { $0.isWhitespace })
107 |
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
/host/spi-builder-workspace/Sources/DL4S/Memory Management/Allocator.swift:53:22: warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)' [#DeprecatedDeclaration]
51 |         precondition(self.count >= count, "Out of bounds write")
52 |         // memcpy(self.baseAddress!, ptr.baseAddress!, count * MemoryLayout<Element>.stride)
53 |         baseAddress!.assign(from: ptr.baseAddress!, count: count)
   |                      |- warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)' [#DeprecatedDeclaration]
   |                      `- note: use 'update(from:count:)' instead
54 |     }
55 |
/host/spi-builder-workspace/Sources/DL4S/NN/Layer/Embedding.swift:105:13: error: cannot find 'autoreleasepool' in scope
103 |
104 |         for line in File(url: embeddingsURL) {
105 |             autoreleasepool {
    |             `- error: cannot find 'autoreleasepool' in scope
106 |                 let components = line.split(whereSeparator: { $0.isWhitespace })
107 |
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
/host/spi-builder-workspace/Sources/DL4S/Memory Management/Allocator.swift:53:22: warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)' [#DeprecatedDeclaration]
51 |         precondition(self.count >= count, "Out of bounds write")
52 |         // memcpy(self.baseAddress!, ptr.baseAddress!, count * MemoryLayout<Element>.stride)
53 |         baseAddress!.assign(from: ptr.baseAddress!, count: count)
   |                      |- warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)' [#DeprecatedDeclaration]
   |                      `- note: use 'update(from:count:)' instead
54 |     }
55 |
/host/spi-builder-workspace/Sources/DL4S/NN/Layer/Embedding.swift:105:13: error: cannot find 'autoreleasepool' in scope
103 |
104 |         for line in File(url: embeddingsURL) {
105 |             autoreleasepool {
    |             `- error: cannot find 'autoreleasepool' in scope
106 |                 let components = line.split(whereSeparator: { $0.isWhitespace })
107 |
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
/host/spi-builder-workspace/Sources/DL4S/Memory Management/Allocator.swift:53:22: warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)' [#DeprecatedDeclaration]
51 |         precondition(self.count >= count, "Out of bounds write")
52 |         // memcpy(self.baseAddress!, ptr.baseAddress!, count * MemoryLayout<Element>.stride)
53 |         baseAddress!.assign(from: ptr.baseAddress!, count: count)
   |                      |- warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)' [#DeprecatedDeclaration]
   |                      `- note: use 'update(from:count:)' instead
54 |     }
55 |
/host/spi-builder-workspace/Sources/DL4S/NN/Layer/Embedding.swift:105:13: error: cannot find 'autoreleasepool' in scope
103 |
104 |         for line in File(url: embeddingsURL) {
105 |             autoreleasepool {
    |             `- error: cannot find 'autoreleasepool' in scope
106 |                 let components = line.split(whereSeparator: { $0.isWhitespace })
107 |
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
/host/spi-builder-workspace/Sources/DL4S/Memory Management/Allocator.swift:53:22: warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)' [#DeprecatedDeclaration]
51 |         precondition(self.count >= count, "Out of bounds write")
52 |         // memcpy(self.baseAddress!, ptr.baseAddress!, count * MemoryLayout<Element>.stride)
53 |         baseAddress!.assign(from: ptr.baseAddress!, count: count)
   |                      |- warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)' [#DeprecatedDeclaration]
   |                      `- note: use 'update(from:count:)' instead
54 |     }
55 |
/host/spi-builder-workspace/Sources/DL4S/NN/Layer/Embedding.swift:105:13: error: cannot find 'autoreleasepool' in scope
103 |
104 |         for line in File(url: embeddingsURL) {
105 |             autoreleasepool {
    |             `- error: cannot find 'autoreleasepool' in scope
106 |                 let components = line.split(whereSeparator: { $0.isWhitespace })
107 |
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
/host/spi-builder-workspace/Sources/DL4S/Memory Management/Allocator.swift:53:22: warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)' [#DeprecatedDeclaration]
51 |         precondition(self.count >= count, "Out of bounds write")
52 |         // memcpy(self.baseAddress!, ptr.baseAddress!, count * MemoryLayout<Element>.stride)
53 |         baseAddress!.assign(from: ptr.baseAddress!, count: count)
   |                      |- warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)' [#DeprecatedDeclaration]
   |                      `- note: use 'update(from:count:)' instead
54 |     }
55 |
/host/spi-builder-workspace/Sources/DL4S/NN/Layer/Embedding.swift:105:13: error: cannot find 'autoreleasepool' in scope
103 |
104 |         for line in File(url: embeddingsURL) {
105 |             autoreleasepool {
    |             `- error: cannot find 'autoreleasepool' in scope
106 |                 let components = line.split(whereSeparator: { $0.isWhitespace })
107 |
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
/host/spi-builder-workspace/Sources/DL4S/Memory Management/Allocator.swift:53:22: warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)' [#DeprecatedDeclaration]
51 |         precondition(self.count >= count, "Out of bounds write")
52 |         // memcpy(self.baseAddress!, ptr.baseAddress!, count * MemoryLayout<Element>.stride)
53 |         baseAddress!.assign(from: ptr.baseAddress!, count: count)
   |                      |- warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)' [#DeprecatedDeclaration]
   |                      `- note: use 'update(from:count:)' instead
54 |     }
55 |
/host/spi-builder-workspace/Sources/DL4S/NN/Layer/Embedding.swift:105:13: error: cannot find 'autoreleasepool' in scope
103 |
104 |         for line in File(url: embeddingsURL) {
105 |             autoreleasepool {
    |             `- error: cannot find 'autoreleasepool' in scope
106 |                 let components = line.split(whereSeparator: { $0.isWhitespace })
107 |
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
/host/spi-builder-workspace/Sources/DL4S/Memory Management/Allocator.swift:53:22: warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)' [#DeprecatedDeclaration]
51 |         precondition(self.count >= count, "Out of bounds write")
52 |         // memcpy(self.baseAddress!, ptr.baseAddress!, count * MemoryLayout<Element>.stride)
53 |         baseAddress!.assign(from: ptr.baseAddress!, count: count)
   |                      |- warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)' [#DeprecatedDeclaration]
   |                      `- note: use 'update(from:count:)' instead
54 |     }
55 |
/host/spi-builder-workspace/Sources/DL4S/NN/Layer/Embedding.swift:105:13: error: cannot find 'autoreleasepool' in scope
103 |
104 |         for line in File(url: embeddingsURL) {
105 |             autoreleasepool {
    |             `- error: cannot find 'autoreleasepool' in scope
106 |                 let components = line.split(whereSeparator: { $0.isWhitespace })
107 |
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
/host/spi-builder-workspace/Sources/DL4S/Memory Management/Allocator.swift:53:22: warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)' [#DeprecatedDeclaration]
51 |         precondition(self.count >= count, "Out of bounds write")
52 |         // memcpy(self.baseAddress!, ptr.baseAddress!, count * MemoryLayout<Element>.stride)
53 |         baseAddress!.assign(from: ptr.baseAddress!, count: count)
   |                      |- warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)' [#DeprecatedDeclaration]
   |                      `- note: use 'update(from:count:)' instead
54 |     }
55 |
/host/spi-builder-workspace/Sources/DL4S/NN/Layer/Embedding.swift:105:13: error: cannot find 'autoreleasepool' in scope
103 |
104 |         for line in File(url: embeddingsURL) {
105 |             autoreleasepool {
    |             `- error: cannot find 'autoreleasepool' in scope
106 |                 let components = line.split(whereSeparator: { $0.isWhitespace })
107 |
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/Numeric/CPUFloat.swift:31:10: warning: Compiling DL4S without any accelerator library
 29 | import Accelerate
 30 | #else
 31 | #warning("Compiling DL4S without any accelerator library")
    |          `- warning: Compiling DL4S without any accelerator library
 32 | #warning("DL4S can be accelerated with Intel MKL, IPP and TBB. See README.md")
 33 | #endif
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/Numeric/CPUFloat.swift:32:10: warning: DL4S can be accelerated with Intel MKL, IPP and TBB. See README.md
 30 | #else
 31 | #warning("Compiling DL4S without any accelerator library")
 32 | #warning("DL4S can be accelerated with Intel MKL, IPP and TBB. See README.md")
    |          `- warning: DL4S can be accelerated with Intel MKL, IPP and TBB. See README.md
 33 | #endif
 34 | import Foundation
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/CPUEngine.swift:1027:42: warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)' [#DeprecatedDeclaration]
1025 |                 }
1026 |
1027 |                 dst.advanced(by: dstIdx).assign(from: src.advanced(by: srcIdx), count: copyCount)
     |                                          |- warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)' [#DeprecatedDeclaration]
     |                                          `- note: use 'update(from:count:)' instead
1028 |             }
1029 |
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/Numeric/CPUFloat.swift:31:10: warning: Compiling DL4S without any accelerator library
 29 | import Accelerate
 30 | #else
 31 | #warning("Compiling DL4S without any accelerator library")
    |          `- warning: Compiling DL4S without any accelerator library
 32 | #warning("DL4S can be accelerated with Intel MKL, IPP and TBB. See README.md")
 33 | #endif
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/Numeric/CPUFloat.swift:32:10: warning: DL4S can be accelerated with Intel MKL, IPP and TBB. See README.md
 30 | #else
 31 | #warning("Compiling DL4S without any accelerator library")
 32 | #warning("DL4S can be accelerated with Intel MKL, IPP and TBB. See README.md")
    |          `- warning: DL4S can be accelerated with Intel MKL, IPP and TBB. See README.md
 33 | #endif
 34 | import Foundation
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/CPUEngine.swift:1027:42: warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)' [#DeprecatedDeclaration]
1025 |                 }
1026 |
1027 |                 dst.advanced(by: dstIdx).assign(from: src.advanced(by: srcIdx), count: copyCount)
     |                                          |- warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)' [#DeprecatedDeclaration]
     |                                          `- note: use 'update(from:count:)' instead
1028 |             }
1029 |
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/Numeric/CPUFloat.swift:31:10: warning: Compiling DL4S without any accelerator library
 29 | import Accelerate
 30 | #else
 31 | #warning("Compiling DL4S without any accelerator library")
    |          `- warning: Compiling DL4S without any accelerator library
 32 | #warning("DL4S can be accelerated with Intel MKL, IPP and TBB. See README.md")
 33 | #endif
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/Numeric/CPUFloat.swift:32:10: warning: DL4S can be accelerated with Intel MKL, IPP and TBB. See README.md
 30 | #else
 31 | #warning("Compiling DL4S without any accelerator library")
 32 | #warning("DL4S can be accelerated with Intel MKL, IPP and TBB. See README.md")
    |          `- warning: DL4S can be accelerated with Intel MKL, IPP and TBB. See README.md
 33 | #endif
 34 | import Foundation
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/CPUEngine.swift:1027:42: warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)' [#DeprecatedDeclaration]
1025 |                 }
1026 |
1027 |                 dst.advanced(by: dstIdx).assign(from: src.advanced(by: srcIdx), count: copyCount)
     |                                          |- warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)' [#DeprecatedDeclaration]
     |                                          `- note: use 'update(from:count:)' instead
1028 |             }
1029 |
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/Numeric/CPUFloat.swift:31:10: warning: Compiling DL4S without any accelerator library
 29 | import Accelerate
 30 | #else
 31 | #warning("Compiling DL4S without any accelerator library")
    |          `- warning: Compiling DL4S without any accelerator library
 32 | #warning("DL4S can be accelerated with Intel MKL, IPP and TBB. See README.md")
 33 | #endif
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/Numeric/CPUFloat.swift:32:10: warning: DL4S can be accelerated with Intel MKL, IPP and TBB. See README.md
 30 | #else
 31 | #warning("Compiling DL4S without any accelerator library")
 32 | #warning("DL4S can be accelerated with Intel MKL, IPP and TBB. See README.md")
    |          `- warning: DL4S can be accelerated with Intel MKL, IPP and TBB. See README.md
 33 | #endif
 34 | import Foundation
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/CPUEngine.swift:1027:42: warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)' [#DeprecatedDeclaration]
1025 |                 }
1026 |
1027 |                 dst.advanced(by: dstIdx).assign(from: src.advanced(by: srcIdx), count: copyCount)
     |                                          |- warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)' [#DeprecatedDeclaration]
     |                                          `- note: use 'update(from:count:)' instead
1028 |             }
1029 |
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/Numeric/CPUFloat.swift:31:10: warning: Compiling DL4S without any accelerator library
 29 | import Accelerate
 30 | #else
 31 | #warning("Compiling DL4S without any accelerator library")
    |          `- warning: Compiling DL4S without any accelerator library
 32 | #warning("DL4S can be accelerated with Intel MKL, IPP and TBB. See README.md")
 33 | #endif
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/Numeric/CPUFloat.swift:32:10: warning: DL4S can be accelerated with Intel MKL, IPP and TBB. See README.md
 30 | #else
 31 | #warning("Compiling DL4S without any accelerator library")
 32 | #warning("DL4S can be accelerated with Intel MKL, IPP and TBB. See README.md")
    |          `- warning: DL4S can be accelerated with Intel MKL, IPP and TBB. See README.md
 33 | #endif
 34 | import Foundation
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/CPUEngine.swift:1027:42: warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)' [#DeprecatedDeclaration]
1025 |                 }
1026 |
1027 |                 dst.advanced(by: dstIdx).assign(from: src.advanced(by: srcIdx), count: copyCount)
     |                                          |- warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)' [#DeprecatedDeclaration]
     |                                          `- note: use 'update(from:count:)' instead
1028 |             }
1029 |
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/Numeric/CPUFloat.swift:31:10: warning: Compiling DL4S without any accelerator library
 29 | import Accelerate
 30 | #else
 31 | #warning("Compiling DL4S without any accelerator library")
    |          `- warning: Compiling DL4S without any accelerator library
 32 | #warning("DL4S can be accelerated with Intel MKL, IPP and TBB. See README.md")
 33 | #endif
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/Numeric/CPUFloat.swift:32:10: warning: DL4S can be accelerated with Intel MKL, IPP and TBB. See README.md
 30 | #else
 31 | #warning("Compiling DL4S without any accelerator library")
 32 | #warning("DL4S can be accelerated with Intel MKL, IPP and TBB. See README.md")
    |          `- warning: DL4S can be accelerated with Intel MKL, IPP and TBB. See README.md
 33 | #endif
 34 | import Foundation
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/CPUEngine.swift:1027:42: warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)' [#DeprecatedDeclaration]
1025 |                 }
1026 |
1027 |                 dst.advanced(by: dstIdx).assign(from: src.advanced(by: srcIdx), count: copyCount)
     |                                          |- warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)' [#DeprecatedDeclaration]
     |                                          `- note: use 'update(from:count:)' instead
1028 |             }
1029 |
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/Numeric/CPUFloat.swift:31:10: warning: Compiling DL4S without any accelerator library
 29 | import Accelerate
 30 | #else
 31 | #warning("Compiling DL4S without any accelerator library")
    |          `- warning: Compiling DL4S without any accelerator library
 32 | #warning("DL4S can be accelerated with Intel MKL, IPP and TBB. See README.md")
 33 | #endif
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/Numeric/CPUFloat.swift:32:10: warning: DL4S can be accelerated with Intel MKL, IPP and TBB. See README.md
 30 | #else
 31 | #warning("Compiling DL4S without any accelerator library")
 32 | #warning("DL4S can be accelerated with Intel MKL, IPP and TBB. See README.md")
    |          `- warning: DL4S can be accelerated with Intel MKL, IPP and TBB. See README.md
 33 | #endif
 34 | import Foundation
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/CPUEngine.swift:1027:42: warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)' [#DeprecatedDeclaration]
1025 |                 }
1026 |
1027 |                 dst.advanced(by: dstIdx).assign(from: src.advanced(by: srcIdx), count: copyCount)
     |                                          |- warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)' [#DeprecatedDeclaration]
     |                                          `- note: use 'update(from:count:)' instead
1028 |             }
1029 |
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/Numeric/CPUFloat.swift:31:10: warning: Compiling DL4S without any accelerator library
 29 | import Accelerate
 30 | #else
 31 | #warning("Compiling DL4S without any accelerator library")
    |          `- warning: Compiling DL4S without any accelerator library
 32 | #warning("DL4S can be accelerated with Intel MKL, IPP and TBB. See README.md")
 33 | #endif
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/Numeric/CPUFloat.swift:32:10: warning: DL4S can be accelerated with Intel MKL, IPP and TBB. See README.md
 30 | #else
 31 | #warning("Compiling DL4S without any accelerator library")
 32 | #warning("DL4S can be accelerated with Intel MKL, IPP and TBB. See README.md")
    |          `- warning: DL4S can be accelerated with Intel MKL, IPP and TBB. See README.md
 33 | #endif
 34 | import Foundation
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/CPUEngine.swift:1027:42: warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)' [#DeprecatedDeclaration]
1025 |                 }
1026 |
1027 |                 dst.advanced(by: dstIdx).assign(from: src.advanced(by: srcIdx), count: copyCount)
     |                                          |- warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)' [#DeprecatedDeclaration]
     |                                          `- note: use 'update(from:count:)' instead
1028 |             }
1029 |
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/Numeric/CPUFloat.swift:31:10: warning: Compiling DL4S without any accelerator library
 29 | import Accelerate
 30 | #else
 31 | #warning("Compiling DL4S without any accelerator library")
    |          `- warning: Compiling DL4S without any accelerator library
 32 | #warning("DL4S can be accelerated with Intel MKL, IPP and TBB. See README.md")
 33 | #endif
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/Numeric/CPUFloat.swift:32:10: warning: DL4S can be accelerated with Intel MKL, IPP and TBB. See README.md
 30 | #else
 31 | #warning("Compiling DL4S without any accelerator library")
 32 | #warning("DL4S can be accelerated with Intel MKL, IPP and TBB. See README.md")
    |          `- warning: DL4S can be accelerated with Intel MKL, IPP and TBB. See README.md
 33 | #endif
 34 | import Foundation
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/CPUEngine.swift:1027:42: warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)' [#DeprecatedDeclaration]
1025 |                 }
1026 |
1027 |                 dst.advanced(by: dstIdx).assign(from: src.advanced(by: srcIdx), count: copyCount)
     |                                          |- warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)' [#DeprecatedDeclaration]
     |                                          `- note: use 'update(from:count:)' instead
1028 |             }
1029 |
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/Numeric/CPUFloat.swift:31:10: warning: Compiling DL4S without any accelerator library
 29 | import Accelerate
 30 | #else
 31 | #warning("Compiling DL4S without any accelerator library")
    |          `- warning: Compiling DL4S without any accelerator library
 32 | #warning("DL4S can be accelerated with Intel MKL, IPP and TBB. See README.md")
 33 | #endif
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/Numeric/CPUFloat.swift:32:10: warning: DL4S can be accelerated with Intel MKL, IPP and TBB. See README.md
 30 | #else
 31 | #warning("Compiling DL4S without any accelerator library")
 32 | #warning("DL4S can be accelerated with Intel MKL, IPP and TBB. See README.md")
    |          `- warning: DL4S can be accelerated with Intel MKL, IPP and TBB. See README.md
 33 | #endif
 34 | import Foundation
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/CPUEngine.swift:1027:42: warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)' [#DeprecatedDeclaration]
1025 |                 }
1026 |
1027 |                 dst.advanced(by: dstIdx).assign(from: src.advanced(by: srcIdx), count: copyCount)
     |                                          |- warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)' [#DeprecatedDeclaration]
     |                                          `- note: use 'update(from:count:)' instead
1028 |             }
1029 |
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/Numeric/CPUFloat.swift:31:10: warning: Compiling DL4S without any accelerator library
 29 | import Accelerate
 30 | #else
 31 | #warning("Compiling DL4S without any accelerator library")
    |          `- warning: Compiling DL4S without any accelerator library
 32 | #warning("DL4S can be accelerated with Intel MKL, IPP and TBB. See README.md")
 33 | #endif
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/Numeric/CPUFloat.swift:32:10: warning: DL4S can be accelerated with Intel MKL, IPP and TBB. See README.md
 30 | #else
 31 | #warning("Compiling DL4S without any accelerator library")
 32 | #warning("DL4S can be accelerated with Intel MKL, IPP and TBB. See README.md")
    |          `- warning: DL4S can be accelerated with Intel MKL, IPP and TBB. See README.md
 33 | #endif
 34 | import Foundation
/host/spi-builder-workspace/Sources/DL4S/Engine/CPU/CPUEngine.swift:1027:42: warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)' [#DeprecatedDeclaration]
1025 |                 }
1026 |
1027 |                 dst.advanced(by: dstIdx).assign(from: src.advanced(by: srcIdx), count: copyCount)
     |                                          |- warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)' [#DeprecatedDeclaration]
     |                                          `- note: use 'update(from:count:)' instead
1028 |             }
1029 |
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
/host/spi-builder-workspace/Sources/DL4S/Util.swift:279:13: error: cannot find 'autoreleasepool' in scope
277 |
278 |         mutating func next() -> String? {
279 |             autoreleasepool { () -> String? in
    |             `- error: cannot find 'autoreleasepool' in scope
280 |                 guard let handle, !isCompleted else {
281 |                     return nil
/host/spi-builder-workspace/Sources/DL4S/Util.swift:279:13: error: cannot find 'autoreleasepool' in scope
277 |
278 |         mutating func next() -> String? {
279 |             autoreleasepool { () -> String? in
    |             `- error: cannot find 'autoreleasepool' in scope
280 |                 guard let handle, !isCompleted else {
281 |                     return nil
/host/spi-builder-workspace/Sources/DL4S/Util.swift:279:13: error: cannot find 'autoreleasepool' in scope
277 |
278 |         mutating func next() -> String? {
279 |             autoreleasepool { () -> String? in
    |             `- error: cannot find 'autoreleasepool' in scope
280 |                 guard let handle, !isCompleted else {
281 |                     return nil
/host/spi-builder-workspace/Sources/DL4S/Util.swift:279:13: error: cannot find 'autoreleasepool' in scope
277 |
278 |         mutating func next() -> String? {
279 |             autoreleasepool { () -> String? in
    |             `- error: cannot find 'autoreleasepool' in scope
280 |                 guard let handle, !isCompleted else {
281 |                     return nil
/host/spi-builder-workspace/Sources/DL4S/Util.swift:279:13: error: cannot find 'autoreleasepool' in scope
277 |
278 |         mutating func next() -> String? {
279 |             autoreleasepool { () -> String? in
    |             `- error: cannot find 'autoreleasepool' in scope
280 |                 guard let handle, !isCompleted else {
281 |                     return nil
/host/spi-builder-workspace/Sources/DL4S/Util.swift:279:13: error: cannot find 'autoreleasepool' in scope
277 |
278 |         mutating func next() -> String? {
279 |             autoreleasepool { () -> String? in
    |             `- error: cannot find 'autoreleasepool' in scope
280 |                 guard let handle, !isCompleted else {
281 |                     return nil
/host/spi-builder-workspace/Sources/DL4S/Util.swift:279:13: error: cannot find 'autoreleasepool' in scope
277 |
278 |         mutating func next() -> String? {
279 |             autoreleasepool { () -> String? in
    |             `- error: cannot find 'autoreleasepool' in scope
280 |                 guard let handle, !isCompleted else {
281 |                     return nil
/host/spi-builder-workspace/Sources/DL4S/Util.swift:279:13: error: cannot find 'autoreleasepool' in scope
277 |
278 |         mutating func next() -> String? {
279 |             autoreleasepool { () -> String? in
    |             `- error: cannot find 'autoreleasepool' in scope
280 |                 guard let handle, !isCompleted else {
281 |                     return nil
/host/spi-builder-workspace/Sources/DL4S/Util.swift:279:13: error: cannot find 'autoreleasepool' in scope
277 |
278 |         mutating func next() -> String? {
279 |             autoreleasepool { () -> String? in
    |             `- error: cannot find 'autoreleasepool' in scope
280 |                 guard let handle, !isCompleted else {
281 |                     return nil
/host/spi-builder-workspace/Sources/DL4S/Util.swift:279:13: error: cannot find 'autoreleasepool' in scope
277 |
278 |         mutating func next() -> String? {
279 |             autoreleasepool { () -> String? in
    |             `- error: cannot find 'autoreleasepool' in scope
280 |                 guard let handle, !isCompleted else {
281 |                     return nil
/host/spi-builder-workspace/Sources/DL4S/NN/Optimizer/LearningRate.swift:46:16: error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
44 |         let modelDim = Float(modelDim)
45 |
46 |         return Element(1 / sqrt(modelDim) * min(1 / sqrt(step), step * pow(warmupSteps, -1.5)))
   |                `- error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
47 |     }
48 | }
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:44:32: error: cannot find 'sysconf' in scope
 42 |     let bytes: UnsafeRawBufferPointer
 43 |
 44 |     private let pageSize = Int(sysconf(Int32(_SC_PAGESIZE)))
    |                                `- error: cannot find 'sysconf' in scope
 45 |     private var releasedUpTo = 0
 46 |
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:44:46: error: cannot find '_SC_PAGESIZE' in scope
 42 |     let bytes: UnsafeRawBufferPointer
 43 |
 44 |     private let pageSize = Int(sysconf(Int32(_SC_PAGESIZE)))
    |                                              `- error: cannot find '_SC_PAGESIZE' in scope
 45 |     private var releasedUpTo = 0
 46 |
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:52:24: error: cannot find 'open' in scope
 50 |     init(url: URL) throws {
 51 |         let descriptor = url.withUnsafeFileSystemRepresentation { path in
 52 |             path.map { open($0, O_RDONLY) } ?? -1
    |                        `- error: cannot find 'open' in scope
 53 |         }
 54 |         guard descriptor >= 0 else {
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:52:33: error: cannot find 'O_RDONLY' in scope
 50 |     init(url: URL) throws {
 51 |         let descriptor = url.withUnsafeFileSystemRepresentation { path in
 52 |             path.map { open($0, O_RDONLY) } ?? -1
    |                                 `- error: cannot find 'O_RDONLY' in scope
 53 |         }
 54 |         guard descriptor >= 0 else {
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:59:13: error: cannot find 'close' in scope
 57 |         // The mapping stays valid when the descriptor is closed.
 58 |         defer {
 59 |             close(descriptor)
    |             `- error: cannot find 'close' in scope
 60 |         }
 61 |
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:62:22: error: cannot find 'stat' in scope
 60 |         }
 61 |
 62 |         var status = stat()
    |                      `- error: cannot find 'stat' in scope
 63 |         guard fstat(descriptor, &status) == 0 else {
 64 |             throw MappedFile.lastError()
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:63:15: error: cannot find 'fstat' in scope
 61 |
 62 |         var status = stat()
 63 |         guard fstat(descriptor, &status) == 0 else {
    |               `- error: cannot find 'fstat' in scope
 64 |             throw MappedFile.lastError()
 65 |         }
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:73:49: error: cannot find 'mmap' in scope
 71 |         }
 72 |
 73 |         let address: UnsafeMutableRawPointer? = mmap(nil, size, PROT_READ, MAP_PRIVATE, descriptor, 0)
    |                                                 `- error: cannot find 'mmap' in scope
 74 |         guard let address, address != UnsafeMutableRawPointer(bitPattern: -1) else {
 75 |             throw MappedFile.lastError()
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:73:65: error: cannot find 'PROT_READ' in scope
 71 |         }
 72 |
 73 |         let address: UnsafeMutableRawPointer? = mmap(nil, size, PROT_READ, MAP_PRIVATE, descriptor, 0)
    |                                                                 `- error: cannot find 'PROT_READ' in scope
 74 |         guard let address, address != UnsafeMutableRawPointer(bitPattern: -1) else {
 75 |             throw MappedFile.lastError()
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:73:76: error: cannot find 'MAP_PRIVATE' in scope
 71 |         }
 72 |
 73 |         let address: UnsafeMutableRawPointer? = mmap(nil, size, PROT_READ, MAP_PRIVATE, descriptor, 0)
    |                                                                            `- error: cannot find 'MAP_PRIVATE' in scope
 74 |         guard let address, address != UnsafeMutableRawPointer(bitPattern: -1) else {
 75 |             throw MappedFile.lastError()
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:73:54: error: 'nil' requires a contextual type
 71 |         }
 72 |
 73 |         let address: UnsafeMutableRawPointer? = mmap(nil, size, PROT_READ, MAP_PRIVATE, descriptor, 0)
    |                                                      `- error: 'nil' requires a contextual type
 74 |         guard let address, address != UnsafeMutableRawPointer(bitPattern: -1) else {
 75 |             throw MappedFile.lastError()
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:77:9: error: cannot find 'madvise' in scope
 75 |             throw MappedFile.lastError()
 76 |         }
 77 |         madvise(address, size, MADV_SEQUENTIAL)
    |         `- error: cannot find 'madvise' in scope
 78 |         bytes = UnsafeRawBufferPointer(start: address, count: size)
 79 |     }
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:77:32: error: cannot find 'MADV_SEQUENTIAL' in scope
 75 |             throw MappedFile.lastError()
 76 |         }
 77 |         madvise(address, size, MADV_SEQUENTIAL)
    |                                `- error: cannot find 'MADV_SEQUENTIAL' in scope
 78 |         bytes = UnsafeRawBufferPointer(start: address, count: size)
 79 |     }
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:83:13: error: cannot find 'munmap' in scope
 81 |     deinit {
 82 |         if let address = bytes.baseAddress {
 83 |             munmap(UnsafeMutableRawPointer(mutating: address), bytes.count)
    |             `- error: cannot find 'munmap' in scope
 84 |         }
 85 |     }
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:99:9: error: cannot find 'madvise' in scope
 97 |             return
 98 |         }
 99 |         madvise(UnsafeMutableRawPointer(mutating: address + releasedUpTo), end - releasedUpTo, MADV_DONTNEED)
    |         `- error: cannot find 'madvise' in scope
100 |         releasedUpTo = end
101 |     }
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:99:96: error: cannot find 'MADV_DONTNEED' in scope
 97 |             return
 98 |         }
 99 |         madvise(UnsafeMutableRawPointer(mutating: address + releasedUpTo), end - releasedUpTo, MADV_DONTNEED)
    |                                                                                                `- error: cannot find 'MADV_DONTNEED' in scope
100 |         releasedUpTo = end
101 |     }
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:104:20: error: cannot find 'POSIXErrorCode' in scope
102 |
103 |     private static func lastError() -> POSIXError {
104 |         POSIXError(POSIXErrorCode(rawValue: errno) ?? .EIO)
    |                    `- error: cannot find 'POSIXErrorCode' in scope
105 |     }
106 | }
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:104:45: error: cannot find 'errno' in scope
102 |
103 |     private static func lastError() -> POSIXError {
104 |         POSIXError(POSIXErrorCode(rawValue: errno) ?? .EIO)
    |                                             `- error: cannot find 'errno' in scope
105 |     }
106 | }
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/DL4S/NN/Optimizer/LearningRate.swift:46:16: error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
44 |         let modelDim = Float(modelDim)
45 |
46 |         return Element(1 / sqrt(modelDim) * min(1 / sqrt(step), step * pow(warmupSteps, -1.5)))
   |                `- error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
47 |     }
48 | }
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:44:32: error: cannot find 'sysconf' in scope
 42 |     let bytes: UnsafeRawBufferPointer
 43 |
 44 |     private let pageSize = Int(sysconf(Int32(_SC_PAGESIZE)))
    |                                `- error: cannot find 'sysconf' in scope
 45 |     private var releasedUpTo = 0
 46 |
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:44:46: error: cannot find '_SC_PAGESIZE' in scope
 42 |     let bytes: UnsafeRawBufferPointer
 43 |
 44 |     private let pageSize = Int(sysconf(Int32(_SC_PAGESIZE)))
    |                                              `- error: cannot find '_SC_PAGESIZE' in scope
 45 |     private var releasedUpTo = 0
 46 |
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:52:24: error: cannot find 'open' in scope
 50 |     init(url: URL) throws {
 51 |         let descriptor = url.withUnsafeFileSystemRepresentation { path in
 52 |             path.map { open($0, O_RDONLY) } ?? -1
    |                        `- error: cannot find 'open' in scope
 53 |         }
 54 |         guard descriptor >= 0 else {
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:52:33: error: cannot find 'O_RDONLY' in scope
 50 |     init(url: URL) throws {
 51 |         let descriptor = url.withUnsafeFileSystemRepresentation { path in
 52 |             path.map { open($0, O_RDONLY) } ?? -1
    |                                 `- error: cannot find 'O_RDONLY' in scope
 53 |         }
 54 |         guard descriptor >= 0 else {
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:59:13: error: cannot find 'close' in scope
 57 |         // The mapping stays valid when the descriptor is closed.
 58 |         defer {
 59 |             close(descriptor)
    |             `- error: cannot find 'close' in scope
 60 |         }
 61 |
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:62:22: error: cannot find 'stat' in scope
 60 |         }
 61 |
 62 |         var status = stat()
    |                      `- error: cannot find 'stat' in scope
 63 |         guard fstat(descriptor, &status) == 0 else {
 64 |             throw MappedFile.lastError()
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:63:15: error: cannot find 'fstat' in scope
 61 |
 62 |         var status = stat()
 63 |         guard fstat(descriptor, &status) == 0 else {
    |               `- error: cannot find 'fstat' in scope
 64 |             throw MappedFile.lastError()
 65 |         }
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:73:49: error: cannot find 'mmap' in scope
 71 |         }
 72 |
 73 |         let address: UnsafeMutableRawPointer? = mmap(nil, size, PROT_READ, MAP_PRIVATE, descriptor, 0)
    |                                                 `- error: cannot find 'mmap' in scope
 74 |         guard let address, address != UnsafeMutableRawPointer(bitPattern: -1) else {
 75 |             throw MappedFile.lastError()
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:73:65: error: cannot find 'PROT_READ' in scope
 71 |         }
 72 |
 73 |         let address: UnsafeMutableRawPointer? = mmap(nil, size, PROT_READ, MAP_PRIVATE, descriptor, 0)
    |                                                                 `- error: cannot find 'PROT_READ' in scope
 74 |         guard let address, address != UnsafeMutableRawPointer(bitPattern: -1) else {
 75 |             throw MappedFile.lastError()
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:73:76: error: cannot find 'MAP_PRIVATE' in scope
 71 |         }
 72 |
 73 |         let address: UnsafeMutableRawPointer? = mmap(nil, size, PROT_READ, MAP_PRIVATE, descriptor, 0)
    |                                                                            `- error: cannot find 'MAP_PRIVATE' in scope
 74 |         guard let address, address != UnsafeMutableRawPointer(bitPattern: -1) else {
 75 |             throw MappedFile.lastError()
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:73:54: error: 'nil' requires a contextual type
 71 |         }
 72 |
 73 |         let address: UnsafeMutableRawPointer? = mmap(nil, size, PROT_READ, MAP_PRIVATE, descriptor, 0)
    |                                                      `- error: 'nil' requires a contextual type
 74 |         guard let address, address != UnsafeMutableRawPointer(bitPattern: -1) else {
 75 |             throw MappedFile.lastError()
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:77:9: error: cannot find 'madvise' in scope
 75 |             throw MappedFile.lastError()
 76 |         }
 77 |         madvise(address, size, MADV_SEQUENTIAL)
    |         `- error: cannot find 'madvise' in scope
 78 |         bytes = UnsafeRawBufferPointer(start: address, count: size)
 79 |     }
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:77:32: error: cannot find 'MADV_SEQUENTIAL' in scope
 75 |             throw MappedFile.lastError()
 76 |         }
 77 |         madvise(address, size, MADV_SEQUENTIAL)
    |                                `- error: cannot find 'MADV_SEQUENTIAL' in scope
 78 |         bytes = UnsafeRawBufferPointer(start: address, count: size)
 79 |     }
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:83:13: error: cannot find 'munmap' in scope
 81 |     deinit {
 82 |         if let address = bytes.baseAddress {
 83 |             munmap(UnsafeMutableRawPointer(mutating: address), bytes.count)
    |             `- error: cannot find 'munmap' in scope
 84 |         }
 85 |     }
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:99:9: error: cannot find 'madvise' in scope
 97 |             return
 98 |         }
 99 |         madvise(UnsafeMutableRawPointer(mutating: address + releasedUpTo), end - releasedUpTo, MADV_DONTNEED)
    |         `- error: cannot find 'madvise' in scope
100 |         releasedUpTo = end
101 |     }
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:99:96: error: cannot find 'MADV_DONTNEED' in scope
 97 |             return
 98 |         }
 99 |         madvise(UnsafeMutableRawPointer(mutating: address + releasedUpTo), end - releasedUpTo, MADV_DONTNEED)
    |                                                                                                `- error: cannot find 'MADV_DONTNEED' in scope
100 |         releasedUpTo = end
101 |     }
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:104:20: error: cannot find 'POSIXErrorCode' in scope
102 |
103 |     private static func lastError() -> POSIXError {
104 |         POSIXError(POSIXErrorCode(rawValue: errno) ?? .EIO)
    |                    `- error: cannot find 'POSIXErrorCode' in scope
105 |     }
106 | }
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:104:45: error: cannot find 'errno' in scope
102 |
103 |     private static func lastError() -> POSIXError {
104 |         POSIXError(POSIXErrorCode(rawValue: errno) ?? .EIO)
    |                                             `- error: cannot find 'errno' in scope
105 |     }
106 | }
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/DL4S/NN/Optimizer/LearningRate.swift:46:16: error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
44 |         let modelDim = Float(modelDim)
45 |
46 |         return Element(1 / sqrt(modelDim) * min(1 / sqrt(step), step * pow(warmupSteps, -1.5)))
   |                `- error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
47 |     }
48 | }
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:44:32: error: cannot find 'sysconf' in scope
 42 |     let bytes: UnsafeRawBufferPointer
 43 |
 44 |     private let pageSize = Int(sysconf(Int32(_SC_PAGESIZE)))
    |                                `- error: cannot find 'sysconf' in scope
 45 |     private var releasedUpTo = 0
 46 |
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:44:46: error: cannot find '_SC_PAGESIZE' in scope
 42 |     let bytes: UnsafeRawBufferPointer
 43 |
 44 |     private let pageSize = Int(sysconf(Int32(_SC_PAGESIZE)))
    |                                              `- error: cannot find '_SC_PAGESIZE' in scope
 45 |     private var releasedUpTo = 0
 46 |
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:52:24: error: cannot find 'open' in scope
 50 |     init(url: URL) throws {
 51 |         let descriptor = url.withUnsafeFileSystemRepresentation { path in
 52 |             path.map { open($0, O_RDONLY) } ?? -1
    |                        `- error: cannot find 'open' in scope
 53 |         }
 54 |         guard descriptor >= 0 else {
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:52:33: error: cannot find 'O_RDONLY' in scope
 50 |     init(url: URL) throws {
 51 |         let descriptor = url.withUnsafeFileSystemRepresentation { path in
 52 |             path.map { open($0, O_RDONLY) } ?? -1
    |                                 `- error: cannot find 'O_RDONLY' in scope
 53 |         }
 54 |         guard descriptor >= 0 else {
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:59:13: error: cannot find 'close' in scope
 57 |         // The mapping stays valid when the descriptor is closed.
 58 |         defer {
 59 |             close(descriptor)
    |             `- error: cannot find 'close' in scope
 60 |         }
 61 |
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:62:22: error: cannot find 'stat' in scope
 60 |         }
 61 |
 62 |         var status = stat()
    |                      `- error: cannot find 'stat' in scope
 63 |         guard fstat(descriptor, &status) == 0 else {
 64 |             throw MappedFile.lastError()
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:63:15: error: cannot find 'fstat' in scope
 61 |
 62 |         var status = stat()
 63 |         guard fstat(descriptor, &status) == 0 else {
    |               `- error: cannot find 'fstat' in scope
 64 |             throw MappedFile.lastError()
 65 |         }
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:73:49: error: cannot find 'mmap' in scope
 71 |         }
 72 |
 73 |         let address: UnsafeMutableRawPointer? = mmap(nil, size, PROT_READ, MAP_PRIVATE, descriptor, 0)
    |                                                 `- error: cannot find 'mmap' in scope
 74 |         guard let address, address != UnsafeMutableRawPointer(bitPattern: -1) else {
 75 |             throw MappedFile.lastError()
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:73:65: error: cannot find 'PROT_READ' in scope
 71 |         }
 72 |
 73 |         let address: UnsafeMutableRawPointer? = mmap(nil, size, PROT_READ, MAP_PRIVATE, descriptor, 0)
    |                                                                 `- error: cannot find 'PROT_READ' in scope
 74 |         guard let address, address != UnsafeMutableRawPointer(bitPattern: -1) else {
 75 |             throw MappedFile.lastError()
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:73:76: error: cannot find 'MAP_PRIVATE' in scope
 71 |         }
 72 |
 73 |         let address: UnsafeMutableRawPointer? = mmap(nil, size, PROT_READ, MAP_PRIVATE, descriptor, 0)
    |                                                                            `- error: cannot find 'MAP_PRIVATE' in scope
 74 |         guard let address, address != UnsafeMutableRawPointer(bitPattern: -1) else {
 75 |             throw MappedFile.lastError()
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:73:54: error: 'nil' requires a contextual type
 71 |         }
 72 |
 73 |         let address: UnsafeMutableRawPointer? = mmap(nil, size, PROT_READ, MAP_PRIVATE, descriptor, 0)
    |                                                      `- error: 'nil' requires a contextual type
 74 |         guard let address, address != UnsafeMutableRawPointer(bitPattern: -1) else {
 75 |             throw MappedFile.lastError()
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:77:9: error: cannot find 'madvise' in scope
 75 |             throw MappedFile.lastError()
 76 |         }
 77 |         madvise(address, size, MADV_SEQUENTIAL)
    |         `- error: cannot find 'madvise' in scope
 78 |         bytes = UnsafeRawBufferPointer(start: address, count: size)
 79 |     }
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:77:32: error: cannot find 'MADV_SEQUENTIAL' in scope
 75 |             throw MappedFile.lastError()
 76 |         }
 77 |         madvise(address, size, MADV_SEQUENTIAL)
    |                                `- error: cannot find 'MADV_SEQUENTIAL' in scope
 78 |         bytes = UnsafeRawBufferPointer(start: address, count: size)
 79 |     }
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:83:13: error: cannot find 'munmap' in scope
 81 |     deinit {
 82 |         if let address = bytes.baseAddress {
 83 |             munmap(UnsafeMutableRawPointer(mutating: address), bytes.count)
    |             `- error: cannot find 'munmap' in scope
 84 |         }
 85 |     }
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:99:9: error: cannot find 'madvise' in scope
 97 |             return
 98 |         }
 99 |         madvise(UnsafeMutableRawPointer(mutating: address + releasedUpTo), end - releasedUpTo, MADV_DONTNEED)
    |         `- error: cannot find 'madvise' in scope
100 |         releasedUpTo = end
101 |     }
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:99:96: error: cannot find 'MADV_DONTNEED' in scope
 97 |             return
 98 |         }
 99 |         madvise(UnsafeMutableRawPointer(mutating: address + releasedUpTo), end - releasedUpTo, MADV_DONTNEED)
    |                                                                                                `- error: cannot find 'MADV_DONTNEED' in scope
100 |         releasedUpTo = end
101 |     }
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:104:20: error: cannot find 'POSIXErrorCode' in scope
102 |
103 |     private static func lastError() -> POSIXError {
104 |         POSIXError(POSIXErrorCode(rawValue: errno) ?? .EIO)
    |                    `- error: cannot find 'POSIXErrorCode' in scope
105 |     }
106 | }
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:104:45: error: cannot find 'errno' in scope
102 |
103 |     private static func lastError() -> POSIXError {
104 |         POSIXError(POSIXErrorCode(rawValue: errno) ?? .EIO)
    |                                             `- error: cannot find 'errno' in scope
105 |     }
106 | }
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/DL4S/NN/Optimizer/LearningRate.swift:46:16: error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
44 |         let modelDim = Float(modelDim)
45 |
46 |         return Element(1 / sqrt(modelDim) * min(1 / sqrt(step), step * pow(warmupSteps, -1.5)))
   |                `- error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
47 |     }
48 | }
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:44:32: error: cannot find 'sysconf' in scope
 42 |     let bytes: UnsafeRawBufferPointer
 43 |
 44 |     private let pageSize = Int(sysconf(Int32(_SC_PAGESIZE)))
    |                                `- error: cannot find 'sysconf' in scope
 45 |     private var releasedUpTo = 0
 46 |
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:44:46: error: cannot find '_SC_PAGESIZE' in scope
 42 |     let bytes: UnsafeRawBufferPointer
 43 |
 44 |     private let pageSize = Int(sysconf(Int32(_SC_PAGESIZE)))
    |                                              `- error: cannot find '_SC_PAGESIZE' in scope
 45 |     private var releasedUpTo = 0
 46 |
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:52:24: error: cannot find 'open' in scope
 50 |     init(url: URL) throws {
 51 |         let descriptor = url.withUnsafeFileSystemRepresentation { path in
 52 |             path.map { open($0, O_RDONLY) } ?? -1
    |                        `- error: cannot find 'open' in scope
 53 |         }
 54 |         guard descriptor >= 0 else {
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:52:33: error: cannot find 'O_RDONLY' in scope
 50 |     init(url: URL) throws {
 51 |         let descriptor = url.withUnsafeFileSystemRepresentation { path in
 52 |             path.map { open($0, O_RDONLY) } ?? -1
    |                                 `- error: cannot find 'O_RDONLY' in scope
 53 |         }
 54 |         guard descriptor >= 0 else {
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:59:13: error: cannot find 'close' in scope
 57 |         // The mapping stays valid when the descriptor is closed.
 58 |         defer {
 59 |             close(descriptor)
    |             `- error: cannot find 'close' in scope
 60 |         }
 61 |
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:62:22: error: cannot find 'stat' in scope
 60 |         }
 61 |
 62 |         var status = stat()
    |                      `- error: cannot find 'stat' in scope
 63 |         guard fstat(descriptor, &status) == 0 else {
 64 |             throw MappedFile.lastError()
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:63:15: error: cannot find 'fstat' in scope
 61 |
 62 |         var status = stat()
 63 |         guard fstat(descriptor, &status) == 0 else {
    |               `- error: cannot find 'fstat' in scope
 64 |             throw MappedFile.lastError()
 65 |         }
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:73:49: error: cannot find 'mmap' in scope
 71 |         }
 72 |
 73 |         let address: UnsafeMutableRawPointer? = mmap(nil, size, PROT_READ, MAP_PRIVATE, descriptor, 0)
    |                                                 `- error: cannot find 'mmap' in scope
 74 |         guard let address, address != UnsafeMutableRawPointer(bitPattern: -1) else {
 75 |             throw MappedFile.lastError()
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:73:65: error: cannot find 'PROT_READ' in scope
 71 |         }
 72 |
 73 |         let address: UnsafeMutableRawPointer? = mmap(nil, size, PROT_READ, MAP_PRIVATE, descriptor, 0)
    |                                                                 `- error: cannot find 'PROT_READ' in scope
 74 |         guard let address, address != UnsafeMutableRawPointer(bitPattern: -1) else {
 75 |             throw MappedFile.lastError()
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:73:76: error: cannot find 'MAP_PRIVATE' in scope
 71 |         }
 72 |
 73 |         let address: UnsafeMutableRawPointer? = mmap(nil, size, PROT_READ, MAP_PRIVATE, descriptor, 0)
    |                                                                            `- error: cannot find 'MAP_PRIVATE' in scope
 74 |         guard let address, address != UnsafeMutableRawPointer(bitPattern: -1) else {
 75 |             throw MappedFile.lastError()
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:73:54: error: 'nil' requires a contextual type
 71 |         }
 72 |
 73 |         let address: UnsafeMutableRawPointer? = mmap(nil, size, PROT_READ, MAP_PRIVATE, descriptor, 0)
    |                                                      `- error: 'nil' requires a contextual type
 74 |         guard let address, address != UnsafeMutableRawPointer(bitPattern: -1) else {
 75 |             throw MappedFile.lastError()
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:77:9: error: cannot find 'madvise' in scope
 75 |             throw MappedFile.lastError()
 76 |         }
 77 |         madvise(address, size, MADV_SEQUENTIAL)
    |         `- error: cannot find 'madvise' in scope
 78 |         bytes = UnsafeRawBufferPointer(start: address, count: size)
 79 |     }
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:77:32: error: cannot find 'MADV_SEQUENTIAL' in scope
 75 |             throw MappedFile.lastError()
 76 |         }
 77 |         madvise(address, size, MADV_SEQUENTIAL)
    |                                `- error: cannot find 'MADV_SEQUENTIAL' in scope
 78 |         bytes = UnsafeRawBufferPointer(start: address, count: size)
 79 |     }
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:83:13: error: cannot find 'munmap' in scope
 81 |     deinit {
 82 |         if let address = bytes.baseAddress {
 83 |             munmap(UnsafeMutableRawPointer(mutating: address), bytes.count)
    |             `- error: cannot find 'munmap' in scope
 84 |         }
 85 |     }
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:99:9: error: cannot find 'madvise' in scope
 97 |             return
 98 |         }
 99 |         madvise(UnsafeMutableRawPointer(mutating: address + releasedUpTo), end - releasedUpTo, MADV_DONTNEED)
    |         `- error: cannot find 'madvise' in scope
100 |         releasedUpTo = end
101 |     }
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:99:96: error: cannot find 'MADV_DONTNEED' in scope
 97 |             return
 98 |         }
 99 |         madvise(UnsafeMutableRawPointer(mutating: address + releasedUpTo), end - releasedUpTo, MADV_DONTNEED)
    |                                                                                                `- error: cannot find 'MADV_DONTNEED' in scope
100 |         releasedUpTo = end
101 |     }
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:104:20: error: cannot find 'POSIXErrorCode' in scope
102 |
103 |     private static func lastError() -> POSIXError {
104 |         POSIXError(POSIXErrorCode(rawValue: errno) ?? .EIO)
    |                    `- error: cannot find 'POSIXErrorCode' in scope
105 |     }
106 | }
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:104:45: error: cannot find 'errno' in scope
102 |
103 |     private static func lastError() -> POSIXError {
104 |         POSIXError(POSIXErrorCode(rawValue: errno) ?? .EIO)
    |                                             `- error: cannot find 'errno' in scope
105 |     }
106 | }
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/DL4S/NN/Optimizer/LearningRate.swift:46:16: error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
44 |         let modelDim = Float(modelDim)
45 |
46 |         return Element(1 / sqrt(modelDim) * min(1 / sqrt(step), step * pow(warmupSteps, -1.5)))
   |                `- error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
47 |     }
48 | }
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:44:32: error: cannot find 'sysconf' in scope
 42 |     let bytes: UnsafeRawBufferPointer
 43 |
 44 |     private let pageSize = Int(sysconf(Int32(_SC_PAGESIZE)))
    |                                `- error: cannot find 'sysconf' in scope
 45 |     private var releasedUpTo = 0
 46 |
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:44:46: error: cannot find '_SC_PAGESIZE' in scope
 42 |     let bytes: UnsafeRawBufferPointer
 43 |
 44 |     private let pageSize = Int(sysconf(Int32(_SC_PAGESIZE)))
    |                                              `- error: cannot find '_SC_PAGESIZE' in scope
 45 |     private var releasedUpTo = 0
 46 |
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:52:24: error: cannot find 'open' in scope
 50 |     init(url: URL) throws {
 51 |         let descriptor = url.withUnsafeFileSystemRepresentation { path in
 52 |             path.map { open($0, O_RDONLY) } ?? -1
    |                        `- error: cannot find 'open' in scope
 53 |         }
 54 |         guard descriptor >= 0 else {
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:52:33: error: cannot find 'O_RDONLY' in scope
 50 |     init(url: URL) throws {
 51 |         let descriptor = url.withUnsafeFileSystemRepresentation { path in
 52 |             path.map { open($0, O_RDONLY) } ?? -1
    |                                 `- error: cannot find 'O_RDONLY' in scope
 53 |         }
 54 |         guard descriptor >= 0 else {
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:59:13: error: cannot find 'close' in scope
 57 |         // The mapping stays valid when the descriptor is closed.
 58 |         defer {
 59 |             close(descriptor)
    |             `- error: cannot find 'close' in scope
 60 |         }
 61 |
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:62:22: error: cannot find 'stat' in scope
 60 |         }
 61 |
 62 |         var status = stat()
    |                      `- error: cannot find 'stat' in scope
 63 |         guard fstat(descriptor, &status) == 0 else {
 64 |             throw MappedFile.lastError()
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:63:15: error: cannot find 'fstat' in scope
 61 |
 62 |         var status = stat()
 63 |         guard fstat(descriptor, &status) == 0 else {
    |               `- error: cannot find 'fstat' in scope
 64 |             throw MappedFile.lastError()
 65 |         }
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:73:49: error: cannot find 'mmap' in scope
 71 |         }
 72 |
 73 |         let address: UnsafeMutableRawPointer? = mmap(nil, size, PROT_READ, MAP_PRIVATE, descriptor, 0)
    |                                                 `- error: cannot find 'mmap' in scope
 74 |         guard let address, address != UnsafeMutableRawPointer(bitPattern: -1) else {
 75 |             throw MappedFile.lastError()
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:73:65: error: cannot find 'PROT_READ' in scope
 71 |         }
 72 |
 73 |         let address: UnsafeMutableRawPointer? = mmap(nil, size, PROT_READ, MAP_PRIVATE, descriptor, 0)
    |                                                                 `- error: cannot find 'PROT_READ' in scope
 74 |         guard let address, address != UnsafeMutableRawPointer(bitPattern: -1) else {
 75 |             throw MappedFile.lastError()
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:73:76: error: cannot find 'MAP_PRIVATE' in scope
 71 |         }
 72 |
 73 |         let address: UnsafeMutableRawPointer? = mmap(nil, size, PROT_READ, MAP_PRIVATE, descriptor, 0)
    |                                                                            `- error: cannot find 'MAP_PRIVATE' in scope
 74 |         guard let address, address != UnsafeMutableRawPointer(bitPattern: -1) else {
 75 |             throw MappedFile.lastError()
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:73:54: error: 'nil' requires a contextual type
 71 |         }
 72 |
 73 |         let address: UnsafeMutableRawPointer? = mmap(nil, size, PROT_READ, MAP_PRIVATE, descriptor, 0)
    |                                                      `- error: 'nil' requires a contextual type
 74 |         guard let address, address != UnsafeMutableRawPointer(bitPattern: -1) else {
 75 |             throw MappedFile.lastError()
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:77:9: error: cannot find 'madvise' in scope
 75 |             throw MappedFile.lastError()
 76 |         }
 77 |         madvise(address, size, MADV_SEQUENTIAL)
    |         `- error: cannot find 'madvise' in scope
 78 |         bytes = UnsafeRawBufferPointer(start: address, count: size)
 79 |     }
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:77:32: error: cannot find 'MADV_SEQUENTIAL' in scope
 75 |             throw MappedFile.lastError()
 76 |         }
 77 |         madvise(address, size, MADV_SEQUENTIAL)
    |                                `- error: cannot find 'MADV_SEQUENTIAL' in scope
 78 |         bytes = UnsafeRawBufferPointer(start: address, count: size)
 79 |     }
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:83:13: error: cannot find 'munmap' in scope
 81 |     deinit {
 82 |         if let address = bytes.baseAddress {
 83 |             munmap(UnsafeMutableRawPointer(mutating: address), bytes.count)
    |             `- error: cannot find 'munmap' in scope
 84 |         }
 85 |     }
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:99:9: error: cannot find 'madvise' in scope
 97 |             return
 98 |         }
 99 |         madvise(UnsafeMutableRawPointer(mutating: address + releasedUpTo), end - releasedUpTo, MADV_DONTNEED)
    |         `- error: cannot find 'madvise' in scope
100 |         releasedUpTo = end
101 |     }
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:99:96: error: cannot find 'MADV_DONTNEED' in scope
 97 |             return
 98 |         }
 99 |         madvise(UnsafeMutableRawPointer(mutating: address + releasedUpTo), end - releasedUpTo, MADV_DONTNEED)
    |                                                                                                `- error: cannot find 'MADV_DONTNEED' in scope
100 |         releasedUpTo = end
101 |     }
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:104:20: error: cannot find 'POSIXErrorCode' in scope
102 |
103 |     private static func lastError() -> POSIXError {
104 |         POSIXError(POSIXErrorCode(rawValue: errno) ?? .EIO)
    |                    `- error: cannot find 'POSIXErrorCode' in scope
105 |     }
106 | }
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:104:45: error: cannot find 'errno' in scope
102 |
103 |     private static func lastError() -> POSIXError {
104 |         POSIXError(POSIXErrorCode(rawValue: errno) ?? .EIO)
    |                                             `- error: cannot find 'errno' in scope
105 |     }
106 | }
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/DL4S/NN/Optimizer/LearningRate.swift:46:16: error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
44 |         let modelDim = Float(modelDim)
45 |
46 |         return Element(1 / sqrt(modelDim) * min(1 / sqrt(step), step * pow(warmupSteps, -1.5)))
   |                `- error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
47 |     }
48 | }
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:44:32: error: cannot find 'sysconf' in scope
 42 |     let bytes: UnsafeRawBufferPointer
 43 |
 44 |     private let pageSize = Int(sysconf(Int32(_SC_PAGESIZE)))
    |                                `- error: cannot find 'sysconf' in scope
 45 |     private var releasedUpTo = 0
 46 |
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:44:46: error: cannot find '_SC_PAGESIZE' in scope
 42 |     let bytes: UnsafeRawBufferPointer
 43 |
 44 |     private let pageSize = Int(sysconf(Int32(_SC_PAGESIZE)))
    |                                              `- error: cannot find '_SC_PAGESIZE' in scope
 45 |     private var releasedUpTo = 0
 46 |
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:52:24: error: cannot find 'open' in scope
 50 |     init(url: URL) throws {
 51 |         let descriptor = url.withUnsafeFileSystemRepresentation { path in
 52 |             path.map { open($0, O_RDONLY) } ?? -1
    |                        `- error: cannot find 'open' in scope
 53 |         }
 54 |         guard descriptor >= 0 else {
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:52:33: error: cannot find 'O_RDONLY' in scope
 50 |     init(url: URL) throws {
 51 |         let descriptor = url.withUnsafeFileSystemRepresentation { path in
 52 |             path.map { open($0, O_RDONLY) } ?? -1
    |                                 `- error: cannot find 'O_RDONLY' in scope
 53 |         }
 54 |         guard descriptor >= 0 else {
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:59:13: error: cannot find 'close' in scope
 57 |         // The mapping stays valid when the descriptor is closed.
 58 |         defer {
 59 |             close(descriptor)
    |             `- error: cannot find 'close' in scope
 60 |         }
 61 |
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:62:22: error: cannot find 'stat' in scope
 60 |         }
 61 |
 62 |         var status = stat()
    |                      `- error: cannot find 'stat' in scope
 63 |         guard fstat(descriptor, &status) == 0 else {
 64 |             throw MappedFile.lastError()
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:63:15: error: cannot find 'fstat' in scope
 61 |
 62 |         var status = stat()
 63 |         guard fstat(descriptor, &status) == 0 else {
    |               `- error: cannot find 'fstat' in scope
 64 |             throw MappedFile.lastError()
 65 |         }
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:73:49: error: cannot find 'mmap' in scope
 71 |         }
 72 |
 73 |         let address: UnsafeMutableRawPointer? = mmap(nil, size, PROT_READ, MAP_PRIVATE, descriptor, 0)
    |                                                 `- error: cannot find 'mmap' in scope
 74 |         guard let address, address != UnsafeMutableRawPointer(bitPattern: -1) else {
 75 |             throw MappedFile.lastError()
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:73:65: error: cannot find 'PROT_READ' in scope
 71 |         }
 72 |
 73 |         let address: UnsafeMutableRawPointer? = mmap(nil, size, PROT_READ, MAP_PRIVATE, descriptor, 0)
    |                                                                 `- error: cannot find 'PROT_READ' in scope
 74 |         guard let address, address != UnsafeMutableRawPointer(bitPattern: -1) else {
 75 |             throw MappedFile.lastError()
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:73:76: error: cannot find 'MAP_PRIVATE' in scope
 71 |         }
 72 |
 73 |         let address: UnsafeMutableRawPointer? = mmap(nil, size, PROT_READ, MAP_PRIVATE, descriptor, 0)
    |                                                                            `- error: cannot find 'MAP_PRIVATE' in scope
 74 |         guard let address, address != UnsafeMutableRawPointer(bitPattern: -1) else {
 75 |             throw MappedFile.lastError()
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:73:54: error: 'nil' requires a contextual type
 71 |         }
 72 |
 73 |         let address: UnsafeMutableRawPointer? = mmap(nil, size, PROT_READ, MAP_PRIVATE, descriptor, 0)
    |                                                      `- error: 'nil' requires a contextual type
 74 |         guard let address, address != UnsafeMutableRawPointer(bitPattern: -1) else {
 75 |             throw MappedFile.lastError()
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:77:9: error: cannot find 'madvise' in scope
 75 |             throw MappedFile.lastError()
 76 |         }
 77 |         madvise(address, size, MADV_SEQUENTIAL)
    |         `- error: cannot find 'madvise' in scope
 78 |         bytes = UnsafeRawBufferPointer(start: address, count: size)
 79 |     }
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:77:32: error: cannot find 'MADV_SEQUENTIAL' in scope
 75 |             throw MappedFile.lastError()
 76 |         }
 77 |         madvise(address, size, MADV_SEQUENTIAL)
    |                                `- error: cannot find 'MADV_SEQUENTIAL' in scope
 78 |         bytes = UnsafeRawBufferPointer(start: address, count: size)
 79 |     }
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:83:13: error: cannot find 'munmap' in scope
 81 |     deinit {
 82 |         if let address = bytes.baseAddress {
 83 |             munmap(UnsafeMutableRawPointer(mutating: address), bytes.count)
    |             `- error: cannot find 'munmap' in scope
 84 |         }
 85 |     }
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:99:9: error: cannot find 'madvise' in scope
 97 |             return
 98 |         }
 99 |         madvise(UnsafeMutableRawPointer(mutating: address + releasedUpTo), end - releasedUpTo, MADV_DONTNEED)
    |         `- error: cannot find 'madvise' in scope
100 |         releasedUpTo = end
101 |     }
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:99:96: error: cannot find 'MADV_DONTNEED' in scope
 97 |             return
 98 |         }
 99 |         madvise(UnsafeMutableRawPointer(mutating: address + releasedUpTo), end - releasedUpTo, MADV_DONTNEED)
    |                                                                                                `- error: cannot find 'MADV_DONTNEED' in scope
100 |         releasedUpTo = end
101 |     }
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:104:20: error: cannot find 'POSIXErrorCode' in scope
102 |
103 |     private static func lastError() -> POSIXError {
104 |         POSIXError(POSIXErrorCode(rawValue: errno) ?? .EIO)
    |                    `- error: cannot find 'POSIXErrorCode' in scope
105 |     }
106 | }
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:104:45: error: cannot find 'errno' in scope
102 |
103 |     private static func lastError() -> POSIXError {
104 |         POSIXError(POSIXErrorCode(rawValue: errno) ?? .EIO)
    |                                             `- error: cannot find 'errno' in scope
105 |     }
106 | }
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/DL4S/NN/Optimizer/LearningRate.swift:46:16: error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
44 |         let modelDim = Float(modelDim)
45 |
46 |         return Element(1 / sqrt(modelDim) * min(1 / sqrt(step), step * pow(warmupSteps, -1.5)))
   |                `- error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
47 |     }
48 | }
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:44:32: error: cannot find 'sysconf' in scope
 42 |     let bytes: UnsafeRawBufferPointer
 43 |
 44 |     private let pageSize = Int(sysconf(Int32(_SC_PAGESIZE)))
    |                                `- error: cannot find 'sysconf' in scope
 45 |     private var releasedUpTo = 0
 46 |
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:44:46: error: cannot find '_SC_PAGESIZE' in scope
 42 |     let bytes: UnsafeRawBufferPointer
 43 |
 44 |     private let pageSize = Int(sysconf(Int32(_SC_PAGESIZE)))
    |                                              `- error: cannot find '_SC_PAGESIZE' in scope
 45 |     private var releasedUpTo = 0
 46 |
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:52:24: error: cannot find 'open' in scope
 50 |     init(url: URL) throws {
 51 |         let descriptor = url.withUnsafeFileSystemRepresentation { path in
 52 |             path.map { open($0, O_RDONLY) } ?? -1
    |                        `- error: cannot find 'open' in scope
 53 |         }
 54 |         guard descriptor >= 0 else {
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:52:33: error: cannot find 'O_RDONLY' in scope
 50 |     init(url: URL) throws {
 51 |         let descriptor = url.withUnsafeFileSystemRepresentation { path in
 52 |             path.map { open($0, O_RDONLY) } ?? -1
    |                                 `- error: cannot find 'O_RDONLY' in scope
 53 |         }
 54 |         guard descriptor >= 0 else {
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:59:13: error: cannot find 'close' in scope
 57 |         // The mapping stays valid when the descriptor is closed.
 58 |         defer {
 59 |             close(descriptor)
    |             `- error: cannot find 'close' in scope
 60 |         }
 61 |
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:62:22: error: cannot find 'stat' in scope
 60 |         }
 61 |
 62 |         var status = stat()
    |                      `- error: cannot find 'stat' in scope
 63 |         guard fstat(descriptor, &status) == 0 else {
 64 |             throw MappedFile.lastError()
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:63:15: error: cannot find 'fstat' in scope
 61 |
 62 |         var status = stat()
 63 |         guard fstat(descriptor, &status) == 0 else {
    |               `- error: cannot find 'fstat' in scope
 64 |             throw MappedFile.lastError()
 65 |         }
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:73:49: error: cannot find 'mmap' in scope
 71 |         }
 72 |
 73 |         let address: UnsafeMutableRawPointer? = mmap(nil, size, PROT_READ, MAP_PRIVATE, descriptor, 0)
    |                                                 `- error: cannot find 'mmap' in scope
 74 |         guard let address, address != UnsafeMutableRawPointer(bitPattern: -1) else {
 75 |             throw MappedFile.lastError()
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:73:65: error: cannot find 'PROT_READ' in scope
 71 |         }
 72 |
 73 |         let address: UnsafeMutableRawPointer? = mmap(nil, size, PROT_READ, MAP_PRIVATE, descriptor, 0)
    |                                                                 `- error: cannot find 'PROT_READ' in scope
 74 |         guard let address, address != UnsafeMutableRawPointer(bitPattern: -1) else {
 75 |             throw MappedFile.lastError()
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:73:76: error: cannot find 'MAP_PRIVATE' in scope
 71 |         }
 72 |
 73 |         let address: UnsafeMutableRawPointer? = mmap(nil, size, PROT_READ, MAP_PRIVATE, descriptor, 0)
    |                                                                            `- error: cannot find 'MAP_PRIVATE' in scope
 74 |         guard let address, address != UnsafeMutableRawPointer(bitPattern: -1) else {
 75 |             throw MappedFile.lastError()
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:73:54: error: 'nil' requires a contextual type
 71 |         }
 72 |
 73 |         let address: UnsafeMutableRawPointer? = mmap(nil, size, PROT_READ, MAP_PRIVATE, descriptor, 0)
    |                                                      `- error: 'nil' requires a contextual type
 74 |         guard let address, address != UnsafeMutableRawPointer(bitPattern: -1) else {
 75 |             throw MappedFile.lastError()
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:77:9: error: cannot find 'madvise' in scope
 75 |             throw MappedFile.lastError()
 76 |         }
 77 |         madvise(address, size, MADV_SEQUENTIAL)
    |         `- error: cannot find 'madvise' in scope
 78 |         bytes = UnsafeRawBufferPointer(start: address, count: size)
 79 |     }
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:77:32: error: cannot find 'MADV_SEQUENTIAL' in scope
 75 |             throw MappedFile.lastError()
 76 |         }
 77 |         madvise(address, size, MADV_SEQUENTIAL)
    |                                `- error: cannot find 'MADV_SEQUENTIAL' in scope
 78 |         bytes = UnsafeRawBufferPointer(start: address, count: size)
 79 |     }
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:83:13: error: cannot find 'munmap' in scope
 81 |     deinit {
 82 |         if let address = bytes.baseAddress {
 83 |             munmap(UnsafeMutableRawPointer(mutating: address), bytes.count)
    |             `- error: cannot find 'munmap' in scope
 84 |         }
 85 |     }
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:99:9: error: cannot find 'madvise' in scope
 97 |             return
 98 |         }
 99 |         madvise(UnsafeMutableRawPointer(mutating: address + releasedUpTo), end - releasedUpTo, MADV_DONTNEED)
    |         `- error: cannot find 'madvise' in scope
100 |         releasedUpTo = end
101 |     }
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:99:96: error: cannot find 'MADV_DONTNEED' in scope
 97 |             return
 98 |         }
 99 |         madvise(UnsafeMutableRawPointer(mutating: address + releasedUpTo), end - releasedUpTo, MADV_DONTNEED)
    |                                                                                                `- error: cannot find 'MADV_DONTNEED' in scope
100 |         releasedUpTo = end
101 |     }
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:104:20: error: cannot find 'POSIXErrorCode' in scope
102 |
103 |     private static func lastError() -> POSIXError {
104 |         POSIXError(POSIXErrorCode(rawValue: errno) ?? .EIO)
    |                    `- error: cannot find 'POSIXErrorCode' in scope
105 |     }
106 | }
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:104:45: error: cannot find 'errno' in scope
102 |
103 |     private static func lastError() -> POSIXError {
104 |         POSIXError(POSIXErrorCode(rawValue: errno) ?? .EIO)
    |                                             `- error: cannot find 'errno' in scope
105 |     }
106 | }
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/DL4S/NN/Optimizer/LearningRate.swift:46:16: error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
44 |         let modelDim = Float(modelDim)
45 |
46 |         return Element(1 / sqrt(modelDim) * min(1 / sqrt(step), step * pow(warmupSteps, -1.5)))
   |                `- error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
47 |     }
48 | }
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:44:32: error: cannot find 'sysconf' in scope
 42 |     let bytes: UnsafeRawBufferPointer
 43 |
 44 |     private let pageSize = Int(sysconf(Int32(_SC_PAGESIZE)))
    |                                `- error: cannot find 'sysconf' in scope
 45 |     private var releasedUpTo = 0
 46 |
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:44:46: error: cannot find '_SC_PAGESIZE' in scope
 42 |     let bytes: UnsafeRawBufferPointer
 43 |
 44 |     private let pageSize = Int(sysconf(Int32(_SC_PAGESIZE)))
    |                                              `- error: cannot find '_SC_PAGESIZE' in scope
 45 |     private var releasedUpTo = 0
 46 |
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:52:24: error: cannot find 'open' in scope
 50 |     init(url: URL) throws {
 51 |         let descriptor = url.withUnsafeFileSystemRepresentation { path in
 52 |             path.map { open($0, O_RDONLY) } ?? -1
    |                        `- error: cannot find 'open' in scope
 53 |         }
 54 |         guard descriptor >= 0 else {
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:52:33: error: cannot find 'O_RDONLY' in scope
 50 |     init(url: URL) throws {
 51 |         let descriptor = url.withUnsafeFileSystemRepresentation { path in
 52 |             path.map { open($0, O_RDONLY) } ?? -1
    |                                 `- error: cannot find 'O_RDONLY' in scope
 53 |         }
 54 |         guard descriptor >= 0 else {
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:59:13: error: cannot find 'close' in scope
 57 |         // The mapping stays valid when the descriptor is closed.
 58 |         defer {
 59 |             close(descriptor)
    |             `- error: cannot find 'close' in scope
 60 |         }
 61 |
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:62:22: error: cannot find 'stat' in scope
 60 |         }
 61 |
 62 |         var status = stat()
    |                      `- error: cannot find 'stat' in scope
 63 |         guard fstat(descriptor, &status) == 0 else {
 64 |             throw MappedFile.lastError()
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:63:15: error: cannot find 'fstat' in scope
 61 |
 62 |         var status = stat()
 63 |         guard fstat(descriptor, &status) == 0 else {
    |               `- error: cannot find 'fstat' in scope
 64 |             throw MappedFile.lastError()
 65 |         }
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:73:49: error: cannot find 'mmap' in scope
 71 |         }
 72 |
 73 |         let address: UnsafeMutableRawPointer? = mmap(nil, size, PROT_READ, MAP_PRIVATE, descriptor, 0)
    |                                                 `- error: cannot find 'mmap' in scope
 74 |         guard let address, address != UnsafeMutableRawPointer(bitPattern: -1) else {
 75 |             throw MappedFile.lastError()
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:73:65: error: cannot find 'PROT_READ' in scope
 71 |         }
 72 |
 73 |         let address: UnsafeMutableRawPointer? = mmap(nil, size, PROT_READ, MAP_PRIVATE, descriptor, 0)
    |                                                                 `- error: cannot find 'PROT_READ' in scope
 74 |         guard let address, address != UnsafeMutableRawPointer(bitPattern: -1) else {
 75 |             throw MappedFile.lastError()
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:73:76: error: cannot find 'MAP_PRIVATE' in scope
 71 |         }
 72 |
 73 |         let address: UnsafeMutableRawPointer? = mmap(nil, size, PROT_READ, MAP_PRIVATE, descriptor, 0)
    |                                                                            `- error: cannot find 'MAP_PRIVATE' in scope
 74 |         guard let address, address != UnsafeMutableRawPointer(bitPattern: -1) else {
 75 |             throw MappedFile.lastError()
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:73:54: error: 'nil' requires a contextual type
 71 |         }
 72 |
 73 |         let address: UnsafeMutableRawPointer? = mmap(nil, size, PROT_READ, MAP_PRIVATE, descriptor, 0)
    |                                                      `- error: 'nil' requires a contextual type
 74 |         guard let address, address != UnsafeMutableRawPointer(bitPattern: -1) else {
 75 |             throw MappedFile.lastError()
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:77:9: error: cannot find 'madvise' in scope
 75 |             throw MappedFile.lastError()
 76 |         }
 77 |         madvise(address, size, MADV_SEQUENTIAL)
    |         `- error: cannot find 'madvise' in scope
 78 |         bytes = UnsafeRawBufferPointer(start: address, count: size)
 79 |     }
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:77:32: error: cannot find 'MADV_SEQUENTIAL' in scope
 75 |             throw MappedFile.lastError()
 76 |         }
 77 |         madvise(address, size, MADV_SEQUENTIAL)
    |                                `- error: cannot find 'MADV_SEQUENTIAL' in scope
 78 |         bytes = UnsafeRawBufferPointer(start: address, count: size)
 79 |     }
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:83:13: error: cannot find 'munmap' in scope
 81 |     deinit {
 82 |         if let address = bytes.baseAddress {
 83 |             munmap(UnsafeMutableRawPointer(mutating: address), bytes.count)
    |             `- error: cannot find 'munmap' in scope
 84 |         }
 85 |     }
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:99:9: error: cannot find 'madvise' in scope
 97 |             return
 98 |         }
 99 |         madvise(UnsafeMutableRawPointer(mutating: address + releasedUpTo), end - releasedUpTo, MADV_DONTNEED)
    |         `- error: cannot find 'madvise' in scope
100 |         releasedUpTo = end
101 |     }
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:99:96: error: cannot find 'MADV_DONTNEED' in scope
 97 |             return
 98 |         }
 99 |         madvise(UnsafeMutableRawPointer(mutating: address + releasedUpTo), end - releasedUpTo, MADV_DONTNEED)
    |                                                                                                `- error: cannot find 'MADV_DONTNEED' in scope
100 |         releasedUpTo = end
101 |     }
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:104:20: error: cannot find 'POSIXErrorCode' in scope
102 |
103 |     private static func lastError() -> POSIXError {
104 |         POSIXError(POSIXErrorCode(rawValue: errno) ?? .EIO)
    |                    `- error: cannot find 'POSIXErrorCode' in scope
105 |     }
106 | }
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:104:45: error: cannot find 'errno' in scope
102 |
103 |     private static func lastError() -> POSIXError {
104 |         POSIXError(POSIXErrorCode(rawValue: errno) ?? .EIO)
    |                                             `- error: cannot find 'errno' in scope
105 |     }
106 | }
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/DL4S/NN/Optimizer/LearningRate.swift:46:16: error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
44 |         let modelDim = Float(modelDim)
45 |
46 |         return Element(1 / sqrt(modelDim) * min(1 / sqrt(step), step * pow(warmupSteps, -1.5)))
   |                `- error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
47 |     }
48 | }
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:44:32: error: cannot find 'sysconf' in scope
 42 |     let bytes: UnsafeRawBufferPointer
 43 |
 44 |     private let pageSize = Int(sysconf(Int32(_SC_PAGESIZE)))
    |                                `- error: cannot find 'sysconf' in scope
 45 |     private var releasedUpTo = 0
 46 |
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:44:46: error: cannot find '_SC_PAGESIZE' in scope
 42 |     let bytes: UnsafeRawBufferPointer
 43 |
 44 |     private let pageSize = Int(sysconf(Int32(_SC_PAGESIZE)))
    |                                              `- error: cannot find '_SC_PAGESIZE' in scope
 45 |     private var releasedUpTo = 0
 46 |
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:52:24: error: cannot find 'open' in scope
 50 |     init(url: URL) throws {
 51 |         let descriptor = url.withUnsafeFileSystemRepresentation { path in
 52 |             path.map { open($0, O_RDONLY) } ?? -1
    |                        `- error: cannot find 'open' in scope
 53 |         }
 54 |         guard descriptor >= 0 else {
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:52:33: error: cannot find 'O_RDONLY' in scope
 50 |     init(url: URL) throws {
 51 |         let descriptor = url.withUnsafeFileSystemRepresentation { path in
 52 |             path.map { open($0, O_RDONLY) } ?? -1
    |                                 `- error: cannot find 'O_RDONLY' in scope
 53 |         }
 54 |         guard descriptor >= 0 else {
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:59:13: error: cannot find 'close' in scope
 57 |         // The mapping stays valid when the descriptor is closed.
 58 |         defer {
 59 |             close(descriptor)
    |             `- error: cannot find 'close' in scope
 60 |         }
 61 |
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:62:22: error: cannot find 'stat' in scope
 60 |         }
 61 |
 62 |         var status = stat()
    |                      `- error: cannot find 'stat' in scope
 63 |         guard fstat(descriptor, &status) == 0 else {
 64 |             throw MappedFile.lastError()
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:63:15: error: cannot find 'fstat' in scope
 61 |
 62 |         var status = stat()
 63 |         guard fstat(descriptor, &status) == 0 else {
    |               `- error: cannot find 'fstat' in scope
 64 |             throw MappedFile.lastError()
 65 |         }
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:73:49: error: cannot find 'mmap' in scope
 71 |         }
 72 |
 73 |         let address: UnsafeMutableRawPointer? = mmap(nil, size, PROT_READ, MAP_PRIVATE, descriptor, 0)
    |                                                 `- error: cannot find 'mmap' in scope
 74 |         guard let address, address != UnsafeMutableRawPointer(bitPattern: -1) else {
 75 |             throw MappedFile.lastError()
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:73:65: error: cannot find 'PROT_READ' in scope
 71 |         }
 72 |
 73 |         let address: UnsafeMutableRawPointer? = mmap(nil, size, PROT_READ, MAP_PRIVATE, descriptor, 0)
    |                                                                 `- error: cannot find 'PROT_READ' in scope
 74 |         guard let address, address != UnsafeMutableRawPointer(bitPattern: -1) else {
 75 |             throw MappedFile.lastError()
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:73:76: error: cannot find 'MAP_PRIVATE' in scope
 71 |         }
 72 |
 73 |         let address: UnsafeMutableRawPointer? = mmap(nil, size, PROT_READ, MAP_PRIVATE, descriptor, 0)
    |                                                                            `- error: cannot find 'MAP_PRIVATE' in scope
 74 |         guard let address, address != UnsafeMutableRawPointer(bitPattern: -1) else {
 75 |             throw MappedFile.lastError()
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:73:54: error: 'nil' requires a contextual type
 71 |         }
 72 |
 73 |         let address: UnsafeMutableRawPointer? = mmap(nil, size, PROT_READ, MAP_PRIVATE, descriptor, 0)
    |                                                      `- error: 'nil' requires a contextual type
 74 |         guard let address, address != UnsafeMutableRawPointer(bitPattern: -1) else {
 75 |             throw MappedFile.lastError()
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:77:9: error: cannot find 'madvise' in scope
 75 |             throw MappedFile.lastError()
 76 |         }
 77 |         madvise(address, size, MADV_SEQUENTIAL)
    |         `- error: cannot find 'madvise' in scope
 78 |         bytes = UnsafeRawBufferPointer(start: address, count: size)
 79 |     }
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:77:32: error: cannot find 'MADV_SEQUENTIAL' in scope
 75 |             throw MappedFile.lastError()
 76 |         }
 77 |         madvise(address, size, MADV_SEQUENTIAL)
    |                                `- error: cannot find 'MADV_SEQUENTIAL' in scope
 78 |         bytes = UnsafeRawBufferPointer(start: address, count: size)
 79 |     }
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:83:13: error: cannot find 'munmap' in scope
 81 |     deinit {
 82 |         if let address = bytes.baseAddress {
 83 |             munmap(UnsafeMutableRawPointer(mutating: address), bytes.count)
    |             `- error: cannot find 'munmap' in scope
 84 |         }
 85 |     }
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:99:9: error: cannot find 'madvise' in scope
 97 |             return
 98 |         }
 99 |         madvise(UnsafeMutableRawPointer(mutating: address + releasedUpTo), end - releasedUpTo, MADV_DONTNEED)
    |         `- error: cannot find 'madvise' in scope
100 |         releasedUpTo = end
101 |     }
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:99:96: error: cannot find 'MADV_DONTNEED' in scope
 97 |             return
 98 |         }
 99 |         madvise(UnsafeMutableRawPointer(mutating: address + releasedUpTo), end - releasedUpTo, MADV_DONTNEED)
    |                                                                                                `- error: cannot find 'MADV_DONTNEED' in scope
100 |         releasedUpTo = end
101 |     }
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:104:20: error: cannot find 'POSIXErrorCode' in scope
102 |
103 |     private static func lastError() -> POSIXError {
104 |         POSIXError(POSIXErrorCode(rawValue: errno) ?? .EIO)
    |                    `- error: cannot find 'POSIXErrorCode' in scope
105 |     }
106 | }
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:104:45: error: cannot find 'errno' in scope
102 |
103 |     private static func lastError() -> POSIXError {
104 |         POSIXError(POSIXErrorCode(rawValue: errno) ?? .EIO)
    |                                             `- error: cannot find 'errno' in scope
105 |     }
106 | }
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/DL4S/NN/Optimizer/LearningRate.swift:46:16: error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
44 |         let modelDim = Float(modelDim)
45 |
46 |         return Element(1 / sqrt(modelDim) * min(1 / sqrt(step), step * pow(warmupSteps, -1.5)))
   |                `- error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
47 |     }
48 | }
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:44:32: error: cannot find 'sysconf' in scope
 42 |     let bytes: UnsafeRawBufferPointer
 43 |
 44 |     private let pageSize = Int(sysconf(Int32(_SC_PAGESIZE)))
    |                                `- error: cannot find 'sysconf' in scope
 45 |     private var releasedUpTo = 0
 46 |
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:44:46: error: cannot find '_SC_PAGESIZE' in scope
 42 |     let bytes: UnsafeRawBufferPointer
 43 |
 44 |     private let pageSize = Int(sysconf(Int32(_SC_PAGESIZE)))
    |                                              `- error: cannot find '_SC_PAGESIZE' in scope
 45 |     private var releasedUpTo = 0
 46 |
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:52:24: error: cannot find 'open' in scope
 50 |     init(url: URL) throws {
 51 |         let descriptor = url.withUnsafeFileSystemRepresentation { path in
 52 |             path.map { open($0, O_RDONLY) } ?? -1
    |                        `- error: cannot find 'open' in scope
 53 |         }
 54 |         guard descriptor >= 0 else {
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:52:33: error: cannot find 'O_RDONLY' in scope
 50 |     init(url: URL) throws {
 51 |         let descriptor = url.withUnsafeFileSystemRepresentation { path in
 52 |             path.map { open($0, O_RDONLY) } ?? -1
    |                                 `- error: cannot find 'O_RDONLY' in scope
 53 |         }
 54 |         guard descriptor >= 0 else {
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:59:13: error: cannot find 'close' in scope
 57 |         // The mapping stays valid when the descriptor is closed.
 58 |         defer {
 59 |             close(descriptor)
    |             `- error: cannot find 'close' in scope
 60 |         }
 61 |
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:62:22: error: cannot find 'stat' in scope
 60 |         }
 61 |
 62 |         var status = stat()
    |                      `- error: cannot find 'stat' in scope
 63 |         guard fstat(descriptor, &status) == 0 else {
 64 |             throw MappedFile.lastError()
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:63:15: error: cannot find 'fstat' in scope
 61 |
 62 |         var status = stat()
 63 |         guard fstat(descriptor, &status) == 0 else {
    |               `- error: cannot find 'fstat' in scope
 64 |             throw MappedFile.lastError()
 65 |         }
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:73:49: error: cannot find 'mmap' in scope
 71 |         }
 72 |
 73 |         let address: UnsafeMutableRawPointer? = mmap(nil, size, PROT_READ, MAP_PRIVATE, descriptor, 0)
    |                                                 `- error: cannot find 'mmap' in scope
 74 |         guard let address, address != UnsafeMutableRawPointer(bitPattern: -1) else {
 75 |             throw MappedFile.lastError()
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:73:65: error: cannot find 'PROT_READ' in scope
 71 |         }
 72 |
 73 |         let address: UnsafeMutableRawPointer? = mmap(nil, size, PROT_READ, MAP_PRIVATE, descriptor, 0)
    |                                                                 `- error: cannot find 'PROT_READ' in scope
 74 |         guard let address, address != UnsafeMutableRawPointer(bitPattern: -1) else {
 75 |             throw MappedFile.lastError()
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:73:76: error: cannot find 'MAP_PRIVATE' in scope
 71 |         }
 72 |
 73 |         let address: UnsafeMutableRawPointer? = mmap(nil, size, PROT_READ, MAP_PRIVATE, descriptor, 0)
    |                                                                            `- error: cannot find 'MAP_PRIVATE' in scope
 74 |         guard let address, address != UnsafeMutableRawPointer(bitPattern: -1) else {
 75 |             throw MappedFile.lastError()
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:73:54: error: 'nil' requires a contextual type
 71 |         }
 72 |
 73 |         let address: UnsafeMutableRawPointer? = mmap(nil, size, PROT_READ, MAP_PRIVATE, descriptor, 0)
    |                                                      `- error: 'nil' requires a contextual type
 74 |         guard let address, address != UnsafeMutableRawPointer(bitPattern: -1) else {
 75 |             throw MappedFile.lastError()
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:77:9: error: cannot find 'madvise' in scope
 75 |             throw MappedFile.lastError()
 76 |         }
 77 |         madvise(address, size, MADV_SEQUENTIAL)
    |         `- error: cannot find 'madvise' in scope
 78 |         bytes = UnsafeRawBufferPointer(start: address, count: size)
 79 |     }
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:77:32: error: cannot find 'MADV_SEQUENTIAL' in scope
 75 |             throw MappedFile.lastError()
 76 |         }
 77 |         madvise(address, size, MADV_SEQUENTIAL)
    |                                `- error: cannot find 'MADV_SEQUENTIAL' in scope
 78 |         bytes = UnsafeRawBufferPointer(start: address, count: size)
 79 |     }
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:83:13: error: cannot find 'munmap' in scope
 81 |     deinit {
 82 |         if let address = bytes.baseAddress {
 83 |             munmap(UnsafeMutableRawPointer(mutating: address), bytes.count)
    |             `- error: cannot find 'munmap' in scope
 84 |         }
 85 |     }
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:99:9: error: cannot find 'madvise' in scope
 97 |             return
 98 |         }
 99 |         madvise(UnsafeMutableRawPointer(mutating: address + releasedUpTo), end - releasedUpTo, MADV_DONTNEED)
    |         `- error: cannot find 'madvise' in scope
100 |         releasedUpTo = end
101 |     }
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:99:96: error: cannot find 'MADV_DONTNEED' in scope
 97 |             return
 98 |         }
 99 |         madvise(UnsafeMutableRawPointer(mutating: address + releasedUpTo), end - releasedUpTo, MADV_DONTNEED)
    |                                                                                                `- error: cannot find 'MADV_DONTNEED' in scope
100 |         releasedUpTo = end
101 |     }
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:104:20: error: cannot find 'POSIXErrorCode' in scope
102 |
103 |     private static func lastError() -> POSIXError {
104 |         POSIXError(POSIXErrorCode(rawValue: errno) ?? .EIO)
    |                    `- error: cannot find 'POSIXErrorCode' in scope
105 |     }
106 | }
/host/spi-builder-workspace/Sources/DL4S/NN/Serialization/MappedFile.swift:104:45: error: cannot find 'errno' in scope
102 |
103 |     private static func lastError() -> POSIXError {
104 |         POSIXError(POSIXErrorCode(rawValue: errno) ?? .EIO)
    |                                             `- error: cannot find 'errno' in scope
105 |     }
106 | }
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
BUILD FAILURE 6.3 android