Build Information
Failed to build GFMarkdown, reference 1.0.4 (524ddd), with Swift 6.2 for Android on 22 Jun 2025 06:33:39 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/swiftysites/gfmarkdown.git
Reference: 1.0.4
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/swiftysites/gfmarkdown
* tag 1.0.4 -> FETCH_HEAD
HEAD is now at 524dddb Swift 6 update
Cloned https://github.com/swiftysites/gfmarkdown.git
Revision (git rev-parse @):
524dddb3d19356a463a1507fcf36fef882f9fe89
SUCCESS checkout https://github.com/swiftysites/gfmarkdown.git at 1.0.4
========================================
Build
========================================
Selected platform: android
Swift version: 6.2
Building package at path: $PWD
https://github.com/swiftysites/gfmarkdown.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1
android-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:b7c4a6b4153ff40ef9277e2157e708f835b8eb011095d53bd8db4594eb2b7798
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.2-latest
Fetching https://github.com/apple/swift-cmark.git
[1/18113] Fetching swift-cmark
Fetched https://github.com/apple/swift-cmark.git from cache (1.63s)
Computing version for https://github.com/apple/swift-cmark.git
Computed https://github.com/apple/swift-cmark.git at 0.6.0 (5.72s)
Creating working copy for https://github.com/apple/swift-cmark.git
Working copy of https://github.com/apple/swift-cmark.git resolved at 0.6.0
Building for debugging...
[0/3] Write sources
[1/3] Write swift-version-8C5A4AE7A8CE2BA.txt
[1/3] Compiling CMarkGFMPlus cmark_gfm_markdown_to_html.c
[4/8] Compiling GFMarkdown GFMExtension.swift
[5/8] Compiling GFMarkdown CMarkOption.swift
[6/8] Compiling GFMarkdown Markdown.swift
[7/8] Emitting module GFMarkdown
[8/8] Compiling GFMarkdown MarkdownString.swift
/host/spi-builder-workspace/Sources/GFMarkdown/MarkdownString.swift:50:43: error: cannot find 'strdup' in scope
48 |
49 | // Create [UnsafeMutablePointer<Int8>]:
50 | var extensions = extensions.map { strdup($0.rawValue) }
| `- error: cannot find 'strdup' in scope
51 |
52 | let outString = cmark_gfm_markdown_to_html(markdown, markdown.utf8.count, options.code, &extensions, Int32(extensions.count))!
/host/spi-builder-workspace/Sources/GFMarkdown/MarkdownString.swift:55:48: error: cannot find 'free' in scope
53 |
54 | // Free the duplicated strings:
55 | extensions.compactMap { $0 }.forEach { free($0) }
| `- error: cannot find 'free' in scope
56 |
57 | defer { free(outString) }
/host/spi-builder-workspace/Sources/GFMarkdown/MarkdownString.swift:57:17: error: cannot find 'free' in scope
55 | extensions.compactMap { $0 }.forEach { free($0) }
56 |
57 | defer { free(outString) }
| `- error: cannot find 'free' in scope
58 | return String(cString: outString)
59 | }
BUILD FAILURE 6.2 android