Build Information
Failed to build Ansi2Html, reference 0.0.4 (d24ec5), with Swift 6.2 for Linux on 20 Jun 2025 05:06:46 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.2-latest swift build --triple x86_64-unknown-linux-gnu 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/OakCityLabs/Ansi2Html.git
Reference: 0.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/OakCityLabs/Ansi2Html
* tag 0.0.4 -> FETCH_HEAD
HEAD is now at d24ec52 Switch from <font> to <span> with CSS for foreground color.
Cloned https://github.com/OakCityLabs/Ansi2Html.git
Revision (git rev-parse @):
d24ec52dc259063e173d09b2253ae1b60dbe6bd0
SUCCESS checkout https://github.com/OakCityLabs/Ansi2Html.git at 0.0.4
========================================
Build
========================================
Selected platform: linux
Swift version: 6.2
Building package at path: $PWD
https://github.com/OakCityLabs/Ansi2Html.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.2-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:f81a7bd7aa87a0f81848d48c5bcc03f5f78deebd37fa5f9be9913077205d3687
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.2-latest
Fetching https://github.com/mtynior/ColorizeSwift
Fetching https://github.com/pointfreeco/swift-custom-dump.git
[1/291] Fetching colorizeswift
[292/4872] Fetching colorizeswift, swift-custom-dump
Fetched https://github.com/pointfreeco/swift-custom-dump.git from cache (0.58s)
Fetched https://github.com/mtynior/ColorizeSwift from cache (0.58s)
Computing version for https://github.com/mtynior/ColorizeSwift
Computed https://github.com/mtynior/ColorizeSwift at 1.7.0 (3.16s)
Computing version for https://github.com/pointfreeco/swift-custom-dump.git
Computed https://github.com/pointfreeco/swift-custom-dump.git at 0.11.2 (2.58s)
Fetching https://github.com/pointfreeco/xctest-dynamic-overlay
[1/5467] Fetching xctest-dynamic-overlay
Fetched https://github.com/pointfreeco/xctest-dynamic-overlay from cache (0.64s)
Computing version for https://github.com/pointfreeco/xctest-dynamic-overlay
Computed https://github.com/pointfreeco/xctest-dynamic-overlay at 0.9.0 (1.08s)
Creating working copy for https://github.com/mtynior/ColorizeSwift
Working copy of https://github.com/mtynior/ColorizeSwift resolved at 1.7.0
Creating working copy for https://github.com/pointfreeco/xctest-dynamic-overlay
Working copy of https://github.com/pointfreeco/xctest-dynamic-overlay resolved at 0.9.0
Creating working copy for https://github.com/pointfreeco/swift-custom-dump.git
Working copy of https://github.com/pointfreeco/swift-custom-dump.git resolved at 0.11.2
Building for debugging...
[0/4] Write sources
[1/4] Write swift-version-24593BA9C3E375BF.txt
/host/spi-builder-workspace/Sources/CPP/Ansi2HtmlBridge.cpp:15:25: error: use of undeclared identifier 'strdup'
15 | const char* htmlC = strdup(html.c_str()); // Allocate memory for a copy so it's not immediately released.
| ^
1 error generated.
[2/4] Compiling Ansi2HtmlCpp Ansi2HtmlBridge.cpp
[2/4] Compiling Ansi2HtmlCpp ansi_esc2html.cpp
BUILD FAILURE 6.2 linux