Build Information
Failed to build java_lang, reference 2.5.0 (6db935
), with Swift 6.0 for macOS (SPM) on 31 Oct 2024 10:58:56 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/swiftjava/java_lang.git
Reference: 2.5.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/swiftjava/java_lang
* tag 2.5.0 -> FETCH_HEAD
HEAD is now at 6db935c Swift 5 SPM
Cloned https://github.com/swiftjava/java_lang.git
Revision (git rev-parse @):
6db935cf4059165652ed7e8830958db76edd0ec2
SUCCESS checkout https://github.com/swiftjava/java_lang.git at 2.5.0
Fetching https://github.com/SwiftJava/java_swift.git
[1/290] Fetching java_swift
Fetched https://github.com/SwiftJava/java_swift.git from cache (0.79s)
Fetching https://github.com/SwiftJava/CJavaVM.git
[1/54] Fetching cjavavm
Fetched https://github.com/SwiftJava/CJavaVM.git from cache (0.70s)
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/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_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_lang.git
[1/747] Fetching java_lang
Fetched https://github.com/swiftjava/java_lang.git from cache (0.98s)
Fetching https://github.com/SwiftJava/java_swift.git from cache
Fetched https://github.com/SwiftJava/java_swift.git from cache (0.50s)
Fetching https://github.com/SwiftJava/CJavaVM.git from cache
Fetched https://github.com/SwiftJava/CJavaVM.git from cache (0.51s)
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_lang.git
Working copy of https://github.com/swiftjava/java_lang.git resolved at 2.5.0 (6db935c)
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_lang' is not used by any target
Found 1 product dependencies
- java_swift
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $PWD
https://github.com/swiftjava/java_lang.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/3] Write sources
[2/3] Write swift-version--7754E27361AE5C74.txt
[4/19] Compiling java_swift JavaThread.swift
[5/20] Compiling java_swift JavaClass.swift
[6/20] Compiling java_swift JavaEnum.swift
[7/20] Compiling java_swift JavaSet.swift
[8/20] Compiling java_swift JavaMap.swift
[9/20] Compiling java_swift JavaObject.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/20] Compiling java_swift Throwable.swift
[12/20] Compiling java_swift JNIProxy.swift
[13/20] Compiling java_swift JNIType.swift
[14/20] Compiling java_swift JNIMethod.swift
[15/20] Compiling java_swift JNIObject.swift
[16/20] Compiling java_swift Exception.swift
[17/20] Compiling java_swift HashMap.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[18/20] Compiling java_swift JNICore.swift
[19/20] Compiling java_swift JNIField.swift
[20/20] 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