The Swift Package Index logo.Swift Package Index

Build Information

Failed to build MarkdownToAttributedString, reference main (1dec63), with Swift 6.4 for Linux on 24 Sep 2026 22:17:24 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-53886770-0":/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/madebywindmill/MarkdownToAttributedString.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/madebywindmill/MarkdownToAttributedString
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 1dec63a Merge pull request #4 from SkylerSea/fix/visitListItem-protocol-dispatch
Cloned https://github.com/madebywindmill/MarkdownToAttributedString.git
Revision (git rev-parse @):
1dec63a2a0b62572c94229d05eccf9dead79f077
SUCCESS checkout https://github.com/madebywindmill/MarkdownToAttributedString.git at main
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.4
Building package at path:  $PWD
https://github.com/madebywindmill/MarkdownToAttributedString.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-53886770-0":/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/swiftlang/swift-markdown.git
[1/7747] Fetching swift-markdown
Fetched https://github.com/swiftlang/swift-markdown.git (0.73s)
Fetching https://github.com/swiftlang/swift-cmark.git
[1/18600] Fetching swift-cmark
Fetched https://github.com/swiftlang/swift-cmark.git (0.97s)
Creating working copy for https://github.com/swiftlang/swift-cmark.git
Working copy of https://github.com/swiftlang/swift-cmark.git resolved at gfm (0c8947b)
Creating working copy for https://github.com/swiftlang/swift-markdown.git
Working copy of https://github.com/swiftlang/swift-markdown.git resolved at main (392b73b)
Building for debugging...
[Constructing description]
[Planning deferred tasks]
[44 / 83] cmark-gfm
[59 / 83] cmark-gfm
[75 / 93] Markdown
[76 / 93] cmark-gfm
[82 / 93] Markdown
error: SwiftCompile normal x86_64 failed with a nonzero exit code. Command line:     cd /host

