Build Information
Failed to build swift-java, reference main (3d9433
), with Swift 6.1 for Wasm on 10 Sep 2025 04:35:04 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.67.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/swiftlang/swift-java.git
Reference: main
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: git branch -m <name>
From https://github.com/swiftlang/swift-java
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 3d9433f [SwiftJava] Fix Android build by making JNINativeInterface_ public (#387)
Cloned https://github.com/swiftlang/swift-java.git
Revision (git rev-parse @):
3d9433f95f6323b2707590b29474f12247ae842c
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/swiftlang/swift-java.git at main
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.1
Building package at path: $PWD
https://github.com/swiftlang/swift-java.git
https://github.com/swiftlang/swift-java.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"dependencies" : [
{
"identity" : "swift-syntax",
"requirement" : {
"range" : [
{
"lower_bound" : "601.0.1",
"upper_bound" : "602.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/swiftlang/swift-syntax"
},
{
"identity" : "swift-argument-parser",
"requirement" : {
"range" : [
{
"lower_bound" : "1.5.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-argument-parser"
},
{
"identity" : "swift-system",
"requirement" : {
"range" : [
{
"lower_bound" : "1.4.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-system"
},
{
"identity" : "package-benchmark",
"requirement" : {
"range" : [
{
"lower_bound" : "1.4.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/ordo-one/package-benchmark"
}
],
"manifest_display_name" : "swift-java",
"name" : "swift-java",
"path" : "/host/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "15.0"
}
],
"products" : [
{
"name" : "SwiftJava",
"targets" : [
"SwiftJava"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "CSwiftJavaJNI",
"targets" : [
"CSwiftJavaJNI"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "JavaUtil",
"targets" : [
"JavaUtil"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "JavaUtilFunction",
"targets" : [
"JavaUtilFunction"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "JavaUtilJar",
"targets" : [
"JavaUtilJar"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "JavaNet",
"targets" : [
"JavaNet"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "JavaIO",
"targets" : [
"JavaIO"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "JavaLangReflect",
"targets" : [
"JavaLangReflect"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "JavaTypes",
"targets" : [
"JavaTypes"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "swift-java",
"targets" : [
"SwiftJavaTool"
],
"type" : {
"executable" : null
}
},
{
"name" : "SwiftJavaDocumentation",
"targets" : [
"SwiftJavaDocumentation"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "JavaCompilerPlugin",
"targets" : [
"JavaCompilerPlugin"
],
"type" : {
"plugin" : null
}
},
{
"name" : "SwiftJavaPlugin",
"targets" : [
"SwiftJavaPlugin"
],
"type" : {
"plugin" : null
}
},
{
"name" : "SwiftKitSwift",
"targets" : [
"SwiftKitSwift"
],
"type" : {
"library" : [
"dynamic"
]
}
},
{
"name" : "JExtractSwiftLib",
"targets" : [
"JExtractSwiftLib"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "JExtractSwiftPlugin",
"targets" : [
"JExtractSwiftPlugin"
],
"type" : {
"plugin" : null
}
},
{
"name" : "ExampleSwiftLibrary",
"targets" : [
"ExampleSwiftLibrary"
],
"type" : {
"library" : [
"dynamic"
]
}
},
{
"name" : "SwiftJavaMacros",
"targets" : [
"SwiftJavaMacros"
],
"type" : {
"macro" : null
}
}
],
"targets" : [
{
"c99name" : "_SubprocessCShims",
"module_type" : "ClangTarget",
"name" : "_SubprocessCShims",
"path" : "Sources/_SubprocessCShims",
"product_memberships" : [
"swift-java",
"SwiftJavaPlugin",
"JExtractSwiftPlugin"
],
"sources" : [
"process_shims.c"
],
"type" : "library"
},
{
"c99name" : "_Subprocess",
"module_type" : "SwiftTarget",
"name" : "_Subprocess",
"path" : "Sources/_Subprocess",
"product_dependencies" : [
"SystemPackage"
],
"product_memberships" : [
"swift-java",
"SwiftJavaPlugin",
"JExtractSwiftPlugin"
],
"sources" : [
"API.swift",
"AsyncBufferSequence.swift",
"Buffer.swift",
"Configuration.swift",
"Error.swift",
"Execution.swift",
"IO/Input.swift",
"IO/Output.swift",
"Platforms/Subprocess+Darwin.swift",
"Platforms/Subprocess+Linux.swift",
"Platforms/Subprocess+Unix.swift",
"Platforms/Subprocess+Windows.swift",
"Result.swift",
"SubprocessFoundation/Input+Foundation.swift",
"SubprocessFoundation/Output+Foundation.swift",
"SubprocessFoundation/Span+SubprocessFoundation.swift",
"Teardown.swift"
],
"target_dependencies" : [
"_SubprocessCShims"
],
"type" : "library"
},
{
"c99name" : "SwiftKitSwift",
"module_type" : "SwiftTarget",
"name" : "SwiftKitSwift",
"path" : "Sources/SwiftKitSwift",
"product_memberships" : [
"SwiftJavaDocumentation",
"SwiftKitSwift"
],
"sources" : [
"SwiftKit.swift"
],
"type" : "library"
},
{
"c99name" : "SwiftJavaToolLibTests",
"module_type" : "SwiftTarget",
"name" : "SwiftJavaToolLibTests",
"path" : "Tests/SwiftJavaToolLibTests",
"sources" : [
"Java2SwiftTests.swift",
"JavaTranslatorValidationTests.swift"
],
"target_dependencies" : [
"SwiftJavaToolLib"
],
"type" : "test"
},
{
"c99name" : "SwiftJavaToolLib",
"module_type" : "SwiftTarget",
"name" : "SwiftJavaToolLib",
"path" : "Sources/SwiftJavaToolLib",
"product_dependencies" : [
"SwiftBasicFormat",
"SwiftSyntax",
"SwiftSyntaxBuilder"
],
"product_memberships" : [
"swift-java",
"SwiftJavaPlugin",
"JExtractSwiftPlugin"
],
"sources" : [
"JavaClassTranslator.swift",
"JavaTranslator+Configuration.swift",
"JavaTranslator+Validation.swift",
"JavaTranslator.swift",
"MethodVariance.swift",
"OptionalKind.swift",
"StringExtras.swift",
"TranslationError.swift"
],
"target_dependencies" : [
"SwiftJava",
"JavaUtilJar",
"JavaLangReflect",
"JavaNet",
"JavaTypes",
"SwiftJavaShared",
"SwiftJavaConfigurationShared",
"_Subprocess"
],
"type" : "library"
},
{
"c99name" : "SwiftJavaTool",
"module_type" : "SwiftTarget",
"name" : "SwiftJavaTool",
"path" : "Sources/SwiftJavaTool",
"product_dependencies" : [
"SwiftBasicFormat",
"SwiftSyntax",
"SwiftSyntaxBuilder",
"ArgumentParser",
"SystemPackage"
],
"product_memberships" : [
"swift-java",
"SwiftJavaPlugin",
"JExtractSwiftPlugin"
],
"sources" : [
"Commands/ConfigureCommand.swift",
"Commands/JExtractCommand.swift",
"Commands/ResolveCommand.swift",
"Commands/WrapJavaCommand.swift",
"CommonOptions.swift",
"Java/JavaClassLoader.swift",
"String+Extensions.swift",
"SwiftJava.swift",
"SwiftJavaBaseAsyncParsableCommand.swift"
],
"target_dependencies" : [
"SwiftJava",
"JavaUtilJar",
"JavaNet",
"SwiftJavaToolLib",
"JExtractSwiftLib",
"SwiftJavaShared",
"SwiftJavaConfigurationShared"
],
"type" : "executable"
},
{
"c99name" : "SwiftJavaTests",
"module_type" : "SwiftTarget",
"name" : "SwiftJavaTests",
"path" : "Tests/SwiftJavaTests",
"sources" : [
"BasicRuntimeTests.swift"
],
"target_dependencies" : [
"SwiftJava",
"JavaNet"
],
"type" : "test"
},
{
"c99name" : "SwiftJavaShared",
"module_type" : "SwiftTarget",
"name" : "SwiftJavaShared",
"path" : "Sources/SwiftJavaShared",
"product_memberships" : [
"swift-java",
"SwiftJavaPlugin",
"JExtractSwiftLib",
"JExtractSwiftPlugin"
],
"sources" : [
"TerminalColors.swift"
],
"type" : "library"
},
{
"c99name" : "SwiftJavaPlugin",
"module_type" : "PluginTarget",
"name" : "SwiftJavaPlugin",
"path" : "Plugins/SwiftJavaPlugin",
"plugin_capability" : {
"type" : "buildTool"
},
"product_memberships" : [
"SwiftJavaPlugin"
],
"sources" : [
"SwiftJavaPlugin.swift",
"_PluginsShared/PluginUtils.swift",
"_PluginsShared/SwiftJavaConfigurationShared/Configuration.swift",
"_PluginsShared/SwiftJavaConfigurationShared/GenerationMode.swift",
"_PluginsShared/SwiftJavaConfigurationShared/GradleDependencyParsing.swift",
"_PluginsShared/SwiftJavaPlugin+Errors.swift",
"_PluginsShared/SwiftJavaPluginProtocol.swift"
],
"target_dependencies" : [
"SwiftJavaTool"
],
"type" : "plugin"
},
{
"c99name" : "SwiftJavaMacrosTests",
"module_type" : "SwiftTarget",
"name" : "SwiftJavaMacrosTests",
"path" : "Tests/SwiftJavaMacrosTests",
"product_dependencies" : [
"SwiftSyntaxMacrosTestSupport"
],
"sources" : [
"JavaClassMacroTests.swift"
],
"target_dependencies" : [
"SwiftJavaMacros"
],
"type" : "test"
},
{
"c99name" : "SwiftJavaMacros",
"module_type" : "SwiftTarget",
"name" : "SwiftJavaMacros",
"path" : "Sources/SwiftJavaMacros",
"product_dependencies" : [
"SwiftSyntaxMacros",
"SwiftCompilerPlugin"
],
"product_memberships" : [
"SwiftJava",
"JavaUtil",
"JavaUtilFunction",
"JavaUtilJar",
"JavaNet",
"JavaIO",
"JavaLangReflect",
"swift-java",
"SwiftJavaDocumentation",
"SwiftJavaPlugin",
"JExtractSwiftPlugin",
"SwiftJavaMacros"
],
"sources" : [
"GenerationMode.swift",
"ImplementsJavaMacro.swift",
"JavaClassMacro.swift",
"JavaFieldMacro.swift",
"JavaMethodMacro.swift",
"MacroErrors.swift",
"SwiftJNIMacrosPlugin.swift",
"SwiftSyntaxUtils.swift"
],
"type" : "macro"
},
{
"c99name" : "SwiftJavaDocumentation",
"module_type" : "SwiftTarget",
"name" : "SwiftJavaDocumentation",
"path" : "Sources/SwiftJavaDocumentation",
"product_memberships" : [
"SwiftJavaDocumentation"
],
"sources" : [
"empty.swift"
],
"target_dependencies" : [
"SwiftJava",
"SwiftKitSwift"
],
"type" : "library"
},
{
"c99name" : "SwiftJavaConfigurationSharedTests",
"module_type" : "SwiftTarget",
"name" : "SwiftJavaConfigurationSharedTests",
"path" : "Tests/SwiftJavaConfigurationSharedTests",
"sources" : [
"GradleDependencyParsingTests.swift"
],
"target_dependencies" : [
"SwiftJavaConfigurationShared"
],
"type" : "test"
},
{
"c99name" : "SwiftJavaConfigurationShared",
"module_type" : "SwiftTarget",
"name" : "SwiftJavaConfigurationShared",
"path" : "Sources/SwiftJavaConfigurationShared",
"product_memberships" : [
"SwiftJava",
"JavaUtil",
"JavaUtilFunction",
"JavaUtilJar",
"JavaNet",
"JavaIO",
"JavaLangReflect",
"swift-java",
"SwiftJavaDocumentation",
"SwiftJavaPlugin",
"JExtractSwiftLib",
"JExtractSwiftPlugin"
],
"sources" : [
"Configuration.swift",
"GenerationMode.swift",
"GradleDependencyParsing.swift"
],
"type" : "library"
},
{
"c99name" : "SwiftJava",
"module_type" : "SwiftTarget",
"name" : "SwiftJava",
"path" : "Sources/SwiftJava",
"product_memberships" : [
"SwiftJava",
"JavaUtil",
"JavaUtilFunction",
"JavaUtilJar",
"JavaNet",
"JavaIO",
"JavaLangReflect",
"swift-java",
"SwiftJavaDocumentation",
"SwiftJavaPlugin",
"JExtractSwiftPlugin"
],
"sources" : [
"AnyJavaObject.swift",
"BridgedValues/JavaValue+Array.swift",
"BridgedValues/JavaValue+Bool.swift",
"BridgedValues/JavaValue+FloatingPoint.swift",
"BridgedValues/JavaValue+Integers.swift",
"BridgedValues/JavaValue+String.swift",
"CSwiftJavaJNI+Reexport.swift",
"Exceptions/Exception+Error.swift",
"Exceptions/ExceptionHandling.swift",
"Exceptions/Throwable+Error.swift",
"Helpers/_JNIMethodIDCache.swift",
"JavaClass+Initialization.swift",
"JavaEnvironment.swift",
"JavaKitVM/JavaVirtualMachine.swift",
"JavaKitVM/LockedState.swift",
"JavaKitVM/ThreadLocalStorage.swift",
"JavaObject+Inheritance.swift",
"JavaObject+MethodCalls.swift",
"JavaObjectHolder.swift",
"JavaValue.swift",
"Macros.swift",
"Optional+JavaObject.swift",
"Optional+JavaOptional.swift",
"generated/Appendable.swift",
"generated/CharSequence.swift",
"generated/Exception.swift",
"generated/JavaArray.swift",
"generated/JavaBoolean.swift",
"generated/JavaByte.swift",
"generated/JavaCharacter.swift",
"generated/JavaClass.swift",
"generated/JavaClassLoader.swift",
"generated/JavaDouble.swift",
"generated/JavaError.swift",
"generated/JavaFloat.swift",
"generated/JavaInteger.swift",
"generated/JavaLong.swift",
"generated/JavaNumber.swift",
"generated/JavaObject.swift",
"generated/JavaOptional.swift",
"generated/JavaOptionalDouble.swift",
"generated/JavaOptionalInt.swift",
"generated/JavaOptionalLong.swift",
"generated/JavaShort.swift",
"generated/JavaString.swift",
"generated/JavaVoid.swift",
"generated/RuntimeException.swift",
"generated/Throwable.swift"
],
"target_dependencies" : [
"CSwiftJavaJNI",
"SwiftJavaMacros",
"JavaTypes",
"SwiftJavaConfigurationShared"
],
"type" : "library"
},
{
"c99name" : "JavaUtilJar",
"module_type" : "SwiftTarget",
"name" : "JavaUtilJar",
"path" : "Sources/JavaStdlib/JavaUtilJar",
"product_memberships" : [
"JavaUtilJar",
"swift-java",
"SwiftJavaPlugin",
"JExtractSwiftPlugin"
],
"sources" : [
"generated/Attributes.swift",
"generated/JarEntry.swift",
"generated/JarFile.swift",
"generated/JarInputStream.swift",
"generated/JarOutputStream.swift",
"generated/Manifest.swift",
"generated/ZipEntry.swift"
],
"target_dependencies" : [
"SwiftJava",
"JavaUtil"
],
"type" : "library"
},
{
"c99name" : "JavaUtilFunction",
"module_type" : "SwiftTarget",
"name" : "JavaUtilFunction",
"path" : "Sources/JavaStdlib/JavaUtilFunction",
"product_memberships" : [
"JavaUtilFunction"
],
"sources" : [
"generated/JavaBiConsumer.swift",
"generated/JavaBiFunction.swift",
"generated/JavaBiPredicate.swift",
"generated/JavaBinaryOperator.swift",
"generated/JavaBooleanSupplier.swift",
"generated/JavaConsumer.swift",
"generated/JavaDoubleBinaryOperator.swift",
"generated/JavaDoubleConsumer.swift",
"generated/JavaDoubleFunction.swift",
"generated/JavaDoublePredicate.swift",
"generated/JavaDoubleSupplier.swift",
"generated/JavaDoubleToIntFunction.swift",
"generated/JavaDoubleToLongFunction.swift",
"generated/JavaDoubleUnaryOperator.swift",
"generated/JavaFunction.swift",
"generated/JavaIntBinaryOperator.swift",
"generated/JavaIntConsumer.swift",
"generated/JavaIntFunction.swift",
"generated/JavaIntPredicate.swift",
"generated/JavaIntSupplier.swift",
"generated/JavaIntToDoubleFunction.swift",
"generated/JavaIntToLongFunction.swift",
"generated/JavaIntUnaryOperator.swift",
"generated/JavaLongBinaryOperator.swift",
"generated/JavaLongConsumer.swift",
"generated/JavaLongFunction.swift",
"generated/JavaLongPredicate.swift",
"generated/JavaLongSupplier.swift",
"generated/JavaLongToDoubleFunction.swift",
"generated/JavaLongToIntFunction.swift",
"generated/JavaLongUnaryOperator.swift",
"generated/JavaObjDoubleConsumer.swift",
"generated/JavaObjIntConsumer.swift",
"generated/JavaObjLongConsumer.swift",
"generated/JavaPredicate.swift",
"generated/JavaSupplier.swift",
"generated/JavaToDoubleBiFunction.swift",
"generated/JavaToDoubleFunction.swift",
"generated/JavaToIntBiFunction.swift",
"generated/JavaToIntFunction.swift",
"generated/JavaToLongBiFunction.swift",
"generated/JavaToLongFunction.swift",
"generated/JavaUnaryOperator.swift"
],
"target_dependencies" : [
"SwiftJava"
],
"type" : "library"
},
{
"c99name" : "JavaUtil",
"module_type" : "SwiftTarget",
"name" : "JavaUtil",
"path" : "Sources/JavaStdlib/JavaUtil",
"product_memberships" : [
"JavaUtil",
"JavaUtilJar",
"JavaNet",
"JavaIO",
"JavaLangReflect",
"swift-java",
"SwiftJavaPlugin",
"JExtractSwiftPlugin"
],
"sources" : [
"JavaEnumeration+Sequence.swift",
"JavaIterator+Iterator.swift",
"List+Sequence.swift",
"generated/ArrayDeque.swift",
"generated/ArrayList.swift",
"generated/BitSet.swift",
"generated/Enumeration.swift",
"generated/HashMap.swift",
"generated/HashSet.swift",
"generated/JavaCollection.swift",
"generated/JavaDictionary.swift",
"generated/JavaIterator.swift",
"generated/JavaSet.swift",
"generated/LinkedList.swift",
"generated/List.swift",
"generated/ListIterator.swift",
"generated/PriorityQueue.swift",
"generated/Queue.swift",
"generated/RandomAccess.swift",
"generated/Stack.swift",
"generated/TreeMap.swift",
"generated/TreeSet.swift"
],
"target_dependencies" : [
"SwiftJava"
],
"type" : "library"
},
{
"c99name" : "JavaTypesTests",
"module_type" : "SwiftTarget",
"name" : "JavaTypesTests",
"path" : "Tests/JavaTypesTests",
"sources" : [
"ManglingTests.swift"
],
"target_dependencies" : [
"JavaTypes"
],
"type" : "test"
},
{
"c99name" : "JavaTypes",
"module_type" : "SwiftTarget",
"name" : "JavaTypes",
"path" : "Sources/JavaTypes",
"product_memberships" : [
"SwiftJava",
"JavaUtil",
"JavaUtilFunction",
"JavaUtilJar",
"JavaNet",
"JavaIO",
"JavaLangReflect",
"JavaTypes",
"swift-java",
"SwiftJavaDocumentation",
"SwiftJavaPlugin",
"JExtractSwiftLib",
"JExtractSwiftPlugin"
],
"sources" : [
"JavaAnnotation.swift",
"JavaDemanglingError.swift",
"JavaType+JNI.swift",
"JavaType+JavaSource.swift",
"JavaType+SwiftNames.swift",
"JavaType.swift",
"Mangling.swift",
"MethodSignature.swift"
],
"type" : "library"
},
{
"c99name" : "JavaNet",
"module_type" : "SwiftTarget",
"name" : "JavaNet",
"path" : "Sources/JavaStdlib/JavaNet",
"product_memberships" : [
"JavaNet",
"swift-java",
"SwiftJavaPlugin",
"JExtractSwiftPlugin"
],
"sources" : [
"generated/URI.swift",
"generated/URL.swift",
"generated/URLClassLoader.swift",
"generated/URLConnection.swift"
],
"target_dependencies" : [
"SwiftJava",
"JavaUtil"
],
"type" : "library"
},
{
"c99name" : "JavaLangReflect",
"module_type" : "SwiftTarget",
"name" : "JavaLangReflect",
"path" : "Sources/JavaStdlib/JavaLangReflect",
"product_memberships" : [
"JavaLangReflect",
"swift-java",
"SwiftJavaPlugin",
"JExtractSwiftPlugin"
],
"sources" : [
"Constructor+Utilities.swift",
"Executable+Utilities.swift",
"Field+Utilities.swift",
"JavaClass+Reflection.swift",
"Method+Utilities.swift",
"generated/AccessibleObject.swift",
"generated/AnnotatedType.swift",
"generated/Annotation.swift",
"generated/Constructor.swift",
"generated/Executable.swift",
"generated/Field.swift",
"generated/GenericArrayType.swift",
"generated/GenericDeclaration.swift",
"generated/Method.swift",
"generated/Parameter.swift",
"generated/ParameterizedType.swift",
"generated/Type.swift",
"generated/TypeVariable.swift",
"generated/WildcardType.swift"
],
"target_dependencies" : [
"SwiftJava",
"JavaUtil"
],
"type" : "library"
},
{
"c99name" : "JavaIO",
"module_type" : "SwiftTarget",
"name" : "JavaIO",
"path" : "Sources/JavaStdlib/JavaIO",
"product_memberships" : [
"JavaIO"
],
"sources" : [
"generated/BufferedInputStream.swift",
"generated/Charset.swift",
"generated/Closeable.swift",
"generated/File.swift",
"generated/FileDescriptor.swift",
"generated/FileReader.swift",
"generated/Flushable.swift",
"generated/InputStream.swift",
"generated/InputStreamReader.swift",
"generated/OutputStream.swift",
"generated/Path.swift",
"generated/Readable.swift",
"generated/Reader.swift",
"generated/StringReader.swift",
"generated/WatchService.swift",
"generated/Writer.swift"
],
"target_dependencies" : [
"SwiftJava",
"JavaUtil"
],
"type" : "library"
},
{
"c99name" : "JavaCompilerPlugin",
"module_type" : "PluginTarget",
"name" : "JavaCompilerPlugin",
"path" : "Plugins/JavaCompilerPlugin",
"plugin_capability" : {
"type" : "buildTool"
},
"product_memberships" : [
"JavaCompilerPlugin"
],
"sources" : [
"JavaCompilerPlugin.swift",
"_PluginsShared/PluginUtils.swift",
"_PluginsShared/SwiftJavaConfigurationShared/Configuration.swift",
"_PluginsShared/SwiftJavaConfigurationShared/GenerationMode.swift",
"_PluginsShared/SwiftJavaConfigurationShared/GradleDependencyParsing.swift",
"_PluginsShared/SwiftJavaPlugin+Errors.swift",
"_PluginsShared/SwiftJavaPluginProtocol.swift"
],
"type" : "plugin"
},
{
"c99name" : "JExtractSwiftTests",
"module_type" : "SwiftTarget",
"name" : "JExtractSwiftTests",
"path" : "Tests/JExtractSwiftTests",
"sources" : [
"Asserts/LoweringAssertions.swift",
"Asserts/TextAssertions.swift",
"CTypeTests.swift",
"ClassPrintingTests.swift",
"DataImportTests.swift",
"ExtensionImportTests.swift",
"FuncCallbackImportTests.swift",
"FunctionDescriptorImportTests.swift",
"FunctionLoweringTests.swift",
"InternalExtractTests.swift",
"JNI/JNIClassTests.swift",
"JNI/JNIClosureTests.swift",
"JNI/JNIEnumTests.swift",
"JNI/JNIJavaKitTests.swift",
"JNI/JNIModuleTests.swift",
"JNI/JNIOptionalTests.swift",
"JNI/JNIProtocolTests.swift",
"JNI/JNIStructTests.swift",
"JNI/JNIUnsignedNumberTests.swift",
"JNI/JNIVariablesTests.swift",
"MemoryManagementModeTests.swift",
"MethodImportTests.swift",
"MethodThunkTests.swift",
"OptionalImportTests.swift",
"SendableTests.swift",
"StringPassingTests.swift",
"SwiftSymbolTableTests.swift",
"UnsignedNumberTests.swift",
"VariableImportTests.swift"
],
"target_dependencies" : [
"JExtractSwiftLib"
],
"type" : "test"
},
{
"c99name" : "JExtractSwiftPlugin",
"module_type" : "PluginTarget",
"name" : "JExtractSwiftPlugin",
"path" : "Plugins/JExtractSwiftPlugin",
"plugin_capability" : {
"type" : "buildTool"
},
"product_memberships" : [
"JExtractSwiftPlugin"
],
"sources" : [
"JExtractSwiftPlugin.swift",
"_PluginsShared/PluginUtils.swift",
"_PluginsShared/SwiftJavaConfigurationShared/Configuration.swift",
"_PluginsShared/SwiftJavaConfigurationShared/GenerationMode.swift",
"_PluginsShared/SwiftJavaConfigurationShared/GradleDependencyParsing.swift",
"_PluginsShared/SwiftJavaPlugin+Errors.swift",
"_PluginsShared/SwiftJavaPluginProtocol.swift"
],
"target_dependencies" : [
"SwiftJavaTool"
],
"type" : "plugin"
},
{
"c99name" : "JExtractSwiftLib",
"module_type" : "SwiftTarget",
"name" : "JExtractSwiftLib",
"path" : "Sources/JExtractSwiftLib",
"product_dependencies" : [
"SwiftBasicFormat",
"SwiftLexicalLookup",
"SwiftSyntax",
"SwiftSyntaxBuilder",
"ArgumentParser"
],
"product_memberships" : [
"swift-java",
"SwiftJavaPlugin",
"JExtractSwiftLib",
"JExtractSwiftPlugin"
],
"sources" : [
"AnalysisResult.swift",
"CTypes/CEnum.swift",
"CTypes/CFunction.swift",
"CTypes/CParameter.swift",
"CTypes/CStruct.swift",
"CTypes/CTag.swift",
"CTypes/CType.swift",
"CTypes/CUnion.swift",
"CodePrinter.swift",
"Common/TypeAnnotations.swift",
"Configuration+Extensions.swift",
"Convenience/Collection+Extensions.swift",
"Convenience/JavaType+Extensions.swift",
"Convenience/String+Extensions.swift",
"Convenience/SwiftSyntax+Extensions.swift",
"FFM/CDeclLowering/CRepresentation.swift",
"FFM/CDeclLowering/FFMSwift2JavaGenerator+FunctionLowering.swift",
"FFM/ConversionStep.swift",
"FFM/FFMSwift2JavaGenerator+JavaBindingsPrinting.swift",
"FFM/FFMSwift2JavaGenerator+JavaTranslation.swift",
"FFM/FFMSwift2JavaGenerator+SwiftThunkPrinting.swift",
"FFM/FFMSwift2JavaGenerator.swift",
"FFM/ForeignValueLayouts.swift",
"ImportedDecls.swift",
"JNI/JNICaching.swift",
"JNI/JNIJavaTypeTranslator.swift",
"JNI/JNISwift2JavaGenerator+JavaBindingsPrinting.swift",
"JNI/JNISwift2JavaGenerator+JavaTranslation.swift",
"JNI/JNISwift2JavaGenerator+NativeTranslation.swift",
"JNI/JNISwift2JavaGenerator+SwiftThunkPrinting.swift",
"JNI/JNISwift2JavaGenerator.swift",
"JavaParameter.swift",
"JavaTypes/JavaType+JDK.swift",
"JavaTypes/JavaType+SwiftKit.swift",
"Logger.swift",
"Swift2Java.swift",
"Swift2JavaGenerator.swift",
"Swift2JavaTranslator.swift",
"Swift2JavaVisitor.swift",
"SwiftKit+Printing.swift",
"SwiftTypes/DependencyScanner.swift",
"SwiftTypes/SwiftEffectSpecifier.swift",
"SwiftTypes/SwiftEnumCaseParameter.swift",
"SwiftTypes/SwiftFunctionSignature.swift",
"SwiftTypes/SwiftFunctionType.swift",
"SwiftTypes/SwiftKnownModules.swift",
"SwiftTypes/SwiftKnownTypeDecls.swift",
"SwiftTypes/SwiftKnownTypes.swift",
"SwiftTypes/SwiftModuleSymbolTable.swift",
"SwiftTypes/SwiftNominalTypeDeclaration.swift",
"SwiftTypes/SwiftParameter.swift",
"SwiftTypes/SwiftParsedModuleSymbolTableBuilder.swift",
"SwiftTypes/SwiftResult.swift",
"SwiftTypes/SwiftSymbolTable.swift",
"SwiftTypes/SwiftType+GenericTypes.swift",
"SwiftTypes/SwiftType.swift",
"SwiftTypes/SwiftTypeLookupContext.swift",
"ThunkNameRegistry.swift"
],
"target_dependencies" : [
"JavaTypes",
"SwiftJavaShared",
"SwiftJavaConfigurationShared"
],
"type" : "library"
},
{
"c99name" : "ExampleSwiftLibrary",
"module_type" : "SwiftTarget",
"name" : "ExampleSwiftLibrary",
"path" : "Sources/ExampleSwiftLibrary",
"product_memberships" : [
"ExampleSwiftLibrary"
],
"sources" : [
"MySwiftLibrary.swift"
],
"type" : "library"
},
{
"c99name" : "CSwiftJavaJNI",
"module_type" : "ClangTarget",
"name" : "CSwiftJavaJNI",
"path" : "Sources/CSwiftJavaJNI",
"product_memberships" : [
"SwiftJava",
"CSwiftJavaJNI",
"JavaUtil",
"JavaUtilFunction",
"JavaUtilJar",
"JavaNet",
"JavaIO",
"JavaLangReflect",
"swift-java",
"SwiftJavaDocumentation",
"SwiftJavaPlugin",
"JExtractSwiftPlugin"
],
"sources" : [
"dummy.c"
],
"type" : "library"
}
],
"tools_version" : "6.0"
}
warning: 'spi-builder-workspace': JAVA_HOME = /root/.sdkman/candidates/java/current
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:eb0758f51dbd6991fb9e51dedbfbcbec142ffc0d3b9b8ad91fa19d35e5136f0a
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
warning: 'spi-builder-workspace': JAVA_HOME = /root/.sdkman/candidates/java/current
Fetching https://github.com/swiftlang/swift-syntax
Fetching https://github.com/apple/swift-argument-parser
Fetching https://github.com/apple/swift-system
Fetching https://github.com/ordo-one/package-benchmark
[1/15914] Fetching swift-argument-parser
[638/20851] Fetching swift-argument-parser, swift-system
[1330/27283] Fetching swift-argument-parser, swift-system, package-benchmark
[15826/99194] Fetching swift-argument-parser, swift-system, package-benchmark, swift-syntax
Fetched https://github.com/apple/swift-system from cache (0.78s)
[27940/94257] Fetching swift-argument-parser, package-benchmark, swift-syntax
Fetched https://github.com/ordo-one/package-benchmark from cache (0.79s)
[21667/87825] Fetching swift-argument-parser, swift-syntax
Fetched https://github.com/apple/swift-argument-parser from cache (5.92s)
Fetched https://github.com/swiftlang/swift-syntax from cache (5.97s)
Computing version for https://github.com/swiftlang/swift-syntax
Computed https://github.com/swiftlang/swift-syntax at 601.0.1 (8.95s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 1.6.1 (0.90s)
Computing version for https://github.com/apple/swift-system
Computed https://github.com/apple/swift-system at 1.6.2 (0.72s)
Computing version for https://github.com/ordo-one/package-benchmark
Computed https://github.com/ordo-one/package-benchmark at 1.29.4 (0.70s)
Fetching https://github.com/HdrHistogram/hdrhistogram-swift.git
Fetching https://github.com/ordo-one/package-jemalloc.git
Fetching https://github.com/apple/swift-atomics.git
Fetching https://github.com/ordo-one/TextTable.git
[1/602] Fetching hdrhistogram-swift
[603/637] Fetching hdrhistogram-swift, package-jemalloc
[638/840] Fetching hdrhistogram-swift, package-jemalloc, texttable
[841/2654] Fetching hdrhistogram-swift, package-jemalloc, texttable, swift-atomics
Fetched https://github.com/ordo-one/package-jemalloc.git from cache (0.28s)
[1041/2619] Fetching hdrhistogram-swift, texttable, swift-atomics
Fetched https://github.com/HdrHistogram/hdrhistogram-swift.git from cache (0.30s)
[820/2017] Fetching texttable, swift-atomics
Fetched https://github.com/ordo-one/TextTable.git from cache (0.48s)
Fetched https://github.com/apple/swift-atomics.git from cache (0.48s)
Computing version for https://github.com/ordo-one/package-jemalloc.git
Computed https://github.com/ordo-one/package-jemalloc.git at 1.0.0 (1.07s)
Computing version for https://github.com/ordo-one/TextTable.git
Computed https://github.com/ordo-one/TextTable.git at 0.0.2 (0.58s)
Computing version for https://github.com/HdrHistogram/hdrhistogram-swift.git
Computed https://github.com/HdrHistogram/hdrhistogram-swift.git at 0.1.3 (0.72s)
Fetching https://github.com/apple/swift-numerics
[1/6348] Fetching swift-numerics
Fetched https://github.com/apple/swift-numerics from cache (0.57s)
Computing version for https://github.com/apple/swift-numerics
Computed https://github.com/apple/swift-numerics at 1.1.0 (1.17s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 1.3.0 (1.41s)
Creating working copy for https://github.com/HdrHistogram/hdrhistogram-swift.git
Working copy of https://github.com/HdrHistogram/hdrhistogram-swift.git resolved at 0.1.3
Creating working copy for https://github.com/ordo-one/package-benchmark
Working copy of https://github.com/ordo-one/package-benchmark resolved at 1.29.4
Creating working copy for https://github.com/apple/swift-argument-parser
Working copy of https://github.com/apple/swift-argument-parser resolved at 1.6.1
Creating working copy for https://github.com/ordo-one/TextTable.git
Working copy of https://github.com/ordo-one/TextTable.git resolved at 0.0.2
Creating working copy for https://github.com/apple/swift-numerics
Working copy of https://github.com/apple/swift-numerics resolved at 1.1.0
Creating working copy for https://github.com/swiftlang/swift-syntax
Working copy of https://github.com/swiftlang/swift-syntax resolved at 601.0.1
Creating working copy for https://github.com/apple/swift-atomics.git
Working copy of https://github.com/apple/swift-atomics.git resolved at 1.3.0
Creating working copy for https://github.com/apple/swift-system
Working copy of https://github.com/apple/swift-system resolved at 1.6.2
Creating working copy for https://github.com/ordo-one/package-jemalloc.git
Working copy of https://github.com/ordo-one/package-jemalloc.git resolved at 1.0.0
warning: couldn't find pc file for jemalloc
warning: couldn't find pc file for jemalloc
warning: 'swift-syntax': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/host/spi-builder-workspace/.build/checkouts/swift-syntax/Sources/SwiftLexicalLookup/CMakeLists.txt
/host/spi-builder-workspace/Plugins/JExtractSwiftPlugin/JExtractSwiftPlugin.swift:36:11: warning: expression of type '(any SourceModuleTarget)?' is unused
34 | switch (dependency) {
35 | case .target(let t):
36 | t.sourceModule
| `- warning: expression of type '(any SourceModuleTarget)?' is unused
37 | case .product(let p):
38 | p.sourceModules
/host/spi-builder-workspace/Plugins/JExtractSwiftPlugin/JExtractSwiftPlugin.swift:38:11: warning: expression of type '[any SourceModuleTarget]' is unused
36 | t.sourceModule
37 | case .product(let p):
38 | p.sourceModules
| `- warning: expression of type '[any SourceModuleTarget]' is unused
39 | @unknown default:
40 | fatalError("Unknown target dependency type: \(dependency)")
/host/spi-builder-workspace/Plugins/JExtractSwiftPlugin/JExtractSwiftPlugin.swift:44:38: warning: 'string' is deprecated: Use `URL` type instead of `Path`.
42 | }
43 |
44 | let sourceDir = target.directory.string
| `- warning: 'string' is deprecated: Use `URL` type instead of `Path`.
45 |
46 | // The name of the configuration file SwiftJava.config from the target for
/host/spi-builder-workspace/Plugins/JExtractSwiftPlugin/JExtractSwiftPlugin.swift:80:12: warning: immutable value 'moduleName' was never used; consider replacing with '_' or removing it
78 |
79 | let dependentConfigFilesArguments = dependentConfigFiles.flatMap { moduleAndConfigFile in
80 | let (moduleName, configFile) = moduleAndConfigFile
| `- warning: immutable value 'moduleName' was never used; consider replacing with '_' or removing it
81 | return [
82 | "--depends-on",
/host/spi-builder-workspace/Plugins/JExtractSwiftPlugin/JExtractSwiftPlugin.swift:105:11: warning: variable 'outputURL' was never mutated; consider changing to 'let' constant
103 | fatalError("Could not get relative path for source file \(sourceFilePath)")
104 | }
105 | var outputURL = outputSwiftDirectory
| `- warning: variable 'outputURL' was never mutated; consider changing to 'let' constant
106 | .appending(path: String(sourceFilePath.dropFirst(sourceDir.count).dropLast(sourceFileURL.lastPathComponent.count + 1)))
107 |
/host/spi-builder-workspace/Plugins/JExtractSwiftPlugin/JExtractSwiftPlugin.swift:142:58: warning: 'string' is deprecated: Use `URL` type instead of `Path`.
140 | func _searchForConfigFiles(in target: any Target) {
141 | // log("Search for config files in target: \(target.name)")
142 | let dependencyURL = URL(filePath: target.directory.string)
| `- warning: 'string' is deprecated: Use `URL` type instead of `Path`.
143 |
144 | // Look for a config file within this target.
/host/spi-builder-workspace/Plugins/JExtractSwiftPlugin/_PluginsShared/PluginUtils.swift:41:58: warning: 'string' is deprecated: Use `URL` type instead of `Path`.
39 |
40 | func getSwiftJavaConfigPath(target: Target) -> String? {
41 | let configPath = URL(fileURLWithPath: target.directory.string).appending(component: "swift-java.config").path()
| `- warning: 'string' is deprecated: Use `URL` type instead of `Path`.
42 |
43 | if FileManager.default.fileExists(atPath: configPath) {
/host/spi-builder-workspace/Plugins/JExtractSwiftPlugin/_PluginsShared/SwiftJavaConfigurationShared/Configuration.swift:204:30: warning: 'init(contentsOf:)' is deprecated: Use `init(contentsOf:encoding:)` instead
202 | if fileURL.lastPathComponent.hasSuffix(".swift-java.classpath") {
203 | print("[debug][swift-java] Constructing classpath with entries from: \(fileURL.path)")
204 | if let contents = try? String(contentsOf: fileURL) {
| `- warning: 'init(contentsOf:)' is deprecated: Use `init(contentsOf:encoding:)` instead
205 | let entries = contents.split(separator: ":").map(String.init)
206 | for entry in entries {
[1/1] Compiling plugin JExtractSwiftPlugin
/host/spi-builder-workspace/Plugins/SwiftJavaPlugin/SwiftJavaPlugin.swift:35:38: warning: 'string' is deprecated: Use `URL` type instead of `Path`.
33 | // Note: Target doesn't have a directoryURL counterpart to directory,
34 | // so we cannot eliminate this deprecation warning.
35 | let sourceDir = target.directory.string
| `- warning: 'string' is deprecated: Use `URL` type instead of `Path`.
36 |
37 | // The name of the configuration file SwiftJava.config from the target for
/host/spi-builder-workspace/Plugins/SwiftJavaPlugin/SwiftJavaPlugin.swift:52:58: warning: 'string' is deprecated: Use `URL` type instead of `Path`.
50 | func searchForConfigFiles(in target: any Target) {
51 | // log("Search for config files in target: \(target.name)")
52 | let dependencyURL = URL(filePath: target.directory.string)
| `- warning: 'string' is deprecated: Use `URL` type instead of `Path`.
53 |
54 | // Look for a config file within this target.
/host/spi-builder-workspace/Plugins/SwiftJavaPlugin/SwiftJavaPlugin.swift:45:9: warning: initialization of variable 'javaDependencies' was never used; consider replacing with assignment to '_' or removing it
43 | log("Config on path: \(configFile.path(percentEncoded: false))")
44 | log("Config was: \(config)")
45 | var javaDependencies = config.dependencies ?? []
| `- warning: initialization of variable 'javaDependencies' was never used; consider replacing with assignment to '_' or removing it
46 |
47 | /// Find the manifest files from other swift-java executions in any targets
/host/spi-builder-workspace/Plugins/SwiftJavaPlugin/_PluginsShared/PluginUtils.swift:41:58: warning: 'string' is deprecated: Use `URL` type instead of `Path`.
39 |
40 | func getSwiftJavaConfigPath(target: Target) -> String? {
41 | let configPath = URL(fileURLWithPath: target.directory.string).appending(component: "swift-java.config").path()
| `- warning: 'string' is deprecated: Use `URL` type instead of `Path`.
42 |
43 | if FileManager.default.fileExists(atPath: configPath) {
/host/spi-builder-workspace/Plugins/SwiftJavaPlugin/_PluginsShared/SwiftJavaConfigurationShared/Configuration.swift:204:30: warning: 'init(contentsOf:)' is deprecated: Use `init(contentsOf:encoding:)` instead
202 | if fileURL.lastPathComponent.hasSuffix(".swift-java.classpath") {
203 | print("[debug][swift-java] Constructing classpath with entries from: \(fileURL.path)")
204 | if let contents = try? String(contentsOf: fileURL) {
| `- warning: 'init(contentsOf:)' is deprecated: Use `init(contentsOf:encoding:)` instead
205 | let entries = contents.split(separator: ":").map(String.init)
206 | for entry in entries {
[2/2] Compiling plugin SwiftJavaPlugin
/host/spi-builder-workspace/Plugins/JavaCompilerPlugin/JavaCompilerPlugin.swift:33:38: warning: 'string' is deprecated: Use `URL` type instead of `Path`.
31 | // Note: Target doesn't have a directoryURL counterpart to directory,
32 | // so we cannot eliminate this deprecation warning.
33 | let sourceDir = target.directory.string
| `- warning: 'string' is deprecated: Use `URL` type instead of `Path`.
34 |
35 | // The name of the configuration file SwiftJava.config from the target for
/host/spi-builder-workspace/Plugins/JavaCompilerPlugin/_PluginsShared/PluginUtils.swift:41:58: warning: 'string' is deprecated: Use `URL` type instead of `Path`.
39 |
40 | func getSwiftJavaConfigPath(target: Target) -> String? {
41 | let configPath = URL(fileURLWithPath: target.directory.string).appending(component: "swift-java.config").path()
| `- warning: 'string' is deprecated: Use `URL` type instead of `Path`.
42 |
43 | if FileManager.default.fileExists(atPath: configPath) {
/host/spi-builder-workspace/Plugins/JavaCompilerPlugin/_PluginsShared/SwiftJavaConfigurationShared/Configuration.swift:204:30: warning: 'init(contentsOf:)' is deprecated: Use `init(contentsOf:encoding:)` instead
202 | if fileURL.lastPathComponent.hasSuffix(".swift-java.classpath") {
203 | print("[debug][swift-java] Constructing classpath with entries from: \(fileURL.path)")
204 | if let contents = try? String(contentsOf: fileURL) {
| `- warning: 'init(contentsOf:)' is deprecated: Use `init(contentsOf:encoding:)` instead
205 | let entries = contents.split(separator: ":").map(String.init)
206 | for entry in entries {
[3/3] Compiling plugin JavaCompilerPlugin
[4/4] Compiling plugin BenchmarkPlugin
[5/5] Compiling plugin BenchmarkCommandPlugin
[6/6] Compiling plugin GenerateManual
[7/7] Compiling plugin GenerateDoccReference
Building for debugging...
[7/136] Write sources
[71/136] Compiling CSwiftJavaJNI dummy.c
[72/136] Compiling _SwiftSyntaxCShims dummy.c
[73/136] Write sources
[75/136] Compiling _SwiftSyntaxCShims dummy.c
[76/136] Compiling CSystem shims.c
/host/spi-builder-workspace/Sources/_SubprocessCShims/process_shims.c:27:10: fatal error: 'grp.h' file not found
27 | #include <grp.h>
| ^~~~~~~
1 error generated.
[77/136] Compiling _SubprocessCShims process_shims.c
[77/136] Compiling CSwiftJavaJNI dummy.c
[77/136] Compiling CSystem shims.c
[77/136] Compiling _SubprocessCShims process_shims.c
[77/136] Write swift-version-24593BA9C3E375BF.txt
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:eb0758f51dbd6991fb9e51dedbfbcbec142ffc0d3b9b8ad91fa19d35e5136f0a
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
warning: 'spi-builder-workspace': JAVA_HOME = /root/.sdkman/candidates/java/current
warning: couldn't find pc file for jemalloc
warning: couldn't find pc file for jemalloc
warning: 'swift-syntax': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/host/spi-builder-workspace/.build/checkouts/swift-syntax/Sources/SwiftLexicalLookup/CMakeLists.txt
[0/1] Planning build
/host/spi-builder-workspace/Plugins/JExtractSwiftPlugin/JExtractSwiftPlugin.swift:36:11: warning: expression of type '(any SourceModuleTarget)?' is unused
34 | switch (dependency) {
35 | case .target(let t):
36 | t.sourceModule
| `- warning: expression of type '(any SourceModuleTarget)?' is unused
37 | case .product(let p):
38 | p.sourceModules
/host/spi-builder-workspace/Plugins/JExtractSwiftPlugin/JExtractSwiftPlugin.swift:38:11: warning: expression of type '[any SourceModuleTarget]' is unused
36 | t.sourceModule
37 | case .product(let p):
38 | p.sourceModules
| `- warning: expression of type '[any SourceModuleTarget]' is unused
39 | @unknown default:
40 | fatalError("Unknown target dependency type: \(dependency)")
/host/spi-builder-workspace/Plugins/JExtractSwiftPlugin/JExtractSwiftPlugin.swift:44:38: warning: 'string' is deprecated: Use `URL` type instead of `Path`.
42 | }
43 |
44 | let sourceDir = target.directory.string
| `- warning: 'string' is deprecated: Use `URL` type instead of `Path`.
45 |
46 | // The name of the configuration file SwiftJava.config from the target for
/host/spi-builder-workspace/Plugins/JExtractSwiftPlugin/JExtractSwiftPlugin.swift:80:12: warning: immutable value 'moduleName' was never used; consider replacing with '_' or removing it
78 |
79 | let dependentConfigFilesArguments = dependentConfigFiles.flatMap { moduleAndConfigFile in
80 | let (moduleName, configFile) = moduleAndConfigFile
| `- warning: immutable value 'moduleName' was never used; consider replacing with '_' or removing it
81 | return [
82 | "--depends-on",
/host/spi-builder-workspace/Plugins/JExtractSwiftPlugin/JExtractSwiftPlugin.swift:105:11: warning: variable 'outputURL' was never mutated; consider changing to 'let' constant
103 | fatalError("Could not get relative path for source file \(sourceFilePath)")
104 | }
105 | var outputURL = outputSwiftDirectory
| `- warning: variable 'outputURL' was never mutated; consider changing to 'let' constant
106 | .appending(path: String(sourceFilePath.dropFirst(sourceDir.count).dropLast(sourceFileURL.lastPathComponent.count + 1)))
107 |
/host/spi-builder-workspace/Plugins/JExtractSwiftPlugin/JExtractSwiftPlugin.swift:142:58: warning: 'string' is deprecated: Use `URL` type instead of `Path`.
140 | func _searchForConfigFiles(in target: any Target) {
141 | // log("Search for config files in target: \(target.name)")
142 | let dependencyURL = URL(filePath: target.directory.string)
| `- warning: 'string' is deprecated: Use `URL` type instead of `Path`.
143 |
144 | // Look for a config file within this target.
/host/spi-builder-workspace/Plugins/JExtractSwiftPlugin/_PluginsShared/PluginUtils.swift:41:58: warning: 'string' is deprecated: Use `URL` type instead of `Path`.
39 |
40 | func getSwiftJavaConfigPath(target: Target) -> String? {
41 | let configPath = URL(fileURLWithPath: target.directory.string).appending(component: "swift-java.config").path()
| `- warning: 'string' is deprecated: Use `URL` type instead of `Path`.
42 |
43 | if FileManager.default.fileExists(atPath: configPath) {
/host/spi-builder-workspace/Plugins/JExtractSwiftPlugin/_PluginsShared/SwiftJavaConfigurationShared/Configuration.swift:204:30: warning: 'init(contentsOf:)' is deprecated: Use `init(contentsOf:encoding:)` instead
202 | if fileURL.lastPathComponent.hasSuffix(".swift-java.classpath") {
203 | print("[debug][swift-java] Constructing classpath with entries from: \(fileURL.path)")
204 | if let contents = try? String(contentsOf: fileURL) {
| `- warning: 'init(contentsOf:)' is deprecated: Use `init(contentsOf:encoding:)` instead
205 | let entries = contents.split(separator: ":").map(String.init)
206 | for entry in entries {
[1/1] Compiling plugin JExtractSwiftPlugin
/host/spi-builder-workspace/Plugins/SwiftJavaPlugin/SwiftJavaPlugin.swift:35:38: warning: 'string' is deprecated: Use `URL` type instead of `Path`.
33 | // Note: Target doesn't have a directoryURL counterpart to directory,
34 | // so we cannot eliminate this deprecation warning.
35 | let sourceDir = target.directory.string
| `- warning: 'string' is deprecated: Use `URL` type instead of `Path`.
36 |
37 | // The name of the configuration file SwiftJava.config from the target for
/host/spi-builder-workspace/Plugins/SwiftJavaPlugin/SwiftJavaPlugin.swift:52:58: warning: 'string' is deprecated: Use `URL` type instead of `Path`.
50 | func searchForConfigFiles(in target: any Target) {
51 | // log("Search for config files in target: \(target.name)")
52 | let dependencyURL = URL(filePath: target.directory.string)
| `- warning: 'string' is deprecated: Use `URL` type instead of `Path`.
53 |
54 | // Look for a config file within this target.
/host/spi-builder-workspace/Plugins/SwiftJavaPlugin/SwiftJavaPlugin.swift:45:9: warning: initialization of variable 'javaDependencies' was never used; consider replacing with assignment to '_' or removing it
43 | log("Config on path: \(configFile.path(percentEncoded: false))")
44 | log("Config was: \(config)")
45 | var javaDependencies = config.dependencies ?? []
| `- warning: initialization of variable 'javaDependencies' was never used; consider replacing with assignment to '_' or removing it
46 |
47 | /// Find the manifest files from other swift-java executions in any targets
/host/spi-builder-workspace/Plugins/SwiftJavaPlugin/_PluginsShared/PluginUtils.swift:41:58: warning: 'string' is deprecated: Use `URL` type instead of `Path`.
39 |
40 | func getSwiftJavaConfigPath(target: Target) -> String? {
41 | let configPath = URL(fileURLWithPath: target.directory.string).appending(component: "swift-java.config").path()
| `- warning: 'string' is deprecated: Use `URL` type instead of `Path`.
42 |
43 | if FileManager.default.fileExists(atPath: configPath) {
/host/spi-builder-workspace/Plugins/SwiftJavaPlugin/_PluginsShared/SwiftJavaConfigurationShared/Configuration.swift:204:30: warning: 'init(contentsOf:)' is deprecated: Use `init(contentsOf:encoding:)` instead
202 | if fileURL.lastPathComponent.hasSuffix(".swift-java.classpath") {
203 | print("[debug][swift-java] Constructing classpath with entries from: \(fileURL.path)")
204 | if let contents = try? String(contentsOf: fileURL) {
| `- warning: 'init(contentsOf:)' is deprecated: Use `init(contentsOf:encoding:)` instead
205 | let entries = contents.split(separator: ":").map(String.init)
206 | for entry in entries {
[2/2] Compiling plugin SwiftJavaPlugin
/host/spi-builder-workspace/Plugins/JavaCompilerPlugin/JavaCompilerPlugin.swift:33:38: warning: 'string' is deprecated: Use `URL` type instead of `Path`.
31 | // Note: Target doesn't have a directoryURL counterpart to directory,
32 | // so we cannot eliminate this deprecation warning.
33 | let sourceDir = target.directory.string
| `- warning: 'string' is deprecated: Use `URL` type instead of `Path`.
34 |
35 | // The name of the configuration file SwiftJava.config from the target for
/host/spi-builder-workspace/Plugins/JavaCompilerPlugin/_PluginsShared/PluginUtils.swift:41:58: warning: 'string' is deprecated: Use `URL` type instead of `Path`.
39 |
40 | func getSwiftJavaConfigPath(target: Target) -> String? {
41 | let configPath = URL(fileURLWithPath: target.directory.string).appending(component: "swift-java.config").path()
| `- warning: 'string' is deprecated: Use `URL` type instead of `Path`.
42 |
43 | if FileManager.default.fileExists(atPath: configPath) {
/host/spi-builder-workspace/Plugins/JavaCompilerPlugin/_PluginsShared/SwiftJavaConfigurationShared/Configuration.swift:204:30: warning: 'init(contentsOf:)' is deprecated: Use `init(contentsOf:encoding:)` instead
202 | if fileURL.lastPathComponent.hasSuffix(".swift-java.classpath") {
203 | print("[debug][swift-java] Constructing classpath with entries from: \(fileURL.path)")
204 | if let contents = try? String(contentsOf: fileURL) {
| `- warning: 'init(contentsOf:)' is deprecated: Use `init(contentsOf:encoding:)` instead
205 | let entries = contents.split(separator: ":").map(String.init)
206 | for entry in entries {
[3/3] Compiling plugin JavaCompilerPlugin
[4/4] Compiling plugin BenchmarkPlugin
[5/5] Compiling plugin BenchmarkCommandPlugin
[6/6] Compiling plugin GenerateManual
[7/7] Compiling plugin GenerateDoccReference
Building for debugging...
[7/66] Compiling CSwiftJavaJNI dummy.c
/host/spi-builder-workspace/Sources/_SubprocessCShims/process_shims.c:27:10: fatal error: 'grp.h' file not found
27 | #include <grp.h>
| ^~~~~~~
1 error generated.
[8/66] Compiling _SubprocessCShims process_shims.c
[8/66] Compiling CSystem shims.c
[8/66] Compiling _SubprocessCShims process_shims.c
[8/66] Write swift-version-24593BA9C3E375BF.txt
BUILD FAILURE 6.1 wasm