Build Information
Failed to build GFMarkdown, reference release (524ddd), with Swift 6.1 for Android on 29 May 2025 19:20:15 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/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/swiftysites/gfmarkdown.git
Reference: release
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
* branch release -> FETCH_HEAD
* [new branch] release -> origin/release
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 release
========================================
Build
========================================
Selected platform: android
Swift version: 6.1
Building package at path: $PWD
https://github.com/swiftysites/gfmarkdown.git
https://github.com/swiftysites/gfmarkdown.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"dependencies" : [
{
"identity" : "swift-cmark",
"requirement" : {
"range" : [
{
"lower_bound" : "0.5.0",
"upper_bound" : "1.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-cmark.git"
}
],
"manifest_display_name" : "GFMarkdown",
"name" : "GFMarkdown",
"path" : "/host/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "13.0"
}
],
"products" : [
{
"name" : "GFMarkdown",
"targets" : [
"GFMarkdown"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "GFMarkdownTests",
"module_type" : "SwiftTarget",
"name" : "GFMarkdownTests",
"path" : "Sources/GFMarkdownTests",
"sources" : [
"MarkdownStringTests.swift",
"MarkdownTests.swift"
],
"target_dependencies" : [
"GFMarkdown"
],
"type" : "test"
},
{
"c99name" : "GFMarkdown",
"module_type" : "SwiftTarget",
"name" : "GFMarkdown",
"path" : "Sources/GFMarkdown",
"product_memberships" : [
"GFMarkdown"
],
"sources" : [
"CMarkOption.swift",
"GFMExtension.swift",
"Markdown.swift",
"MarkdownString.swift"
],
"target_dependencies" : [
"CMarkGFMPlus"
],
"type" : "library"
},
{
"c99name" : "CMarkGFMPlus",
"module_type" : "ClangTarget",
"name" : "CMarkGFMPlus",
"path" : "Sources/CMarkGFMPlus",
"product_dependencies" : [
"cmark-gfm",
"cmark-gfm-extensions"
],
"product_memberships" : [
"GFMarkdown"
],
"sources" : [
"cmark_gfm_markdown_to_html.c"
],
"type" : "library"
}
],
"tools_version" : "6.0"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/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 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-cmark.git
[1/18065] Fetching swift-cmark
Fetched https://github.com/apple/swift-cmark.git from cache (0.96s)
Computing version for https://github.com/apple/swift-cmark.git
Computed https://github.com/apple/swift-cmark.git at 0.6.0 (3.42s)
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-24593BA9C3E375BF.txt
[2/3] Compiling CMarkGFMPlus cmark_gfm_markdown_to_html.c
[4/8] Compiling GFMarkdown Markdown.swift
[5/8] Compiling GFMarkdown GFMExtension.swift
[6/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 | }
[7/8] Emitting module GFMarkdown
[8/8] Compiling GFMarkdown CMarkOption.swift
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/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/1] Write swift-version-24593BA9C3E375BF.txt
[2/6] Compiling GFMarkdown GFMExtension.swift
[3/6] Compiling GFMarkdown Markdown.swift
[4/6] 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 | }
[5/6] Emitting module GFMarkdown
[6/6] Compiling GFMarkdown CMarkOption.swift
BUILD FAILURE 6.1 android