/host/spi-builder-workspace/Sources/MarkdownToAttributedString/AttributedStringVisitor.swift:19:36: error: cannot find 'NSMutableAttributedString' in scope
 17 |     var markdownStyles: MarkdownStyles
 18 |
 19 |     private var attributedString = NSMutableAttributedString()
    |                                    `- error: cannot find 'NSMutableAttributedString' in scope
 20 |     private var currentAttributes: StringAttrs
 21 |     private var formattingOptions: FormattingOptions?
/host/spi-builder-workspace/Sources/MarkdownToAttributedString/AttributedStringVisitor.swift:30:28: error: cannot find 'DispatchQueue' in scope
 28 |     private var currentOrderedListLevel: Int = 0
 29 |
 30 |     private let loggingQ = DispatchQueue(label: "MTAS.logging")
    |                            `- error: cannot find 'DispatchQueue' in scope
 31 |
 32 |     init(markdown: String,
/host/spi-builder-workspace/Sources/MarkdownToAttributedString/AttributedStringVisitor.swift:41:32: error: cannot find type 'NSAttributedString' in scope
 39 |     }
 40 |
 41 |     mutating func convert() -> NSAttributedString {
    |                                `- error: cannot find type 'NSAttributedString' in scope
 42 |         debugLog("Raw markdown to process:\n\(markdown)\n")
 43 |         let document = Document(parsing: markdown)
/host/spi-builder-workspace/Sources/MarkdownToAttributedString/AttributedStringVisitor.swift:539:90: error: cannot find type 'FontDescriptor' in scope
537 |     }
538 |
539 |     private func mergeFontDescriptors(base: FontDescriptor, expected: FontDescriptor) -> FontDescriptor {
    |                                                                                          `- error: cannot find type 'FontDescriptor' in scope
540 |         var traits = base.symbolicTraits
541 |
/host/spi-builder-workspace/Sources/MarkdownToAttributedString/AttributedStringVisitor.swift:539:45: error: cannot find type 'FontDescriptor' in scope
537 |     }
538 |
539 |     private func mergeFontDescriptors(base: FontDescriptor, expected: FontDescriptor) -> FontDescriptor {
    |                                             `- error: cannot find type 'FontDescriptor' in scope
540 |         var traits = base.symbolicTraits
541 |
/host/spi-builder-workspace/Sources/MarkdownToAttributedString/AttributedStringVisitor.swift:539:71: error: cannot find type 'FontDescriptor' in scope
537 |     }
538 |
539 |     private func mergeFontDescriptors(base: FontDescriptor, expected: FontDescriptor) -> FontDescriptor {
    |                                                                       `- error: cannot find type 'FontDescriptor' in scope
540 |         var traits = base.symbolicTraits
541 |
/host/spi-builder-workspace/Sources/MarkdownToAttributedString/MarkdownStyles.swift:32:36: error: cannot find type 'CGFloat' in scope
 30 |     public var baseAttributes: StringAttrs
 31 |     public var styleAttributes: [MarkupType: StringAttrs]
 32 |     public var headingPointSizes: [CGFloat] = [22, 18, 15, 14, 13, 11]
    |                                    `- error: cannot find type 'CGFloat' in scope
 33 |     public var unorderedListBullets: [String] = ["•", "◦", "▪", "▫"]
 34 |
/host/spi-builder-workspace/Sources/MarkdownToAttributedString/MarkdownStyles.swift:38:42: error: cannot find type 'NSParagraphStyle' in scope
 36 |     /// Paragraph styles to apply at the beginning and end of a container block. This is especially useful for (and currently only implemented for) lists. Since NSParagraphStyle spacing is applied to each line and a list typically has lines separated by a newline, you would end up with the spacing applied to each line if just using a single paragraph style in `styleAttributes` for `orderedList`/`unorderedList`.
 37 |     /// With these, you can instead have the formatter apply a pstyle with paragraph spacing only at the beginning and end (typically `paragraphSpacingBefore` for start and `paragraphSpacing` for end).
 38 |     public var blockStartParagraphStyle: NSParagraphStyle?
    |                                          `- error: cannot find type 'NSParagraphStyle' in scope
 39 |     public var blockEndParagraphStyle: NSParagraphStyle?
 40 |
/host/spi-builder-workspace/Sources/MarkdownToAttributedString/MarkdownStyles.swift:39:40: error: cannot find type 'NSParagraphStyle' in scope
 37 |     /// With these, you can instead have the formatter apply a pstyle with paragraph spacing only at the beginning and end (typically `paragraphSpacingBefore` for start and `paragraphSpacing` for end).
 38 |     public var blockStartParagraphStyle: NSParagraphStyle?
 39 |     public var blockEndParagraphStyle: NSParagraphStyle?
    |                                        `- error: cannot find type 'NSParagraphStyle' in scope
 40 |
 41 |     public init(baseAttributes: StringAttrs, styleAttributes: [MarkupType : StringAttrs]) {
/host/spi-builder-workspace/Sources/MarkdownToAttributedString/AttributedStringVisitor.swift:644:26: error: cannot find type 'NSRange' in scope
642 |     }
643 |
644 |     var rangeWithinLine: NSRange {
    |                          `- error: cannot find type 'NSRange' in scope
645 |         guard let range else { return NSRange(location: NSNotFound, length: 0) }
646 |         let start = range.lowerBound.column - 1
/host/spi-builder-workspace/Sources/MarkdownToAttributedString/AttributedStringVisitor.swift:692:35: error: cannot find type 'NSAttributedString' in scope
690 | }
691 |
692 | extension Dictionary where Key == NSAttributedString.Key, Value == Any {
    |                                   `- error: cannot find type 'NSAttributedString' in scope
693 |     func deepCopy() -> StringAttrs {
694 |         var copy: StringAttrs = [:]
/host/spi-builder-workspace/Sources/MarkdownToAttributedString/MarkdownStyles.swift:57:56: error: cannot find type 'NSAttributedString' in scope
 55 |     }
 56 |
 57 |     public mutating func setBaseAttribute(_ attribute: NSAttributedString.Key, _ value: Any) {
    |                                                        `- error: cannot find type 'NSAttributedString' in scope
 58 |         var attrs = baseAttributes
 59 |         attrs[attribute] = value
/host/spi-builder-workspace/Sources/MarkdownToAttributedString/MarkdownStyles.swift:63:57: error: cannot find type 'NSAttributedString' in scope
 61 |     }
 62 |
 63 |     public mutating func setStyleAttribute(_ attribute: NSAttributedString.Key, _ value: Any, forType type: MarkupType) {
    |                                                         `- error: cannot find type 'NSAttributedString' in scope
 64 |         var attrs = styleAttributes[type] ?? [:]
 65 |         attrs[attribute] = value
/host/spi-builder-workspace/Sources/MarkdownToAttributedString/MarkdownStyles.swift:128:54: error: cannot find type 'CocoaFont' in scope
126 |     }
127 |
128 |     func fontAttributeForType(_ type: MarkupType) -> CocoaFont {
    |                                                      `- error: cannot find type 'CocoaFont' in scope
129 |         return (attributesForType(type)[.font] as? CocoaFont) ?? CocoaFont.systemFont(ofSize: 13)
130 |     }
/host/spi-builder-workspace/Sources/MarkdownToAttributedString/MarkdownStyles.swift:132:44: error: cannot find type 'NSAttributedString' in scope
130 |     }
131 |
132 |     func valueForAttribute<T>(_ attribute: NSAttributedString.Key, type: MarkupType) -> T? {
    |                                            `- error: cannot find type 'NSAttributedString' in scope
133 |         if let styleAttributeValue = styleAttributes[type]?[attribute] as? T {
134 |             return styleAttributeValue
/host/spi-builder-workspace/Sources/MarkdownToAttributedString/Platform.swift:80:11: error: cannot find type 'CocoaFont' in scope
 78 | #endif
 79 |
 80 | extension CocoaFont {
    |           `- error: cannot find type 'CocoaFont' in scope
 81 |
 82 |     func isMonospaced() -> Bool {
Failed frontend command:
/usr/bin/swift-frontend -frontend -emit-module -experimental-skip-non-inlinable-function-bodies-without-types /host/spi-builder-workspace/Sources/MarkdownToAttributedString/AttributedStringFormatter.swift /host/spi-builder-workspace/Sources/MarkdownToAttributedString/AttributedStringVisitor.swift /host/spi-builder-workspace/Sources/MarkdownToAttributedString/Extras.swift /host/spi-builder-workspace/Sources/MarkdownToAttributedString/FormattingOptions.swift /host/spi-builder-workspace/Sources/MarkdownToAttributedString/MarkdownElementAttribute.swift /host/spi-builder-workspace/Sources/MarkdownToAttributedString/MarkdownStyles.swift /host/spi-builder-workspace/Sources/MarkdownToAttributedString/MarkdownUtility.swift /host/spi-builder-workspace/Sources/MarkdownToAttributedString/Platform.swift /host/spi-builder-workspace/Sources/MarkdownToAttributedString/Types.swift -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 SWIFT_MODULE_RESOURCE_BUNDLE_UNAVAILABLE -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 -fmodule-map-file\=/host/spi-builder-workspace/.build/checkouts/swift-cmark/src/include/module.modulemap -Xcc -fmodule-map-file\=/host/spi-builder-workspace/.build/checkouts/swift-cmark/extensions/include/module.modulemap -Xcc -fmodule-map-file\=/host/spi-builder-workspace/.build/checkouts/swift-markdown/Sources/CAtomic/include/module.modulemap -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/checkouts/swift-cmark/src/include -Xcc -I/host/spi-builder-workspace/.build/checkouts/swift-cmark/extensions/include -Xcc -I/host/spi-builder-workspace/.build/checkouts/swift-markdown/Sources/CAtomic/include -Xcc -I/host/spi-builder-workspace/.build/out/Products/Debug-linux-x86_64/include -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/MarkdownToAttributedString.build/Debug-linux-x86_64/MarkdownToAttributedString-t.build/DerivedSources-normal/x86_64 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/MarkdownToAttributedString.build/Debug-linux-x86_64/MarkdownToAttributedString-t.build/DerivedSources/x86_64 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/MarkdownToAttributedString.build/Debug-linux-x86_64/MarkdownToAttributedString-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -no-auto-bridging-header-chaining -module-name MarkdownToAttributedString -const-gather-protocols-file /host/spi-builder-workspace/.build/out/Intermediates.noindex/MarkdownToAttributedString.build/Debug-linux-x86_64/MarkdownToAttributedString-t.build/Objects-normal/x86_64/MarkdownToAttributedString_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 -emit-module-doc-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/MarkdownToAttributedString.build/Debug-linux-x86_64/MarkdownToAttributedString-t.build/Objects-normal/x86_64/Modules/MarkdownToAttributedString.swiftdoc -emit-module-source-info-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/MarkdownToAttributedString.build/Debug-linux-x86_64/MarkdownToAttributedString-t.build/Objects-normal/x86_64/Modules/MarkdownToAttributedString.swiftsourceinfo -emit-objc-header-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/MarkdownToAttributedString.build/Debug-linux-x86_64/MarkdownToAttributedString-t.build/Objects-normal/x86_64/MarkdownToAttributedString-Swift.h -serialize-diagnostics-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/MarkdownToAttributedString.build/Debug-linux-x86_64/MarkdownToAttributedString-t.build/Objects-normal/x86_64/MarkdownToAttributedString-primary-emit-module.dia -emit-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/MarkdownToAttributedString.build/Debug-linux-x86_64/MarkdownToAttributedString-t.build/Objects-normal/x86_64/MarkdownToAttributedString-primary-emit-module.d -parse-as-library -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/MarkdownToAttributedString.build/Debug-linux-x86_64/MarkdownToAttributedString-t.build/Objects-normal/x86_64/Modules/MarkdownToAttributedString.swiftmodule
error: Build failed
BUILD FAILURE 6.4 linux