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-1":/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: main
Cloned https://github.com/SwiftDocOrg/CommonMark.git into spi-builder-workspace
SUCCESS checkout https://github.com/SwiftDocOrg/CommonMark.git at main
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.9
Building package at path:  spi-builder-workspace
Running build ...
docker run --rm -v "checkouts-4609320-1":/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.87s)
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.17s)
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 cmark.c
[1/19] Compiling cmark houdini_href_e.c
[3/19] Compiling cmark houdini_html_e.c
[4/19] Compiling cmark buffer.c
[5/19] Compiling cmark xml.c
[6/19] Compiling cmark blocks.c
[7/19] Compiling cmark references.c
[8/19] Compiling cmark render.c
[9/19] Compiling cmark man.c
[10/19] Compiling cmark latex.c
[11/19] Compiling cmark iterator.c
[12/19] Compiling cmark node.c
[13/19] Compiling cmark utf8.c
[14/19] Compiling cmark html.c
[15/19] Compiling cmark commonmark.c
[16/19] Compiling cmark houdini_html_u.c
[17/19] Compiling cmark inlines.c
[18/19] Compiling cmark scanners.c
[20/48] Emitting module CommonMark
[21/52] Compiling CommonMark BlockQuote.swift
[22/52] Compiling CommonMark CodeBlock.swift
[23/52] Compiling CommonMark HTMLBlock.swift
[24/52] Compiling CommonMark Heading.swift
[25/52] 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,
                           ~~~~~~~~~~~~~~~~~~~~~~~ ^   ~~~~
[26/52] 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,
                           ~~~~~~~~~~~~~~~~~~~~~~~ ^   ~~~~
[27/52] Compiling CommonMark ContainerOfBlocksBuilder.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,
                           ~~~~~~~~~~~~~~~~~~~~~~~ ^   ~~~~
[28/52] Compiling CommonMark ContainerOfInlineElementsBuilder.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,
                           ~~~~~~~~~~~~~~~~~~~~~~~ ^   ~~~~
[29/52] Compiling CommonMark Section.swift
[30/52] Compiling CommonMark Visitable.swift
[31/52] Compiling CommonMark Visitor.swift
[32/52] Compiling CommonMark Version.swift
[33/52] Compiling CommonMark ListBuilder.swift
[34/52] Compiling CommonMark Block.swift
[35/52] Compiling CommonMark Children.swift
[36/52] Compiling CommonMark Fragment.swift
[37/52] Compiling CommonMark Link.swift
[38/52] Compiling CommonMark RawHTML.swift
[39/52] Compiling CommonMark SoftLineBreak.swift
[40/52] Compiling CommonMark Strong.swift
[41/52] Compiling CommonMark Code.swift
[42/52] Compiling CommonMark Emphasis.swift
[43/52] Compiling CommonMark HardLineBreak.swift
[44/52] Compiling CommonMark Image.swift
[45/52] Compiling CommonMark Inline.swift
[46/52] Compiling CommonMark LineBreak.swift
[47/52] Compiling CommonMark Linked.swift
[48/52] Compiling CommonMark Literal.swift
[49/52] Compiling CommonMark List.swift
[50/52] Compiling CommonMark Paragraph.swift
[51/52] Compiling CommonMark ThematicBreak.swift
[52/52] Compiling CommonMark Document.swift
error: fatalError
BUILD FAILURE 5.9 linux

Build Machine: Linux 2