Build Information
Failed to build java_util, reference 2.5.0 (812eb5
), with Swift 6.0 for macOS (SPM) on 28 Nov 2024 04:32:22 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 -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Build Log
========================================
RunAll
========================================
Builder version: 4.58.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/swiftjava/java_util.git
Reference: 2.5.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/swiftjava/java_util
* tag 2.5.0 -> FETCH_HEAD
HEAD is now at 812eb50 Swift 5 SPM
Cloned https://github.com/swiftjava/java_util.git
Revision (git rev-parse @):
812eb50d52eda0ff78b755b547472c49678491f6
SUCCESS checkout https://github.com/swiftjava/java_util.git at 2.5.0
Fetching https://github.com/SwiftJava/java_lang.git
[1/747] Fetching java_lang
Fetched https://github.com/SwiftJava/java_lang.git from cache (0.95s)
Fetching https://github.com/SwiftJava/java_swift.git
[1/290] Fetching java_swift
Fetched https://github.com/SwiftJava/java_swift.git from cache (0.77s)
Fetching https://github.com/SwiftJava/CJavaVM.git
[1/54] Fetching cjavavm
Fetched https://github.com/SwiftJava/CJavaVM.git from cache (0.66s)
Creating working copy for https://github.com/SwiftJava/java_swift.git
Working copy of https://github.com/SwiftJava/java_swift.git resolved at master (ef87de5)
Creating working copy for https://github.com/SwiftJava/java_lang.git
Working copy of https://github.com/SwiftJava/java_lang.git resolved at master (6db935c)
Creating working copy for https://github.com/SwiftJava/CJavaVM.git
Working copy of https://github.com/SwiftJava/CJavaVM.git resolved at master (654df50)
========================================
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/swiftjava/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/SwiftJava/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/SwiftJava/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/SwiftJava/CJavaVM.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/CJavaVM",
"dependencies": [
]
}
]
}
]
}
]
}
]
}
Fetching https://github.com/swiftjava/java_util.git
[1/1151] Fetching java_util
Fetched https://github.com/swiftjava/java_util.git from cache (1.05s)
Fetching https://github.com/SwiftJava/java_lang.git from cache
Fetched https://github.com/SwiftJava/java_lang.git from cache (0.48s)
Fetching https://github.com/SwiftJava/java_swift.git from cache
Fetched https://github.com/SwiftJava/java_swift.git from cache (0.49s)
Fetching https://github.com/SwiftJava/CJavaVM.git from cache
Fetched https://github.com/SwiftJava/CJavaVM.git from cache (0.47s)
Creating working copy for https://github.com/SwiftJava/java_lang.git
Working copy of https://github.com/SwiftJava/java_lang.git resolved at master (6db935c)
Creating working copy for https://github.com/swiftjava/java_util.git
Working copy of https://github.com/swiftjava/java_util.git resolved at 2.5.0 (812eb50)
Creating working copy for https://github.com/SwiftJava/CJavaVM.git
Working copy of https://github.com/SwiftJava/CJavaVM.git resolved at master (654df50)
Creating working copy for https://github.com/SwiftJava/java_swift.git
Working copy of https://github.com/SwiftJava/java_swift.git resolved at master (ef87de5)
warning: 'cjavavm': ignoring declared target(s) 'CJavaVM' in the system package
warning: 'cjavavm': system packages are deprecated; use system library targets instead
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/swiftjava/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 -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Building for debugging...
[0/4] Write sources
[3/4] Write swift-version--7754E27361AE5C74.txt
[5/20] Compiling java_swift JavaMap.swift
[6/20] Compiling java_swift JavaObject.swift
[7/20] Compiling java_swift JavaSet.swift
[8/20] Compiling java_swift JavaClass.swift
[9/20] Compiling java_swift JavaEnum.swift
[10/20] Compiling java_swift Runnable.swift
/Users/admin/builder/spi-builder-workspace/.build/checkouts/java_swift/Sources/Runnable.swift:44:48: error: cannot find 'strdup' in scope
42 |
43 | let Runnable_run_0_thunk: Runnable_run_0_type = Runnable_run_0
44 | 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
45 |
46 | 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:44:76: error: cannot find 'strdup' in scope
42 |
43 | let Runnable_run_0_thunk: Runnable_run_0_type = Runnable_run_0
44 | 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
45 |
46 | 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:46:48: error: cannot find 'strdup' in scope
44 | natives.append( JNINativeMethod( name: strdup("__run"), signature: strdup("(J)V"), fnPtr: unsafeBitCast( Runnable_run_0_thunk, to: UnsafeMutableRawPointer.self ) ) )
45 |
46 | natives.append( JNINativeMethod( name: strdup("__finalize"), signature: strdup("(J)V"), fnPtr: unsafeBitCast( JNIReleasableProxy__finalize_thunk, to: UnsafeMutableRawPointer.self ) ) )
| `- error: cannot find 'strdup' in scope
47 |
48 | let clazz = JNI.FindClass( proxyClassName() )
/Users/admin/builder/spi-builder-workspace/.build/checkouts/java_swift/Sources/Runnable.swift:46:81: error: cannot find 'strdup' in scope
44 | natives.append( JNINativeMethod( name: strdup("__run"), signature: strdup("(J)V"), fnPtr: unsafeBitCast( Runnable_run_0_thunk, to: UnsafeMutableRawPointer.self ) ) )
45 |
46 | natives.append( JNINativeMethod( name: strdup("__finalize"), signature: strdup("(J)V"), fnPtr: unsafeBitCast( JNIReleasableProxy__finalize_thunk, to: UnsafeMutableRawPointer.self ) ) )
| `- error: cannot find 'strdup' in scope
47 |
48 | let clazz = JNI.FindClass( proxyClassName() )
[11/21] Compiling java_swift Throwable.swift
[12/21] Compiling java_swift JavaThread.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[13/21] Compiling java_swift JNIMethod.swift
[14/21] Compiling java_swift JNIObject.swift
[15/21] Compiling java_swift JNIProxy.swift
[16/21] Compiling java_swift JNIType.swift
[17/21] Compiling java_swift JNICore.swift
[18/21] Compiling java_swift JNIField.swift
[19/21] Compiling java_swift Exception.swift
[20/21] Compiling java_swift HashMap.swift
[21/21] Emitting module java_swift
/Users/admin/builder/spi-builder-workspace/.build/checkouts/java_swift/Sources/Runnable.swift:44:48: error: cannot find 'strdup' in scope
42 |
43 | let Runnable_run_0_thunk: Runnable_run_0_type = Runnable_run_0
44 | 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
45 |
46 | 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:44:76: error: cannot find 'strdup' in scope
42 |
43 | let Runnable_run_0_thunk: Runnable_run_0_type = Runnable_run_0
44 | 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
45 |
46 | 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:46:48: error: cannot find 'strdup' in scope
44 | natives.append( JNINativeMethod( name: strdup("__run"), signature: strdup("(J)V"), fnPtr: unsafeBitCast( Runnable_run_0_thunk, to: UnsafeMutableRawPointer.self ) ) )
45 |
46 | natives.append( JNINativeMethod( name: strdup("__finalize"), signature: strdup("(J)V"), fnPtr: unsafeBitCast( JNIReleasableProxy__finalize_thunk, to: UnsafeMutableRawPointer.self ) ) )
| `- error: cannot find 'strdup' in scope
47 |
48 | let clazz = JNI.FindClass( proxyClassName() )
/Users/admin/builder/spi-builder-workspace/.build/checkouts/java_swift/Sources/Runnable.swift:46:81: error: cannot find 'strdup' in scope
44 | natives.append( JNINativeMethod( name: strdup("__run"), signature: strdup("(J)V"), fnPtr: unsafeBitCast( Runnable_run_0_thunk, to: UnsafeMutableRawPointer.self ) ) )
45 |
46 | natives.append( JNINativeMethod( name: strdup("__finalize"), signature: strdup("(J)V"), fnPtr: unsafeBitCast( JNIReleasableProxy__finalize_thunk, to: UnsafeMutableRawPointer.self ) ) )
| `- error: cannot find 'strdup' in scope
47 |
48 | let clazz = JNI.FindClass( proxyClassName() )
warning: 'cjavavm': ignoring declared target(s) 'CJavaVM' in the system package
warning: 'cjavavm': system packages are deprecated; use system library targets instead
BUILD FAILURE 6.0 macosSpm