The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Failed to build Android, reference master (f00c18), with Swift 6.0 for macOS (SPM) on 31 Oct 2024 19:29:05 UTC.

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete

Build Log

========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/pureswift/android.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/pureswift/android
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at f00c184 Add `RuntimeConfiguration`
Cloned https://github.com/pureswift/android.git
Revision (git rev-parse @):
f00c184a7f8f66acad8d58b85c4f64bd89ff423a
SUCCESS checkout https://github.com/pureswift/android.git at master
Fetching https://github.com/PureSwift/java_util.git
[1/1163] Fetching java_util
Fetched https://github.com/PureSwift/java_util.git from cache (1.05s)
Fetching https://github.com/PureSwift/JNI.git
[1/109] Fetching jni
Fetched https://github.com/PureSwift/JNI.git from cache (0.64s)
Fetching https://github.com/PureSwift/java_lang.git
[1/760] Fetching java_lang
Fetched https://github.com/PureSwift/java_lang.git from cache (0.96s)
Fetching https://github.com/PureSwift/java_swift.git
[1/389] Fetching java_swift
Fetched https://github.com/PureSwift/java_swift.git from cache (0.76s)
Fetching https://github.com/PureSwift/CJavaVM.git
[1/58] Fetching cjavavm
Fetched https://github.com/PureSwift/CJavaVM.git from cache (0.65s)
Creating working copy for https://github.com/PureSwift/java_lang.git
Working copy of https://github.com/PureSwift/java_lang.git resolved at master (71188f8)
Creating working copy for https://github.com/PureSwift/java_swift.git
Working copy of https://github.com/PureSwift/java_swift.git resolved at master (e6b10cc)
Creating working copy for https://github.com/PureSwift/CJavaVM.git
Working copy of https://github.com/PureSwift/CJavaVM.git resolved at master (3b19893)
Creating working copy for https://github.com/PureSwift/JNI.git
Working copy of https://github.com/PureSwift/JNI.git resolved at master (a2901c1)
Creating working copy for https://github.com/PureSwift/java_util.git
Working copy of https://github.com/PureSwift/java_util.git resolved at master (b4240b5)
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
  "identity": ".resolve-product-dependencies",
  "name": "resolve-dependencies",
  "url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "version": "unspecified",
  "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "dependencies": [
    {
      "identity": "android",
      "name": "Android",
      "url": "https://github.com/pureswift/android.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/android",
      "dependencies": [
        {
          "identity": "java_util",
          "name": "java_util",
          "url": "https://github.com/PureSwift/java_util.git",
          "version": "unspecified",
          "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/java_util",
          "dependencies": [
            {
              "identity": "java_lang",
              "name": "java_lang",
              "url": "https://github.com/PureSwift/java_lang.git",
              "version": "unspecified",
              "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/java_lang",
              "dependencies": [
                {
                  "identity": "java_swift",
                  "name": "java_swift",
                  "url": "https://github.com/PureSwift/java_swift.git",
                  "version": "unspecified",
                  "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/java_swift",
                  "dependencies": [
                    {
                      "identity": "cjavavm",
                      "name": "CJavaVM",
                      "url": "https://github.com/PureSwift/CJavaVM.git",
                      "version": "unspecified",
                      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/CJavaVM",
                      "dependencies": [
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "identity": "jni",
          "name": "JNI",
          "url": "https://github.com/PureSwift/JNI.git",
          "version": "unspecified",
          "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/JNI",
          "dependencies": [
          ]
        }
      ]
    }
  ]
}
Fetching https://github.com/pureswift/android.git
[1/2502] Fetching android
Fetched https://github.com/pureswift/android.git from cache (1.06s)
Fetching https://github.com/PureSwift/java_util.git from cache
Fetched https://github.com/PureSwift/java_util.git from cache (0.49s)
Fetching https://github.com/PureSwift/JNI.git from cache
Fetched https://github.com/PureSwift/JNI.git from cache (0.49s)
Fetching https://github.com/PureSwift/java_lang.git from cache
Fetched https://github.com/PureSwift/java_lang.git from cache (0.48s)
Fetching https://github.com/PureSwift/java_swift.git from cache
Fetched https://github.com/PureSwift/java_swift.git from cache (0.46s)
Fetching https://github.com/PureSwift/CJavaVM.git from cache
Fetched https://github.com/PureSwift/CJavaVM.git from cache (0.50s)
Creating working copy for https://github.com/PureSwift/java_util.git
Working copy of https://github.com/PureSwift/java_util.git resolved at master (b4240b5)
Creating working copy for https://github.com/PureSwift/CJavaVM.git
Working copy of https://github.com/PureSwift/CJavaVM.git resolved at master (3b19893)
Creating working copy for https://github.com/PureSwift/java_lang.git
Working copy of https://github.com/PureSwift/java_lang.git resolved at master (71188f8)
Creating working copy for https://github.com/pureswift/android.git
Working copy of https://github.com/pureswift/android.git resolved at master (f00c184)
Creating working copy for https://github.com/PureSwift/JNI.git
Working copy of https://github.com/PureSwift/JNI.git resolved at master (a2901c1)
Creating working copy for https://github.com/PureSwift/java_swift.git
Working copy of https://github.com/PureSwift/java_swift.git resolved at master (e6b10cc)
warning: '.resolve-product-dependencies': dependency 'android' is not used by any target
Found 2 product dependencies
  - java_util
  - JNI
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/pureswift/android.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/7] Write sources
[5/7] Compiling CJavaVM dummy.c
[6/7] Write swift-version--7754E27361AE5C74.txt
[8/33] Compiling JNI ValueType.swift
[9/33] Compiling java_swift Runnable.swift
/Users/admin/builder/spi-builder-workspace/.build/checkouts/java_swift/Sources/Runnable.swift:47:48: error: cannot find 'strdup' in scope
45 |
46 |         let Runnable_run_0_thunk: Runnable_run_0_type = Runnable_run_0
47 |         natives.append( JNINativeMethod( name: strdup("__run"), signature: strdup("(J)V"), fnPtr: unsafeBitCast( Runnable_run_0_thunk, to: UnsafeMutableRawPointer.self ) ) )
   |                                                `- error: cannot find 'strdup' in scope
48 |
49 |         natives.append( JNINativeMethod( name: strdup("__finalize"), signature: strdup("(J)V"), fnPtr: unsafeBitCast( JNIReleasableProxy__finalize_thunk, to: UnsafeMutableRawPointer.self ) ) )
/Users/admin/builder/spi-builder-workspace/.build/checkouts/java_swift/Sources/Runnable.swift:47:76: error: cannot find 'strdup' in scope
45 |
46 |         let Runnable_run_0_thunk: Runnable_run_0_type = Runnable_run_0
47 |         natives.append( JNINativeMethod( name: strdup("__run"), signature: strdup("(J)V"), fnPtr: unsafeBitCast( Runnable_run_0_thunk, to: UnsafeMutableRawPointer.self ) ) )
   |                                                                            `- error: cannot find 'strdup' in scope
48 |
49 |         natives.append( JNINativeMethod( name: strdup("__finalize"), signature: strdup("(J)V"), fnPtr: unsafeBitCast( JNIReleasableProxy__finalize_thunk, to: UnsafeMutableRawPointer.self ) ) )
/Users/admin/builder/spi-builder-workspace/.build/checkouts/java_swift/Sources/Runnable.swift:49:48: error: cannot find 'strdup' in scope
47 |         natives.append( JNINativeMethod( name: strdup("__run"), signature: strdup("(J)V"), fnPtr: unsafeBitCast( Runnable_run_0_thunk, to: UnsafeMutableRawPointer.self ) ) )
48 |
49 |         natives.append( JNINativeMethod( name: strdup("__finalize"), signature: strdup("(J)V"), fnPtr: unsafeBitCast( JNIReleasableProxy__finalize_thunk, to: UnsafeMutableRawPointer.self ) ) )
   |                                                `- error: cannot find 'strdup' in scope
50 |
51 |         let clazz = JNI.FindClass( proxyClassName() )
/Users/admin/builder/spi-builder-workspace/.build/checkouts/java_swift/Sources/Runnable.swift:49:81: error: cannot find 'strdup' in scope
47 |         natives.append( JNINativeMethod( name: strdup("__run"), signature: strdup("(J)V"), fnPtr: unsafeBitCast( Runnable_run_0_thunk, to: UnsafeMutableRawPointer.self ) ) )
48 |
49 |         natives.append( JNINativeMethod( name: strdup("__finalize"), signature: strdup("(J)V"), fnPtr: unsafeBitCast( JNIReleasableProxy__finalize_thunk, to: UnsafeMutableRawPointer.self ) ) )
   |                                                                                 `- error: cannot find 'strdup' in scope
50 |
51 |         let clazz = JNI.FindClass( proxyClassName() )
[10/34] Compiling JNI MethodSignature.swift
[11/34] Compiling JNI JNI.swift
[12/34] Compiling JNI MetaClass.swift
[13/34] Emitting module JNI
[14/34] Compiling JNI JNIClassNameComponent.swift
[15/34] Compiling JNI ClassName.swift
[16/34] Compiling java_swift Throwable.swift
[17/34] Compiling java_swift JavaMap.swift
[18/34] Compiling java_swift JavaObject.swift
[19/34] Compiling java_swift JavaSet.swift
[20/34] Compiling java_swift JavaThread.swift
[21/34] Compiling java_swift JNIProxy.swift
[22/34] Compiling java_swift JNIType.swift
[23/34] Compiling java_swift JavaClass.swift
[24/34] Compiling java_swift JavaEnum.swift
[25/34] Compiling JNI Parser.swift
[26/34] Compiling JNI Package.swift
[27/34] Compiling JNI String.swift
[28/34] Compiling java_swift Exception.swift
[29/34] Compiling java_swift HashMap.swift
[30/34] Compiling java_swift JNIMethod.swift
[31/34] Compiling java_swift JNIObject.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[32/34] Compiling java_swift JNICore.swift
[33/34] Compiling java_swift JNIField.swift
[34/34] Emitting module java_swift
/Users/admin/builder/spi-builder-workspace/.build/checkouts/java_swift/Sources/Runnable.swift:47:48: error: cannot find 'strdup' in scope
45 |
46 |         let Runnable_run_0_thunk: Runnable_run_0_type = Runnable_run_0
47 |         natives.append( JNINativeMethod( name: strdup("__run"), signature: strdup("(J)V"), fnPtr: unsafeBitCast( Runnable_run_0_thunk, to: UnsafeMutableRawPointer.self ) ) )
   |                                                `- error: cannot find 'strdup' in scope
48 |
49 |         natives.append( JNINativeMethod( name: strdup("__finalize"), signature: strdup("(J)V"), fnPtr: unsafeBitCast( JNIReleasableProxy__finalize_thunk, to: UnsafeMutableRawPointer.self ) ) )
/Users/admin/builder/spi-builder-workspace/.build/checkouts/java_swift/Sources/Runnable.swift:47:76: error: cannot find 'strdup' in scope
45 |
46 |         let Runnable_run_0_thunk: Runnable_run_0_type = Runnable_run_0
47 |         natives.append( JNINativeMethod( name: strdup("__run"), signature: strdup("(J)V"), fnPtr: unsafeBitCast( Runnable_run_0_thunk, to: UnsafeMutableRawPointer.self ) ) )
   |                                                                            `- error: cannot find 'strdup' in scope
48 |
49 |         natives.append( JNINativeMethod( name: strdup("__finalize"), signature: strdup("(J)V"), fnPtr: unsafeBitCast( JNIReleasableProxy__finalize_thunk, to: UnsafeMutableRawPointer.self ) ) )
/Users/admin/builder/spi-builder-workspace/.build/checkouts/java_swift/Sources/Runnable.swift:49:48: error: cannot find 'strdup' in scope
47 |         natives.append( JNINativeMethod( name: strdup("__run"), signature: strdup("(J)V"), fnPtr: unsafeBitCast( Runnable_run_0_thunk, to: UnsafeMutableRawPointer.self ) ) )
48 |
49 |         natives.append( JNINativeMethod( name: strdup("__finalize"), signature: strdup("(J)V"), fnPtr: unsafeBitCast( JNIReleasableProxy__finalize_thunk, to: UnsafeMutableRawPointer.self ) ) )
   |                                                `- error: cannot find 'strdup' in scope
50 |
51 |         let clazz = JNI.FindClass( proxyClassName() )
/Users/admin/builder/spi-builder-workspace/.build/checkouts/java_swift/Sources/Runnable.swift:49:81: error: cannot find 'strdup' in scope
47 |         natives.append( JNINativeMethod( name: strdup("__run"), signature: strdup("(J)V"), fnPtr: unsafeBitCast( Runnable_run_0_thunk, to: UnsafeMutableRawPointer.self ) ) )
48 |
49 |         natives.append( JNINativeMethod( name: strdup("__finalize"), signature: strdup("(J)V"), fnPtr: unsafeBitCast( JNIReleasableProxy__finalize_thunk, to: UnsafeMutableRawPointer.self ) ) )
   |                                                                                 `- error: cannot find 'strdup' in scope
50 |
51 |         let clazz = JNI.FindClass( proxyClassName() )
BUILD FAILURE 6.0 macosSpm