Build Information
Failed to build swift-android-native, reference 1.4.3 (8bfa63
), with Swift 6.1 for Wasm on 31 May 2025 00:55:23 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/skiptools/swift-android-native.git
Reference: 1.4.3
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: git branch -m <name>
From https://github.com/skiptools/swift-android-native
* tag 1.4.3 -> FETCH_HEAD
HEAD is now at 8bfa631
Cloned https://github.com/skiptools/swift-android-native.git
Revision (git rev-parse @):
8bfa631886b4dd1f9e3fc3f43d653a71b6d19295
SUCCESS checkout https://github.com/skiptools/swift-android-native.git at 1.4.3
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.1
Building package at path: $PWD
https://github.com/skiptools/swift-android-native.git
https://github.com/skiptools/swift-android-native.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"dependencies" : [
{
"identity" : "swift-jni",
"requirement" : {
"range" : [
{
"lower_bound" : "0.0.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://source.skip.tools/swift-jni.git"
}
],
"manifest_display_name" : "swift-android-native",
"name" : "swift-android-native",
"path" : "/host/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "AndroidNative",
"targets" : [
"AndroidNative"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "AndroidContext",
"targets" : [
"AndroidContext"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "AndroidAssetManager",
"targets" : [
"AndroidAssetManager"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "AndroidLogging",
"targets" : [
"AndroidLogging"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "AndroidLooper",
"targets" : [
"AndroidLooper"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "AndroidChoreographer",
"targets" : [
"AndroidLooper"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "ConcurrencyRuntimeC",
"module_type" : "ClangTarget",
"name" : "ConcurrencyRuntimeC",
"path" : "Sources/ConcurrencyRuntimeC",
"product_memberships" : [
"AndroidNative",
"AndroidLooper",
"AndroidChoreographer"
],
"sources" : [
"src.c"
],
"type" : "library"
},
{
"c99name" : "AndroidSystemTests",
"module_type" : "SwiftTarget",
"name" : "AndroidSystemTests",
"path" : "Tests/AndroidSystemTests",
"sources" : [
"AndroidSystemTests.swift"
],
"target_dependencies" : [
"AndroidSystem"
],
"type" : "test"
},
{
"c99name" : "AndroidSystem",
"module_type" : "SwiftTarget",
"name" : "AndroidSystem",
"path" : "Sources/AndroidSystem",
"product_memberships" : [
"AndroidNative",
"AndroidLooper",
"AndroidChoreographer"
],
"sources" : [
"Errno.swift",
"ErrnoWindows.swift",
"FileDescriptor.swift",
"FileHelpers.swift",
"FileOperations.swift",
"FilePath/FilePath.swift",
"FilePath/FilePathComponentView.swift",
"FilePath/FilePathComponents.swift",
"FilePath/FilePathParsing.swift",
"FilePath/FilePathString.swift",
"FilePath/FilePathSyntax.swift",
"FilePath/FilePathTemp.swift",
"FilePath/FilePathTempPosix.swift",
"FilePath/FilePathTempWindows.swift",
"FilePath/FilePathWindows.swift",
"FilePermissions.swift",
"Internals/Backcompat.swift",
"Internals/CInterop.swift",
"Internals/Constants.swift",
"Internals/Exports.swift",
"Internals/Mocking.swift",
"Internals/RawBuffer.swift",
"Internals/Syscalls.swift",
"Internals/WindowsSyscallAdapters.swift",
"LockedState.swift",
"MachPort.swift",
"PlatformString.swift",
"SystemString.swift",
"Util+StringArray.swift",
"Util.swift",
"UtilConsumers.swift"
],
"target_dependencies" : [
"AndroidNDK"
],
"type" : "library"
},
{
"c99name" : "AndroidNativeTests",
"module_type" : "SwiftTarget",
"name" : "AndroidNativeTests",
"path" : "Tests/AndroidNativeTests",
"resources" : [
{
"path" : "/host/spi-builder-workspace/Tests/AndroidNativeTests/Resources/sample_resource.txt",
"rule" : {
"embed_in_code" : {
}
}
}
],
"sources" : [
"AndroidNativeTests.swift"
],
"target_dependencies" : [
"AndroidNative"
],
"type" : "test"
},
{
"c99name" : "AndroidNative",
"module_type" : "SwiftTarget",
"name" : "AndroidNative",
"path" : "Sources/AndroidNative",
"product_memberships" : [
"AndroidNative"
],
"sources" : [
"AndroidNative.swift"
],
"target_dependencies" : [
"AndroidContext",
"AndroidLogging",
"AndroidLooper",
"AndroidChoreographer"
],
"type" : "library"
},
{
"c99name" : "AndroidNDK",
"module_type" : "ClangTarget",
"name" : "AndroidNDK",
"path" : "Sources/AndroidNDK",
"product_memberships" : [
"AndroidNative",
"AndroidContext",
"AndroidAssetManager",
"AndroidLogging",
"AndroidLooper",
"AndroidChoreographer"
],
"sources" : [
"src.c"
],
"type" : "library"
},
{
"c99name" : "AndroidLooperTests",
"module_type" : "SwiftTarget",
"name" : "AndroidLooperTests",
"path" : "Tests/AndroidLooperTests",
"sources" : [
"AndroidLooperTests.swift"
],
"target_dependencies" : [
"AndroidLooper"
],
"type" : "test"
},
{
"c99name" : "AndroidLooper",
"module_type" : "SwiftTarget",
"name" : "AndroidLooper",
"path" : "Sources/AndroidLooper",
"product_memberships" : [
"AndroidNative",
"AndroidLooper",
"AndroidChoreographer"
],
"sources" : [
"AndroidLooper.swift"
],
"target_dependencies" : [
"AndroidSystem",
"AndroidLogging",
"ConcurrencyRuntimeC"
],
"type" : "library"
},
{
"c99name" : "AndroidLoggingTests",
"module_type" : "SwiftTarget",
"name" : "AndroidLoggingTests",
"path" : "Tests/AndroidLoggingTests",
"sources" : [
"AndroidLoggingTests.swift"
],
"target_dependencies" : [
"AndroidLogging"
],
"type" : "test"
},
{
"c99name" : "AndroidLogging",
"module_type" : "SwiftTarget",
"name" : "AndroidLogging",
"path" : "Sources/AndroidLogging",
"product_memberships" : [
"AndroidNative",
"AndroidLogging",
"AndroidLooper",
"AndroidChoreographer"
],
"sources" : [
"AndroidLogging.swift"
],
"target_dependencies" : [
"AndroidNDK"
],
"type" : "library"
},
{
"c99name" : "AndroidContextTests",
"module_type" : "SwiftTarget",
"name" : "AndroidContextTests",
"path" : "Tests/AndroidContextTests",
"sources" : [
"AndroidContextTests.swift"
],
"target_dependencies" : [
"AndroidContext"
],
"type" : "test"
},
{
"c99name" : "AndroidContext",
"module_type" : "SwiftTarget",
"name" : "AndroidContext",
"path" : "Sources/AndroidContext",
"product_memberships" : [
"AndroidNative",
"AndroidContext"
],
"sources" : [
"AndroidContext.swift"
],
"target_dependencies" : [
"AndroidAssetManager",
"AndroidNDK"
],
"type" : "library"
},
{
"c99name" : "AndroidChoreographerTests",
"module_type" : "SwiftTarget",
"name" : "AndroidChoreographerTests",
"path" : "Tests/AndroidChoreographerTests",
"sources" : [
"AndroidChoreographerTests.swift"
],
"target_dependencies" : [
"AndroidChoreographer"
],
"type" : "test"
},
{
"c99name" : "AndroidChoreographer",
"module_type" : "SwiftTarget",
"name" : "AndroidChoreographer",
"path" : "Sources/AndroidChoreographer",
"product_memberships" : [
"AndroidNative"
],
"sources" : [
"AndroidChoreographer.swift"
],
"target_dependencies" : [
"AndroidSystem",
"AndroidLogging"
],
"type" : "library"
},
{
"c99name" : "AndroidAssetManagerTests",
"module_type" : "SwiftTarget",
"name" : "AndroidAssetManagerTests",
"path" : "Tests/AndroidAssetManagerTests",
"sources" : [
"AndroidAssetManagerTests.swift"
],
"target_dependencies" : [
"AndroidAssetManager"
],
"type" : "test"
},
{
"c99name" : "AndroidAssetManager",
"module_type" : "SwiftTarget",
"name" : "AndroidAssetManager",
"path" : "Sources/AndroidAssetManager",
"product_dependencies" : [
"SwiftJNI"
],
"product_memberships" : [
"AndroidNative",
"AndroidContext",
"AndroidAssetManager"
],
"sources" : [
"AndroidAssetManager.swift"
],
"target_dependencies" : [
"AndroidNDK"
],
"type" : "library"
}
],
"tools_version" : "5.9"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
Fetching https://source.skip.tools/swift-jni.git
[1/105] Fetching swift-jni
Fetched https://source.skip.tools/swift-jni.git from cache (0.88s)
Computing version for https://source.skip.tools/swift-jni.git
Computed https://source.skip.tools/swift-jni.git at 0.2.1 (1.70s)
Creating working copy for https://source.skip.tools/swift-jni.git
Working copy of https://source.skip.tools/swift-jni.git resolved at 0.2.1
Building for debugging...
[0/14] Write sources
[8/14] Compiling CJNI cjni.c
[9/14] Compiling ConcurrencyRuntimeC src.c
[10/14] Write swift-version-24593BA9C3E375BF.txt
[12/47] Compiling AndroidSystem FilePathParsing.swift
[13/47] Compiling AndroidSystem FilePathString.swift
[14/47] Compiling AndroidSystem FilePathSyntax.swift
[15/47] Compiling AndroidSystem FilePathTemp.swift
[16/47] Compiling AndroidSystem FilePathTempPosix.swift
/host/spi-builder-workspace/Sources/AndroidSystem/Internals/Syscalls.swift:197:57: error: cannot find type 'DIR' in scope
195 | internal typealias system_DIRPtr = OpaquePointer
196 | #else
197 | internal typealias system_DIRPtr = UnsafeMutablePointer<DIR>
| `- error: cannot find type 'DIR' in scope
198 | #endif
199 |
/host/spi-builder-workspace/Sources/AndroidSystem/Internals/Syscalls.swift:192:30: error: cannot find 'DT_DIR' in scope
190 | #if !os(Windows)
191 | internal let SYSTEM_AT_REMOVE_DIR = AT_REMOVEDIR
192 | internal let SYSTEM_DT_DIR = DT_DIR
| `- error: cannot find 'DT_DIR' in scope
193 | internal typealias system_dirent = dirent
194 | #if os(Linux) || os(Android)
[17/47] Compiling AndroidSystem FilePathTempWindows.swift
/host/spi-builder-workspace/Sources/AndroidSystem/Internals/Syscalls.swift:197:57: error: cannot find type 'DIR' in scope
195 | internal typealias system_DIRPtr = OpaquePointer
196 | #else
197 | internal typealias system_DIRPtr = UnsafeMutablePointer<DIR>
| `- error: cannot find type 'DIR' in scope
198 | #endif
199 |
/host/spi-builder-workspace/Sources/AndroidSystem/Internals/Syscalls.swift:192:30: error: cannot find 'DT_DIR' in scope
190 | #if !os(Windows)
191 | internal let SYSTEM_AT_REMOVE_DIR = AT_REMOVEDIR
192 | internal let SYSTEM_DT_DIR = DT_DIR
| `- error: cannot find 'DT_DIR' in scope
193 | internal typealias system_dirent = dirent
194 | #if os(Linux) || os(Android)
[18/47] Compiling AndroidSystem FilePathWindows.swift
/host/spi-builder-workspace/Sources/AndroidSystem/Internals/Syscalls.swift:197:57: error: cannot find type 'DIR' in scope
195 | internal typealias system_DIRPtr = OpaquePointer
196 | #else
197 | internal typealias system_DIRPtr = UnsafeMutablePointer<DIR>
| `- error: cannot find type 'DIR' in scope
198 | #endif
199 |
/host/spi-builder-workspace/Sources/AndroidSystem/Internals/Syscalls.swift:192:30: error: cannot find 'DT_DIR' in scope
190 | #if !os(Windows)
191 | internal let SYSTEM_AT_REMOVE_DIR = AT_REMOVEDIR
192 | internal let SYSTEM_DT_DIR = DT_DIR
| `- error: cannot find 'DT_DIR' in scope
193 | internal typealias system_dirent = dirent
194 | #if os(Linux) || os(Android)
[19/47] Compiling AndroidSystem FilePermissions.swift
/host/spi-builder-workspace/Sources/AndroidSystem/Internals/Syscalls.swift:197:57: error: cannot find type 'DIR' in scope
195 | internal typealias system_DIRPtr = OpaquePointer
196 | #else
197 | internal typealias system_DIRPtr = UnsafeMutablePointer<DIR>
| `- error: cannot find type 'DIR' in scope
198 | #endif
199 |
/host/spi-builder-workspace/Sources/AndroidSystem/Internals/Syscalls.swift:192:30: error: cannot find 'DT_DIR' in scope
190 | #if !os(Windows)
191 | internal let SYSTEM_AT_REMOVE_DIR = AT_REMOVEDIR
192 | internal let SYSTEM_DT_DIR = DT_DIR
| `- error: cannot find 'DT_DIR' in scope
193 | internal typealias system_dirent = dirent
194 | #if os(Linux) || os(Android)
error: emit-module command failed with exit code 1 (use -v to see invocation)
[20/50] Emitting module AndroidSystem
/host/spi-builder-workspace/Sources/AndroidSystem/Internals/Syscalls.swift:197:57: error: cannot find type 'DIR' in scope
195 | internal typealias system_DIRPtr = OpaquePointer
196 | #else
197 | internal typealias system_DIRPtr = UnsafeMutablePointer<DIR>
| `- error: cannot find type 'DIR' in scope
198 | #endif
199 |
/host/spi-builder-workspace/Sources/AndroidSystem/Internals/Constants.swift:148:3: error: cannot find '_getConst_EWOULDBLOCK' in scope
146 | internal var _EWOULDBLOCK: CInt {
147 | #if os(WASI)
148 | _getConst_EWOULDBLOCK()
| `- error: cannot find '_getConst_EWOULDBLOCK' in scope
149 | #else
150 | EWOULDBLOCK
/host/spi-builder-workspace/Sources/AndroidSystem/Internals/Constants.swift:452:3: error: cannot find '_getConst_EOPNOTSUPP' in scope
450 | internal var _EOPNOTSUPP: CInt {
451 | #if os(WASI)
452 | _getConst_EOPNOTSUPP()
| `- error: cannot find '_getConst_EOPNOTSUPP' in scope
453 | #else
454 | EOPNOTSUPP
/host/spi-builder-workspace/Sources/AndroidSystem/Internals/Constants.swift:498:3: error: cannot find '_getConst_O_ACCMODE' in scope
496 | internal var _O_ACCMODE: CInt {
497 | #if os(WASI)
498 | _getConst_O_ACCMODE()
| `- error: cannot find '_getConst_O_ACCMODE' in scope
499 | #else
500 | O_ACCMODE
/host/spi-builder-workspace/Sources/AndroidSystem/Internals/Constants.swift:508:3: error: cannot find '_getConst_O_NONBLOCK' in scope
506 | internal var _O_NONBLOCK: CInt {
507 | #if os(WASI)
508 | _getConst_O_NONBLOCK()
| `- error: cannot find '_getConst_O_NONBLOCK' in scope
509 | #else
510 | O_NONBLOCK
/host/spi-builder-workspace/Sources/AndroidSystem/Internals/Constants.swift:518:3: error: cannot find '_getConst_O_APPEND' in scope
516 | internal var _O_APPEND: CInt {
517 | #if os(WASI)
518 | _getConst_O_APPEND()
| `- error: cannot find '_getConst_O_APPEND' in scope
519 | #else
520 | O_APPEND
/host/spi-builder-workspace/Sources/AndroidSystem/Internals/Constants.swift:546:3: error: cannot find '_getConst_O_CREAT' in scope
544 | internal var _O_CREAT: CInt {
545 | #if os(WASI)
546 | _getConst_O_CREAT()
| `- error: cannot find '_getConst_O_CREAT' in scope
547 | #else
548 | O_CREAT
/host/spi-builder-workspace/Sources/AndroidSystem/Internals/Constants.swift:555:3: error: cannot find '_getConst_O_TRUNC' in scope
553 | internal var _O_TRUNC: CInt {
554 | #if os(WASI)
555 | _getConst_O_TRUNC()
| `- error: cannot find '_getConst_O_TRUNC' in scope
556 | #else
557 | O_TRUNC
/host/spi-builder-workspace/Sources/AndroidSystem/Internals/Constants.swift:564:3: error: cannot find '_getConst_O_EXCL' in scope
562 | internal var _O_EXCL: CInt {
563 | #if os(WASI)
564 | _getConst_O_EXCL()
| `- error: cannot find '_getConst_O_EXCL' in scope
565 | #else
566 | O_EXCL
/host/spi-builder-workspace/Sources/AndroidSystem/Internals/Constants.swift:583:3: error: cannot find '_getConst_O_DIRECTORY' in scope
581 | internal var _O_DIRECTORY: CInt {
582 | #if os(WASI)
583 | _getConst_O_DIRECTORY()
| `- error: cannot find '_getConst_O_DIRECTORY' in scope
584 | #else
585 | O_DIRECTORY
/host/spi-builder-workspace/Sources/AndroidSystem/Internals/Syscalls.swift:192:30: error: cannot find 'DT_DIR' in scope
190 | #if !os(Windows)
191 | internal let SYSTEM_AT_REMOVE_DIR = AT_REMOVEDIR
192 | internal let SYSTEM_DT_DIR = DT_DIR
| `- error: cannot find 'DT_DIR' in scope
193 | internal typealias system_dirent = dirent
194 | #if os(Linux) || os(Android)
/host/spi-builder-workspace/Sources/AndroidSystem/LockedState.swift:31:34: warning: UnsafeMutablePointer<Void> has been replaced by UnsafeMutableRawPointer
29 | #endif
30 |
31 | typealias PlatformLock = UnsafeMutablePointer<Primitive>
| `- warning: UnsafeMutablePointer<Void> has been replaced by UnsafeMutableRawPointer
32 | var _platformLock: PlatformLock
33 |
[21/50] Compiling AndroidSystem Errno.swift
[22/50] Compiling AndroidSystem ErrnoWindows.swift
[23/50] Compiling AndroidSystem FileDescriptor.swift
[24/50] Compiling AndroidSystem FileHelpers.swift
[25/50] Emitting module AndroidLogging
/host/spi-builder-workspace/Sources/AndroidLogging/AndroidLogging.swift:147:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'OSLogType' may have shared mutable state; this is an error in the Swift 6 language mode
132 | // public static let dynamicStackTracing: OSLog.Category
133 | //}
134 | public struct OSLogType : Equatable, RawRepresentable {
| `- note: consider making struct 'OSLogType' conform to the 'Sendable' protocol
135 | public let rawValue: UInt8
136 |
:
145 |
146 | extension OSLogType {
147 | public static let `default`: OSLogType = OSLogType(0x00)
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'OSLogType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
148 | public static let info: OSLogType = OSLogType(0x01)
149 | public static let debug: OSLogType = OSLogType(0x02)
/host/spi-builder-workspace/Sources/AndroidLogging/AndroidLogging.swift:148:23: warning: static property 'info' is not concurrency-safe because non-'Sendable' type 'OSLogType' may have shared mutable state; this is an error in the Swift 6 language mode
132 | // public static let dynamicStackTracing: OSLog.Category
133 | //}
134 | public struct OSLogType : Equatable, RawRepresentable {
| `- note: consider making struct 'OSLogType' conform to the 'Sendable' protocol
135 | public let rawValue: UInt8
136 |
:
146 | extension OSLogType {
147 | public static let `default`: OSLogType = OSLogType(0x00)
148 | public static let info: OSLogType = OSLogType(0x01)
| |- warning: static property 'info' is not concurrency-safe because non-'Sendable' type 'OSLogType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'info' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
149 | public static let debug: OSLogType = OSLogType(0x02)
150 | public static let error: OSLogType = OSLogType(0x10)
/host/spi-builder-workspace/Sources/AndroidLogging/AndroidLogging.swift:149:23: warning: static property 'debug' is not concurrency-safe because non-'Sendable' type 'OSLogType' may have shared mutable state; this is an error in the Swift 6 language mode
132 | // public static let dynamicStackTracing: OSLog.Category
133 | //}
134 | public struct OSLogType : Equatable, RawRepresentable {
| `- note: consider making struct 'OSLogType' conform to the 'Sendable' protocol
135 | public let rawValue: UInt8
136 |
:
147 | public static let `default`: OSLogType = OSLogType(0x00)
148 | public static let info: OSLogType = OSLogType(0x01)
149 | public static let debug: OSLogType = OSLogType(0x02)
| |- warning: static property 'debug' is not concurrency-safe because non-'Sendable' type 'OSLogType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'debug' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
150 | public static let error: OSLogType = OSLogType(0x10)
151 | public static let fault: OSLogType = OSLogType(0x11)
/host/spi-builder-workspace/Sources/AndroidLogging/AndroidLogging.swift:150:23: warning: static property 'error' is not concurrency-safe because non-'Sendable' type 'OSLogType' may have shared mutable state; this is an error in the Swift 6 language mode
132 | // public static let dynamicStackTracing: OSLog.Category
133 | //}
134 | public struct OSLogType : Equatable, RawRepresentable {
| `- note: consider making struct 'OSLogType' conform to the 'Sendable' protocol
135 | public let rawValue: UInt8
136 |
:
148 | public static let info: OSLogType = OSLogType(0x01)
149 | public static let debug: OSLogType = OSLogType(0x02)
150 | public static let error: OSLogType = OSLogType(0x10)
| |- warning: static property 'error' is not concurrency-safe because non-'Sendable' type 'OSLogType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'error' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
151 | public static let fault: OSLogType = OSLogType(0x11)
152 | }
/host/spi-builder-workspace/Sources/AndroidLogging/AndroidLogging.swift:151:23: warning: static property 'fault' is not concurrency-safe because non-'Sendable' type 'OSLogType' may have shared mutable state; this is an error in the Swift 6 language mode
132 | // public static let dynamicStackTracing: OSLog.Category
133 | //}
134 | public struct OSLogType : Equatable, RawRepresentable {
| `- note: consider making struct 'OSLogType' conform to the 'Sendable' protocol
135 | public let rawValue: UInt8
136 |
:
149 | public static let debug: OSLogType = OSLogType(0x02)
150 | public static let error: OSLogType = OSLogType(0x10)
151 | public static let fault: OSLogType = OSLogType(0x11)
| |- warning: static property 'fault' is not concurrency-safe because non-'Sendable' type 'OSLogType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'fault' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
152 | }
153 | #endif
[26/50] Compiling AndroidLogging AndroidLogging.swift
/host/spi-builder-workspace/Sources/AndroidLogging/AndroidLogging.swift:147:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'OSLogType' may have shared mutable state; this is an error in the Swift 6 language mode
132 | // public static let dynamicStackTracing: OSLog.Category
133 | //}
134 | public struct OSLogType : Equatable, RawRepresentable {
| `- note: consider making struct 'OSLogType' conform to the 'Sendable' protocol
135 | public let rawValue: UInt8
136 |
:
145 |
146 | extension OSLogType {
147 | public static let `default`: OSLogType = OSLogType(0x00)
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'OSLogType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
148 | public static let info: OSLogType = OSLogType(0x01)
149 | public static let debug: OSLogType = OSLogType(0x02)
/host/spi-builder-workspace/Sources/AndroidLogging/AndroidLogging.swift:148:23: warning: static property 'info' is not concurrency-safe because non-'Sendable' type 'OSLogType' may have shared mutable state; this is an error in the Swift 6 language mode
132 | // public static let dynamicStackTracing: OSLog.Category
133 | //}
134 | public struct OSLogType : Equatable, RawRepresentable {
| `- note: consider making struct 'OSLogType' conform to the 'Sendable' protocol
135 | public let rawValue: UInt8
136 |
:
146 | extension OSLogType {
147 | public static let `default`: OSLogType = OSLogType(0x00)
148 | public static let info: OSLogType = OSLogType(0x01)
| |- warning: static property 'info' is not concurrency-safe because non-'Sendable' type 'OSLogType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'info' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
149 | public static let debug: OSLogType = OSLogType(0x02)
150 | public static let error: OSLogType = OSLogType(0x10)
/host/spi-builder-workspace/Sources/AndroidLogging/AndroidLogging.swift:149:23: warning: static property 'debug' is not concurrency-safe because non-'Sendable' type 'OSLogType' may have shared mutable state; this is an error in the Swift 6 language mode
132 | // public static let dynamicStackTracing: OSLog.Category
133 | //}
134 | public struct OSLogType : Equatable, RawRepresentable {
| `- note: consider making struct 'OSLogType' conform to the 'Sendable' protocol
135 | public let rawValue: UInt8
136 |
:
147 | public static let `default`: OSLogType = OSLogType(0x00)
148 | public static let info: OSLogType = OSLogType(0x01)
149 | public static let debug: OSLogType = OSLogType(0x02)
| |- warning: static property 'debug' is not concurrency-safe because non-'Sendable' type 'OSLogType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'debug' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
150 | public static let error: OSLogType = OSLogType(0x10)
151 | public static let fault: OSLogType = OSLogType(0x11)
/host/spi-builder-workspace/Sources/AndroidLogging/AndroidLogging.swift:150:23: warning: static property 'error' is not concurrency-safe because non-'Sendable' type 'OSLogType' may have shared mutable state; this is an error in the Swift 6 language mode
132 | // public static let dynamicStackTracing: OSLog.Category
133 | //}
134 | public struct OSLogType : Equatable, RawRepresentable {
| `- note: consider making struct 'OSLogType' conform to the 'Sendable' protocol
135 | public let rawValue: UInt8
136 |
:
148 | public static let info: OSLogType = OSLogType(0x01)
149 | public static let debug: OSLogType = OSLogType(0x02)
150 | public static let error: OSLogType = OSLogType(0x10)
| |- warning: static property 'error' is not concurrency-safe because non-'Sendable' type 'OSLogType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'error' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
151 | public static let fault: OSLogType = OSLogType(0x11)
152 | }
/host/spi-builder-workspace/Sources/AndroidLogging/AndroidLogging.swift:151:23: warning: static property 'fault' is not concurrency-safe because non-'Sendable' type 'OSLogType' may have shared mutable state; this is an error in the Swift 6 language mode
132 | // public static let dynamicStackTracing: OSLog.Category
133 | //}
134 | public struct OSLogType : Equatable, RawRepresentable {
| `- note: consider making struct 'OSLogType' conform to the 'Sendable' protocol
135 | public let rawValue: UInt8
136 |
:
149 | public static let debug: OSLogType = OSLogType(0x02)
150 | public static let error: OSLogType = OSLogType(0x10)
151 | public static let fault: OSLogType = OSLogType(0x11)
| |- warning: static property 'fault' is not concurrency-safe because non-'Sendable' type 'OSLogType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'fault' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
152 | }
153 | #endif
[27/51] Compiling AndroidSystem FileOperations.swift
[28/51] Compiling AndroidSystem FilePath.swift
[29/51] Compiling AndroidSystem FilePathComponentView.swift
[30/51] Compiling AndroidSystem FilePathComponents.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[32/51] Emitting module SwiftJNI
/host/spi-builder-workspace/.build/checkouts/swift-jni/Sources/SwiftJNI/SwiftJNI.swift:1143:23: error: cannot find 'dlopen' in scope
1141 | for libname in [nil, "libnativehelper.so", "libart.so", "libdvm.so"] {
1142 | // Windows TODO: need to use LoadLibraryW (see https://github.com/swiftlang/sourcekit-lsp/blob/main/Sources/SourceKitD/dlopen.swift)
1143 | let lib = dlopen(libname, RTLD_NOW)
| `- error: cannot find 'dlopen' in scope
1144 | typealias JavaVMPtr = UnsafeMutablePointer<JavaVM?>
1145 | typealias GetCreatedJavaVMs = @convention(c) (_ pvm: UnsafeMutablePointer<JavaVMPtr?>, _ count: Int32, _ num: UnsafeMutablePointer<Int32>) -> jint
/host/spi-builder-workspace/.build/checkouts/swift-jni/Sources/SwiftJNI/SwiftJNI.swift:1143:39: error: cannot find 'RTLD_NOW' in scope
1141 | for libname in [nil, "libnativehelper.so", "libart.so", "libdvm.so"] {
1142 | // Windows TODO: need to use LoadLibraryW (see https://github.com/swiftlang/sourcekit-lsp/blob/main/Sources/SourceKitD/dlopen.swift)
1143 | let lib = dlopen(libname, RTLD_NOW)
| `- error: cannot find 'RTLD_NOW' in scope
1144 | typealias JavaVMPtr = UnsafeMutablePointer<JavaVM?>
1145 | typealias GetCreatedJavaVMs = @convention(c) (_ pvm: UnsafeMutablePointer<JavaVMPtr?>, _ count: Int32, _ num: UnsafeMutablePointer<Int32>) -> jint
/host/spi-builder-workspace/.build/checkouts/swift-jni/Sources/SwiftJNI/SwiftJNI.swift:1148:43: error: cannot find 'dlsym' in scope
1146 |
1147 | // Windows TODO: need to use GetProcAddress
1148 | guard let getCreatedJavaVMs = dlsym(lib, "JNI_GetCreatedJavaVMs").map({ unsafeBitCast($0, to: (GetCreatedJavaVMs).self) }) else {
| `- error: cannot find 'dlsym' in scope
1149 | continue
1150 | }
/host/spi-builder-workspace/.build/checkouts/swift-jni/Sources/SwiftJNI/SwiftJNI.swift:1183:44: error: cannot find 'dlsym' in scope
1181 | typealias CreateJavaVM = @convention(c) (_ pvm: UnsafeMutablePointer<UnsafeMutablePointer<JavaVM?>?>?, _ penv: UnsafeMutablePointer<UnsafeMutablePointer<JNIEnv?>?>?, _ args: UnsafeMutableRawPointer) -> jint
1182 |
1183 | guard let JNI_CreateJavaVM_dlsym = dlsym(library, "JNI_CreateJavaVM").map({ unsafeBitCast($0, to: (CreateJavaVM).self) }) else {
| `- error: cannot find 'dlsym' in scope
1184 | throw JVMError(description: "Unable to dlsym JNI_CreateJavaVM")
1185 | }
[33/51] Compiling SwiftJNI SwiftJNI.swift
/host/spi-builder-workspace/.build/checkouts/swift-jni/Sources/SwiftJNI/SwiftJNI.swift:1143:23: error: cannot find 'dlopen' in scope
1141 | for libname in [nil, "libnativehelper.so", "libart.so", "libdvm.so"] {
1142 | // Windows TODO: need to use LoadLibraryW (see https://github.com/swiftlang/sourcekit-lsp/blob/main/Sources/SourceKitD/dlopen.swift)
1143 | let lib = dlopen(libname, RTLD_NOW)
| `- error: cannot find 'dlopen' in scope
1144 | typealias JavaVMPtr = UnsafeMutablePointer<JavaVM?>
1145 | typealias GetCreatedJavaVMs = @convention(c) (_ pvm: UnsafeMutablePointer<JavaVMPtr?>, _ count: Int32, _ num: UnsafeMutablePointer<Int32>) -> jint
/host/spi-builder-workspace/.build/checkouts/swift-jni/Sources/SwiftJNI/SwiftJNI.swift:1143:39: error: cannot find 'RTLD_NOW' in scope
1141 | for libname in [nil, "libnativehelper.so", "libart.so", "libdvm.so"] {
1142 | // Windows TODO: need to use LoadLibraryW (see https://github.com/swiftlang/sourcekit-lsp/blob/main/Sources/SourceKitD/dlopen.swift)
1143 | let lib = dlopen(libname, RTLD_NOW)
| `- error: cannot find 'RTLD_NOW' in scope
1144 | typealias JavaVMPtr = UnsafeMutablePointer<JavaVM?>
1145 | typealias GetCreatedJavaVMs = @convention(c) (_ pvm: UnsafeMutablePointer<JavaVMPtr?>, _ count: Int32, _ num: UnsafeMutablePointer<Int32>) -> jint
/host/spi-builder-workspace/.build/checkouts/swift-jni/Sources/SwiftJNI/SwiftJNI.swift:1148:43: error: cannot find 'dlsym' in scope
1146 |
1147 | // Windows TODO: need to use GetProcAddress
1148 | guard let getCreatedJavaVMs = dlsym(lib, "JNI_GetCreatedJavaVMs").map({ unsafeBitCast($0, to: (GetCreatedJavaVMs).self) }) else {
| `- error: cannot find 'dlsym' in scope
1149 | continue
1150 | }
/host/spi-builder-workspace/.build/checkouts/swift-jni/Sources/SwiftJNI/SwiftJNI.swift:1183:44: error: cannot find 'dlsym' in scope
1181 | typealias CreateJavaVM = @convention(c) (_ pvm: UnsafeMutablePointer<UnsafeMutablePointer<JavaVM?>?>?, _ penv: UnsafeMutablePointer<UnsafeMutablePointer<JNIEnv?>?>?, _ args: UnsafeMutableRawPointer) -> jint
1182 |
1183 | guard let JNI_CreateJavaVM_dlsym = dlsym(library, "JNI_CreateJavaVM").map({ unsafeBitCast($0, to: (CreateJavaVM).self) }) else {
| `- error: cannot find 'dlsym' in scope
1184 | throw JVMError(description: "Unable to dlsym JNI_CreateJavaVM")
1185 | }
/host/spi-builder-workspace/.build/checkouts/swift-jni/Sources/SwiftJNI/SwiftJNI.swift:1232:12: error: cannot find 'getenv' in scope
1230 |
1231 | // if JAVA_HOME is unset, default to the Homebrew installation
1232 | if getenv("JAVA_HOME") == nil {
| `- error: cannot find 'getenv' in scope
1233 | if FileManager.default.fileExists(atPath: "/opt/homebrew/opt/java") {
1234 | setenv("JAVA_HOME", "/opt/homebrew/opt/java", 0) // Homebrew ARM location
/host/spi-builder-workspace/.build/checkouts/swift-jni/Sources/SwiftJNI/SwiftJNI.swift:1234:17: error: cannot find 'setenv' in scope
1232 | if getenv("JAVA_HOME") == nil {
1233 | if FileManager.default.fileExists(atPath: "/opt/homebrew/opt/java") {
1234 | setenv("JAVA_HOME", "/opt/homebrew/opt/java", 0) // Homebrew ARM location
| `- error: cannot find 'setenv' in scope
1235 | } else if FileManager.default.fileExists(atPath: "/usr/local/opt/java") {
1236 | setenv("JAVA_HOME", "/usr/local/opt/java", 0) // Homebrew Intel location
/host/spi-builder-workspace/.build/checkouts/swift-jni/Sources/SwiftJNI/SwiftJNI.swift:1236:17: error: cannot find 'setenv' in scope
1234 | setenv("JAVA_HOME", "/opt/homebrew/opt/java", 0) // Homebrew ARM location
1235 | } else if FileManager.default.fileExists(atPath: "/usr/local/opt/java") {
1236 | setenv("JAVA_HOME", "/usr/local/opt/java", 0) // Homebrew Intel location
| `- error: cannot find 'setenv' in scope
1237 | } else {
1238 | throw JVMError(description: "No JAVA_HOME set, and could not locate default Java installation")
/host/spi-builder-workspace/.build/checkouts/swift-jni/Sources/SwiftJNI/SwiftJNI.swift:1241:25: error: cannot find 'getenv' in scope
1239 | }
1240 | }
1241 | let JAVA_HOME = getenv("JAVA_HOME")!
| `- error: cannot find 'getenv' in scope
1242 | let javaHome = URL(fileURLWithPath: String(validatingUTF8: JAVA_HOME)!)
1243 |
/host/spi-builder-workspace/.build/checkouts/swift-jni/Sources/SwiftJNI/SwiftJNI.swift:1261:79: error: cannot infer key path type from context; consider explicitly specifying a root type
1259 |
1260 | guard let lib = libs.first(where: { FileManager.default.isReadableFile(atPath: $0.path) }) else {
1261 | throw JVMError(description: "Could not find libjvm in: \(libs.map(\.path))")
| `- error: cannot infer key path type from context; consider explicitly specifying a root type
1262 | }
1263 |
/host/spi-builder-workspace/.build/checkouts/swift-jni/Sources/SwiftJNI/SwiftJNI.swift:1265:27: error: cannot find 'dlopen' in scope
1263 |
1264 | // TODO: on macOS, reduce signal interception debugging issues by locating libjsig.dylib and adding it to DYLD_INSERT_LIBRARIES
1265 | guard let dylib = dlopen(lib.path, RTLD_NOW) else {
| `- error: cannot find 'dlopen' in scope
1266 | if let error = dlerror() {
1267 | throw JVMError(description: "dlopen error: \(String(cString: error))")
/host/spi-builder-workspace/.build/checkouts/swift-jni/Sources/SwiftJNI/SwiftJNI.swift:1265:44: error: cannot find 'RTLD_NOW' in scope
1263 |
1264 | // TODO: on macOS, reduce signal interception debugging issues by locating libjsig.dylib and adding it to DYLD_INSERT_LIBRARIES
1265 | guard let dylib = dlopen(lib.path, RTLD_NOW) else {
| `- error: cannot find 'RTLD_NOW' in scope
1266 | if let error = dlerror() {
1267 | throw JVMError(description: "dlopen error: \(String(cString: error))")
/host/spi-builder-workspace/.build/checkouts/swift-jni/Sources/SwiftJNI/SwiftJNI.swift:1266:28: error: cannot find 'dlerror' in scope
1264 | // TODO: on macOS, reduce signal interception debugging issues by locating libjsig.dylib and adding it to DYLD_INSERT_LIBRARIES
1265 | guard let dylib = dlopen(lib.path, RTLD_NOW) else {
1266 | if let error = dlerror() {
| `- error: cannot find 'dlerror' in scope
1267 | throw JVMError(description: "dlopen error: \(String(cString: error))")
1268 | } else {
/host/spi-builder-workspace/.build/checkouts/swift-jni/Sources/SwiftJNI/SwiftJNI.swift:1283:27: error: cannot find 'strlen' in scope
1281 | init(_ string: String) {
1282 | (length, buffer) = string.withCString {
1283 | let len = Int(strlen($0) + 1)
| `- error: cannot find 'strlen' in scope
1284 | let dst = UnsafePointer(strcpy(UnsafeMutablePointer<CChar>.allocate(capacity: len), $0))
1285 | return (len, dst!)
/host/spi-builder-workspace/.build/checkouts/swift-jni/Sources/SwiftJNI/SwiftJNI.swift:1284:37: error: cannot find 'strcpy' in scope
1282 | (length, buffer) = string.withCString {
1283 | let len = Int(strlen($0) + 1)
1284 | let dst = UnsafePointer(strcpy(UnsafeMutablePointer<CChar>.allocate(capacity: len), $0))
| `- error: cannot find 'strcpy' in scope
1285 | return (len, dst!)
1286 | }
[34/51] Compiling AndroidSystem LockedState.swift
/host/spi-builder-workspace/Sources/AndroidSystem/LockedState.swift:31:34: warning: UnsafeMutablePointer<Void> has been replaced by UnsafeMutableRawPointer
29 | #endif
30 |
31 | typealias PlatformLock = UnsafeMutablePointer<Primitive>
| `- warning: UnsafeMutablePointer<Void> has been replaced by UnsafeMutableRawPointer
32 | var _platformLock: PlatformLock
33 |
[35/51] Compiling AndroidSystem MachPort.swift
/host/spi-builder-workspace/Sources/AndroidSystem/LockedState.swift:31:34: warning: UnsafeMutablePointer<Void> has been replaced by UnsafeMutableRawPointer
29 | #endif
30 |
31 | typealias PlatformLock = UnsafeMutablePointer<Primitive>
| `- warning: UnsafeMutablePointer<Void> has been replaced by UnsafeMutableRawPointer
32 | var _platformLock: PlatformLock
33 |
[36/51] Compiling AndroidSystem PlatformString.swift
/host/spi-builder-workspace/Sources/AndroidSystem/LockedState.swift:31:34: warning: UnsafeMutablePointer<Void> has been replaced by UnsafeMutableRawPointer
29 | #endif
30 |
31 | typealias PlatformLock = UnsafeMutablePointer<Primitive>
| `- warning: UnsafeMutablePointer<Void> has been replaced by UnsafeMutableRawPointer
32 | var _platformLock: PlatformLock
33 |
[37/51] Compiling AndroidSystem SystemString.swift
/host/spi-builder-workspace/Sources/AndroidSystem/LockedState.swift:31:34: warning: UnsafeMutablePointer<Void> has been replaced by UnsafeMutableRawPointer
29 | #endif
30 |
31 | typealias PlatformLock = UnsafeMutablePointer<Primitive>
| `- warning: UnsafeMutablePointer<Void> has been replaced by UnsafeMutableRawPointer
32 | var _platformLock: PlatformLock
33 |
[38/51] Compiling AndroidSystem Backcompat.swift
/host/spi-builder-workspace/Sources/AndroidSystem/Internals/Constants.swift:148:3: error: cannot find '_getConst_EWOULDBLOCK' in scope
146 | internal var _EWOULDBLOCK: CInt {
147 | #if os(WASI)
148 | _getConst_EWOULDBLOCK()
| `- error: cannot find '_getConst_EWOULDBLOCK' in scope
149 | #else
150 | EWOULDBLOCK
/host/spi-builder-workspace/Sources/AndroidSystem/Internals/Constants.swift:452:3: error: cannot find '_getConst_EOPNOTSUPP' in scope
450 | internal var _EOPNOTSUPP: CInt {
451 | #if os(WASI)
452 | _getConst_EOPNOTSUPP()
| `- error: cannot find '_getConst_EOPNOTSUPP' in scope
453 | #else
454 | EOPNOTSUPP
/host/spi-builder-workspace/Sources/AndroidSystem/Internals/Constants.swift:498:3: error: cannot find '_getConst_O_ACCMODE' in scope
496 | internal var _O_ACCMODE: CInt {
497 | #if os(WASI)
498 | _getConst_O_ACCMODE()
| `- error: cannot find '_getConst_O_ACCMODE' in scope
499 | #else
500 | O_ACCMODE
/host/spi-builder-workspace/Sources/AndroidSystem/Internals/Constants.swift:508:3: error: cannot find '_getConst_O_NONBLOCK' in scope
506 | internal var _O_NONBLOCK: CInt {
507 | #if os(WASI)
508 | _getConst_O_NONBLOCK()
| `- error: cannot find '_getConst_O_NONBLOCK' in scope
509 | #else
510 | O_NONBLOCK
/host/spi-builder-workspace/Sources/AndroidSystem/Internals/Constants.swift:518:3: error: cannot find '_getConst_O_APPEND' in scope
516 | internal var _O_APPEND: CInt {
517 | #if os(WASI)
518 | _getConst_O_APPEND()
| `- error: cannot find '_getConst_O_APPEND' in scope
519 | #else
520 | O_APPEND
/host/spi-builder-workspace/Sources/AndroidSystem/Internals/Constants.swift:546:3: error: cannot find '_getConst_O_CREAT' in scope
544 | internal var _O_CREAT: CInt {
545 | #if os(WASI)
546 | _getConst_O_CREAT()
| `- error: cannot find '_getConst_O_CREAT' in scope
547 | #else
548 | O_CREAT
/host/spi-builder-workspace/Sources/AndroidSystem/Internals/Constants.swift:555:3: error: cannot find '_getConst_O_TRUNC' in scope
553 | internal var _O_TRUNC: CInt {
554 | #if os(WASI)
555 | _getConst_O_TRUNC()
| `- error: cannot find '_getConst_O_TRUNC' in scope
556 | #else
557 | O_TRUNC
/host/spi-builder-workspace/Sources/AndroidSystem/Internals/Constants.swift:564:3: error: cannot find '_getConst_O_EXCL' in scope
562 | internal var _O_EXCL: CInt {
563 | #if os(WASI)
564 | _getConst_O_EXCL()
| `- error: cannot find '_getConst_O_EXCL' in scope
565 | #else
566 | O_EXCL
/host/spi-builder-workspace/Sources/AndroidSystem/Internals/Constants.swift:583:3: error: cannot find '_getConst_O_DIRECTORY' in scope
581 | internal var _O_DIRECTORY: CInt {
582 | #if os(WASI)
583 | _getConst_O_DIRECTORY()
| `- error: cannot find '_getConst_O_DIRECTORY' in scope
584 | #else
585 | O_DIRECTORY
[39/51] Compiling AndroidSystem CInterop.swift
/host/spi-builder-workspace/Sources/AndroidSystem/Internals/Constants.swift:148:3: error: cannot find '_getConst_EWOULDBLOCK' in scope
146 | internal var _EWOULDBLOCK: CInt {
147 | #if os(WASI)
148 | _getConst_EWOULDBLOCK()
| `- error: cannot find '_getConst_EWOULDBLOCK' in scope
149 | #else
150 | EWOULDBLOCK
/host/spi-builder-workspace/Sources/AndroidSystem/Internals/Constants.swift:452:3: error: cannot find '_getConst_EOPNOTSUPP' in scope
450 | internal var _EOPNOTSUPP: CInt {
451 | #if os(WASI)
452 | _getConst_EOPNOTSUPP()
| `- error: cannot find '_getConst_EOPNOTSUPP' in scope
453 | #else
454 | EOPNOTSUPP
/host/spi-builder-workspace/Sources/AndroidSystem/Internals/Constants.swift:498:3: error: cannot find '_getConst_O_ACCMODE' in scope
496 | internal var _O_ACCMODE: CInt {
497 | #if os(WASI)
498 | _getConst_O_ACCMODE()
| `- error: cannot find '_getConst_O_ACCMODE' in scope
499 | #else
500 | O_ACCMODE
/host/spi-builder-workspace/Sources/AndroidSystem/Internals/Constants.swift:508:3: error: cannot find '_getConst_O_NONBLOCK' in scope
506 | internal var _O_NONBLOCK: CInt {
507 | #if os(WASI)
508 | _getConst_O_NONBLOCK()
| `- error: cannot find '_getConst_O_NONBLOCK' in scope
509 | #else
510 | O_NONBLOCK
/host/spi-builder-workspace/Sources/AndroidSystem/Internals/Constants.swift:518:3: error: cannot find '_getConst_O_APPEND' in scope
516 | internal var _O_APPEND: CInt {
517 | #if os(WASI)
518 | _getConst_O_APPEND()
| `- error: cannot find '_getConst_O_APPEND' in scope
519 | #else
520 | O_APPEND
/host/spi-builder-workspace/Sources/AndroidSystem/Internals/Constants.swift:546:3: error: cannot find '_getConst_O_CREAT' in scope
544 | internal var _O_CREAT: CInt {
545 | #if os(WASI)
546 | _getConst_O_CREAT()
| `- error: cannot find '_getConst_O_CREAT' in scope
547 | #else
548 | O_CREAT
/host/spi-builder-workspace/Sources/AndroidSystem/Internals/Constants.swift:555:3: error: cannot find '_getConst_O_TRUNC' in scope
553 | internal var _O_TRUNC: CInt {
554 | #if os(WASI)
555 | _getConst_O_TRUNC()
| `- error: cannot find '_getConst_O_TRUNC' in scope
556 | #else
557 | O_TRUNC
/host/spi-builder-workspace/Sources/AndroidSystem/Internals/Constants.swift:564:3: error: cannot find '_getConst_O_EXCL' in scope
562 | internal var _O_EXCL: CInt {
563 | #if os(WASI)
564 | _getConst_O_EXCL()
| `- error: cannot find '_getConst_O_EXCL' in scope
565 | #else
566 | O_EXCL
/host/spi-builder-workspace/Sources/AndroidSystem/Internals/Constants.swift:583:3: error: cannot find '_getConst_O_DIRECTORY' in scope
581 | internal var _O_DIRECTORY: CInt {
582 | #if os(WASI)
583 | _getConst_O_DIRECTORY()
| `- error: cannot find '_getConst_O_DIRECTORY' in scope
584 | #else
585 | O_DIRECTORY
[40/51] Compiling AndroidSystem Constants.swift
/host/spi-builder-workspace/Sources/AndroidSystem/Internals/Constants.swift:148:3: error: cannot find '_getConst_EWOULDBLOCK' in scope
146 | internal var _EWOULDBLOCK: CInt {
147 | #if os(WASI)
148 | _getConst_EWOULDBLOCK()
| `- error: cannot find '_getConst_EWOULDBLOCK' in scope
149 | #else
150 | EWOULDBLOCK
/host/spi-builder-workspace/Sources/AndroidSystem/Internals/Constants.swift:452:3: error: cannot find '_getConst_EOPNOTSUPP' in scope
450 | internal var _EOPNOTSUPP: CInt {
451 | #if os(WASI)
452 | _getConst_EOPNOTSUPP()
| `- error: cannot find '_getConst_EOPNOTSUPP' in scope
453 | #else
454 | EOPNOTSUPP
/host/spi-builder-workspace/Sources/AndroidSystem/Internals/Constants.swift:498:3: error: cannot find '_getConst_O_ACCMODE' in scope
496 | internal var _O_ACCMODE: CInt {
497 | #if os(WASI)
498 | _getConst_O_ACCMODE()
| `- error: cannot find '_getConst_O_ACCMODE' in scope
499 | #else
500 | O_ACCMODE
/host/spi-builder-workspace/Sources/AndroidSystem/Internals/Constants.swift:508:3: error: cannot find '_getConst_O_NONBLOCK' in scope
506 | internal var _O_NONBLOCK: CInt {
507 | #if os(WASI)
508 | _getConst_O_NONBLOCK()
| `- error: cannot find '_getConst_O_NONBLOCK' in scope
509 | #else
510 | O_NONBLOCK
/host/spi-builder-workspace/Sources/AndroidSystem/Internals/Constants.swift:518:3: error: cannot find '_getConst_O_APPEND' in scope
516 | internal var _O_APPEND: CInt {
517 | #if os(WASI)
518 | _getConst_O_APPEND()
| `- error: cannot find '_getConst_O_APPEND' in scope
519 | #else
520 | O_APPEND
/host/spi-builder-workspace/Sources/AndroidSystem/Internals/Constants.swift:546:3: error: cannot find '_getConst_O_CREAT' in scope
544 | internal var _O_CREAT: CInt {
545 | #if os(WASI)
546 | _getConst_O_CREAT()
| `- error: cannot find '_getConst_O_CREAT' in scope
547 | #else
548 | O_CREAT
/host/spi-builder-workspace/Sources/AndroidSystem/Internals/Constants.swift:555:3: error: cannot find '_getConst_O_TRUNC' in scope
553 | internal var _O_TRUNC: CInt {
554 | #if os(WASI)
555 | _getConst_O_TRUNC()
| `- error: cannot find '_getConst_O_TRUNC' in scope
556 | #else
557 | O_TRUNC
/host/spi-builder-workspace/Sources/AndroidSystem/Internals/Constants.swift:564:3: error: cannot find '_getConst_O_EXCL' in scope
562 | internal var _O_EXCL: CInt {
563 | #if os(WASI)
564 | _getConst_O_EXCL()
| `- error: cannot find '_getConst_O_EXCL' in scope
565 | #else
566 | O_EXCL
/host/spi-builder-workspace/Sources/AndroidSystem/Internals/Constants.swift:583:3: error: cannot find '_getConst_O_DIRECTORY' in scope
581 | internal var _O_DIRECTORY: CInt {
582 | #if os(WASI)
583 | _getConst_O_DIRECTORY()
| `- error: cannot find '_getConst_O_DIRECTORY' in scope
584 | #else
585 | O_DIRECTORY
[41/51] Compiling AndroidSystem Exports.swift
/host/spi-builder-workspace/Sources/AndroidSystem/Internals/Constants.swift:148:3: error: cannot find '_getConst_EWOULDBLOCK' in scope
146 | internal var _EWOULDBLOCK: CInt {
147 | #if os(WASI)
148 | _getConst_EWOULDBLOCK()
| `- error: cannot find '_getConst_EWOULDBLOCK' in scope
149 | #else
150 | EWOULDBLOCK
/host/spi-builder-workspace/Sources/AndroidSystem/Internals/Constants.swift:452:3: error: cannot find '_getConst_EOPNOTSUPP' in scope
450 | internal var _EOPNOTSUPP: CInt {
451 | #if os(WASI)
452 | _getConst_EOPNOTSUPP()
| `- error: cannot find '_getConst_EOPNOTSUPP' in scope
453 | #else
454 | EOPNOTSUPP
/host/spi-builder-workspace/Sources/AndroidSystem/Internals/Constants.swift:498:3: error: cannot find '_getConst_O_ACCMODE' in scope
496 | internal var _O_ACCMODE: CInt {
497 | #if os(WASI)
498 | _getConst_O_ACCMODE()
| `- error: cannot find '_getConst_O_ACCMODE' in scope
499 | #else
500 | O_ACCMODE
/host/spi-builder-workspace/Sources/AndroidSystem/Internals/Constants.swift:508:3: error: cannot find '_getConst_O_NONBLOCK' in scope
506 | internal var _O_NONBLOCK: CInt {
507 | #if os(WASI)
508 | _getConst_O_NONBLOCK()
| `- error: cannot find '_getConst_O_NONBLOCK' in scope
509 | #else
510 | O_NONBLOCK
/host/spi-builder-workspace/Sources/AndroidSystem/Internals/Constants.swift:518:3: error: cannot find '_getConst_O_APPEND' in scope
516 | internal var _O_APPEND: CInt {
517 | #if os(WASI)
518 | _getConst_O_APPEND()
| `- error: cannot find '_getConst_O_APPEND' in scope
519 | #else
520 | O_APPEND
/host/spi-builder-workspace/Sources/AndroidSystem/Internals/Constants.swift:546:3: error: cannot find '_getConst_O_CREAT' in scope
544 | internal var _O_CREAT: CInt {
545 | #if os(WASI)
546 | _getConst_O_CREAT()
| `- error: cannot find '_getConst_O_CREAT' in scope
547 | #else
548 | O_CREAT
/host/spi-builder-workspace/Sources/AndroidSystem/Internals/Constants.swift:555:3: error: cannot find '_getConst_O_TRUNC' in scope
553 | internal var _O_TRUNC: CInt {
554 | #if os(WASI)
555 | _getConst_O_TRUNC()
| `- error: cannot find '_getConst_O_TRUNC' in scope
556 | #else
557 | O_TRUNC
/host/spi-builder-workspace/Sources/AndroidSystem/Internals/Constants.swift:564:3: error: cannot find '_getConst_O_EXCL' in scope
562 | internal var _O_EXCL: CInt {
563 | #if os(WASI)
564 | _getConst_O_EXCL()
| `- error: cannot find '_getConst_O_EXCL' in scope
565 | #else
566 | O_EXCL
/host/spi-builder-workspace/Sources/AndroidSystem/Internals/Constants.swift:583:3: error: cannot find '_getConst_O_DIRECTORY' in scope
581 | internal var _O_DIRECTORY: CInt {
582 | #if os(WASI)
583 | _getConst_O_DIRECTORY()
| `- error: cannot find '_getConst_O_DIRECTORY' in scope
584 | #else
585 | O_DIRECTORY
[42/51] Compiling AndroidSystem Mocking.swift
/host/spi-builder-workspace/Sources/AndroidSystem/Internals/Syscalls.swift:192:30: error: cannot find 'DT_DIR' in scope
190 | #if !os(Windows)
191 | internal let SYSTEM_AT_REMOVE_DIR = AT_REMOVEDIR
192 | internal let SYSTEM_DT_DIR = DT_DIR
| `- error: cannot find 'DT_DIR' in scope
193 | internal typealias system_dirent = dirent
194 | #if os(Linux) || os(Android)
/host/spi-builder-workspace/Sources/AndroidSystem/Internals/Syscalls.swift:197:57: error: cannot find type 'DIR' in scope
195 | internal typealias system_DIRPtr = OpaquePointer
196 | #else
197 | internal typealias system_DIRPtr = UnsafeMutablePointer<DIR>
| `- error: cannot find type 'DIR' in scope
198 | #endif
199 |
/host/spi-builder-workspace/Sources/AndroidSystem/Internals/Syscalls.swift:252:10: error: cannot find 'umask' in scope
250 | _ mode: CInterop.Mode
251 | ) -> CInterop.Mode {
252 | return umask(mode)
| `- error: cannot find 'umask' in scope
253 | }
254 |
[43/51] Compiling AndroidSystem RawBuffer.swift
/host/spi-builder-workspace/Sources/AndroidSystem/Internals/Syscalls.swift:192:30: error: cannot find 'DT_DIR' in scope
190 | #if !os(Windows)
191 | internal let SYSTEM_AT_REMOVE_DIR = AT_REMOVEDIR
192 | internal let SYSTEM_DT_DIR = DT_DIR
| `- error: cannot find 'DT_DIR' in scope
193 | internal typealias system_dirent = dirent
194 | #if os(Linux) || os(Android)
/host/spi-builder-workspace/Sources/AndroidSystem/Internals/Syscalls.swift:197:57: error: cannot find type 'DIR' in scope
195 | internal typealias system_DIRPtr = OpaquePointer
196 | #else
197 | internal typealias system_DIRPtr = UnsafeMutablePointer<DIR>
| `- error: cannot find type 'DIR' in scope
198 | #endif
199 |
/host/spi-builder-workspace/Sources/AndroidSystem/Internals/Syscalls.swift:252:10: error: cannot find 'umask' in scope
250 | _ mode: CInterop.Mode
251 | ) -> CInterop.Mode {
252 | return umask(mode)
| `- error: cannot find 'umask' in scope
253 | }
254 |
[44/51] Compiling AndroidSystem Syscalls.swift
/host/spi-builder-workspace/Sources/AndroidSystem/Internals/Syscalls.swift:192:30: error: cannot find 'DT_DIR' in scope
190 | #if !os(Windows)
191 | internal let SYSTEM_AT_REMOVE_DIR = AT_REMOVEDIR
192 | internal let SYSTEM_DT_DIR = DT_DIR
| `- error: cannot find 'DT_DIR' in scope
193 | internal typealias system_dirent = dirent
194 | #if os(Linux) || os(Android)
/host/spi-builder-workspace/Sources/AndroidSystem/Internals/Syscalls.swift:197:57: error: cannot find type 'DIR' in scope
195 | internal typealias system_DIRPtr = OpaquePointer
196 | #else
197 | internal typealias system_DIRPtr = UnsafeMutablePointer<DIR>
| `- error: cannot find type 'DIR' in scope
198 | #endif
199 |
/host/spi-builder-workspace/Sources/AndroidSystem/Internals/Syscalls.swift:252:10: error: cannot find 'umask' in scope
250 | _ mode: CInterop.Mode
251 | ) -> CInterop.Mode {
252 | return umask(mode)
| `- error: cannot find 'umask' in scope
253 | }
254 |
[45/51] Compiling AndroidSystem WindowsSyscallAdapters.swift
/host/spi-builder-workspace/Sources/AndroidSystem/Internals/Syscalls.swift:192:30: error: cannot find 'DT_DIR' in scope
190 | #if !os(Windows)
191 | internal let SYSTEM_AT_REMOVE_DIR = AT_REMOVEDIR
192 | internal let SYSTEM_DT_DIR = DT_DIR
| `- error: cannot find 'DT_DIR' in scope
193 | internal typealias system_dirent = dirent
194 | #if os(Linux) || os(Android)
/host/spi-builder-workspace/Sources/AndroidSystem/Internals/Syscalls.swift:197:57: error: cannot find type 'DIR' in scope
195 | internal typealias system_DIRPtr = OpaquePointer
196 | #else
197 | internal typealias system_DIRPtr = UnsafeMutablePointer<DIR>
| `- error: cannot find type 'DIR' in scope
198 | #endif
199 |
/host/spi-builder-workspace/Sources/AndroidSystem/Internals/Syscalls.swift:252:10: error: cannot find 'umask' in scope
250 | _ mode: CInterop.Mode
251 | ) -> CInterop.Mode {
252 | return umask(mode)
| `- error: cannot find 'umask' in scope
253 | }
254 |
[46/51] Compiling AndroidSystem Util+StringArray.swift
[47/51] Compiling AndroidSystem Util.swift
[48/51] Compiling AndroidSystem UtilConsumers.swift
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
[0/1] Planning build
Building for debugging...
[0/4] Write swift-version-24593BA9C3E375BF.txt
[2/37] Compiling AndroidLogging AndroidLogging.swift
[3/37] Emitting module AndroidLogging
[4/38] Compiling AndroidSystem Backcompat.swift
/host/spi-builder-workspace/Sources/AndroidSystem/Internals/Constants.swift:148:3: error: cannot find '_getConst_EWOULDBLOCK' in scope
146 | internal var _EWOULDBLOCK: CInt {
147 | #if os(WASI)
148 | _getConst_EWOULDBLOCK()
| `- error: cannot find '_getConst_EWOULDBLOCK' in scope
149 | #else
150 | EWOULDBLOCK
/host/spi-builder-workspace/Sources/AndroidSystem/Internals/Constants.swift:452:3: error: cannot find '_getConst_EOPNOTSUPP' in scope
450 | internal var _EOPNOTSUPP: CInt {
451 | #if os(WASI)
452 | _getConst_EOPNOTSUPP()
| `- error: cannot find '_getConst_EOPNOTSUPP' in scope
453 | #else
454 | EOPNOTSUPP
/host/spi-builder-workspace/Sources/AndroidSystem/Internals/Constants.swift:498:3: error: cannot find '_getConst_O_ACCMODE' in scope
496 | internal var _O_ACCMODE: CInt {
497 | #if os(WASI)
498 | _getConst_O_ACCMODE()
| `- error: cannot find '_getConst_O_ACCMODE' in scope
499 | #else
500 | O_ACCMODE
/host/spi-builder-workspace/Sources/AndroidSystem/Internals/Constants.swift:508:3: error: cannot find '_getConst_O_NONBLOCK' in scope
506 | internal var _O_NONBLOCK: CInt {
507 | #if os(WASI)
508 | _getConst_O_NONBLOCK()
| `- error: cannot find '_getConst_O_NONBLOCK' in scope
509 | #else
510 | O_NONBLOCK
/host/spi-builder-workspace/Sources/AndroidSystem/Internals/Constants.swift:518:3: error: cannot find '_getConst_O_APPEND' in scope
516 | internal var _O_APPEND: CInt {
517 | #if os(WASI)
518 | _getConst_O_APPEND()
| `- error: cannot find '_getConst_O_APPEND' in scope
519 | #else
520 | O_APPEND
/host/spi-builder-workspace/Sources/AndroidSystem/Internals/Constants.swift:546:3: error: cannot find '_getConst_O_CREAT' in scope
544 | internal var _O_CREAT: CInt {
545 | #if os(WASI)
546 | _getConst_O_CREAT()
| `- error: cannot find '_getConst_O_CREAT' in scope
547 | #else
548 | O_CREAT
/host/spi-builder-workspace/Sources/AndroidSystem/Internals/Constants.swift:555:3: error: cannot find '_getConst_O_TRUNC' in scope
553 | internal var _O_TRUNC: CInt {
554 | #if os(WASI)
555 | _getConst_O_TRUNC()
| `- error: cannot find '_getConst_O_TRUNC' in scope
556 | #else
557 | O_TRUNC
/host/spi-builder-workspace/Sources/AndroidSystem/Internals/Constants.swift:564:3: error: cannot find '_getConst_O_EXCL' in scope
562 | internal var _O_EXCL: CInt {
563 | #if os(WASI)
564 | _getConst_O_EXCL()
| `- error: cannot find '_getConst_O_EXCL' in scope
565 | #else
566 | O_EXCL
/host/spi-builder-workspace/Sources/AndroidSystem/Internals/Constants.swift:583:3: error: cannot find '_getConst_O_DIRECTORY' in scope
581 | internal var _O_DIRECTORY: CInt {
582 | #if os(WASI)
583 | _getConst_O_DIRECTORY()
| `- error: cannot find '_getConst_O_DIRECTORY' in scope
584 | #else
585 | O_DIRECTORY
[5/38] Compiling AndroidSystem CInterop.swift
/host/spi-builder-workspace/Sources/AndroidSystem/Internals/Constants.swift:148:3: error: cannot find '_getConst_EWOULDBLOCK' in scope
146 | internal var _EWOULDBLOCK: CInt {
147 | #if os(WASI)
148 | _getConst_EWOULDBLOCK()
| `- error: cannot find '_getConst_EWOULDBLOCK' in scope
149 | #else
150 | EWOULDBLOCK
/host/spi-builder-workspace/Sources/AndroidSystem/Internals/Constants.swift:452:3: error: cannot find '_getConst_EOPNOTSUPP' in scope
450 | internal var _EOPNOTSUPP: CInt {
451 | #if os(WASI)
452 | _getConst_EOPNOTSUPP()
| `- error: cannot find '_getConst_EOPNOTSUPP' in scope
453 | #else
454 | EOPNOTSUPP
/host/spi-builder-workspace/Sources/AndroidSystem/Internals/Constants.swift:498:3: error: cannot find '_getConst_O_ACCMODE' in scope
496 | internal var _O_ACCMODE: CInt {
497 | #if os(WASI)
498 | _getConst_O_ACCMODE()
| `- error: cannot find '_getConst_O_ACCMODE' in scope
499 | #else
500 | O_ACCMODE
/host/spi-builder-workspace/Sources/AndroidSystem/Internals/Constants.swift:508:3: error: cannot find '_getConst_O_NONBLOCK' in scope
506 | internal var _O_NONBLOCK: CInt {
507 | #if os(WASI)
508 | _getConst_O_NONBLOCK()
| `- error: cannot find '_getConst_O_NONBLOCK' in scope
509 | #else
510 | O_NONBLOCK
/host/spi-builder-workspace/Sources/AndroidSystem/Internals/Constants.swift:518:3: error: cannot find '_getConst_O_APPEND' in scope
516 | internal var _O_APPEND: CInt {
517 | #if os(WASI)
518 | _getConst_O_APPEND()
| `- error: cannot find '_getConst_O_APPEND' in scope
519 | #else
520 | O_APPEND
/host/spi-builder-workspace/Sources/AndroidSystem/Internals/Constants.swift:546:3: error: cannot find '_getConst_O_CREAT' in scope
544 | internal var _O_CREAT: CInt {
545 | #if os(WASI)
546 | _getConst_O_CREAT()
| `- error: cannot find '_getConst_O_CREAT' in scope
547 | #else
548 | O_CREAT
/host/spi-builder-workspace/Sources/AndroidSystem/Internals/Constants.swift:555:3: error: cannot find '_getConst_O_TRUNC' in scope
553 | internal var _O_TRUNC: CInt {
554 | #if os(WASI)
555 | _getConst_O_TRUNC()
| `- error: cannot find '_getConst_O_TRUNC' in scope
556 | #else
557 | O_TRUNC
/host/spi-builder-workspace/Sources/AndroidSystem/Internals/Constants.swift:564:3: error: cannot find '_getConst_O_EXCL' in scope
562 | internal var _O_EXCL: CInt {
563 | #if os(WASI)
564 | _getConst_O_EXCL()
| `- error: cannot find '_getConst_O_EXCL' in scope
565 | #else
566 | O_EXCL
/host/spi-builder-workspace/Sources/AndroidSystem/Internals/Constants.swift:583:3: error: cannot find '_getConst_O_DIRECTORY' in scope
581 | internal var _O_DIRECTORY: CInt {
582 | #if os(WASI)
583 | _getConst_O_DIRECTORY()
| `- error: cannot find '_getConst_O_DIRECTORY' in scope
584 | #else
585 | O_DIRECTORY
[6/38] Compiling AndroidSystem Constants.swift
/host/spi-builder-workspace/Sources/AndroidSystem/Internals/Constants.swift:148:3: error: cannot find '_getConst_EWOULDBLOCK' in scope
146 | internal var _EWOULDBLOCK: CInt {
147 | #if os(WASI)
148 | _getConst_EWOULDBLOCK()
| `- error: cannot find '_getConst_EWOULDBLOCK' in scope
149 | #else
150 | EWOULDBLOCK
/host/spi-builder-workspace/Sources/AndroidSystem/Internals/Constants.swift:452:3: error: cannot find '_getConst_EOPNOTSUPP' in scope
450 | internal var _EOPNOTSUPP: CInt {
451 | #if os(WASI)
452 | _getConst_EOPNOTSUPP()
| `- error: cannot find '_getConst_EOPNOTSUPP' in scope
453 | #else
454 | EOPNOTSUPP
/host/spi-builder-workspace/Sources/AndroidSystem/Internals/Constants.swift:498:3: error: cannot find '_getConst_O_ACCMODE' in scope
496 | internal var _O_ACCMODE: CInt {
497 | #if os(WASI)
498 | _getConst_O_ACCMODE()
| `- error: cannot find '_getConst_O_ACCMODE' in scope
499 | #else
500 | O_ACCMODE
/host/spi-builder-workspace/Sources/AndroidSystem/Internals/Constants.swift:508:3: error: cannot find '_getConst_O_NONBLOCK' in scope
506 | internal var _O_NONBLOCK: CInt {
507 | #if os(WASI)
508 | _getConst_O_NONBLOCK()
| `- error: cannot find '_getConst_O_NONBLOCK' in scope
509 | #else
510 | O_NONBLOCK
/host/spi-builder-workspace/Sources/AndroidSystem/Internals/Constants.swift:518:3: error: cannot find '_getConst_O_APPEND' in scope
516 | internal var _O_APPEND: CInt {
517 | #if os(WASI)
518 | _getConst_O_APPEND()
| `- error: cannot find '_getConst_O_APPEND' in scope
519 | #else
520 | O_APPEND
/host/spi-builder-workspace/Sources/AndroidSystem/Internals/Constants.swift:546:3: error: cannot find '_getConst_O_CREAT' in scope
544 | internal var _O_CREAT: CInt {
545 | #if os(WASI)
546 | _getConst_O_CREAT()
| `- error: cannot find '_getConst_O_CREAT' in scope
547 | #else
548 | O_CREAT
/host/spi-builder-workspace/Sources/AndroidSystem/Internals/Constants.swift:555:3: error: cannot find '_getConst_O_TRUNC' in scope
553 | internal var _O_TRUNC: CInt {
554 | #if os(WASI)
555 | _getConst_O_TRUNC()
| `- error: cannot find '_getConst_O_TRUNC' in scope
556 | #else
557 | O_TRUNC
/host/spi-builder-workspace/Sources/AndroidSystem/Internals/Constants.swift:564:3: error: cannot find '_getConst_O_EXCL' in scope
562 | internal var _O_EXCL: CInt {
563 | #if os(WASI)
564 | _getConst_O_EXCL()
| `- error: cannot find '_getConst_O_EXCL' in scope
565 | #else
566 | O_EXCL
/host/spi-builder-workspace/Sources/AndroidSystem/Internals/Constants.swift:583:3: error: cannot find '_getConst_O_DIRECTORY' in scope
581 | internal var _O_DIRECTORY: CInt {
582 | #if os(WASI)
583 | _getConst_O_DIRECTORY()
| `- error: cannot find '_getConst_O_DIRECTORY' in scope
584 | #else
585 | O_DIRECTORY
[7/38] Compiling AndroidSystem Exports.swift
/host/spi-builder-workspace/Sources/AndroidSystem/Internals/Constants.swift:148:3: error: cannot find '_getConst_EWOULDBLOCK' in scope
146 | internal var _EWOULDBLOCK: CInt {
147 | #if os(WASI)
148 | _getConst_EWOULDBLOCK()
| `- error: cannot find '_getConst_EWOULDBLOCK' in scope
149 | #else
150 | EWOULDBLOCK
/host/spi-builder-workspace/Sources/AndroidSystem/Internals/Constants.swift:452:3: error: cannot find '_getConst_EOPNOTSUPP' in scope
450 | internal var _EOPNOTSUPP: CInt {
451 | #if os(WASI)
452 | _getConst_EOPNOTSUPP()
| `- error: cannot find '_getConst_EOPNOTSUPP' in scope
453 | #else
454 | EOPNOTSUPP
/host/spi-builder-workspace/Sources/AndroidSystem/Internals/Constants.swift:498:3: error: cannot find '_getConst_O_ACCMODE' in scope
496 | internal var _O_ACCMODE: CInt {
497 | #if os(WASI)
498 | _getConst_O_ACCMODE()
| `- error: cannot find '_getConst_O_ACCMODE' in scope
499 | #else
500 | O_ACCMODE
/host/spi-builder-workspace/Sources/AndroidSystem/Internals/Constants.swift:508:3: error: cannot find '_getConst_O_NONBLOCK' in scope
506 | internal var _O_NONBLOCK: CInt {
507 | #if os(WASI)
508 | _getConst_O_NONBLOCK()
| `- error: cannot find '_getConst_O_NONBLOCK' in scope
509 | #else
510 | O_NONBLOCK
/host/spi-builder-workspace/Sources/AndroidSystem/Internals/Constants.swift:518:3: error: cannot find '_getConst_O_APPEND' in scope
516 | internal var _O_APPEND: CInt {
517 | #if os(WASI)
518 | _getConst_O_APPEND()
| `- error: cannot find '_getConst_O_APPEND' in scope
519 | #else
520 | O_APPEND
/host/spi-builder-workspace/Sources/AndroidSystem/Internals/Constants.swift:546:3: error: cannot find '_getConst_O_CREAT' in scope
544 | internal var _O_CREAT: CInt {
545 | #if os(WASI)
546 | _getConst_O_CREAT()
| `- error: cannot find '_getConst_O_CREAT' in scope
547 | #else
548 | O_CREAT
/host/spi-builder-workspace/Sources/AndroidSystem/Internals/Constants.swift:555:3: error: cannot find '_getConst_O_TRUNC' in scope
553 | internal var _O_TRUNC: CInt {
554 | #if os(WASI)
555 | _getConst_O_TRUNC()
| `- error: cannot find '_getConst_O_TRUNC' in scope
556 | #else
557 | O_TRUNC
/host/spi-builder-workspace/Sources/AndroidSystem/Internals/Constants.swift:564:3: error: cannot find '_getConst_O_EXCL' in scope
562 | internal var _O_EXCL: CInt {
563 | #if os(WASI)
564 | _getConst_O_EXCL()
| `- error: cannot find '_getConst_O_EXCL' in scope
565 | #else
566 | O_EXCL
/host/spi-builder-workspace/Sources/AndroidSystem/Internals/Constants.swift:583:3: error: cannot find '_getConst_O_DIRECTORY' in scope
581 | internal var _O_DIRECTORY: CInt {
582 | #if os(WASI)
583 | _getConst_O_DIRECTORY()
| `- error: cannot find '_getConst_O_DIRECTORY' in scope
584 | #else
585 | O_DIRECTORY
error: emit-module command failed with exit code 1 (use -v to see invocation)
[8/41] Emitting module AndroidSystem
/host/spi-builder-workspace/Sources/AndroidSystem/Internals/Syscalls.swift:197:57: error: cannot find type 'DIR' in scope
195 | internal typealias system_DIRPtr = OpaquePointer
196 | #else
197 | internal typealias system_DIRPtr = UnsafeMutablePointer<DIR>
| `- error: cannot find type 'DIR' in scope
198 | #endif
199 |
/host/spi-builder-workspace/Sources/AndroidSystem/Internals/Constants.swift:148:3: error: cannot find '_getConst_EWOULDBLOCK' in scope
146 | internal var _EWOULDBLOCK: CInt {
147 | #if os(WASI)
148 | _getConst_EWOULDBLOCK()
| `- error: cannot find '_getConst_EWOULDBLOCK' in scope
149 | #else
150 | EWOULDBLOCK
/host/spi-builder-workspace/Sources/AndroidSystem/Internals/Constants.swift:452:3: error: cannot find '_getConst_EOPNOTSUPP' in scope
450 | internal var _EOPNOTSUPP: CInt {
451 | #if os(WASI)
452 | _getConst_EOPNOTSUPP()
| `- error: cannot find '_getConst_EOPNOTSUPP' in scope
453 | #else
454 | EOPNOTSUPP
/host/spi-builder-workspace/Sources/AndroidSystem/Internals/Constants.swift:498:3: error: cannot find '_getConst_O_ACCMODE' in scope
496 | internal var _O_ACCMODE: CInt {
497 | #if os(WASI)
498 | _getConst_O_ACCMODE()
| `- error: cannot find '_getConst_O_ACCMODE' in scope
499 | #else
500 | O_ACCMODE
/host/spi-builder-workspace/Sources/AndroidSystem/Internals/Constants.swift:508:3: error: cannot find '_getConst_O_NONBLOCK' in scope
506 | internal var _O_NONBLOCK: CInt {
507 | #if os(WASI)
508 | _getConst_O_NONBLOCK()
| `- error: cannot find '_getConst_O_NONBLOCK' in scope
509 | #else
510 | O_NONBLOCK
/host/spi-builder-workspace/Sources/AndroidSystem/Internals/Constants.swift:518:3: error: cannot find '_getConst_O_APPEND' in scope
516 | internal var _O_APPEND: CInt {
517 | #if os(WASI)
518 | _getConst_O_APPEND()
| `- error: cannot find '_getConst_O_APPEND' in scope
519 | #else
520 | O_APPEND
/host/spi-builder-workspace/Sources/AndroidSystem/Internals/Constants.swift:546:3: error: cannot find '_getConst_O_CREAT' in scope
544 | internal var _O_CREAT: CInt {
545 | #if os(WASI)
546 | _getConst_O_CREAT()
| `- error: cannot find '_getConst_O_CREAT' in scope
547 | #else
548 | O_CREAT
/host/spi-builder-workspace/Sources/AndroidSystem/Internals/Constants.swift:555:3: error: cannot find '_getConst_O_TRUNC' in scope
553 | internal var _O_TRUNC: CInt {
554 | #if os(WASI)
555 | _getConst_O_TRUNC()
| `- error: cannot find '_getConst_O_TRUNC' in scope
556 | #else
557 | O_TRUNC
/host/spi-builder-workspace/Sources/AndroidSystem/Internals/Constants.swift:564:3: error: cannot find '_getConst_O_EXCL' in scope
562 | internal var _O_EXCL: CInt {
563 | #if os(WASI)
564 | _getConst_O_EXCL()
| `- error: cannot find '_getConst_O_EXCL' in scope
565 | #else
566 | O_EXCL
/host/spi-builder-workspace/Sources/AndroidSystem/Internals/Constants.swift:583:3: error: cannot find '_getConst_O_DIRECTORY' in scope
581 | internal var _O_DIRECTORY: CInt {
582 | #if os(WASI)
583 | _getConst_O_DIRECTORY()
| `- error: cannot find '_getConst_O_DIRECTORY' in scope
584 | #else
585 | O_DIRECTORY
/host/spi-builder-workspace/Sources/AndroidSystem/Internals/Syscalls.swift:192:30: error: cannot find 'DT_DIR' in scope
190 | #if !os(Windows)
191 | internal let SYSTEM_AT_REMOVE_DIR = AT_REMOVEDIR
192 | internal let SYSTEM_DT_DIR = DT_DIR
| `- error: cannot find 'DT_DIR' in scope
193 | internal typealias system_dirent = dirent
194 | #if os(Linux) || os(Android)
/host/spi-builder-workspace/Sources/AndroidSystem/LockedState.swift:31:34: warning: UnsafeMutablePointer<Void> has been replaced by UnsafeMutableRawPointer
29 | #endif
30 |
31 | typealias PlatformLock = UnsafeMutablePointer<Primitive>
| `- warning: UnsafeMutablePointer<Void> has been replaced by UnsafeMutableRawPointer
32 | var _platformLock: PlatformLock
33 |
[10/41] Compiling AndroidSystem FilePathTempPosix.swift
/host/spi-builder-workspace/Sources/AndroidSystem/Internals/Syscalls.swift:197:57: error: cannot find type 'DIR' in scope
195 | internal typealias system_DIRPtr = OpaquePointer
196 | #else
197 | internal typealias system_DIRPtr = UnsafeMutablePointer<DIR>
| `- error: cannot find type 'DIR' in scope
198 | #endif
199 |
/host/spi-builder-workspace/Sources/AndroidSystem/Internals/Syscalls.swift:192:30: error: cannot find 'DT_DIR' in scope
190 | #if !os(Windows)
191 | internal let SYSTEM_AT_REMOVE_DIR = AT_REMOVEDIR
192 | internal let SYSTEM_DT_DIR = DT_DIR
| `- error: cannot find 'DT_DIR' in scope
193 | internal typealias system_dirent = dirent
194 | #if os(Linux) || os(Android)
[11/41] Compiling AndroidSystem FilePathTempWindows.swift
/host/spi-builder-workspace/Sources/AndroidSystem/Internals/Syscalls.swift:197:57: error: cannot find type 'DIR' in scope
195 | internal typealias system_DIRPtr = OpaquePointer
196 | #else
197 | internal typealias system_DIRPtr = UnsafeMutablePointer<DIR>
| `- error: cannot find type 'DIR' in scope
198 | #endif
199 |
/host/spi-builder-workspace/Sources/AndroidSystem/Internals/Syscalls.swift:192:30: error: cannot find 'DT_DIR' in scope
190 | #if !os(Windows)
191 | internal let SYSTEM_AT_REMOVE_DIR = AT_REMOVEDIR
192 | internal let SYSTEM_DT_DIR = DT_DIR
| `- error: cannot find 'DT_DIR' in scope
193 | internal typealias system_dirent = dirent
194 | #if os(Linux) || os(Android)
[12/41] Compiling AndroidSystem FilePathWindows.swift
/host/spi-builder-workspace/Sources/AndroidSystem/Internals/Syscalls.swift:197:57: error: cannot find type 'DIR' in scope
195 | internal typealias system_DIRPtr = OpaquePointer
196 | #else
197 | internal typealias system_DIRPtr = UnsafeMutablePointer<DIR>
| `- error: cannot find type 'DIR' in scope
198 | #endif
199 |
/host/spi-builder-workspace/Sources/AndroidSystem/Internals/Syscalls.swift:192:30: error: cannot find 'DT_DIR' in scope
190 | #if !os(Windows)
191 | internal let SYSTEM_AT_REMOVE_DIR = AT_REMOVEDIR
192 | internal let SYSTEM_DT_DIR = DT_DIR
| `- error: cannot find 'DT_DIR' in scope
193 | internal typealias system_dirent = dirent
194 | #if os(Linux) || os(Android)
[13/41] Compiling AndroidSystem FilePermissions.swift
/host/spi-builder-workspace/Sources/AndroidSystem/Internals/Syscalls.swift:197:57: error: cannot find type 'DIR' in scope
195 | internal typealias system_DIRPtr = OpaquePointer
196 | #else
197 | internal typealias system_DIRPtr = UnsafeMutablePointer<DIR>
| `- error: cannot find type 'DIR' in scope
198 | #endif
199 |
/host/spi-builder-workspace/Sources/AndroidSystem/Internals/Syscalls.swift:192:30: error: cannot find 'DT_DIR' in scope
190 | #if !os(Windows)
191 | internal let SYSTEM_AT_REMOVE_DIR = AT_REMOVEDIR
192 | internal let SYSTEM_DT_DIR = DT_DIR
| `- error: cannot find 'DT_DIR' in scope
193 | internal typealias system_dirent = dirent
194 | #if os(Linux) || os(Android)
error: emit-module command failed with exit code 1 (use -v to see invocation)
[14/41] Emitting module SwiftJNI
/host/spi-builder-workspace/.build/checkouts/swift-jni/Sources/SwiftJNI/SwiftJNI.swift:1143:23: error: cannot find 'dlopen' in scope
1141 | for libname in [nil, "libnativehelper.so", "libart.so", "libdvm.so"] {
1142 | // Windows TODO: need to use LoadLibraryW (see https://github.com/swiftlang/sourcekit-lsp/blob/main/Sources/SourceKitD/dlopen.swift)
1143 | let lib = dlopen(libname, RTLD_NOW)
| `- error: cannot find 'dlopen' in scope
1144 | typealias JavaVMPtr = UnsafeMutablePointer<JavaVM?>
1145 | typealias GetCreatedJavaVMs = @convention(c) (_ pvm: UnsafeMutablePointer<JavaVMPtr?>, _ count: Int32, _ num: UnsafeMutablePointer<Int32>) -> jint
/host/spi-builder-workspace/.build/checkouts/swift-jni/Sources/SwiftJNI/SwiftJNI.swift:1143:39: error: cannot find 'RTLD_NOW' in scope
1141 | for libname in [nil, "libnativehelper.so", "libart.so", "libdvm.so"] {
1142 | // Windows TODO: need to use LoadLibraryW (see https://github.com/swiftlang/sourcekit-lsp/blob/main/Sources/SourceKitD/dlopen.swift)
1143 | let lib = dlopen(libname, RTLD_NOW)
| `- error: cannot find 'RTLD_NOW' in scope
1144 | typealias JavaVMPtr = UnsafeMutablePointer<JavaVM?>
1145 | typealias GetCreatedJavaVMs = @convention(c) (_ pvm: UnsafeMutablePointer<JavaVMPtr?>, _ count: Int32, _ num: UnsafeMutablePointer<Int32>) -> jint
/host/spi-builder-workspace/.build/checkouts/swift-jni/Sources/SwiftJNI/SwiftJNI.swift:1148:43: error: cannot find 'dlsym' in scope
1146 |
1147 | // Windows TODO: need to use GetProcAddress
1148 | guard let getCreatedJavaVMs = dlsym(lib, "JNI_GetCreatedJavaVMs").map({ unsafeBitCast($0, to: (GetCreatedJavaVMs).self) }) else {
| `- error: cannot find 'dlsym' in scope
1149 | continue
1150 | }
/host/spi-builder-workspace/.build/checkouts/swift-jni/Sources/SwiftJNI/SwiftJNI.swift:1183:44: error: cannot find 'dlsym' in scope
1181 | typealias CreateJavaVM = @convention(c) (_ pvm: UnsafeMutablePointer<UnsafeMutablePointer<JavaVM?>?>?, _ penv: UnsafeMutablePointer<UnsafeMutablePointer<JNIEnv?>?>?, _ args: UnsafeMutableRawPointer) -> jint
1182 |
1183 | guard let JNI_CreateJavaVM_dlsym = dlsym(library, "JNI_CreateJavaVM").map({ unsafeBitCast($0, to: (CreateJavaVM).self) }) else {
| `- error: cannot find 'dlsym' in scope
1184 | throw JVMError(description: "Unable to dlsym JNI_CreateJavaVM")
1185 | }
[15/41] Compiling SwiftJNI SwiftJNI.swift
/host/spi-builder-workspace/.build/checkouts/swift-jni/Sources/SwiftJNI/SwiftJNI.swift:1143:23: error: cannot find 'dlopen' in scope
1141 | for libname in [nil, "libnativehelper.so", "libart.so", "libdvm.so"] {
1142 | // Windows TODO: need to use LoadLibraryW (see https://github.com/swiftlang/sourcekit-lsp/blob/main/Sources/SourceKitD/dlopen.swift)
1143 | let lib = dlopen(libname, RTLD_NOW)
| `- error: cannot find 'dlopen' in scope
1144 | typealias JavaVMPtr = UnsafeMutablePointer<JavaVM?>
1145 | typealias GetCreatedJavaVMs = @convention(c) (_ pvm: UnsafeMutablePointer<JavaVMPtr?>, _ count: Int32, _ num: UnsafeMutablePointer<Int32>) -> jint
/host/spi-builder-workspace/.build/checkouts/swift-jni/Sources/SwiftJNI/SwiftJNI.swift:1143:39: error: cannot find 'RTLD_NOW' in scope
1141 | for libname in [nil, "libnativehelper.so", "libart.so", "libdvm.so"] {
1142 | // Windows TODO: need to use LoadLibraryW (see https://github.com/swiftlang/sourcekit-lsp/blob/main/Sources/SourceKitD/dlopen.swift)
1143 | let lib = dlopen(libname, RTLD_NOW)
| `- error: cannot find 'RTLD_NOW' in scope
1144 | typealias JavaVMPtr = UnsafeMutablePointer<JavaVM?>
1145 | typealias GetCreatedJavaVMs = @convention(c) (_ pvm: UnsafeMutablePointer<JavaVMPtr?>, _ count: Int32, _ num: UnsafeMutablePointer<Int32>) -> jint
/host/spi-builder-workspace/.build/checkouts/swift-jni/Sources/SwiftJNI/SwiftJNI.swift:1148:43: error: cannot find 'dlsym' in scope
1146 |
1147 | // Windows TODO: need to use GetProcAddress
1148 | guard let getCreatedJavaVMs = dlsym(lib, "JNI_GetCreatedJavaVMs").map({ unsafeBitCast($0, to: (GetCreatedJavaVMs).self) }) else {
| `- error: cannot find 'dlsym' in scope
1149 | continue
1150 | }
/host/spi-builder-workspace/.build/checkouts/swift-jni/Sources/SwiftJNI/SwiftJNI.swift:1183:44: error: cannot find 'dlsym' in scope
1181 | typealias CreateJavaVM = @convention(c) (_ pvm: UnsafeMutablePointer<UnsafeMutablePointer<JavaVM?>?>?, _ penv: UnsafeMutablePointer<UnsafeMutablePointer<JNIEnv?>?>?, _ args: UnsafeMutableRawPointer) -> jint
1182 |
1183 | guard let JNI_CreateJavaVM_dlsym = dlsym(library, "JNI_CreateJavaVM").map({ unsafeBitCast($0, to: (CreateJavaVM).self) }) else {
| `- error: cannot find 'dlsym' in scope
1184 | throw JVMError(description: "Unable to dlsym JNI_CreateJavaVM")
1185 | }
/host/spi-builder-workspace/.build/checkouts/swift-jni/Sources/SwiftJNI/SwiftJNI.swift:1232:12: error: cannot find 'getenv' in scope
1230 |
1231 | // if JAVA_HOME is unset, default to the Homebrew installation
1232 | if getenv("JAVA_HOME") == nil {
| `- error: cannot find 'getenv' in scope
1233 | if FileManager.default.fileExists(atPath: "/opt/homebrew/opt/java") {
1234 | setenv("JAVA_HOME", "/opt/homebrew/opt/java", 0) // Homebrew ARM location
/host/spi-builder-workspace/.build/checkouts/swift-jni/Sources/SwiftJNI/SwiftJNI.swift:1234:17: error: cannot find 'setenv' in scope
1232 | if getenv("JAVA_HOME") == nil {
1233 | if FileManager.default.fileExists(atPath: "/opt/homebrew/opt/java") {
1234 | setenv("JAVA_HOME", "/opt/homebrew/opt/java", 0) // Homebrew ARM location
| `- error: cannot find 'setenv' in scope
1235 | } else if FileManager.default.fileExists(atPath: "/usr/local/opt/java") {
1236 | setenv("JAVA_HOME", "/usr/local/opt/java", 0) // Homebrew Intel location
/host/spi-builder-workspace/.build/checkouts/swift-jni/Sources/SwiftJNI/SwiftJNI.swift:1236:17: error: cannot find 'setenv' in scope
1234 | setenv("JAVA_HOME", "/opt/homebrew/opt/java", 0) // Homebrew ARM location
1235 | } else if FileManager.default.fileExists(atPath: "/usr/local/opt/java") {
1236 | setenv("JAVA_HOME", "/usr/local/opt/java", 0) // Homebrew Intel location
| `- error: cannot find 'setenv' in scope
1237 | } else {
1238 | throw JVMError(description: "No JAVA_HOME set, and could not locate default Java installation")
/host/spi-builder-workspace/.build/checkouts/swift-jni/Sources/SwiftJNI/SwiftJNI.swift:1241:25: error: cannot find 'getenv' in scope
1239 | }
1240 | }
1241 | let JAVA_HOME = getenv("JAVA_HOME")!
| `- error: cannot find 'getenv' in scope
1242 | let javaHome = URL(fileURLWithPath: String(validatingUTF8: JAVA_HOME)!)
1243 |
/host/spi-builder-workspace/.build/checkouts/swift-jni/Sources/SwiftJNI/SwiftJNI.swift:1261:79: error: cannot infer key path type from context; consider explicitly specifying a root type
1259 |
1260 | guard let lib = libs.first(where: { FileManager.default.isReadableFile(atPath: $0.path) }) else {
1261 | throw JVMError(description: "Could not find libjvm in: \(libs.map(\.path))")
| `- error: cannot infer key path type from context; consider explicitly specifying a root type
1262 | }
1263 |
/host/spi-builder-workspace/.build/checkouts/swift-jni/Sources/SwiftJNI/SwiftJNI.swift:1265:27: error: cannot find 'dlopen' in scope
1263 |
1264 | // TODO: on macOS, reduce signal interception debugging issues by locating libjsig.dylib and adding it to DYLD_INSERT_LIBRARIES
1265 | guard let dylib = dlopen(lib.path, RTLD_NOW) else {
| `- error: cannot find 'dlopen' in scope
1266 | if let error = dlerror() {
1267 | throw JVMError(description: "dlopen error: \(String(cString: error))")
/host/spi-builder-workspace/.build/checkouts/swift-jni/Sources/SwiftJNI/SwiftJNI.swift:1265:44: error: cannot find 'RTLD_NOW' in scope
1263 |
1264 | // TODO: on macOS, reduce signal interception debugging issues by locating libjsig.dylib and adding it to DYLD_INSERT_LIBRARIES
1265 | guard let dylib = dlopen(lib.path, RTLD_NOW) else {
| `- error: cannot find 'RTLD_NOW' in scope
1266 | if let error = dlerror() {
1267 | throw JVMError(description: "dlopen error: \(String(cString: error))")
/host/spi-builder-workspace/.build/checkouts/swift-jni/Sources/SwiftJNI/SwiftJNI.swift:1266:28: error: cannot find 'dlerror' in scope
1264 | // TODO: on macOS, reduce signal interception debugging issues by locating libjsig.dylib and adding it to DYLD_INSERT_LIBRARIES
1265 | guard let dylib = dlopen(lib.path, RTLD_NOW) else {
1266 | if let error = dlerror() {
| `- error: cannot find 'dlerror' in scope
1267 | throw JVMError(description: "dlopen error: \(String(cString: error))")
1268 | } else {
/host/spi-builder-workspace/.build/checkouts/swift-jni/Sources/SwiftJNI/SwiftJNI.swift:1283:27: error: cannot find 'strlen' in scope
1281 | init(_ string: String) {
1282 | (length, buffer) = string.withCString {
1283 | let len = Int(strlen($0) + 1)
| `- error: cannot find 'strlen' in scope
1284 | let dst = UnsafePointer(strcpy(UnsafeMutablePointer<CChar>.allocate(capacity: len), $0))
1285 | return (len, dst!)
/host/spi-builder-workspace/.build/checkouts/swift-jni/Sources/SwiftJNI/SwiftJNI.swift:1284:37: error: cannot find 'strcpy' in scope
1282 | (length, buffer) = string.withCString {
1283 | let len = Int(strlen($0) + 1)
1284 | let dst = UnsafePointer(strcpy(UnsafeMutablePointer<CChar>.allocate(capacity: len), $0))
| `- error: cannot find 'strcpy' in scope
1285 | return (len, dst!)
1286 | }
BUILD FAILURE 6.1 wasm