The Swift Package Index logo.Swift Package Index

Build Information

Failed to build DTOMacro, reference 0.0.0 (601a66), with Swift 6.4 for Linux on 19 Sep 2026 11:03:47 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-54344845-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:basic-6.4-latest swift build --triple x86_64-unknown-linux-gnu 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 5.1.0
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:         linux
Swift version:             6.4
Building package at path:  $PWD
https://github.com/OctoPoulpeStudio/DTOMacro.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344845-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:basic-6.4-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.4-latest: Pulling from saguaro1/spi-images
Digest: sha256:c77fcce225e223ac0fafed844619173fc6de8d62dd560eeb28db3182af6a282b
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:basic-6.4-latest
Fetching https://github.com/apple/swift-syntax.git
[1/79984] Fetching swift-syntax
Fetched https://github.com/apple/swift-syntax.git (3.11s)
Computing version for https://github.com/apple/swift-syntax.git
Computed https://github.com/apple/swift-syntax.git at 509.1.1 (4.30s)
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...
[Computing dependencies]
[Constructing description]
[Pre-planning 1 / 533]
[Planning deferred tasks]
[1 / 213]
[108 / 220] SwiftSyntax509
[119 / 230] SwiftSyntax
[120 / 230] DTOTypes
[121 / 231] SwiftSyntax
[128 / 231] SwiftSyntax509
[130 / 231] SwiftSyntax509
[131 / 231] SwiftSyntax509
[131 / 231] SwiftSyntax
[131 / 231] DTOTypes
[135 / 232] DTOTypes-product
[135 / 232] SwiftSyntax
[147 / 248] SwiftDiagnostics
[149 / 257] SwiftParser
[161 / 257] SwiftParser
[163 / 257] SwiftParser
[164 / 257] SwiftParser
[166 / 257] SwiftParser
[170 / 257] SwiftParser
[172 / 257] SwiftDiagnostics
[173 / 257] SwiftDiagnostics
[174 / 257] SwiftDiagnostics
[175 / 257] SwiftOperators
[176 / 257] SwiftOperators
[177 / 257] SwiftDiagnostics-product
[178 / 257] SwiftBasicFormat
[180 / 258] SwiftParserDiagnostics
[186 / 270] SwiftParserDiagnostics
[188 / 279] SwiftParserDiagnostics
[199 / 279] SwiftParserDiagnostics
[200 / 279] SwiftSyntaxBuilder
[201 / 279] SwiftSyntaxBuilder
[203 / 279] SwiftParserDiagnostics
[205 / 280] SwiftParserDiagnostics
[206 / 280] SwiftParser
[207 / 280] SwiftParserDiagnostics
[210 / 280] SwiftOperators
[211 / 280] SwiftOperators
[212 / 280] SwiftOperators
[213 / 280] SwiftOperators
[215 / 280] SwiftOperators
[217 / 281]
[220 / 290] SwiftSyntaxBuilder
[221 / 291] SwiftSyntaxBuilder
[222 / 292] SwiftSyntaxBuilder
[223 / 292] SwiftSyntaxBuilder
[225 / 292] SwiftSyntaxBuilder
[228 / 292] SwiftSyntaxBuilder
[233 / 292] SwiftSyntaxMacros
[238 / 302] SwiftSyntaxMacros
[241 / 302] SwiftSyntax
[248 / 302] SwiftSyntaxMacros
[250 / 302] SwiftSyntaxMacros-product
[254 / 311] SwiftSyntaxMacroExpansion
[256 / 312] SwiftSyntaxMacros
[258 / 312] SwiftSyntaxMacros
[261 / 312] SwiftSyntaxMacroExpansion
[262 / 312] SwiftSyntaxMacroExpansion
[270 / 320] SwiftCompilerPluginMessageHandling
[272 / 320] SwiftCompilerPluginMessageHandling
[275 / 321] SwiftSyntaxBuilder
[284 / 323] SwiftCompilerPlugin
[286 / 325] SwiftCompilerPluginMessageHandling
[291 / 325] SwiftCompilerPlugin
[293 / 326] SwiftCompilerPluginMessageHandling
[295 / 327] SwiftSyntax
[298 / 328] SwiftSyntax
[306 / 328] SwiftSyntaxMacroExpansion
[313 / 329] DTOMacrosImpl
error: SwiftCompile normal x86_64 /host/spi-builder-workspace/Sources/DTOMacrosImpl/Tools/SyntaxUtils.swift failed with a nonzero exit code. Command line:     cd /host
    builtin-SwiftPerFileCompile 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 |
