The Swift Package Index logo.Swift Package Index

Build Information

Failed to build CommonMark with Swift 5.9 for Linux.

Build Command

docker run --rm -v "checkouts-4609320-0":/host -w "/host/spi-builder-workspace" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.19.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/SwiftDocOrg/CommonMark.git
Reference: 0.5.1
Cloned https://github.com/SwiftDocOrg/CommonMark.git into spi-builder-workspace
SUCCESS checkout https://github.com/SwiftDocOrg/CommonMark.git at 0.5.1
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.9
Building package at path:  spi-builder-workspace
Running build ...
docker run --rm -v "checkouts-4609320-0":/host -w "/host/spi-builder-workspace" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build 2>&1
Fetching https://github.com/SwiftDocOrg/swift-cmark.git
[1/12555] Fetching swift-cmark
Fetched https://github.com/SwiftDocOrg/swift-cmark.git (0.88s)
Computing version for https://github.com/SwiftDocOrg/swift-cmark.git
Computed https://github.com/SwiftDocOrg/swift-cmark.git at 0.29.0+20210102.9c8096a (1.16s)
Creating working copy for https://github.com/SwiftDocOrg/swift-cmark.git
Working copy of https://github.com/SwiftDocOrg/swift-cmark.git resolved at 0.29.0+20210102.9c8096a
Building for debugging...
[0/19] Compiling cmark cmark_ctype.c
[1/19] Compiling cmark xml.c
[2/19] Compiling cmark render.c
[3/19] Compiling cmark references.c
[4/19] Compiling cmark man.c
[5/19] Compiling cmark node.c
[6/19] Compiling cmark latex.c
[7/19] Compiling cmark iterator.c
[8/19] Compiling cmark html.c
[9/19] Compiling cmark houdini_href_e.c
[10/19] Compiling cmark houdini_html_e.c
[11/19] Compiling cmark cmark.c
[12/19] Compiling cmark inlines.c
[13/19] Compiling cmark buffer.c
[14/19] Compiling cmark commonmark.c
[15/19] Compiling cmark houdini_html_u.c
[16/19] Compiling cmark utf8.c
[17/19] Compiling cmark blocks.c
[18/19] Compiling cmark scanners.c
[20/44] Emitting module CommonMark
[21/47] Compiling CommonMark BlockQuote.swift
[22/47] Compiling CommonMark CodeBlock.swift
[23/47] Compiling CommonMark HTMLBlock.swift
[24/47] Compiling CommonMark Heading.swift
[25/47] Compiling CommonMark LineBreak.swift
[26/47] Compiling CommonMark Linked.swift
[27/47] Compiling CommonMark Literal.swift
[28/47] Compiling CommonMark List.swift
[29/47] Compiling CommonMark Paragraph.swift
[30/47] Compiling CommonMark ThematicBreak.swift
[31/47] Compiling CommonMark Document.swift
[32/47] Compiling CommonMark Link.swift
[33/47] Compiling CommonMark RawHTML.swift
[34/47] Compiling CommonMark SoftLineBreak.swift
[35/47] Compiling CommonMark Code.swift
[36/47] Compiling CommonMark Emphasis.swift
[37/47] Compiling CommonMark HardLineBreak.swift
[38/47] Compiling CommonMark Image.swift
[39/47] Compiling CommonMark Block.swift
[40/47] Compiling CommonMark Children.swift
[41/47] Compiling CommonMark Inline.swift
[42/47] Compiling CommonMark Strong.swift
/host/spi-builder-workspace/Sources/CommonMark/Nodes/Node.swift:218:13: error: cannot find 'free' in scope
            free(cString)
            ^~~~
/host/spi-builder-workspace/Sources/CommonMark/Nodes/Node.swift:285:50: warning: cast from '(any Node & Block)?' to unrelated type 'Self' always fails
        guard let block = documentChildren.first as? Self,
                          ~~~~~~~~~~~~~~~~~~~~~~ ^   ~~~~
/host/spi-builder-workspace/Sources/CommonMark/Nodes/Node.swift:306:52: warning: cast from '(any Node & Inline)?' to unrelated type 'Self' always fails
        guard let inline = paragraphChildren.first as? Self,
                           ~~~~~~~~~~~~~~~~~~~~~~~ ^   ~~~~
[43/47] Compiling CommonMark Text.swift
/host/spi-builder-workspace/Sources/CommonMark/Nodes/Node.swift:218:13: error: cannot find 'free' in scope
            free(cString)
            ^~~~
/host/spi-builder-workspace/Sources/CommonMark/Nodes/Node.swift:285:50: warning: cast from '(any Node & Block)?' to unrelated type 'Self' always fails
        guard let block = documentChildren.first as? Self,
                          ~~~~~~~~~~~~~~~~~~~~~~ ^   ~~~~
/host/spi-builder-workspace/Sources/CommonMark/Nodes/Node.swift:306:52: warning: cast from '(any Node & Inline)?' to unrelated type 'Self' always fails
        guard let inline = paragraphChildren.first as? Self,
                           ~~~~~~~~~~~~~~~~~~~~~~~ ^   ~~~~
[44/47] Compiling CommonMark Node.swift
/host/spi-builder-workspace/Sources/CommonMark/Nodes/Node.swift:218:13: error: cannot find 'free' in scope
            free(cString)
            ^~~~
/host/spi-builder-workspace/Sources/CommonMark/Nodes/Node.swift:285:50: warning: cast from '(any Node & Block)?' to unrelated type 'Self' always fails
        guard let block = documentChildren.first as? Self,
                          ~~~~~~~~~~~~~~~~~~~~~~ ^   ~~~~
/host/spi-builder-workspace/Sources/CommonMark/Nodes/Node.swift:306:52: warning: cast from '(any Node & Inline)?' to unrelated type 'Self' always fails
        guard let inline = paragraphChildren.first as? Self,
                           ~~~~~~~~~~~~~~~~~~~~~~~ ^   ~~~~
[45/47] Compiling CommonMark Visitable.swift
[46/47] Compiling CommonMark Visitor.swift
[47/47] Compiling CommonMark Version.swift
error: fatalError
BUILD FAILURE 5.9 linux

Build Machine: Linux 2