The Swift Package Index logo.Swift Package Index

Build Information

Failed to build StringStream 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/omochi/stringstream.git
Reference: master
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/omochi/stringstream
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 803e300 conv init
Cloned https://github.com/omochi/stringstream.git
Revision (git rev-parse @):
803e3007ed71287eb5f464d7fa8c0a2f7288c148
SUCCESS checkout https://github.com/omochi/stringstream.git at master
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.10
Building package at path:  $workDir
https://github.com/omochi/stringstream.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
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/14] Compiling StringStream CSV.swift
[4/14] Compiling StringStream CSVReader.swift
[5/14] Emitting module StringStream
/host/spi-builder-workspace/Sources/StringStream/UTF8Extension.swift:4:5: warning: 'public' modifier is redundant for enum declared in a public extension
    public enum ByteKind {
    ^~~~~~~

[6/14] Compiling StringStream FileHandleProtocol.swift
[7/14] Compiling StringStream LTSV.swift
[8/14] Compiling StringStream CharacterReader.swift
/host/spi-builder-workspace/Sources/StringStream/FileHandle.swift:10:28: error: cannot find 'Darwin' in scope
        guard let handle = Darwin.fopen(path.path, mode) else {
                           ^~~~~~
/host/spi-builder-workspace/Sources/StringStream/FileHandle.swift:39:15: error: cannot find 'Darwin' in scope
        guard Darwin.fclose(handle) == 0 else {
              ^~~~~~
/host/spi-builder-workspace/Sources/StringStream/FileHandle.swift:45:16: error: cannot find 'Darwin' in scope
        return Darwin.feof(handle) != 0
               ^~~~~~
/host/spi-builder-workspace/Sources/StringStream/FileHandle.swift:51:13: error: cannot find 'Darwin' in scope
            Darwin.fread(bytes, 1, maxSize, handle)
            ^~~~~~
/host/spi-builder-workspace/Sources/StringStream/FileHandle.swift:54:36: error: cannot find 'Darwin' in scope
            throw PosixError(code: Darwin.ferror(handle))
                                   ^~~~~~
/host/spi-builder-workspace/Sources/StringStream/FileHandle.swift:62:13: error: cannot find 'Darwin' in scope
            Darwin.fwrite(bytes, 1, data.count, handle)
            ^~~~~~
/host/spi-builder-workspace/Sources/StringStream/FileHandle.swift:65:36: error: cannot find 'Darwin' in scope
            throw PosixError(code: Darwin.ferror(handle))
                                   ^~~~~~
/host/spi-builder-workspace/Sources/StringStream/FileHandle.swift:70:24: error: cannot find 'Darwin' in scope
        let position = Darwin.ftell(handle)
                       ^~~~~~
/host/spi-builder-workspace/Sources/StringStream/FileHandle.swift:78:22: error: cannot find 'Darwin' in scope
        let status = Darwin.fseek(handle, position, SEEK_SET)
                     ^~~~~~
[9/14] Compiling StringStream FileHandle.swift
/host/spi-builder-workspace/Sources/StringStream/FileHandle.swift:10:28: error: cannot find 'Darwin' in scope
        guard let handle = Darwin.fopen(path.path, mode) else {
                           ^~~~~~
/host/spi-builder-workspace/Sources/StringStream/FileHandle.swift:39:15: error: cannot find 'Darwin' in scope
        guard Darwin.fclose(handle) == 0 else {
              ^~~~~~
/host/spi-builder-workspace/Sources/StringStream/FileHandle.swift:45:16: error: cannot find 'Darwin' in scope
        return Darwin.feof(handle) != 0
               ^~~~~~
/host/spi-builder-workspace/Sources/StringStream/FileHandle.swift:51:13: error: cannot find 'Darwin' in scope
            Darwin.fread(bytes, 1, maxSize, handle)
            ^~~~~~
/host/spi-builder-workspace/Sources/StringStream/FileHandle.swift:54:36: error: cannot find 'Darwin' in scope
            throw PosixError(code: Darwin.ferror(handle))
                                   ^~~~~~
/host/spi-builder-workspace/Sources/StringStream/FileHandle.swift:62:13: error: cannot find 'Darwin' in scope
            Darwin.fwrite(bytes, 1, data.count, handle)
            ^~~~~~
/host/spi-builder-workspace/Sources/StringStream/FileHandle.swift:65:36: error: cannot find 'Darwin' in scope
            throw PosixError(code: Darwin.ferror(handle))
                                   ^~~~~~
/host/spi-builder-workspace/Sources/StringStream/FileHandle.swift:70:24: error: cannot find 'Darwin' in scope
        let position = Darwin.ftell(handle)
                       ^~~~~~
/host/spi-builder-workspace/Sources/StringStream/FileHandle.swift:78:22: error: cannot find 'Darwin' in scope
        let status = Darwin.fseek(handle, position, SEEK_SET)
                     ^~~~~~
[10/15] Compiling StringStream UTF8Extension.swift
/host/spi-builder-workspace/Sources/StringStream/UTF8Extension.swift:4:5: warning: 'public' modifier is redundant for enum declared in a public extension
    public enum ByteKind {
    ^~~~~~~

[11/15] Compiling StringStream MemoryFileHandle.swift
[12/15] Compiling StringStream LTSVReader.swift
[13/15] Compiling StringStream LTSVWriter.swift
[14/15] Compiling StringStream PosixError.swift
/host/spi-builder-workspace/Sources/StringStream/PosixError.swift:16:33: error: cannot find 'Darwin' in scope
        return PosixError(code: Darwin.errno)
                                ^~~~~~
[15/15] Compiling StringStream UTF8Reader.swift
error: fatalError
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/5] Compiling StringStream FileHandle.swift
/host/spi-builder-workspace/Sources/StringStream/FileHandle.swift:10:28: error: cannot find 'Darwin' in scope
        guard let handle = Darwin.fopen(path.path, mode) else {
                           ^~~~~~
/host/spi-builder-workspace/Sources/StringStream/FileHandle.swift:39:15: error: cannot find 'Darwin' in scope
        guard Darwin.fclose(handle) == 0 else {
              ^~~~~~
/host/spi-builder-workspace/Sources/StringStream/FileHandle.swift:45:16: error: cannot find 'Darwin' in scope
        return Darwin.feof(handle) != 0
               ^~~~~~
/host/spi-builder-workspace/Sources/StringStream/FileHandle.swift:51:13: error: cannot find 'Darwin' in scope
            Darwin.fread(bytes, 1, maxSize, handle)
            ^~~~~~
/host/spi-builder-workspace/Sources/StringStream/FileHandle.swift:54:36: error: cannot find 'Darwin' in scope
            throw PosixError(code: Darwin.ferror(handle))
                                   ^~~~~~
/host/spi-builder-workspace/Sources/StringStream/FileHandle.swift:62:13: error: cannot find 'Darwin' in scope
            Darwin.fwrite(bytes, 1, data.count, handle)
            ^~~~~~
/host/spi-builder-workspace/Sources/StringStream/FileHandle.swift:65:36: error: cannot find 'Darwin' in scope
            throw PosixError(code: Darwin.ferror(handle))
                                   ^~~~~~
/host/spi-builder-workspace/Sources/StringStream/FileHandle.swift:70:24: error: cannot find 'Darwin' in scope
        let position = Darwin.ftell(handle)
                       ^~~~~~
/host/spi-builder-workspace/Sources/StringStream/FileHandle.swift:78:22: error: cannot find 'Darwin' in scope
        let status = Darwin.fseek(handle, position, SEEK_SET)
                     ^~~~~~
[3/5] Compiling StringStream PosixError.swift
/host/spi-builder-workspace/Sources/StringStream/PosixError.swift:16:33: error: cannot find 'Darwin' in scope
        return PosixError(code: Darwin.errno)
                                ^~~~~~
[4/5] Compiling StringStream CharacterReader.swift
[5/5] Emitting module StringStream
/host/spi-builder-workspace/Sources/StringStream/UTF8Extension.swift:4:5: warning: 'public' modifier is redundant for enum declared in a public extension
    public enum ByteKind {
    ^~~~~~~

[6/7] Compiling StringStream LTSVReader.swift
[7/7] Compiling StringStream CSVReader.swift
error: fatalError
BUILD FAILURE 5.10 linux

Build Machine: Linux 1