Failed frontend command:
/usr/bin/swift-frontend -frontend -c /host/spi-builder-workspace/Sources/DTOMacrosImpl/DTODiagnostic.swift /host/spi-builder-workspace/Sources/DTOMacrosImpl/DTOMacroImpl.swift /host/spi-builder-workspace/Sources/DTOMacrosImpl/Tools/DiagnosticBuilder.swift /host/spi-builder-workspace/Sources/DTOMacrosImpl/Tools/SyntaxCreator.swift /host/spi-builder-workspace/Sources/DTOMacrosImpl/Tools/SyntaxNodeComparator.swift -primary-file /host/spi-builder-workspace/Sources/DTOMacrosImpl/Tools/SyntaxUtils.swift -emit-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/DTOMacro.build/Debug-linux-x86_64/DTOMacrosImpl-t.build/Objects-normal/x86_64/SyntaxUtils.d -emit-const-values-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/DTOMacro.build/Debug-linux-x86_64/DTOMacrosImpl-t.build/Objects-normal/x86_64/SyntaxUtils.swiftconstvalues -emit-reference-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/DTOMacro.build/Debug-linux-x86_64/DTOMacrosImpl-t.build/Objects-normal/x86_64/SyntaxUtils.swiftdeps -serialize-diagnostics-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/DTOMacro.build/Debug-linux-x86_64/DTOMacrosImpl-t.build/Objects-normal/x86_64/SyntaxUtils.dia -target x86_64-unknown-linux-gnu -disable-objc-interop -I /host/spi-builder-workspace/.build/out/Products/Debug-linux-x86_64 -module-cache-path /host/spi-builder-workspace/.build/out/ModuleCache.noindex -color-diagnostics -Xcc -fcolor-diagnostics -enable-testing -g -debug-info-format\=dwarf -dwarf-version\=4 -swift-version 5 -Onone -D SWIFT_PACKAGE -D DEBUG -D Xcode -serialize-debugging-options -enable-experimental-feature DebugDescriptionMacro -empty-abi-descriptor -external-plugin-path /usr/lib/swift/host/plugins/testing\#/usr/bin/swift-plugin-server -validate-clang-modules-once -clang-build-session-file /host/spi-builder-workspace/.build/out/ModuleCache.noindex/Session.modulevalidation -Xcc -working-directory -Xcc /host -enable-anonymous-context-mangled-names -file-compilation-dir /host -Xcc -fno-omit-frame-pointer -Xcc -D_LIBCPP_HARDENING_MODE\=_LIBCPP_HARDENING_MODE_DEBUG -Xcc -fmodules-prune-interval\=86400 -Xcc -fmodules-prune-after\=345600 -Xcc -I/host/spi-builder-workspace/.build/out/Products/Debug-linux-x86_64/include -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/DTOMacro.build/Debug-linux-x86_64/DTOMacrosImpl-t.build/DerivedSources-normal/x86_64 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/DTOMacro.build/Debug-linux-x86_64/DTOMacrosImpl-t.build/DerivedSources/x86_64 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/DTOMacro.build/Debug-linux-x86_64/DTOMacrosImpl-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -no-auto-bridging-header-chaining -module-name DTOMacrosImpl -package-name spi_builder_workspace -const-gather-protocols-file /host/spi-builder-workspace/.build/out/Intermediates.noindex/DTOMacro.build/Debug-linux-x86_64/DTOMacrosImpl-t.build/Objects-normal/x86_64/DTOMacrosImpl_const_extract_protocols.json -in-process-plugin-server-path /usr/lib/swift/host/libSwiftInProcPluginServer.so -plugin-path /usr/lib/swift/host/plugins -plugin-path /usr/local/lib/swift/host/plugins -parse-as-library -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/DTOMacro.build/Debug-linux-x86_64/DTOMacrosImpl-t.build/Objects-normal/x86_64/SyntaxUtils.o -index-unit-output-path /DTOMacro.build/Debug-linux-x86_64/DTOMacrosImpl-t.build/Objects-normal/x86_64/SyntaxUtils.o -index-store-path /host/spi-builder-workspace/.build/out -index-system-modules
error: SwiftCompile normal x86_64 /host/spi-builder-workspace/Sources/DTOMacrosImpl/Tools/SyntaxCreator.swift failed with a nonzero exit code. Command line:     cd /host
    builtin-SwiftPerFileCompile 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) ,
