Build Information
Failed to build java_lang, reference master (71188f
), with Swift 6.0 for macOS (SPM) on 4 Nov 2024 01:37:50 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_lang.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/PureSwift/java_lang
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at 71188f8 Add missing imports
Cloned https://github.com/PureSwift/java_lang.git
Revision (git rev-parse @):
71188f8a81d641f80da2135037a336b9bddbe988
SUCCESS checkout https://github.com/PureSwift/java_lang.git at master
Fetching https://github.com/PureSwift/java_swift.git
[1/389] Fetching java_swift
Fetched https://github.com/PureSwift/java_swift.git from cache (0.81s)
Fetching https://github.com/PureSwift/CJavaVM.git
[1/58] Fetching cjavavm
Fetched https://github.com/PureSwift/CJavaVM.git from cache (0.69s)
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_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_lang.git
[1/760] Fetching java_lang
Fetched https://github.com/PureSwift/java_lang.git from cache (1.86s)
Fetching https://github.com/PureSwift/java_swift.git from cache
Fetched https://github.com/PureSwift/java_swift.git from cache (0.51s)
Fetching https://github.com/PureSwift/CJavaVM.git from cache
Fetched https://github.com/PureSwift/CJavaVM.git from cache (0.49s)
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/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)
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/PureSwift/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/4] Write sources
[2/4] Compiling CJavaVM dummy.c
[3/4] Write swift-version--7754E27361AE5C74.txt
[5/20] 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() )
[6/21] Compiling java_swift Throwable.swift
[7/21] Compiling java_swift JavaMap.swift
[8/21] Compiling java_swift JavaObject.swift
[9/21] Compiling java_swift JavaSet.swift
[10/21] Compiling java_swift JavaThread.swift
[11/21] Compiling java_swift JNIProxy.swift
[12/21] Compiling java_swift JNIType.swift
[13/21] Compiling java_swift JavaClass.swift
[14/21] Compiling java_swift JavaEnum.swift
[15/21] Compiling java_swift JNIMethod.swift
[16/21] Compiling java_swift JNIObject.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[17/21] Compiling java_swift Exception.swift
[18/21] Compiling java_swift HashMap.swift
[19/21] Compiling java_swift JNICore.swift
[20/21] Compiling java_swift JNIField.swift
[21/21] 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