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 java_util, reference master (b4240b), with Swift 6.0 for macOS (SPM) on 4 Nov 2024 01:51:32 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/java_util.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/PureSwift/java_util
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at b4240b5 Add missing Glibc import
Cloned https://github.com/PureSwift/java_util.git
Revision (git rev-parse @):
b4240b5ec498d2edde73b579f2ade0dbf821a2ac
SUCCESS checkout https://github.com/PureSwift/java_util.git at master
Fetching https://github.com/PureSwift/java_lang.git
[16/760] Fetching java_lang
Fetched https://github.com/PureSwift/java_lang.git from cache (1.03s)
Fetching https://github.com/PureSwift/java_swift.git
[1/389] Fetching java_swift
Fetched https://github.com/PureSwift/java_swift.git from cache (0.85s)
Fetching https://github.com/PureSwift/CJavaVM.git
[1/58] Fetching cjavavm
Fetched https://github.com/PureSwift/CJavaVM.git from cache (0.68s)
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/CJavaVM.git
Working copy of https://github.com/PureSwift/CJavaVM.git resolved at master (3b19893)
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)
========================================
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": "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": [
                  ]
                }
              ]
            }
          ]
        }
      ]
    }
  ]
}
Fetching https://github.com/PureSwift/java_util.git
[1/1163] Fetching java_util
Fetched https://github.com/PureSwift/java_util.git from cache (1.11s)
Fetching https://github.com/PureSwift/java_lang.git from cache
Fetched https://github.com/PureSwift/java_lang.git from cache (0.46s)
Fetching https://github.com/PureSwift/java_swift.git from cache
Fetched https://github.com/PureSwift/java_swift.git from cache (0.49s)
Fetching https://github.com/PureSwift/CJavaVM.git from cache
Fetched https://github.com/PureSwift/CJavaVM.git from cache (0.46s)
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/java_util.git
Working copy of https://github.com/PureSwift/java_util.git resolved at master (b4240b5)
warning: '.resolve-product-dependencies': dependency 'java_util' is not used by any target
Found 1 product dependencies
  - java_lang
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/PureSwift/java_util.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/5] Write sources
[3/5] Compiling CJavaVM dummy.c
[4/5] Write swift-version--7754E27361AE5C74.txt
[6/21] Compiling java_swift JavaThread.swift
[7/21] 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() )
[8/22] Compiling java_swift JNIProxy.swift
[9/22] Compiling java_swift JNIType.swift
[10/22] Compiling java_swift JavaMap.swift
[11/22] Compiling java_swift JavaObject.swift
[12/22] Compiling java_swift JavaSet.swift
[13/22] Compiling java_swift JavaClass.swift
[14/22] Compiling java_swift JavaEnum.swift
[15/22] Compiling java_swift Throwable.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[16/22] 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() )
[17/22] Compiling java_swift Exception.swift
[18/22] Compiling java_swift HashMap.swift
[19/22] Compiling java_swift JNICore.swift
[20/22] Compiling java_swift JNIField.swift
[21/22] Compiling java_swift JNIMethod.swift
[22/22] Compiling java_swift JNIObject.swift
BUILD FAILURE 6.0 macosSpm