Build Information
Failed to build DTOMacro, reference 0.0.0 (601a66), with Swift 6.1 for Android on 28 May 2025 18:29:05 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/OctoPoulpeStudio/DTOMacro.git
Reference: 0.0.0
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/OctoPoulpeStudio/DTOMacro
* tag 0.0.0 -> FETCH_HEAD
HEAD is now at 601a662 Update README.md
Cloned https://github.com/OctoPoulpeStudio/DTOMacro.git
Revision (git rev-parse @):
601a662c550cbecedcd219c73e8ff1525690fbb4
SUCCESS checkout https://github.com/OctoPoulpeStudio/DTOMacro.git at 0.0.0
========================================
Build
========================================
Selected platform: android
Swift version: 6.1
Building package at path: $PWD
https://github.com/OctoPoulpeStudio/DTOMacro.git
https://github.com/OctoPoulpeStudio/DTOMacro.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"dependencies" : [
{
"identity" : "swift-syntax",
"requirement" : {
"range" : [
{
"lower_bound" : "509.0.0-swift-5.9-DEVELOPMENT-SNAPSHOT-2023-04-25-b",
"upper_bound" : "510.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-syntax.git"
}
],
"manifest_display_name" : "DTOMacro",
"name" : "DTOMacro",
"path" : "/host/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "10.15"
},
{
"name" : "ios",
"version" : "13.0"
},
{
"name" : "tvos",
"version" : "13.0"
},
{
"name" : "watchos",
"version" : "6.0"
},
{
"name" : "maccatalyst",
"version" : "13.0"
}
],
"products" : [
{
"name" : "DTOMacro",
"targets" : [
"DTOMacro"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "DTOTypes",
"targets" : [
"DTOTypes"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "DTOMacroClient",
"targets" : [
"DTOMacroClient"
],
"type" : {
"executable" : null
}
},
{
"name" : "DTOMacrosImpl",
"targets" : [
"DTOMacrosImpl"
],
"type" : {
"macro" : null
}
}
],
"targets" : [
{
"c99name" : "DTOTypes",
"module_type" : "SwiftTarget",
"name" : "DTOTypes",
"path" : "Sources/DTOTypes",
"product_memberships" : [
"DTOMacro",
"DTOTypes",
"DTOMacroClient",
"DTOMacrosImpl"
],
"sources" : [
"DecodableFromDTOProtocol.swift",
"JSONDecoder+DecodableFromDTO.swift"
],
"type" : "library"
},
{
"c99name" : "DTOMacrosImpl",
"module_type" : "SwiftTarget",
"name" : "DTOMacrosImpl",
"path" : "Sources/DTOMacrosImpl",
"product_dependencies" : [
"SwiftSyntaxMacros",
"SwiftCompilerPlugin",
"SwiftDiagnostics"
],
"product_memberships" : [
"DTOMacro",
"DTOMacroClient",
"DTOMacrosImpl"
],
"sources" : [
"DTODiagnostic.swift",
"DTOMacroImpl.swift",
"Tools/DiagnosticBuilder.swift",
"Tools/SyntaxCreator.swift",
"Tools/SyntaxNodeComparator.swift",
"Tools/SyntaxUtils.swift"
],
"target_dependencies" : [
"DTOTypes"
],
"type" : "macro"
},
{
"c99name" : "DTOMacroTests",
"module_type" : "SwiftTarget",
"name" : "DTOMacroTests",
"path" : "Tests/DTOMacroTests",
"product_dependencies" : [
"SwiftSyntaxMacrosTestSupport"
],
"sources" : [
"DTOMacroTests.swift"
],
"target_dependencies" : [
"DTOMacrosImpl"
],
"type" : "test"
},
{
"c99name" : "DTOMacroClient",
"module_type" : "SwiftTarget",
"name" : "DTOMacroClient",
"path" : "Sources/DTOMacroClient",
"product_memberships" : [
"DTOMacroClient"
],
"sources" : [
"main.swift"
],
"target_dependencies" : [
"DTOMacro"
],
"type" : "executable"
},
{
"c99name" : "DTOMacro",
"module_type" : "SwiftTarget",
"name" : "DTOMacro",
"path" : "Sources/DTOMacro",
"product_memberships" : [
"DTOMacro",
"DTOMacroClient"
],
"sources" : [
"DTOAccessibility.swift",
"DTOMacro.swift"
],
"target_dependencies" : [
"DTOMacrosImpl",
"DTOTypes"
],
"type" : "library"
}
],
"tools_version" : "5.9"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 -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 2>&1
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:fe1962677657b2408c217cb5cceb3c09bc1d91486e360cebbc6eee461a5945d8
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
Fetching https://github.com/apple/swift-syntax.git
[1/70449] Fetching swift-syntax
Fetched https://github.com/apple/swift-syntax.git from cache (5.16s)
Computing version for https://github.com/apple/swift-syntax.git
Computed https://github.com/apple/swift-syntax.git at 509.1.1 (7.57s)
Creating working copy for https://github.com/apple/swift-syntax.git
Working copy of https://github.com/apple/swift-syntax.git resolved at 509.1.1
Building for debugging...
[0/39] Write sources
[17/39] Write swift-version-24593BA9C3E375BF.txt
[19/47] Emitting module SwiftSyntax509
[20/47] Compiling SwiftSyntax509 Empty.swift
[21/48] Wrapping AST for SwiftSyntax509 for debugging
[23/93] Emitting module DTOTypes
[24/93] Compiling DTOTypes DecodableFromDTOProtocol.swift
[25/93] Emitting module DTOTypes
[26/93] Compiling DTOTypes JSONDecoder+DecodableFromDTO.swift
[27/94] Wrapping AST for DTOTypes for debugging
[29/94] Compiling DTOTypes JSONDecoder+DecodableFromDTO.swift
[30/94] Compiling DTOTypes DecodableFromDTOProtocol.swift
[31/95] Wrapping AST for DTOTypes for debugging
[33/95] Compiling SwiftSyntax SyntaxText.swift
[34/95] Compiling SwiftSyntax SyntaxTreeViewMode.swift
[35/95] Compiling SwiftSyntax TokenDiagnostic.swift
[36/95] Compiling SwiftSyntax TokenSyntax.swift
[37/95] Compiling SwiftSyntax Trivia.swift
[38/95] Compiling SwiftSyntax Utils.swift
[39/95] Compiling SwiftSyntax AbsolutePosition.swift
[40/95] Compiling SwiftSyntax Assert.swift
[41/95] Compiling SwiftSyntax BumpPtrAllocator.swift
[42/95] Compiling SwiftSyntax CommonAncestor.swift
[43/95] Compiling SwiftSyntax Convenience.swift
[44/95] Compiling SwiftSyntax MemoryLayout.swift
[45/95] Compiling SwiftSyntax MissingNodeInitializers.swift
[46/101] Compiling SwiftSyntax RawSyntax.swift
[47/101] Compiling SwiftSyntax RawSyntaxLayoutView.swift
[48/101] Compiling SwiftSyntax RawSyntaxNodeProtocol.swift
[49/101] Compiling SwiftSyntax RawSyntaxTokenView.swift
[50/101] Compiling SwiftSyntax SourceLength.swift
[51/101] Compiling SwiftSyntax SourceLocation.swift
[52/101] Compiling SwiftSyntax SourcePresence.swift
[53/101] Emitting module SwiftSyntax
[54/101] Compiling SwiftSyntax SyntaxCollections.swift
[55/101] Compiling SwiftSyntax SyntaxEnum.swift
[56/101] Compiling SwiftSyntax SyntaxKind.swift
[57/101] Compiling SwiftSyntax SyntaxRewriter.swift
[58/101] Compiling SwiftSyntax SyntaxTraits.swift
[59/101] Compiling SwiftSyntax SyntaxTransform.swift
[60/101] Compiling SwiftSyntax ChildNameForKeyPath.swift
[61/101] Compiling SwiftSyntax Keyword.swift
[62/101] Compiling SwiftSyntax RenamedChildrenCompatibility.swift
[63/101] Compiling SwiftSyntax RenamedNodesCompatibility.swift
[64/101] Compiling SwiftSyntax SyntaxAnyVisitor.swift
[65/101] Compiling SwiftSyntax SyntaxBaseNodes.swift
[66/101] Compiling SwiftSyntax SwiftSyntaxCompatibility.swift
[67/101] Compiling SwiftSyntax Syntax.swift
[68/101] Compiling SwiftSyntax SyntaxArena.swift
[69/101] Compiling SwiftSyntax SyntaxChildren.swift
[70/101] Compiling SwiftSyntax SyntaxCollection.swift
[71/101] Compiling SwiftSyntax SyntaxData.swift
[72/101] Compiling SwiftSyntax SyntaxVisitor.swift
[73/101] Compiling SwiftSyntax TokenKind.swift
[74/101] Compiling SwiftSyntax Tokens.swift
[75/101] Compiling SwiftSyntax TriviaPieces.swift
[76/101] Compiling SwiftSyntax RawSyntaxNodes.swift
[77/101] Compiling SwiftSyntax RawSyntaxValidation.swift
[78/101] Compiling SwiftSyntax SyntaxDeclNodes.swift
[79/101] Compiling SwiftSyntax SyntaxExprNodes.swift
[80/101] Compiling SwiftSyntax SyntaxNodes.swift
[81/101] Compiling SwiftSyntax SyntaxPatternNodes.swift
[82/101] Compiling SwiftSyntax SyntaxStmtNodes.swift
[83/101] Compiling SwiftSyntax SyntaxTypeNodes.swift
[84/104] Wrapping AST for SwiftSyntax for debugging
[86/153] Compiling SwiftBasicFormat SyntaxProtocol+Formatted.swift
[87/153] Compiling SwiftBasicFormat Syntax+Extensions.swift
[88/153] Compiling SwiftDiagnostics Convenience.swift
[89/153] Emitting module SwiftDiagnostics
[90/153] Compiling SwiftDiagnostics Message.swift
[91/153] Compiling SwiftDiagnostics Note.swift
[92/153] Compiling SwiftBasicFormat Trivia+FormatExtensions.swift
[93/153] Compiling SwiftDiagnostics FixIt.swift
[94/153] Compiling SwiftDiagnostics GroupedDiagnostics.swift
[95/153] Compiling SwiftDiagnostics Diagnostic.swift
[96/153] Compiling SwiftDiagnostics DiagnosticsFormatter.swift
[98/154] Compiling SwiftBasicFormat BasicFormat.swift
[99/154] Emitting module SwiftBasicFormat
[100/155] Wrapping AST for SwiftDiagnostics for debugging
[101/155] Wrapping AST for SwiftBasicFormat for debugging
[103/155] Compiling SwiftParser StringLiteralRepresentedLiteralValue.swift
[104/155] Compiling SwiftParser StringLiterals.swift
[105/155] Compiling SwiftParser SwiftParserCompatibility.swift
[106/155] Compiling SwiftParser SyntaxUtils.swift
[107/155] Compiling SwiftParser TokenConsumer.swift
[108/155] Compiling SwiftParser TokenPrecedence.swift
[109/155] Compiling SwiftParser TokenSpec.swift
[110/155] Compiling SwiftParser TokenSpecSet.swift
[111/155] Compiling SwiftParser TopLevel.swift
[112/155] Compiling SwiftParser TriviaParser.swift
[113/160] Emitting module SwiftParser
[114/160] Compiling SwiftParser Parser.swift
[115/160] Compiling SwiftParser Patterns.swift
[116/160] Compiling SwiftParser Recovery.swift
[117/160] Compiling SwiftParser Specifiers.swift
[118/160] Compiling SwiftParser Statements.swift
[119/160] Compiling SwiftParser Lexer.swift
[120/160] Compiling SwiftParser RegexLiteralLexer.swift
[121/160] Compiling SwiftParser UnicodeScalarExtensions.swift
[122/160] Compiling SwiftParser Lookahead.swift
[123/160] Compiling SwiftParser LoopProgressCondition.swift
[124/160] Compiling SwiftParser Modifiers.swift
[125/160] Compiling SwiftParser Names.swift
[126/160] Compiling SwiftParser Nominals.swift
[127/160] Compiling SwiftParser Parameters.swift
[128/160] Compiling SwiftParser ParseSourceFile.swift
[129/160] Compiling SwiftParser Attributes.swift
[130/160] Compiling SwiftParser Availability.swift
[131/160] Compiling SwiftParser CharacterInfo.swift
[132/160] Compiling SwiftParser CollectionNodes+Parsable.swift
[133/160] Compiling SwiftParser Declarations.swift
[134/160] Compiling SwiftParser Directives.swift
[135/160] Compiling SwiftParser ExperimentalFeatures.swift
[136/160] Compiling SwiftParser Expressions.swift
[137/160] Compiling SwiftParser IncrementalParseTransition.swift
[138/160] Compiling SwiftParser Cursor.swift
[139/160] Compiling SwiftParser Lexeme.swift
[140/160] Compiling SwiftParser LexemeSequence.swift
[141/160] Compiling SwiftParser Types.swift
[142/160] Compiling SwiftParser IsLexerClassified.swift
[143/160] Compiling SwiftParser LayoutNodes+Parsable.swift
[144/160] Compiling SwiftParser Parser+TokenSpecSet.swift
[145/160] Compiling SwiftParser TokenSpecStaticMembers.swift
[146/161] Wrapping AST for SwiftParser for debugging
[148/184] Compiling SwiftOperators PrecedenceGroup.swift
[149/185] Compiling SwiftParserDiagnostics SyntaxKindNameForDiagnostics.swift
[150/185] Compiling SwiftOperators PrecedenceGraph.swift
[151/186] Emitting module SwiftOperators
[152/186] Compiling SwiftOperators SyntaxSynthesis.swift
[153/186] Compiling SwiftParserDiagnostics TokenNameForDiagnostics.swift
[154/186] Compiling SwiftOperators OperatorTable.swift
[155/186] Compiling SwiftOperators OperatorError.swift
[156/186] Compiling SwiftOperators OperatorTable+Defaults.swift
[157/186] Compiling SwiftOperators Operator.swift
[158/186] Compiling SwiftOperators OperatorError+Diagnostics.swift
[159/186] Compiling SwiftOperators OperatorTable+Semantics.swift
[160/186] Compiling SwiftOperators OperatorTable+Folding.swift
[161/187] Wrapping AST for SwiftOperators for debugging
[165/187] Compiling SwiftParserDiagnostics ChildNameForDiagnostics.swift
[166/187] Compiling SwiftParserDiagnostics ParserDiagnosticMessages.swift
[167/187] Compiling SwiftParserDiagnostics PresenceUtils.swift
[170/187] Compiling SwiftParserDiagnostics MultiLineStringLiteralDiagnosticsGenerator.swift
[171/187] Compiling SwiftParserDiagnostics ParseDiagnosticsGenerator.swift
[172/187] Compiling SwiftParserDiagnostics DiagnosticExtensions.swift
[173/187] Compiling SwiftParserDiagnostics LexerDiagnosticMessages.swift
[174/187] Emitting module SwiftParserDiagnostics
[175/188] Wrapping AST for SwiftParserDiagnostics for debugging
[177/202] Compiling SwiftSyntaxBuilder SyntaxNodeWithBody.swift
[178/202] Compiling SwiftSyntaxBuilder SyntaxParsable+ExpressibleByStringInterpolation.swift
[179/203] Compiling SwiftSyntaxBuilder Indenter.swift
[180/203] Compiling SwiftSyntaxBuilder ResultBuilderExtensions.swift
[181/203] Emitting module SwiftSyntaxBuilder
[182/203] Compiling SwiftSyntaxBuilder ConvenienceInitializers.swift
[183/203] Compiling SwiftSyntaxBuilder DeclSyntaxParseable.swift
[184/203] Compiling SwiftSyntaxBuilder SwiftSyntaxBuilderCompatibility.swift
[185/203] Compiling SwiftSyntaxBuilder Syntax+StringInterpolation.swift
[186/203] Compiling SwiftSyntaxBuilder SyntaxExpressibleByStringInterpolationConformances.swift
[187/203] Compiling SwiftSyntaxBuilder ValidatingSyntaxNodes.swift
[188/203] Compiling SwiftSyntaxBuilder WithTrailingCommaSyntax+EnsuringTrailingComma.swift
[189/203] Compiling SwiftSyntaxBuilder BuildableNodes.swift
[190/203] Compiling SwiftSyntaxBuilder RenamedChildrenBuilderCompatibility.swift
[191/203] Compiling SwiftSyntaxBuilder ResultBuilders.swift
[192/204] Wrapping AST for SwiftSyntaxBuilder for debugging
[194/218] Compiling SwiftSyntaxMacros MemberMacro.swift
[195/219] Compiling SwiftSyntaxMacros Macro.swift
[196/219] Compiling SwiftSyntaxMacros MemberAttributeMacro.swift
[197/219] Compiling SwiftSyntaxMacros FreestandingMacro.swift
[198/219] Compiling SwiftSyntaxMacros Macro+Format.swift
[199/219] Compiling SwiftSyntaxMacros ExpressionMacro.swift
[200/219] Compiling SwiftSyntaxMacros ExtensionMacro.swift
[201/219] Compiling SwiftSyntaxMacros CodeItemMacro.swift
[202/219] Compiling SwiftSyntaxMacros DeclarationMacro.swift
[203/219] Compiling SwiftSyntaxMacros PeerMacro.swift
[204/219] Compiling SwiftSyntaxMacros AccessorMacro.swift
[205/219] Compiling SwiftSyntaxMacros AttachedMacro.swift
[206/219] Emitting module SwiftSyntaxMacros
[207/219] Compiling SwiftSyntaxMacros AbstractSourceLocation.swift
[208/219] Compiling SwiftSyntaxMacros MacroExpansionContext.swift
[209/220] Wrapping AST for SwiftSyntaxMacros for debugging
[211/228] Compiling SwiftSyntaxMacroExpansion BasicMacroExpansionContext.swift
[212/228] Emitting module SwiftSyntaxMacroExpansion
[213/228] Compiling SwiftSyntaxMacroExpansion FunctionParameterUtils.swift
[214/228] Compiling SwiftSyntaxMacroExpansion IndentationUtils.swift
[215/228] Compiling SwiftSyntaxMacroExpansion MacroExpansion.swift
[216/228] Compiling SwiftSyntaxMacroExpansion MacroExpansionDiagnosticMessages.swift
[217/228] Compiling SwiftSyntaxMacroExpansion MacroReplacement.swift
[218/228] Compiling SwiftSyntaxMacroExpansion MacroSystem.swift
[219/229] Wrapping AST for SwiftSyntaxMacroExpansion for debugging
[221/236] Compiling SwiftCompilerPluginMessageHandling CompilerPluginMessageHandler.swift
[222/236] Emitting module SwiftCompilerPluginMessageHandling
[223/236] Compiling SwiftCompilerPluginMessageHandling Macros.swift
[224/236] Compiling SwiftCompilerPluginMessageHandling PluginMacroExpansionContext.swift
[225/236] Compiling SwiftCompilerPluginMessageHandling Diagnostics.swift
[226/236] Compiling SwiftCompilerPluginMessageHandling PluginMessageCompatibility.swift
[227/236] Compiling SwiftCompilerPluginMessageHandling PluginMessages.swift
[228/237] Wrapping AST for SwiftCompilerPluginMessageHandling for debugging
[230/239] Emitting module SwiftCompilerPlugin
[231/239] Compiling SwiftCompilerPlugin CompilerPlugin.swift
[232/240] Wrapping AST for SwiftCompilerPlugin for debugging
[234/247] Compiling DTOMacrosImpl SyntaxNodeComparator.swift
[235/247] Compiling DTOMacrosImpl SyntaxCreator.swift
/host/spi-builder-workspace/Sources/DTOMacrosImpl/Tools/SyntaxCreator.swift:74:27: error: value of optional type 'DeclModifierListSyntax?' must be unwrapped to a value of type 'DeclModifierListSyntax'
72 | internal static func createInitMethod(accessor: Keyword, parameters: [FunctionParameterSyntax], statements: [CodeBlockItemSyntax]) -> MemberBlockItemSyntax {
73 | MemberBlockItemSyntax(decl: InitializerDeclSyntax(
74 | modifiers: SC.createAccessor(accessor),
| |- error: value of optional type 'DeclModifierListSyntax?' must be unwrapped to a value of type 'DeclModifierListSyntax'
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
75 | signature: SC.createInitSignature(with: parameters),
76 | body: CodeBlockSyntax(statements: CodeBlockItemListSyntax(statements))
/host/spi-builder-workspace/Sources/DTOMacrosImpl/Tools/SyntaxCreator.swift:105:42: error: value of optional type 'DeclModifierListSyntax?' must be unwrapped to a value of type 'DeclModifierListSyntax'
103 |
104 | internal static func createVariableDecl(accessor: Keyword, isVar:Bool = false, name:String, type:TypeAnnotationSyntax, value:ExprSyntaxProtocol? = nil) -> VariableDeclSyntax {
105 | VariableDeclSyntax(modifiers: SC.createAccessor(accessor), isVar ? .var : .let, name: PatternSyntax(stringLiteral: name), type: type, initializer: value.map{InitializerClauseSyntax(value: $0)})
| |- error: value of optional type 'DeclModifierListSyntax?' must be unwrapped to a value of type 'DeclModifierListSyntax'
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
106 | }
107 |
/host/spi-builder-workspace/Sources/DTOMacrosImpl/Tools/SyntaxCreator.swift:110:42: error: value of optional type 'DeclModifierListSyntax?' must be unwrapped to a value of type 'DeclModifierListSyntax'
108 | internal static func createVariableDecl(accessors: [Keyword], isVar:Bool = false, name:String, type:TypeAnnotationSyntax, value:ExprSyntaxProtocol? = nil) -> VariableDeclSyntax {
109 |
110 | VariableDeclSyntax(modifiers: SC.createAccessors(accessors), isVar ? .var : .let, name: PatternSyntax(stringLiteral: name), type: type, initializer: value.map{InitializerClauseSyntax(value: $0)})
| |- error: value of optional type 'DeclModifierListSyntax?' must be unwrapped to a value of type 'DeclModifierListSyntax'
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
111 | }
112 |
/host/spi-builder-workspace/Sources/DTOMacrosImpl/Tools/SyntaxCreator.swift:115:27: error: value of optional type 'DeclModifierListSyntax?' must be unwrapped to a value of type 'DeclModifierListSyntax'
113 | internal static func createStruct(accessor: Keyword, typeName:String, members: MemberBlockItemListSyntax, types:[String] = []) -> MemberBlockItemSyntax{
114 | MemberBlockItemSyntax(decl: StructDeclSyntax(
115 | modifiers: SC.createAccessor(accessor),
| |- error: value of optional type 'DeclModifierListSyntax?' must be unwrapped to a value of type 'DeclModifierListSyntax'
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
116 | name: "\(raw: typeName)",
117 | inheritanceClause: SC.createInheritanceClause(types: types) ,
[236/247] Compiling DTOMacrosImpl SyntaxUtils.swift
/host/spi-builder-workspace/Sources/DTOMacrosImpl/Tools/SyntaxUtils.swift:35:37: error: cannot use optional chaining on non-optional value of type 'AttributeListSyntax'
33 | internal static func get(attributeNamed name: String, in structDecl: StructDeclSyntax?) -> AttributeSyntax? {
34 | guard let structDecl else {return nil}
35 | return structDecl.attributes?.filter({filter(attributeNamed: name, element: $0)}).first?.as(AttributeSyntax.self)
| `- error: cannot use optional chaining on non-optional value of type 'AttributeListSyntax'
36 | }
37 |
/host/spi-builder-workspace/Sources/DTOMacrosImpl/Tools/SyntaxUtils.swift:40:34: error: cannot use optional chaining on non-optional value of type 'AttributeListSyntax'
38 | internal static func get(attributeNamed name: String, in varDecl: VariableDeclSyntax?) -> AttributeSyntax? {
39 | guard let varDecl else {return nil}
40 | return varDecl.attributes?.filter({filter(attributeNamed: name, element: $0)}).first?.as(AttributeSyntax.self)
| `- error: cannot use optional chaining on non-optional value of type 'AttributeListSyntax'
41 | }
42 | internal static func has(attributeNamed name:String , in varDecl: VariableDeclSyntax?) -> Bool {
/host/spi-builder-workspace/Sources/DTOMacrosImpl/Tools/SyntaxUtils.swift:44:36: error: cannot use optional chaining on non-optional value of type 'AttributeListSyntax'
42 | internal static func has(attributeNamed name:String , in varDecl: VariableDeclSyntax?) -> Bool {
43 | guard let varDecl else {return false}
44 | return !(varDecl.attributes?.filter{filter(attributeNamed: name, element: $0)}.isEmpty ?? true)
| `- error: cannot use optional chaining on non-optional value of type 'AttributeListSyntax'
45 | }
46 |
[237/247] Compiling DTOMacrosImpl DiagnosticBuilder.swift
[238/247] Compiling DTOMacrosImpl DTODiagnostic.swift
/host/spi-builder-workspace/Sources/DTOMacrosImpl/DTODiagnostic.swift:46:23: warning: static property 'obj' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
44 | public var severity: DiagnosticSeverity {return .error}
45 |
46 | public static var obj:String = ""
| |- warning: static property 'obj' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'obj' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'obj' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
47 |
48 | public var message: String {
[239/247] Emitting module DTOMacrosImpl
/host/spi-builder-workspace/Sources/DTOMacrosImpl/DTODiagnostic.swift:46:23: warning: static property 'obj' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
44 | public var severity: DiagnosticSeverity {return .error}
45 |
46 | public static var obj:String = ""
| |- warning: static property 'obj' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'obj' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'obj' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
47 |
48 | public var message: String {
/host/spi-builder-workspace/Sources/DTOMacrosImpl/DTOMacroImpl.swift:29:5: warning: let 'DefaultAccessor' is not concurrency-safe because non-'Sendable' type 'Keyword' may have shared mutable state; this is an error in the Swift 6 language mode
27 | import SwiftSyntaxMacros
28 |
29 | let DefaultAccessor : Keyword = .public
| `- warning: let 'DefaultAccessor' is not concurrency-safe because non-'Sendable' type 'Keyword' may have shared mutable state; this is an error in the Swift 6 language mode
30 |
31 | public enum MacroName {
/host/spi-builder-workspace/.build/checkouts/swift-syntax/Sources/SwiftSyntax/generated/Keyword.swift:15:13: note: enum 'Keyword' does not conform to the 'Sendable' protocol
13 | //===----------------------------------------------------------------------===//
14 |
15 | public enum Keyword: UInt8, Hashable {
| `- note: enum 'Keyword' does not conform to the 'Sendable' protocol
16 | case __consuming
17 | case __owned
/host/spi-builder-workspace/Sources/DTOMacrosImpl/DTOMacroImpl.swift:25:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'SwiftSyntax'
23 | import SwiftDiagnostics
24 | import SwiftCompilerPlugin
25 | import SwiftSyntax
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'SwiftSyntax'
26 | import SwiftSyntaxBuilder
27 | import SwiftSyntaxMacros
28 |
29 | let DefaultAccessor : Keyword = .public
| |- note: add '@MainActor' to make let 'DefaultAccessor' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
30 |
31 | public enum MacroName {
/host/spi-builder-workspace/Sources/DTOMacrosImpl/DTOMacroImpl.swift:39:23: warning: static property 'DTO' is not concurrency-safe because non-'Sendable' type 'TokenSyntax' may have shared mutable state; this is an error in the Swift 6 language mode
37 |
38 | public enum DTOTokenSyntax {
39 | public static let DTO = TokenSyntax("DTO")
| |- warning: static property 'DTO' is not concurrency-safe because non-'Sendable' type 'TokenSyntax' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'DTO' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
40 | }
41 |
/host/spi-builder-workspace/.build/checkouts/swift-syntax/Sources/SwiftSyntax/TokenSyntax.swift:23:15: note: struct 'TokenSyntax' does not conform to the 'Sendable' protocol
21 | /// token contents, the token’s `text` and trailing ``Trivia`` after the token’s
22 | /// content.
23 | public struct TokenSyntax: SyntaxProtocol, SyntaxHashable {
| `- note: struct 'TokenSyntax' does not conform to the 'Sendable' protocol
24 | /// The ``Syntax`` node that provides the underlying data.
25 | ///
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/DTOMacrosImpl/DTOMacroImpl.swift:176:24: warning: static property 'createConversionMethodCall' is not concurrency-safe because non-'Sendable' type '(ParsedVariableInfo) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
174 | }
175 |
176 | private static let createConversionMethodCall: (ParsedVariableInfo) -> String = { info in
| |- warning: static property 'createConversionMethodCall' is not concurrency-safe because non-'Sendable' type '(ParsedVariableInfo) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'createConversionMethodCall' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
177 | let processorMethodName = "DTOConversionProcessor.\(info.dtoName)"
178 | let parameter = "dto.\(info.dtoName)"
[240/247] Compiling DTOMacrosImpl DTOMacroImpl.swift
/host/spi-builder-workspace/Sources/DTOMacrosImpl/DTOMacroImpl.swift:29:5: warning: let 'DefaultAccessor' is not concurrency-safe because non-'Sendable' type 'Keyword' may have shared mutable state; this is an error in the Swift 6 language mode
27 | import SwiftSyntaxMacros
28 |
29 | let DefaultAccessor : Keyword = .public
| `- warning: let 'DefaultAccessor' is not concurrency-safe because non-'Sendable' type 'Keyword' may have shared mutable state; this is an error in the Swift 6 language mode
30 |
31 | public enum MacroName {
/host/spi-builder-workspace/.build/checkouts/swift-syntax/Sources/SwiftSyntax/generated/Keyword.swift:15:13: note: enum 'Keyword' does not conform to the 'Sendable' protocol
13 | //===----------------------------------------------------------------------===//
14 |
15 | public enum Keyword: UInt8, Hashable {
| `- note: enum 'Keyword' does not conform to the 'Sendable' protocol
16 | case __consuming
17 | case __owned
/host/spi-builder-workspace/Sources/DTOMacrosImpl/DTOMacroImpl.swift:25:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'SwiftSyntax'
23 | import SwiftDiagnostics
24 | import SwiftCompilerPlugin
25 | import SwiftSyntax
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'SwiftSyntax'
26 | import SwiftSyntaxBuilder
27 | import SwiftSyntaxMacros
28 |
29 | let DefaultAccessor : Keyword = .public
| |- note: add '@MainActor' to make let 'DefaultAccessor' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
30 |
31 | public enum MacroName {
/host/spi-builder-workspace/Sources/DTOMacrosImpl/DTOMacroImpl.swift:39:23: warning: static property 'DTO' is not concurrency-safe because non-'Sendable' type 'TokenSyntax' may have shared mutable state; this is an error in the Swift 6 language mode
37 |
38 | public enum DTOTokenSyntax {
39 | public static let DTO = TokenSyntax("DTO")
| |- warning: static property 'DTO' is not concurrency-safe because non-'Sendable' type 'TokenSyntax' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'DTO' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
40 | }
41 |
/host/spi-builder-workspace/.build/checkouts/swift-syntax/Sources/SwiftSyntax/TokenSyntax.swift:23:15: note: struct 'TokenSyntax' does not conform to the 'Sendable' protocol
21 | /// token contents, the token’s `text` and trailing ``Trivia`` after the token’s
22 | /// content.
23 | public struct TokenSyntax: SyntaxProtocol, SyntaxHashable {
| `- note: struct 'TokenSyntax' does not conform to the 'Sendable' protocol
24 | /// The ``Syntax`` node that provides the underlying data.
25 | ///
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/DTOMacrosImpl/DTOMacroImpl.swift:176:24: warning: static property 'createConversionMethodCall' is not concurrency-safe because non-'Sendable' type '(ParsedVariableInfo) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
174 | }
175 |
176 | private static let createConversionMethodCall: (ParsedVariableInfo) -> String = { info in
| |- warning: static property 'createConversionMethodCall' is not concurrency-safe because non-'Sendable' type '(ParsedVariableInfo) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'createConversionMethodCall' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
177 | let processorMethodName = "DTOConversionProcessor.\(info.dtoName)"
178 | let parameter = "dto.\(info.dtoName)"
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:fe1962677657b2408c217cb5cceb3c09bc1d91486e360cebbc6eee461a5945d8
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
[0/1] Planning build
Building for debugging...
[0/22] Write swift-version-24593BA9C3E375BF.txt
[2/30] Compiling SwiftSyntax509 Empty.swift
[3/30] Emitting module SwiftSyntax509
[4/31] Compiling DTOTypes JSONDecoder+DecodableFromDTO.swift
[5/31] Compiling DTOTypes DecodableFromDTOProtocol.swift
[6/31] Emitting module DTOTypes
[9/31] Compiling DTOTypes DecodableFromDTOProtocol.swift
[10/31] Compiling DTOTypes JSONDecoder+DecodableFromDTO.swift
[13/75] Compiling SwiftSyntax SwiftSyntaxCompatibility.swift
[14/75] Compiling SwiftSyntax Syntax.swift
[15/75] Compiling SwiftSyntax SyntaxArena.swift
[16/75] Compiling SwiftSyntax SyntaxChildren.swift
[17/75] Compiling SwiftSyntax SyntaxCollection.swift
[18/75] Compiling SwiftSyntax SyntaxData.swift
[19/81] Compiling SwiftSyntax RawSyntax.swift
[20/81] Compiling SwiftSyntax RawSyntaxLayoutView.swift
[21/81] Compiling SwiftSyntax RawSyntaxNodeProtocol.swift
[22/81] Compiling SwiftSyntax RawSyntaxTokenView.swift
[23/81] Compiling SwiftSyntax SourceLength.swift
[24/81] Compiling SwiftSyntax SourceLocation.swift
[25/81] Compiling SwiftSyntax SourcePresence.swift
[26/81] Compiling SwiftSyntax AbsolutePosition.swift
[27/81] Compiling SwiftSyntax Assert.swift
[28/81] Compiling SwiftSyntax BumpPtrAllocator.swift
[29/81] Compiling SwiftSyntax CommonAncestor.swift
[30/81] Compiling SwiftSyntax Convenience.swift
[31/81] Compiling SwiftSyntax MemoryLayout.swift
[32/81] Compiling SwiftSyntax MissingNodeInitializers.swift
[33/81] Emitting module SwiftSyntax
[34/81] Compiling SwiftSyntax ChildNameForKeyPath.swift
[35/81] Compiling SwiftSyntax Keyword.swift
[36/81] Compiling SwiftSyntax RenamedChildrenCompatibility.swift
[37/81] Compiling SwiftSyntax RenamedNodesCompatibility.swift
[38/81] Compiling SwiftSyntax SyntaxAnyVisitor.swift
[39/81] Compiling SwiftSyntax SyntaxBaseNodes.swift
[40/81] Compiling SwiftSyntax SyntaxDeclNodes.swift
[41/81] Compiling SwiftSyntax SyntaxExprNodes.swift
[42/81] Compiling SwiftSyntax SyntaxNodes.swift
[43/81] Compiling SwiftSyntax SyntaxPatternNodes.swift
[44/81] Compiling SwiftSyntax SyntaxStmtNodes.swift
[45/81] Compiling SwiftSyntax SyntaxTypeNodes.swift
[46/81] Compiling SwiftSyntax SyntaxCollections.swift
[47/81] Compiling SwiftSyntax SyntaxEnum.swift
[48/81] Compiling SwiftSyntax SyntaxKind.swift
[49/81] Compiling SwiftSyntax SyntaxRewriter.swift
[50/81] Compiling SwiftSyntax SyntaxTraits.swift
[51/81] Compiling SwiftSyntax SyntaxTransform.swift
[52/81] Compiling SwiftSyntax SyntaxText.swift
[53/81] Compiling SwiftSyntax SyntaxTreeViewMode.swift
[54/81] Compiling SwiftSyntax TokenDiagnostic.swift
[55/81] Compiling SwiftSyntax TokenSyntax.swift
[56/81] Compiling SwiftSyntax Trivia.swift
[57/81] Compiling SwiftSyntax Utils.swift
[58/81] Compiling SwiftSyntax SyntaxVisitor.swift
[59/81] Compiling SwiftSyntax TokenKind.swift
[60/81] Compiling SwiftSyntax Tokens.swift
[61/81] Compiling SwiftSyntax TriviaPieces.swift
[62/81] Compiling SwiftSyntax RawSyntaxNodes.swift
[63/81] Compiling SwiftSyntax RawSyntaxValidation.swift
[65/94] Compiling SwiftDiagnostics Convenience.swift
[66/94] Emitting module SwiftDiagnostics
[67/94] Compiling SwiftDiagnostics Message.swift
[68/94] Compiling SwiftDiagnostics Note.swift
[69/94] Compiling SwiftBasicFormat Trivia+FormatExtensions.swift
[70/94] Compiling SwiftBasicFormat SyntaxProtocol+Formatted.swift
[71/94] Compiling SwiftDiagnostics FixIt.swift
[72/94] Compiling SwiftBasicFormat Syntax+Extensions.swift
[73/132] Compiling SwiftDiagnostics Diagnostic.swift
[74/132] Compiling SwiftDiagnostics DiagnosticsFormatter.swift
[75/132] Compiling SwiftDiagnostics GroupedDiagnostics.swift
[77/132] Emitting module SwiftBasicFormat
[78/132] Compiling SwiftBasicFormat BasicFormat.swift
[80/132] Emitting module SwiftParser
[81/137] Compiling SwiftParser StringLiteralRepresentedLiteralValue.swift
[82/137] Compiling SwiftParser StringLiterals.swift
[83/137] Compiling SwiftParser SwiftParserCompatibility.swift
[84/137] Compiling SwiftParser SyntaxUtils.swift
[85/137] Compiling SwiftParser TokenConsumer.swift
[86/137] Compiling SwiftParser TokenPrecedence.swift
[87/137] Compiling SwiftParser TokenSpec.swift
[88/137] Compiling SwiftParser TokenSpecSet.swift
[89/137] Compiling SwiftParser TopLevel.swift
[90/137] Compiling SwiftParser TriviaParser.swift
[91/137] Compiling SwiftParser Lexer.swift
[92/137] Compiling SwiftParser RegexLiteralLexer.swift
[93/137] Compiling SwiftParser UnicodeScalarExtensions.swift
[94/137] Compiling SwiftParser Lookahead.swift
[95/137] Compiling SwiftParser LoopProgressCondition.swift
[96/137] Compiling SwiftParser Attributes.swift
[97/137] Compiling SwiftParser Availability.swift
[98/137] Compiling SwiftParser CharacterInfo.swift
[99/137] Compiling SwiftParser CollectionNodes+Parsable.swift
[100/137] Compiling SwiftParser Declarations.swift
[101/137] Compiling SwiftParser Directives.swift
[102/137] Compiling SwiftParser ExperimentalFeatures.swift
[103/137] Compiling SwiftParser Expressions.swift
[104/137] Compiling SwiftParser IncrementalParseTransition.swift
[105/137] Compiling SwiftParser Cursor.swift
[106/137] Compiling SwiftParser Lexeme.swift
[107/137] Compiling SwiftParser LexemeSequence.swift
[108/137] Compiling SwiftParser Modifiers.swift
[109/137] Compiling SwiftParser Names.swift
[110/137] Compiling SwiftParser Nominals.swift
[111/137] Compiling SwiftParser Parameters.swift
[112/137] Compiling SwiftParser ParseSourceFile.swift
[113/137] Compiling SwiftParser Parser.swift
[114/137] Compiling SwiftParser Patterns.swift
[115/137] Compiling SwiftParser Recovery.swift
[116/137] Compiling SwiftParser Specifiers.swift
[117/137] Compiling SwiftParser Statements.swift
[118/137] Compiling SwiftParser Types.swift
[119/137] Compiling SwiftParser IsLexerClassified.swift
[120/137] Compiling SwiftParser LayoutNodes+Parsable.swift
[121/137] Compiling SwiftParser Parser+TokenSpecSet.swift
[122/137] Compiling SwiftParser TokenSpecStaticMembers.swift
[123/138] Wrapping AST for SwiftParser for debugging
[125/161] Compiling SwiftParserDiagnostics SyntaxKindNameForDiagnostics.swift
[126/162] Compiling SwiftParserDiagnostics MultiLineStringLiteralDiagnosticsGenerator.swift
[127/162] Compiling SwiftParserDiagnostics ParseDiagnosticsGenerator.swift
[128/162] Compiling SwiftParserDiagnostics ParserDiagnosticMessages.swift
[129/162] Compiling SwiftParserDiagnostics PresenceUtils.swift
[130/162] Compiling SwiftOperators PrecedenceGroup.swift
[131/163] Compiling SwiftParserDiagnostics TokenNameForDiagnostics.swift
[132/163] Compiling SwiftOperators OperatorTable.swift
[133/163] Compiling SwiftOperators PrecedenceGraph.swift
[134/163] Emitting module SwiftOperators
[135/163] Compiling SwiftOperators SyntaxSynthesis.swift
[136/163] Compiling SwiftOperators OperatorTable+Folding.swift
[137/163] Compiling SwiftOperators OperatorTable+Semantics.swift
[139/164] Compiling SwiftParserDiagnostics SyntaxExtensions.swift
[140/164] Compiling SwiftParserDiagnostics Utils.swift
[141/164] Compiling SwiftParserDiagnostics ChildNameForDiagnostics.swift
[141/164] Wrapping AST for SwiftOperators for debugging
[145/164] Compiling SwiftParserDiagnostics DiagnosticExtensions.swift
[146/164] Compiling SwiftParserDiagnostics LexerDiagnosticMessages.swift
[147/164] Compiling SwiftParserDiagnostics MissingNodesError.swift
[148/164] Compiling SwiftParserDiagnostics MissingTokenError.swift
[149/164] Emitting module SwiftParserDiagnostics
[152/165] Wrapping AST for SwiftParserDiagnostics for debugging
[154/179] Compiling SwiftSyntaxBuilder ConvenienceInitializers.swift
[155/179] Compiling SwiftSyntaxBuilder DeclSyntaxParseable.swift
[156/180] Compiling SwiftSyntaxBuilder SyntaxExpressibleByStringInterpolationConformances.swift
[157/180] Compiling SwiftSyntaxBuilder Indenter.swift
[158/180] Compiling SwiftSyntaxBuilder ResultBuilderExtensions.swift
[159/180] Compiling SwiftSyntaxBuilder BuildableNodes.swift
[160/180] Compiling SwiftSyntaxBuilder RenamedChildrenBuilderCompatibility.swift
[161/180] Compiling SwiftSyntaxBuilder ValidatingSyntaxNodes.swift
[162/180] Compiling SwiftSyntaxBuilder WithTrailingCommaSyntax+EnsuringTrailingComma.swift
[163/180] Emitting module SwiftSyntaxBuilder
[164/180] Compiling SwiftSyntaxBuilder SyntaxNodeWithBody.swift
[165/180] Compiling SwiftSyntaxBuilder SyntaxParsable+ExpressibleByStringInterpolation.swift
[166/180] Compiling SwiftSyntaxBuilder SwiftSyntaxBuilderCompatibility.swift
[167/180] Compiling SwiftSyntaxBuilder Syntax+StringInterpolation.swift
[168/180] Compiling SwiftSyntaxBuilder ResultBuilders.swift
[169/181] Wrapping AST for SwiftSyntaxBuilder for debugging
[171/195] Compiling SwiftSyntaxMacros MemberMacro.swift
[172/196] Compiling SwiftSyntaxMacros AbstractSourceLocation.swift
[173/196] Compiling SwiftSyntaxMacros MacroExpansionContext.swift
[174/196] Compiling SwiftSyntaxMacros AccessorMacro.swift
[175/196] Compiling SwiftSyntaxMacros AttachedMacro.swift
[176/196] Compiling SwiftSyntaxMacros CodeItemMacro.swift
[177/196] Compiling SwiftSyntaxMacros DeclarationMacro.swift
[178/196] Compiling SwiftSyntaxMacros FreestandingMacro.swift
[179/196] Compiling SwiftSyntaxMacros Macro+Format.swift
[180/196] Compiling SwiftSyntaxMacros Macro.swift
[181/196] Compiling SwiftSyntaxMacros MemberAttributeMacro.swift
[182/196] Emitting module SwiftSyntaxMacros
[183/196] Compiling SwiftSyntaxMacros ExpressionMacro.swift
[184/196] Compiling SwiftSyntaxMacros ExtensionMacro.swift
[185/196] Compiling SwiftSyntaxMacros PeerMacro.swift
[187/204] Compiling SwiftSyntaxMacroExpansion BasicMacroExpansionContext.swift
[188/204] Emitting module SwiftSyntaxMacroExpansion
[189/204] Compiling SwiftSyntaxMacroExpansion FunctionParameterUtils.swift
[190/204] Compiling SwiftSyntaxMacroExpansion IndentationUtils.swift
[191/204] Compiling SwiftSyntaxMacroExpansion MacroExpansion.swift
[192/204] Compiling SwiftSyntaxMacroExpansion MacroReplacement.swift
[193/204] Compiling SwiftSyntaxMacroExpansion MacroExpansionDiagnosticMessages.swift
[194/204] Compiling SwiftSyntaxMacroExpansion MacroSystem.swift
[195/205] Wrapping AST for SwiftSyntaxMacroExpansion for debugging
[197/212] Compiling SwiftCompilerPluginMessageHandling PluginMessageCompatibility.swift
[198/212] Compiling SwiftCompilerPluginMessageHandling Macros.swift
[199/212] Compiling SwiftCompilerPluginMessageHandling Diagnostics.swift
[200/212] Compiling SwiftCompilerPluginMessageHandling CompilerPluginMessageHandler.swift
[201/212] Emitting module SwiftCompilerPluginMessageHandling
[202/212] Compiling SwiftCompilerPluginMessageHandling PluginMacroExpansionContext.swift
[203/212] Compiling SwiftCompilerPluginMessageHandling PluginMessages.swift
[205/214] Compiling SwiftCompilerPlugin CompilerPlugin.swift
[206/214] Emitting module SwiftCompilerPlugin
[207/215] Wrapping AST for SwiftCompilerPlugin for debugging
[209/222] Emitting module DTOMacrosImpl
[210/222] Compiling DTOMacrosImpl DTODiagnostic.swift
[211/222] Compiling DTOMacrosImpl SyntaxNodeComparator.swift
[212/222] Compiling DTOMacrosImpl SyntaxUtils.swift
/host/spi-builder-workspace/Sources/DTOMacrosImpl/Tools/SyntaxUtils.swift:35:37: error: cannot use optional chaining on non-optional value of type 'AttributeListSyntax'
33 | internal static func get(attributeNamed name: String, in structDecl: StructDeclSyntax?) -> AttributeSyntax? {
34 | guard let structDecl else {return nil}
35 | return structDecl.attributes?.filter({filter(attributeNamed: name, element: $0)}).first?.as(AttributeSyntax.self)
| `- error: cannot use optional chaining on non-optional value of type 'AttributeListSyntax'
36 | }
37 |
/host/spi-builder-workspace/Sources/DTOMacrosImpl/Tools/SyntaxUtils.swift:40:34: error: cannot use optional chaining on non-optional value of type 'AttributeListSyntax'
38 | internal static func get(attributeNamed name: String, in varDecl: VariableDeclSyntax?) -> AttributeSyntax? {
39 | guard let varDecl else {return nil}
40 | return varDecl.attributes?.filter({filter(attributeNamed: name, element: $0)}).first?.as(AttributeSyntax.self)
| `- error: cannot use optional chaining on non-optional value of type 'AttributeListSyntax'
41 | }
42 | internal static func has(attributeNamed name:String , in varDecl: VariableDeclSyntax?) -> Bool {
/host/spi-builder-workspace/Sources/DTOMacrosImpl/Tools/SyntaxUtils.swift:44:36: error: cannot use optional chaining on non-optional value of type 'AttributeListSyntax'
42 | internal static func has(attributeNamed name:String , in varDecl: VariableDeclSyntax?) -> Bool {
43 | guard let varDecl else {return false}
44 | return !(varDecl.attributes?.filter{filter(attributeNamed: name, element: $0)}.isEmpty ?? true)
| `- error: cannot use optional chaining on non-optional value of type 'AttributeListSyntax'
45 | }
46 |
[213/222] Compiling DTOMacrosImpl DiagnosticBuilder.swift
[214/222] Compiling DTOMacrosImpl SyntaxCreator.swift
/host/spi-builder-workspace/Sources/DTOMacrosImpl/Tools/SyntaxCreator.swift:74:27: error: value of optional type 'DeclModifierListSyntax?' must be unwrapped to a value of type 'DeclModifierListSyntax'
72 | internal static func createInitMethod(accessor: Keyword, parameters: [FunctionParameterSyntax], statements: [CodeBlockItemSyntax]) -> MemberBlockItemSyntax {
73 | MemberBlockItemSyntax(decl: InitializerDeclSyntax(
74 | modifiers: SC.createAccessor(accessor),
| |- error: value of optional type 'DeclModifierListSyntax?' must be unwrapped to a value of type 'DeclModifierListSyntax'
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
75 | signature: SC.createInitSignature(with: parameters),
76 | body: CodeBlockSyntax(statements: CodeBlockItemListSyntax(statements))
/host/spi-builder-workspace/Sources/DTOMacrosImpl/Tools/SyntaxCreator.swift:105:42: error: value of optional type 'DeclModifierListSyntax?' must be unwrapped to a value of type 'DeclModifierListSyntax'
103 |
104 | internal static func createVariableDecl(accessor: Keyword, isVar:Bool = false, name:String, type:TypeAnnotationSyntax, value:ExprSyntaxProtocol? = nil) -> VariableDeclSyntax {
105 | VariableDeclSyntax(modifiers: SC.createAccessor(accessor), isVar ? .var : .let, name: PatternSyntax(stringLiteral: name), type: type, initializer: value.map{InitializerClauseSyntax(value: $0)})
| |- error: value of optional type 'DeclModifierListSyntax?' must be unwrapped to a value of type 'DeclModifierListSyntax'
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
106 | }
107 |
/host/spi-builder-workspace/Sources/DTOMacrosImpl/Tools/SyntaxCreator.swift:110:42: error: value of optional type 'DeclModifierListSyntax?' must be unwrapped to a value of type 'DeclModifierListSyntax'
108 | internal static func createVariableDecl(accessors: [Keyword], isVar:Bool = false, name:String, type:TypeAnnotationSyntax, value:ExprSyntaxProtocol? = nil) -> VariableDeclSyntax {
109 |
110 | VariableDeclSyntax(modifiers: SC.createAccessors(accessors), isVar ? .var : .let, name: PatternSyntax(stringLiteral: name), type: type, initializer: value.map{InitializerClauseSyntax(value: $0)})
| |- error: value of optional type 'DeclModifierListSyntax?' must be unwrapped to a value of type 'DeclModifierListSyntax'
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
111 | }
112 |
/host/spi-builder-workspace/Sources/DTOMacrosImpl/Tools/SyntaxCreator.swift:115:27: error: value of optional type 'DeclModifierListSyntax?' must be unwrapped to a value of type 'DeclModifierListSyntax'
113 | internal static func createStruct(accessor: Keyword, typeName:String, members: MemberBlockItemListSyntax, types:[String] = []) -> MemberBlockItemSyntax{
114 | MemberBlockItemSyntax(decl: StructDeclSyntax(
115 | modifiers: SC.createAccessor(accessor),
| |- error: value of optional type 'DeclModifierListSyntax?' must be unwrapped to a value of type 'DeclModifierListSyntax'
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
116 | name: "\(raw: typeName)",
117 | inheritanceClause: SC.createInheritanceClause(types: types) ,
[215/222] Compiling DTOMacrosImpl DTOMacroImpl.swift
BUILD FAILURE 6.1 android