The Swift Package Index logo.Swift Package Index

Build Information

Failed to build StringStream with Swift 5.9 for Linux.

Build Command

docker run --rm -v "checkouts-4606859-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/omochi/stringstream.git
Reference: master
Cloned https://github.com/omochi/stringstream.git into spi-builder-workspace
SUCCESS checkout https://github.com/omochi/stringstream.git at master
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.9
Building package at path:  spi-builder-workspace
Running build ...
docker run --rm -v "checkouts-4606859-0":/host -w "/host/spi-builder-workspace" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build 2>&1
Building for debugging...
[1/12] 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 {
    ^~~~~~~
    
[2/13] Compiling StringStream LTSVReader.swift
[3/13] Compiling StringStream LTSVWriter.swift
[4/13] Compiling StringStream FileHandleProtocol.swift
[5/13] Compiling StringStream LTSV.swift
[6/13] Compiling StringStream MemoryFileHandle.swift
[7/13] Compiling StringStream CSV.swift
[8/13] Compiling StringStream CSVReader.swift
[9/13] 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 {
    ^~~~~~~
    
[10/13] 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)
                     ^~~~~~
[11/13] 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)
                     ^~~~~~
[12/13] 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)
                                ^~~~~~
[13/13] Compiling StringStream UTF8Reader.swift
error: fatalError
BUILD FAILURE 5.9 linux

Build Machine: Linux 1