The Swift Package Index logo.Swift Package Index

Build Information

Failed to build CommonMark with Swift 5.10 for Linux.

Build Command

bash -c docker run --rm -v "checkouts-4606859-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.29.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/SwiftDocOrg/CommonMark.git
Reference: main
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/SwiftDocOrg/CommonMark
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 6fc9d04 Update to Swift 5.4 and @resultBuilder (#25)
Cloned https://github.com/SwiftDocOrg/CommonMark.git
Revision (git rev-parse @):
6fc9d04ff53628d5edd66c110e9f724c01146791
SUCCESS checkout https://github.com/SwiftDocOrg/CommonMark.git at main
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.10
Building package at path:  $workDir
https://github.com/SwiftDocOrg/CommonMark.git
Running build ...
bash -c docker run --rm -v "checkouts-4606859-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-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 from cache (0.74s)
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.10s)
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/21] Compiling cmark houdini_html_e.c
[1/21] Compiling cmark references.c
[2/21] Compiling cmark xml.c
[3/21] Compiling cmark commonmark.c
[4/21] Compiling cmark buffer.c
[5/21] Write swift-version-24593BA9C3E375BF.txt
[6/21] Compiling cmark render.c
[7/21] Compiling cmark node.c
[8/21] Compiling cmark utf8.c
[9/21] Compiling cmark latex.c
[10/21] Compiling cmark iterator.c
[11/21] Compiling cmark man.c
[12/21] Compiling cmark html.c
[13/21] Write sources
[14/21] Compiling cmark cmark_ctype.c
[15/21] Compiling cmark houdini_href_e.c
[16/21] Compiling cmark inlines.c
[17/21] Compiling cmark houdini_html_u.c
[18/21] Compiling cmark cmark.c
[19/21] Compiling cmark blocks.c
[20/21] Compiling cmark scanners.c
[22/50] Emitting module CommonMark
[23/54] Compiling CommonMark Section.swift
[24/54] Compiling CommonMark Visitable.swift
[25/54] Compiling CommonMark Visitor.swift
[26/54] Compiling CommonMark Version.swift
[27/54] Compiling CommonMark Inline.swift
[28/54] Compiling CommonMark LineBreak.swift
[29/54] Compiling CommonMark Linked.swift
[30/54] Compiling CommonMark Literal.swift
[31/54] Compiling CommonMark ListBuilder.swift
[32/54] Compiling CommonMark Block.swift
[33/54] Compiling CommonMark Children.swift
[34/54] Compiling CommonMark Fragment.swift
[35/54] Compiling CommonMark Code.swift
[36/54] Compiling CommonMark Emphasis.swift
[37/54] Compiling CommonMark HardLineBreak.swift
[38/54] Compiling CommonMark Image.swift
[39/54] Compiling CommonMark BlockQuote.swift
[40/54] Compiling CommonMark CodeBlock.swift
[41/54] Compiling CommonMark HTMLBlock.swift
[42/54] Compiling CommonMark Heading.swift
[43/54] Compiling CommonMark Link.swift
[44/54] Compiling CommonMark RawHTML.swift
[45/54] Compiling CommonMark SoftLineBreak.swift
[46/54] Compiling CommonMark Strong.swift
[47/54] Compiling CommonMark List.swift
[48/54] Compiling CommonMark Paragraph.swift
[49/54] Compiling CommonMark ThematicBreak.swift
[50/54] Compiling CommonMark Document.swift
[51/54] 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,
                           ~~~~~~~~~~~~~~~~~~~~~~~ ^   ~~~~
[52/54] 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,
                           ~~~~~~~~~~~~~~~~~~~~~~~ ^   ~~~~
[53/54] 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,
                           ~~~~~~~~~~~~~~~~~~~~~~~ ^   ~~~~
[54/54] 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,
                           ~~~~~~~~~~~~~~~~~~~~~~~ ^   ~~~~
error: fatalError
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/6] Compiling CommonMark ContainerOfInlineElementsBuilder.swift
[3/6] Compiling CommonMark ContainerOfBlocksBuilder.swift
[4/6] 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,
                           ~~~~~~~~~~~~~~~~~~~~~~~ ^   ~~~~
[5/12] Compiling CommonMark Fragment.swift
[6/13] Compiling CommonMark ListBuilder.swift
[7/13] Compiling CommonMark List.swift
[8/13] Compiling CommonMark Document.swift
[9/13] Compiling CommonMark BlockQuote.swift
[10/13] Compiling CommonMark HTMLBlock.swift
[11/18] Compiling CommonMark Text.swift
[12/18] Emitting module CommonMark
[13/20] Compiling CommonMark Section.swift
[14/21] Compiling CommonMark Strong.swift
[15/21] Compiling CommonMark Link.swift
[16/23] Compiling CommonMark Emphasis.swift
[17/24] Compiling CommonMark Inline.swift
[18/24] Compiling CommonMark Paragraph.swift
[19/24] Compiling CommonMark Heading.swift
[20/24] Compiling CommonMark CodeBlock.swift
[21/24] Compiling CommonMark Code.swift
[22/24] Compiling CommonMark Visitor.swift
[23/24] Compiling CommonMark Literal.swift
[24/24] Compiling CommonMark Visitable.swift
error: fatalError
BUILD FAILURE 5.10 linux

Build Machine: Linux 1