Failed frontend command:
/usr/bin/swift-frontend -frontend -c /host/spi-builder-workspace/Sources/DTOMacrosImpl/DTODiagnostic.swift /host/spi-builder-workspace/Sources/DTOMacrosImpl/DTOMacroImpl.swift /host/spi-builder-workspace/Sources/DTOMacrosImpl/Tools/DiagnosticBuilder.swift -primary-file /host/spi-builder-workspace/Sources/DTOMacrosImpl/Tools/SyntaxCreator.swift /host/spi-builder-workspace/Sources/DTOMacrosImpl/Tools/SyntaxNodeComparator.swift /host/spi-builder-workspace/Sources/DTOMacrosImpl/Tools/SyntaxUtils.swift -emit-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/DTOMacro.build/Debug-linux-x86_64/DTOMacrosImpl-t.build/Objects-normal/x86_64/SyntaxCreator.d -emit-const-values-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/DTOMacro.build/Debug-linux-x86_64/DTOMacrosImpl-t.build/Objects-normal/x86_64/SyntaxCreator.swiftconstvalues -emit-reference-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/DTOMacro.build/Debug-linux-x86_64/DTOMacrosImpl-t.build/Objects-normal/x86_64/SyntaxCreator.swiftdeps -serialize-diagnostics-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/DTOMacro.build/Debug-linux-x86_64/DTOMacrosImpl-t.build/Objects-normal/x86_64/SyntaxCreator.dia -target x86_64-unknown-linux-gnu -disable-objc-interop -I /host/spi-builder-workspace/.build/out/Products/Debug-linux-x86_64 -module-cache-path /host/spi-builder-workspace/.build/out/ModuleCache.noindex -color-diagnostics -Xcc -fcolor-diagnostics -enable-testing -g -debug-info-format\=dwarf -dwarf-version\=4 -swift-version 5 -Onone -D SWIFT_PACKAGE -D DEBUG -D Xcode -serialize-debugging-options -enable-experimental-feature DebugDescriptionMacro -empty-abi-descriptor -external-plugin-path /usr/lib/swift/host/plugins/testing\#/usr/bin/swift-plugin-server -validate-clang-modules-once -clang-build-session-file /host/spi-builder-workspace/.build/out/ModuleCache.noindex/Session.modulevalidation -Xcc -working-directory -Xcc /host -enable-anonymous-context-mangled-names -file-compilation-dir /host -Xcc -fno-omit-frame-pointer -Xcc -D_LIBCPP_HARDENING_MODE\=_LIBCPP_HARDENING_MODE_DEBUG -Xcc -fmodules-prune-interval\=86400 -Xcc -fmodules-prune-after\=345600 -Xcc -I/host/spi-builder-workspace/.build/out/Products/Debug-linux-x86_64/include -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/DTOMacro.build/Debug-linux-x86_64/DTOMacrosImpl-t.build/DerivedSources-normal/x86_64 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/DTOMacro.build/Debug-linux-x86_64/DTOMacrosImpl-t.build/DerivedSources/x86_64 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/DTOMacro.build/Debug-linux-x86_64/DTOMacrosImpl-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -no-auto-bridging-header-chaining -module-name DTOMacrosImpl -package-name spi_builder_workspace -const-gather-protocols-file /host/spi-builder-workspace/.build/out/Intermediates.noindex/DTOMacro.build/Debug-linux-x86_64/DTOMacrosImpl-t.build/Objects-normal/x86_64/DTOMacrosImpl_const_extract_protocols.json -in-process-plugin-server-path /usr/lib/swift/host/libSwiftInProcPluginServer.so -plugin-path /usr/lib/swift/host/plugins -plugin-path /usr/local/lib/swift/host/plugins -parse-as-library -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/DTOMacro.build/Debug-linux-x86_64/DTOMacrosImpl-t.build/Objects-normal/x86_64/SyntaxCreator.o -index-unit-output-path /DTOMacro.build/Debug-linux-x86_64/DTOMacrosImpl-t.build/Objects-normal/x86_64/SyntaxCreator.o -index-store-path /host/spi-builder-workspace/.build/out -index-system-modules
error: Build failed
BUILD FAILURE 6.4 linux