The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Failed to build swift-android-native, reference main (763e53), with Swift 6.1 for Wasm on 27 Jun 2025 16:28:21 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/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.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/skiptools/swift-android-native.git
Reference: main
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: 	git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: 	git branch -m <name>
From https://github.com/skiptools/swift-android-native
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 763e53f Re-try brew install skip after running brew update on failure
Cloned https://github.com/skiptools/swift-android-native.git
Revision (git rev-parse @):
763e53f5864c7a95f634e253531e73cb584f9408
SUCCESS checkout https://github.com/skiptools/swift-android-native.git at main
========================================
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-4606859-0":/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:8f9255989265d824b88e7d572b1a334a0dc9b701075ede1970390db95d315c35
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/113] Fetching swift-jni
Fetched https://source.skip.tools/swift-jni.git from cache (1.04s)
Computing version for https://source.skip.tools/swift-jni.git
Computed https://source.skip.tools/swift-jni.git at 0.3.0 (1.82s)
Creating working copy for https://source.skip.tools/swift-jni.git
Working copy of https://source.skip.tools/swift-jni.git resolved at 0.3.0
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
error: emit-module command failed with exit code 1 (use -v to see invocation)
[12/47] Compiling AndroidSystem FileOperations.swift
[13/47] Compiling AndroidSystem FilePath.swift
[14/47] Compiling AndroidSystem FilePathComponentView.swift
[15/47] Compiling AndroidSystem FilePathComponents.swift
[16/47] 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 |
[17/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
[18/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
[20/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
[21/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
[22/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
[23/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
error: emit-module command failed with exit code 1 (use -v to see invocation)
[24/51] Emitting module SwiftJNI
/host/spi-builder-workspace/.build/checkouts/swift-jni/Sources/SwiftJNI/SwiftJNI.swift:1324:23: error: cannot find 'dlopen' in scope
1322 |         for libname in [nil, "libnativehelper.so", "libart.so", "libdvm.so"] {
1323 |             // Windows TODO: need to use LoadLibraryW (see https://github.com/swiftlang/sourcekit-lsp/blob/main/Sources/SourceKitD/dlopen.swift)
1324 |             let lib = dlopen(libname, RTLD_NOW)
     |                       `- error: cannot find 'dlopen' in scope
1325 |             typealias JavaVMPtr = UnsafeMutablePointer<JavaVM?>
1326 |             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:1324:39: error: cannot find 'RTLD_NOW' in scope
1322 |         for libname in [nil, "libnativehelper.so", "libart.so", "libdvm.so"] {
1323 |             // Windows TODO: need to use LoadLibraryW (see https://github.com/swiftlang/sourcekit-lsp/blob/main/Sources/SourceKitD/dlopen.swift)
1324 |             let lib = dlopen(libname, RTLD_NOW)
     |                                       `- error: cannot find 'RTLD_NOW' in scope
1325 |             typealias JavaVMPtr = UnsafeMutablePointer<JavaVM?>
1326 |             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:1329:43: error: cannot find 'dlsym' in scope
1327 |
1328 |             // Windows TODO: need to use GetProcAddress
1329 |             guard let getCreatedJavaVMs = dlsym(lib, "JNI_GetCreatedJavaVMs").map({ unsafeBitCast($0, to: (GetCreatedJavaVMs).self) }) else {
     |                                           `- error: cannot find 'dlsym' in scope
1330 |                 continue
1331 |             }
/host/spi-builder-workspace/.build/checkouts/swift-jni/Sources/SwiftJNI/SwiftJNI.swift:1364:44: error: cannot find 'dlsym' in scope
1362 |         typealias CreateJavaVM = @convention(c) (_ pvm: UnsafeMutablePointer<UnsafeMutablePointer<JavaVM?>?>?, _ penv: UnsafeMutablePointer<UnsafeMutablePointer<JNIEnv?>?>?, _ args: UnsafeMutableRawPointer) -> jint
1363 |
1364 |         guard let JNI_CreateJavaVM_dlsym = dlsym(library, "JNI_CreateJavaVM").map({ unsafeBitCast($0, to: (CreateJavaVM).self) }) else {
     |                                            `- error: cannot find 'dlsym' in scope
1365 |             throw JVMError(description: "Unable to dlsym JNI_CreateJavaVM")
1366 |         }
[25/51] Compiling SwiftJNI SwiftJNI.swift
/host/spi-builder-workspace/.build/checkouts/swift-jni/Sources/SwiftJNI/SwiftJNI.swift:1324:23: error: cannot find 'dlopen' in scope
1322 |         for libname in [nil, "libnativehelper.so", "libart.so", "libdvm.so"] {
1323 |             // Windows TODO: need to use LoadLibraryW (see https://github.com/swiftlang/sourcekit-lsp/blob/main/Sources/SourceKitD/dlopen.swift)
1324 |             let lib = dlopen(libname, RTLD_NOW)
     |                       `- error: cannot find 'dlopen' in scope
1325 |             typealias JavaVMPtr = UnsafeMutablePointer<JavaVM?>
1326 |             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:1324:39: error: cannot find 'RTLD_NOW' in scope
1322 |         for libname in [nil, "libnativehelper.so", "libart.so", "libdvm.so"] {
1323 |             // Windows TODO: need to use LoadLibraryW (see https://github.com/swiftlang/sourcekit-lsp/blob/main/Sources/SourceKitD/dlopen.swift)
1324 |             let lib = dlopen(libname, RTLD_NOW)
     |                                       `- error: cannot find 'RTLD_NOW' in scope
1325 |             typealias JavaVMPtr = UnsafeMutablePointer<JavaVM?>
1326 |             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:1329:43: error: cannot find 'dlsym' in scope
1327 |
1328 |             // Windows TODO: need to use GetProcAddress
1329 |             guard let getCreatedJavaVMs = dlsym(lib, "JNI_GetCreatedJavaVMs").map({ unsafeBitCast($0, to: (GetCreatedJavaVMs).self) }) else {
     |                                           `- error: cannot find 'dlsym' in scope
1330 |                 continue
1331 |             }
/host/spi-builder-workspace/.build/checkouts/swift-jni/Sources/SwiftJNI/SwiftJNI.swift:1364:44: error: cannot find 'dlsym' in scope
1362 |         typealias CreateJavaVM = @convention(c) (_ pvm: UnsafeMutablePointer<UnsafeMutablePointer<JavaVM?>?>?, _ penv: UnsafeMutablePointer<UnsafeMutablePointer<JNIEnv?>?>?, _ args: UnsafeMutableRawPointer) -> jint
1363 |
1364 |         guard let JNI_CreateJavaVM_dlsym = dlsym(library, "JNI_CreateJavaVM").map({ unsafeBitCast($0, to: (CreateJavaVM).self) }) else {
     |                                            `- error: cannot find 'dlsym' in scope
1365 |             throw JVMError(description: "Unable to dlsym JNI_CreateJavaVM")
1366 |         }
/host/spi-builder-workspace/.build/checkouts/swift-jni/Sources/SwiftJNI/SwiftJNI.swift:1413:12: error: cannot find 'getenv' in scope
1411 |
1412 |         // if JAVA_HOME is unset, default to the Homebrew installation
1413 |         if getenv("JAVA_HOME") == nil {
     |            `- error: cannot find 'getenv' in scope
1414 |             if FileManager.default.fileExists(atPath: "/opt/homebrew/opt/java") {
1415 |                 setenv("JAVA_HOME", "/opt/homebrew/opt/java", 0) // Homebrew ARM location
/host/spi-builder-workspace/.build/checkouts/swift-jni/Sources/SwiftJNI/SwiftJNI.swift:1415:17: error: cannot find 'setenv' in scope
1413 |         if getenv("JAVA_HOME") == nil {
1414 |             if FileManager.default.fileExists(atPath: "/opt/homebrew/opt/java") {
1415 |                 setenv("JAVA_HOME", "/opt/homebrew/opt/java", 0) // Homebrew ARM location
     |                 `- error: cannot find 'setenv' in scope
1416 |             } else if FileManager.default.fileExists(atPath: "/usr/local/opt/java") {
1417 |                 setenv("JAVA_HOME", "/usr/local/opt/java", 0) // Homebrew Intel location
/host/spi-builder-workspace/.build/checkouts/swift-jni/Sources/SwiftJNI/SwiftJNI.swift:1417:17: error: cannot find 'setenv' in scope
1415 |                 setenv("JAVA_HOME", "/opt/homebrew/opt/java", 0) // Homebrew ARM location
1416 |             } else if FileManager.default.fileExists(atPath: "/usr/local/opt/java") {
1417 |                 setenv("JAVA_HOME", "/usr/local/opt/java", 0) // Homebrew Intel location
     |                 `- error: cannot find 'setenv' in scope
1418 |             } else {
1419 |                 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:1422:25: error: cannot find 'getenv' in scope
1420 |             }
1421 |         }
1422 |         let JAVA_HOME = getenv("JAVA_HOME")!
     |                         `- error: cannot find 'getenv' in scope
1423 |         let javaHome = URL(fileURLWithPath: String(validatingUTF8: JAVA_HOME)!)
1424 |
/host/spi-builder-workspace/.build/checkouts/swift-jni/Sources/SwiftJNI/SwiftJNI.swift:1442:79: error: cannot infer key path type from context; consider explicitly specifying a root type
1440 |
1441 |         guard let lib = libs.first(where: { FileManager.default.isReadableFile(atPath: $0.path) }) else {
1442 |             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
1443 |         }
1444 |
/host/spi-builder-workspace/.build/checkouts/swift-jni/Sources/SwiftJNI/SwiftJNI.swift:1446:27: error: cannot find 'dlopen' in scope
1444 |
1445 |         // TODO: on macOS, reduce signal interception debugging issues by locating libjsig.dylib and adding it to DYLD_INSERT_LIBRARIES
1446 |         guard let dylib = dlopen(lib.path, RTLD_NOW) else {
     |                           `- error: cannot find 'dlopen' in scope
1447 |             if let error = dlerror() {
1448 |                 throw JVMError(description: "dlopen error: \(String(cString: error))")
/host/spi-builder-workspace/.build/checkouts/swift-jni/Sources/SwiftJNI/SwiftJNI.swift:1446:44: error: cannot find 'RTLD_NOW' in scope
1444 |
1445 |         // TODO: on macOS, reduce signal interception debugging issues by locating libjsig.dylib and adding it to DYLD_INSERT_LIBRARIES
1446 |         guard let dylib = dlopen(lib.path, RTLD_NOW) else {
     |                                            `- error: cannot find 'RTLD_NOW' in scope
1447 |             if let error = dlerror() {
1448 |                 throw JVMError(description: "dlopen error: \(String(cString: error))")
/host/spi-builder-workspace/.build/checkouts/swift-jni/Sources/SwiftJNI/SwiftJNI.swift:1447:28: error: cannot find 'dlerror' in scope
1445 |         // TODO: on macOS, reduce signal interception debugging issues by locating libjsig.dylib and adding it to DYLD_INSERT_LIBRARIES
1446 |         guard let dylib = dlopen(lib.path, RTLD_NOW) else {
1447 |             if let error = dlerror() {
     |                            `- error: cannot find 'dlerror' in scope
1448 |                 throw JVMError(description: "dlopen error: \(String(cString: error))")
1449 |             } else {
/host/spi-builder-workspace/.build/checkouts/swift-jni/Sources/SwiftJNI/SwiftJNI.swift:1464:27: error: cannot find 'strlen' in scope
1462 |     init(_ string: String) {
1463 |         (length, buffer) = string.withCString {
1464 |             let len = Int(strlen($0) + 1)
     |                           `- error: cannot find 'strlen' in scope
1465 |             let dst = UnsafePointer(strcpy(UnsafeMutablePointer<CChar>.allocate(capacity: len), $0))
1466 |             return (len, dst!)
/host/spi-builder-workspace/.build/checkouts/swift-jni/Sources/SwiftJNI/SwiftJNI.swift:1465:37: error: cannot find 'strcpy' in scope
1463 |         (length, buffer) = string.withCString {
1464 |             let len = Int(strlen($0) + 1)
1465 |             let dst = UnsafePointer(strcpy(UnsafeMutablePointer<CChar>.allocate(capacity: len), $0))
     |                                     `- error: cannot find 'strcpy' in scope
1466 |             return (len, dst!)
1467 |         }
[26/51] Compiling AndroidSystem FilePathParsing.swift
[27/51] Compiling AndroidSystem FilePathString.swift
[28/51] Compiling AndroidSystem FilePathSyntax.swift
[29/51] Compiling AndroidSystem FilePathTemp.swift
[30/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 |
[31/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 |
[32/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 |
[33/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 |
[34/51] Compiling AndroidSystem Errno.swift
[35/51] Compiling AndroidSystem ErrnoWindows.swift
[36/51] Compiling AndroidSystem FileDescriptor.swift
[37/51] Compiling AndroidSystem FileHelpers.swift
[38/51] 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)
[39/51] 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)
[40/51] 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)
[41/51] 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)
[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 |
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/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:8f9255989265d824b88e7d572b1a334a0dc9b701075ede1970390db95d315c35
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] Emitting module AndroidLogging
[3/37] Compiling AndroidLogging AndroidLogging.swift
[4/38] 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 |
[5/38] 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 |
[6/38] 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 |
[7/38] 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 |
error: emit-module command failed with exit code 1 (use -v to see invocation)
[9/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 |
error: emit-module command failed with exit code 1 (use -v to see invocation)
[10/41] Emitting module SwiftJNI
/host/spi-builder-workspace/.build/checkouts/swift-jni/Sources/SwiftJNI/SwiftJNI.swift:1324:23: error: cannot find 'dlopen' in scope
1322 |         for libname in [nil, "libnativehelper.so", "libart.so", "libdvm.so"] {
1323 |             // Windows TODO: need to use LoadLibraryW (see https://github.com/swiftlang/sourcekit-lsp/blob/main/Sources/SourceKitD/dlopen.swift)
1324 |             let lib = dlopen(libname, RTLD_NOW)
     |                       `- error: cannot find 'dlopen' in scope
1325 |             typealias JavaVMPtr = UnsafeMutablePointer<JavaVM?>
1326 |             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:1324:39: error: cannot find 'RTLD_NOW' in scope
1322 |         for libname in [nil, "libnativehelper.so", "libart.so", "libdvm.so"] {
1323 |             // Windows TODO: need to use LoadLibraryW (see https://github.com/swiftlang/sourcekit-lsp/blob/main/Sources/SourceKitD/dlopen.swift)
1324 |             let lib = dlopen(libname, RTLD_NOW)
     |                                       `- error: cannot find 'RTLD_NOW' in scope
1325 |             typealias JavaVMPtr = UnsafeMutablePointer<JavaVM?>
1326 |             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:1329:43: error: cannot find 'dlsym' in scope
1327 |
1328 |             // Windows TODO: need to use GetProcAddress
1329 |             guard let getCreatedJavaVMs = dlsym(lib, "JNI_GetCreatedJavaVMs").map({ unsafeBitCast($0, to: (GetCreatedJavaVMs).self) }) else {
     |                                           `- error: cannot find 'dlsym' in scope
1330 |                 continue
1331 |             }
/host/spi-builder-workspace/.build/checkouts/swift-jni/Sources/SwiftJNI/SwiftJNI.swift:1364:44: error: cannot find 'dlsym' in scope
1362 |         typealias CreateJavaVM = @convention(c) (_ pvm: UnsafeMutablePointer<UnsafeMutablePointer<JavaVM?>?>?, _ penv: UnsafeMutablePointer<UnsafeMutablePointer<JNIEnv?>?>?, _ args: UnsafeMutableRawPointer) -> jint
1363 |
1364 |         guard let JNI_CreateJavaVM_dlsym = dlsym(library, "JNI_CreateJavaVM").map({ unsafeBitCast($0, to: (CreateJavaVM).self) }) else {
     |                                            `- error: cannot find 'dlsym' in scope
1365 |             throw JVMError(description: "Unable to dlsym JNI_CreateJavaVM")
1366 |         }
[11/41] Compiling SwiftJNI SwiftJNI.swift
/host/spi-builder-workspace/.build/checkouts/swift-jni/Sources/SwiftJNI/SwiftJNI.swift:1324:23: error: cannot find 'dlopen' in scope
1322 |         for libname in [nil, "libnativehelper.so", "libart.so", "libdvm.so"] {
1323 |             // Windows TODO: need to use LoadLibraryW (see https://github.com/swiftlang/sourcekit-lsp/blob/main/Sources/SourceKitD/dlopen.swift)
1324 |             let lib = dlopen(libname, RTLD_NOW)
     |                       `- error: cannot find 'dlopen' in scope
1325 |             typealias JavaVMPtr = UnsafeMutablePointer<JavaVM?>
1326 |             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:1324:39: error: cannot find 'RTLD_NOW' in scope
1322 |         for libname in [nil, "libnativehelper.so", "libart.so", "libdvm.so"] {
1323 |             // Windows TODO: need to use LoadLibraryW (see https://github.com/swiftlang/sourcekit-lsp/blob/main/Sources/SourceKitD/dlopen.swift)
1324 |             let lib = dlopen(libname, RTLD_NOW)
     |                                       `- error: cannot find 'RTLD_NOW' in scope
1325 |             typealias JavaVMPtr = UnsafeMutablePointer<JavaVM?>
1326 |             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:1329:43: error: cannot find 'dlsym' in scope
1327 |
1328 |             // Windows TODO: need to use GetProcAddress
1329 |             guard let getCreatedJavaVMs = dlsym(lib, "JNI_GetCreatedJavaVMs").map({ unsafeBitCast($0, to: (GetCreatedJavaVMs).self) }) else {
     |                                           `- error: cannot find 'dlsym' in scope
1330 |                 continue
1331 |             }
/host/spi-builder-workspace/.build/checkouts/swift-jni/Sources/SwiftJNI/SwiftJNI.swift:1364:44: error: cannot find 'dlsym' in scope
1362 |         typealias CreateJavaVM = @convention(c) (_ pvm: UnsafeMutablePointer<UnsafeMutablePointer<JavaVM?>?>?, _ penv: UnsafeMutablePointer<UnsafeMutablePointer<JNIEnv?>?>?, _ args: UnsafeMutableRawPointer) -> jint
1363 |
1364 |         guard let JNI_CreateJavaVM_dlsym = dlsym(library, "JNI_CreateJavaVM").map({ unsafeBitCast($0, to: (CreateJavaVM).self) }) else {
     |                                            `- error: cannot find 'dlsym' in scope
1365 |             throw JVMError(description: "Unable to dlsym JNI_CreateJavaVM")
1366 |         }
/host/spi-builder-workspace/.build/checkouts/swift-jni/Sources/SwiftJNI/SwiftJNI.swift:1413:12: error: cannot find 'getenv' in scope
1411 |
1412 |         // if JAVA_HOME is unset, default to the Homebrew installation
1413 |         if getenv("JAVA_HOME") == nil {
     |            `- error: cannot find 'getenv' in scope
1414 |             if FileManager.default.fileExists(atPath: "/opt/homebrew/opt/java") {
1415 |                 setenv("JAVA_HOME", "/opt/homebrew/opt/java", 0) // Homebrew ARM location
/host/spi-builder-workspace/.build/checkouts/swift-jni/Sources/SwiftJNI/SwiftJNI.swift:1415:17: error: cannot find 'setenv' in scope
1413 |         if getenv("JAVA_HOME") == nil {
1414 |             if FileManager.default.fileExists(atPath: "/opt/homebrew/opt/java") {
1415 |                 setenv("JAVA_HOME", "/opt/homebrew/opt/java", 0) // Homebrew ARM location
     |                 `- error: cannot find 'setenv' in scope
1416 |             } else if FileManager.default.fileExists(atPath: "/usr/local/opt/java") {
1417 |                 setenv("JAVA_HOME", "/usr/local/opt/java", 0) // Homebrew Intel location
/host/spi-builder-workspace/.build/checkouts/swift-jni/Sources/SwiftJNI/SwiftJNI.swift:1417:17: error: cannot find 'setenv' in scope
1415 |                 setenv("JAVA_HOME", "/opt/homebrew/opt/java", 0) // Homebrew ARM location
1416 |             } else if FileManager.default.fileExists(atPath: "/usr/local/opt/java") {
1417 |                 setenv("JAVA_HOME", "/usr/local/opt/java", 0) // Homebrew Intel location
     |                 `- error: cannot find 'setenv' in scope
1418 |             } else {
1419 |                 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:1422:25: error: cannot find 'getenv' in scope
1420 |             }
1421 |         }
1422 |         let JAVA_HOME = getenv("JAVA_HOME")!
     |                         `- error: cannot find 'getenv' in scope
1423 |         let javaHome = URL(fileURLWithPath: String(validatingUTF8: JAVA_HOME)!)
1424 |
/host/spi-builder-workspace/.build/checkouts/swift-jni/Sources/SwiftJNI/SwiftJNI.swift:1442:79: error: cannot infer key path type from context; consider explicitly specifying a root type
1440 |
1441 |         guard let lib = libs.first(where: { FileManager.default.isReadableFile(atPath: $0.path) }) else {
1442 |             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
1443 |         }
1444 |
/host/spi-builder-workspace/.build/checkouts/swift-jni/Sources/SwiftJNI/SwiftJNI.swift:1446:27: error: cannot find 'dlopen' in scope
1444 |
1445 |         // TODO: on macOS, reduce signal interception debugging issues by locating libjsig.dylib and adding it to DYLD_INSERT_LIBRARIES
1446 |         guard let dylib = dlopen(lib.path, RTLD_NOW) else {
     |                           `- error: cannot find 'dlopen' in scope
1447 |             if let error = dlerror() {
1448 |                 throw JVMError(description: "dlopen error: \(String(cString: error))")
/host/spi-builder-workspace/.build/checkouts/swift-jni/Sources/SwiftJNI/SwiftJNI.swift:1446:44: error: cannot find 'RTLD_NOW' in scope
1444 |
1445 |         // TODO: on macOS, reduce signal interception debugging issues by locating libjsig.dylib and adding it to DYLD_INSERT_LIBRARIES
1446 |         guard let dylib = dlopen(lib.path, RTLD_NOW) else {
     |                                            `- error: cannot find 'RTLD_NOW' in scope
1447 |             if let error = dlerror() {
1448 |                 throw JVMError(description: "dlopen error: \(String(cString: error))")
/host/spi-builder-workspace/.build/checkouts/swift-jni/Sources/SwiftJNI/SwiftJNI.swift:1447:28: error: cannot find 'dlerror' in scope
1445 |         // TODO: on macOS, reduce signal interception debugging issues by locating libjsig.dylib and adding it to DYLD_INSERT_LIBRARIES
1446 |         guard let dylib = dlopen(lib.path, RTLD_NOW) else {
1447 |             if let error = dlerror() {
     |                            `- error: cannot find 'dlerror' in scope
1448 |                 throw JVMError(description: "dlopen error: \(String(cString: error))")
1449 |             } else {
/host/spi-builder-workspace/.build/checkouts/swift-jni/Sources/SwiftJNI/SwiftJNI.swift:1464:27: error: cannot find 'strlen' in scope
1462 |     init(_ string: String) {
1463 |         (length, buffer) = string.withCString {
1464 |             let len = Int(strlen($0) + 1)
     |                           `- error: cannot find 'strlen' in scope
1465 |             let dst = UnsafePointer(strcpy(UnsafeMutablePointer<CChar>.allocate(capacity: len), $0))
1466 |             return (len, dst!)
/host/spi-builder-workspace/.build/checkouts/swift-jni/Sources/SwiftJNI/SwiftJNI.swift:1465:37: error: cannot find 'strcpy' in scope
1463 |         (length, buffer) = string.withCString {
1464 |             let len = Int(strlen($0) + 1)
1465 |             let dst = UnsafePointer(strcpy(UnsafeMutablePointer<CChar>.allocate(capacity: len), $0))
     |                                     `- error: cannot find 'strcpy' in scope
1466 |             return (len, dst!)
1467 |         }
[12/41] Compiling AndroidSystem Errno.swift
[13/41] Compiling AndroidSystem ErrnoWindows.swift
[14/41] Compiling AndroidSystem FileDescriptor.swift
[15/41] Compiling AndroidSystem FileHelpers.swift
[16/41] 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 |
[17/41] 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 |
[18/41] 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 |
[19/41] 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 |
BUILD FAILURE 6.1 wasm