Build Information
Failed to build swift-export, reference main (e4e893
), with Swift 5.10 for Linux on 6 Sep 2024 19:10:52 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.52.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/franklefebvre/swift-export.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/franklefebvre/swift-export
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at e4e8938 Fix download link
Cloned https://github.com/franklefebvre/swift-export.git
Revision (git rev-parse @):
e4e89380b885ae47b96e09744a2b6dd99de33cf0
SUCCESS checkout https://github.com/franklefebvre/swift-export.git at main
========================================
Build
========================================
Selected platform: linux
Swift version: 5.10
Building package at path: $PWD
https://github.com/franklefebvre/swift-export.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-5.10-latest: Pulling from finestructure/spi-images
Digest: sha256:a70f701911643a3a4293839e0e79d56dcc32eed4840549b67640dc1034af7f44
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-5.10-latest
Fetching https://github.com/jpsim/Yams.git
Fetching https://github.com/apple/swift-argument-parser
[1/9796] Fetching yams
[5193/21921] Fetching yams, swift-argument-parser
Fetched https://github.com/apple/swift-argument-parser from cache (0.68s)
Fetched https://github.com/jpsim/Yams.git from cache (0.94s)
Computing version for https://github.com/jpsim/Yams.git
Computed https://github.com/jpsim/Yams.git at 5.1.3 (0.88s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 1.5.0 (0.32s)
Creating working copy for https://github.com/jpsim/Yams.git
Working copy of https://github.com/jpsim/Yams.git resolved at 5.1.3
Creating working copy for https://github.com/apple/swift-argument-parser
Working copy of https://github.com/apple/swift-argument-parser resolved at 1.5.0
[1/1] Compiling plugin GenerateManual
Building for debugging...
[1/18] Write sources
[5/18] Compiling writer.c
[6/18] Compiling reader.c
[7/18] Compiling parser.c
[8/18] Compiling api.c
[9/18] Compiling emitter.c
[9/18] Write swift-version-24593BA9C3E375BF.txt
[11/18] Compiling scanner.c
[13/35] Compiling ArgumentParserToolInfo ToolInfo.swift
[14/35] Emitting module ArgumentParserToolInfo
[15/36] Wrapping AST for ArgumentParserToolInfo for debugging
[17/74] Compiling ArgumentParser HelpGenerator.swift
[18/74] Compiling ArgumentParser MessageInfo.swift
[19/74] Compiling ArgumentParser BashCompletionsGenerator.swift
[20/74] Compiling ArgumentParser CompletionsGenerator.swift
[21/74] Compiling ArgumentParser FishCompletionsGenerator.swift
[22/74] Compiling ArgumentParser ZshCompletionsGenerator.swift
[23/75] Compiling ArgumentParser DumpHelpGenerator.swift
[24/75] Compiling ArgumentParser HelpCommand.swift
[25/75] Emitting module Yams
[26/75] Compiling ArgumentParser Argument.swift
[27/75] Compiling ArgumentParser ArgumentHelp.swift
[28/75] Compiling ArgumentParser CompletionKind.swift
[29/75] Compiling ArgumentParser Errors.swift
[30/75] Compiling ArgumentParser UsageGenerator.swift
[31/75] Compiling ArgumentParser ArgumentVisibility.swift
[32/75] Compiling Yams YamlError.swift
[33/76] Wrapping AST for Yams for debugging
[35/76] Emitting module ArgumentParser
[36/81] Compiling ArgumentParser Name.swift
[37/81] Compiling ArgumentParser Parsed.swift
[38/81] Compiling ArgumentParser ParsedValues.swift
[39/81] Compiling ArgumentParser ParserError.swift
[40/81] Compiling ArgumentParser SplitArguments.swift
[47/81] Compiling ArgumentParser CollectionExtensions.swift
[48/81] Compiling ArgumentParser Platform.swift
[49/81] Compiling ArgumentParser SequenceExtensions.swift
[50/81] Compiling ArgumentParser StringExtensions.swift
[51/81] Compiling ArgumentParser Tree.swift
[55/81] Compiling ArgumentParser Flag.swift
[56/81] Compiling ArgumentParser NameSpecification.swift
[57/81] Compiling ArgumentParser Option.swift
[58/81] Compiling ArgumentParser ExpressibleByArgument.swift
[59/81] Compiling ArgumentParser ParsableArguments.swift
[60/81] Compiling ArgumentParser ParsableArgumentsValidation.swift
[61/81] Compiling ArgumentParser ParsableCommand.swift
[62/81] Compiling ArgumentParser ArgumentDecoder.swift
[68/81] Compiling ArgumentParser OptionGroup.swift
[69/81] Compiling ArgumentParser AsyncParsableCommand.swift
[70/81] Compiling ArgumentParser CommandConfiguration.swift
[71/81] Compiling ArgumentParser CommandGroup.swift
[72/81] Compiling ArgumentParser EnumerableFlag.swift
[73/81] Compiling ArgumentParser ArgumentDefinition.swift
[74/81] Compiling ArgumentParser ArgumentSet.swift
[75/81] Compiling ArgumentParser CommandParser.swift
[76/81] Compiling ArgumentParser InputKey.swift
[77/81] Compiling ArgumentParser InputOrigin.swift
[78/82] Wrapping AST for ArgumentParser for debugging
[80/90] Compiling swift_export String+terminal.swift
[81/90] Compiling swift_export URL+filePath.swift
/host/spi-builder-workspace/Sources/URL+filePath.swift:5:29: error: cannot call value of non-function type 'String'
standardizedFileURL.path(percentEncoded: false)
^
[82/90] Compiling swift_export Logger.swift
[83/90] Compiling swift_export ExportError.swift
[84/90] Compiling swift_export CommandRunner.swift
/host/spi-builder-workspace/Sources/CommandRunner.swift:5:21: error: no exact matches in call to initializer
var url: URL { .init(filePath: path, directoryHint: .notDirectory) }
^
/host/spi-builder-workspace/Sources/CommandRunner.swift:5:21: note: candidate has partially matching parameter list (fileURLWithPath: String)
var url: URL { .init(filePath: path, directoryHint: .notDirectory) }
^
/host/spi-builder-workspace/Sources/CommandRunner.swift:5:21: note: candidate has partially matching parameter list (from: any Decoder)
var url: URL { .init(filePath: path, directoryHint: .notDirectory) }
^
/host/spi-builder-workspace/Sources/CommandRunner.swift:5:21: note: candidate has partially matching parameter list (fileReferenceLiteralResourceName: String)
var url: URL { .init(filePath: path, directoryHint: .notDirectory) }
^
/host/spi-builder-workspace/Sources/CommandRunner.swift:5:58: error: cannot infer contextual base in reference to member 'notDirectory'
var url: URL { .init(filePath: path, directoryHint: .notDirectory) }
~^~~~~~~~~~~~
[85/90] Compiling swift_export Config.swift
/host/spi-builder-workspace/Sources/Config.swift:259:36: error: value of optional type 'URL?' must be unwrapped to a value of type 'URL'
self.outputDirectory = URL(filePath: output, directoryHint: .inferFromPath, relativeTo: currentDirectory)
^
/host/spi-builder-workspace/Sources/Config.swift:259:36: note: coalesce using '??' to provide a default when the optional value contains 'nil'
self.outputDirectory = URL(filePath: output, directoryHint: .inferFromPath, relativeTo: currentDirectory)
^
?? <#default value#>
/host/spi-builder-workspace/Sources/Config.swift:259:36: note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
self.outputDirectory = URL(filePath: output, directoryHint: .inferFromPath, relativeTo: currentDirectory)
^
!
/host/spi-builder-workspace/Sources/Config.swift:259:74: error: extra argument 'directoryHint' in call
self.outputDirectory = URL(filePath: output, directoryHint: .inferFromPath, relativeTo: currentDirectory)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Config.swift:259:50: error: cannot convert value of type 'String' to expected argument type 'Data'
self.outputDirectory = URL(filePath: output, directoryHint: .inferFromPath, relativeTo: currentDirectory)
^
/host/spi-builder-workspace/Sources/Config.swift:259:74: error: cannot infer contextual base in reference to member 'inferFromPath'
self.outputDirectory = URL(filePath: output, directoryHint: .inferFromPath, relativeTo: currentDirectory)
~^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Config.swift:267:98: error: extra argument 'directoryHint' in call
let defaultEntitlementsFile = URL(filePath: defaultEntitlementsPath, directoryHint: .notDirectory, relativeTo: configDirectory)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Config.swift:267:57: error: cannot convert value of type 'String' to expected argument type 'Data'
let defaultEntitlementsFile = URL(filePath: defaultEntitlementsPath, directoryHint: .notDirectory, relativeTo: configDirectory)
^
/host/spi-builder-workspace/Sources/Config.swift:267:98: error: cannot infer contextual base in reference to member 'notDirectory'
let defaultEntitlementsFile = URL(filePath: defaultEntitlementsPath, directoryHint: .notDirectory, relativeTo: configDirectory)
~^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Config.swift:274:85: error: extra argument 'directoryHint' in call
self.entitlementsFile = URL(filePath: entitlementsPath, directoryHint: .notDirectory, relativeTo: configDirectory)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Config.swift:274:51: error: cannot convert value of type 'String' to expected argument type 'Data'
self.entitlementsFile = URL(filePath: entitlementsPath, directoryHint: .notDirectory, relativeTo: configDirectory)
^
/host/spi-builder-workspace/Sources/Config.swift:274:85: error: cannot infer contextual base in reference to member 'notDirectory'
self.entitlementsFile = URL(filePath: entitlementsPath, directoryHint: .notDirectory, relativeTo: configDirectory)
~^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Config.swift:288:31: error: value of optional type 'URL?' must be unwrapped to a value of type 'URL'
lookupDirectory = URL(filePath: configDir, directoryHint: .isDirectory, relativeTo: currentDirectory)
^
/host/spi-builder-workspace/Sources/Config.swift:288:31: note: coalesce using '??' to provide a default when the optional value contains 'nil'
lookupDirectory = URL(filePath: configDir, directoryHint: .isDirectory, relativeTo: currentDirectory)
^
?? <#default value#>
/host/spi-builder-workspace/Sources/Config.swift:288:31: note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
lookupDirectory = URL(filePath: configDir, directoryHint: .isDirectory, relativeTo: currentDirectory)
^
!
/host/spi-builder-workspace/Sources/Config.swift:288:72: error: extra argument 'directoryHint' in call
lookupDirectory = URL(filePath: configDir, directoryHint: .isDirectory, relativeTo: currentDirectory)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Config.swift:288:45: error: cannot convert value of type 'String' to expected argument type 'Data'
lookupDirectory = URL(filePath: configDir, directoryHint: .isDirectory, relativeTo: currentDirectory)
^
/host/spi-builder-workspace/Sources/Config.swift:288:72: error: cannot infer contextual base in reference to member 'isDirectory'
lookupDirectory = URL(filePath: configDir, directoryHint: .isDirectory, relativeTo: currentDirectory)
~^~~~~~~~~~~
/host/spi-builder-workspace/Sources/Config.swift:290:75: error: extra argument 'directoryHint' in call
let exportDirectory = URL(filePath: "export", directoryHint: .isDirectory, relativeTo: currentDirectory)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Config.swift:290:49: error: cannot convert value of type 'String' to expected argument type 'Data'
let exportDirectory = URL(filePath: "export", directoryHint: .isDirectory, relativeTo: currentDirectory)
^
/host/spi-builder-workspace/Sources/Config.swift:290:75: error: cannot infer contextual base in reference to member 'isDirectory'
let exportDirectory = URL(filePath: "export", directoryHint: .isDirectory, relativeTo: currentDirectory)
~^~~~~~~~~~~
/host/spi-builder-workspace/Sources/Config.swift:299:62: error: extra argument 'directoryHint' in call
return URL(filePath: configFile, directoryHint: .notDirectory, relativeTo: lookupDirectory)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Config.swift:299:34: error: cannot convert value of type 'String' to expected argument type 'Data'
return URL(filePath: configFile, directoryHint: .notDirectory, relativeTo: lookupDirectory)
^
/host/spi-builder-workspace/Sources/Config.swift:299:62: error: cannot infer contextual base in reference to member 'notDirectory'
return URL(filePath: configFile, directoryHint: .notDirectory, relativeTo: lookupDirectory)
~^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Config.swift:301:46: error: value of type 'URL' has no member 'appending'
let yamlConfigFile = lookupDirectory.appending(path: "export.yaml", directoryHint: .notDirectory)
~~~~~~~~~~~~~~~ ^~~~~~~~~
/host/spi-builder-workspace/Sources/Config.swift:301:93: error: cannot infer contextual base in reference to member 'notDirectory'
let yamlConfigFile = lookupDirectory.appending(path: "export.yaml", directoryHint: .notDirectory)
~^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Config.swift:302:45: error: value of type 'URL' has no member 'appending'
let ymlConfigFile = lookupDirectory.appending(path: "export.yml", directoryHint: .notDirectory)
~~~~~~~~~~~~~~~ ^~~~~~~~~
/host/spi-builder-workspace/Sources/Config.swift:302:91: error: cannot infer contextual base in reference to member 'notDirectory'
let ymlConfigFile = lookupDirectory.appending(path: "export.yml", directoryHint: .notDirectory)
~^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Config.swift:303:47: error: value of type 'URL' has no member 'appending'
let plistConfigFile = lookupDirectory.appending(path: "export.plist", directoryHint: .notDirectory)
~~~~~~~~~~~~~~~ ^~~~~~~~~
/host/spi-builder-workspace/Sources/Config.swift:303:95: error: cannot infer contextual base in reference to member 'notDirectory'
let plistConfigFile = lookupDirectory.appending(path: "export.plist", directoryHint: .notDirectory)
~^~~~~~~~~~~~
[86/90] Emitting module swift_export
[87/90] Compiling swift_export SwiftExport.swift
/host/spi-builder-workspace/Sources/SwiftExport.swift:108:36: error: type 'URL' has no member 'currentDirectory'
let currentDirectory = URL.currentDirectory()
~~~ ^~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftExport.swift:128:34: error: no exact matches in call to initializer
let builtExecutableURL = URL(filePath: executableDirPath).appending(components: builtExecutableName, directoryHint: .notDirectory)
^
Foundation.URL:3:12: note: incorrect labels for candidate (have: '(filePath:)', expected: '(string:)')
public init?(string: String)
^
Foundation.URL:8:12: note: incorrect labels for candidate (have: '(filePath:)', expected: '(fileURLWithPath:)')
public init(fileURLWithPath path: String)
^
Foundation.URL:2:12: note: incorrect labels for candidate (have: '(filePath:)', expected: '(from:)')
public init(from decoder: any Decoder) throws
^
Foundation.URL:2:12: note: incorrect labels for candidate (have: '(filePath:)', expected: '(fileReferenceLiteralResourceName:)')
public init(fileReferenceLiteralResourceName name: String)
^
/host/spi-builder-workspace/Sources/SwiftExport.swift:128:67: error: reference to member 'appending' cannot be resolved without a contextual type
let builtExecutableURL = URL(filePath: executableDirPath).appending(components: builtExecutableName, directoryHint: .notDirectory)
^
/host/spi-builder-workspace/Sources/SwiftExport.swift:128:126: error: cannot infer contextual base in reference to member 'notDirectory'
let builtExecutableURL = URL(filePath: executableDirPath).appending(components: builtExecutableName, directoryHint: .notDirectory)
~^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftExport.swift:131:26: error: cannot infer contextual base in reference to member 'swift'
try await shell(.swift, ["build", "--configuration", "release"] + archsOptions)
~^~~~~
/host/spi-builder-workspace/Sources/SwiftExport.swift:133:27: error: type 'URL' has no member 'temporaryDirectory'
let pkgRoot = URL.temporaryDirectory.appending(component: UUID().uuidString, directoryHint: .isDirectory)
~~~ ^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftExport.swift:133:102: error: cannot infer contextual base in reference to member 'isDirectory'
let pkgRoot = URL.temporaryDirectory.appending(component: UUID().uuidString, directoryHint: .isDirectory)
~^~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftExport.swift:135:105: error: cannot infer contextual base in reference to member 'isDirectory'
let installDirectory = pkgRoot.appending(path: installPath.trimmingPrefix("/"), directoryHint: .isDirectory)
~^~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftExport.swift:137:110: error: cannot infer contextual base in reference to member 'notDirectory'
let pkgRootExecutableURL = installDirectory.appending(path: installedExecutableName, directoryHint: .notDirectory)
~^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftExport.swift:164:36: error: type 'URL' has no member 'temporaryDirectory'
entitlementsFile = URL.temporaryDirectory.appending(component: "entitlements", directoryHint: .notDirectory)
~~~ ^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftExport.swift:164:108: error: cannot infer contextual base in reference to member 'notDirectory'
entitlementsFile = URL.temporaryDirectory.appending(component: "entitlements", directoryHint: .notDirectory)
~^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftExport.swift:175:26: error: cannot infer contextual base in reference to member 'codesign'
try await shell(.codesign, "--force", "--entitlements", entitlementsFile.filePath, "--options", "runtime", "--sign", config.exportConfig.executable.certificate, "--identifier=\"\(codesignIdentifier)\"", executablePath)
~^~~~~~~~
/host/spi-builder-workspace/Sources/SwiftExport.swift:176:26: error: cannot infer contextual base in reference to member 'codesign'
try await shell(.codesign, "--verify", "--verbose", executablePath)
~^~~~~~~~
/host/spi-builder-workspace/Sources/SwiftExport.swift:183:87: error: cannot infer contextual base in reference to member 'notDirectory'
let pkgFile = config.outputDirectory.appending(path: pkgName, directoryHint: .notDirectory)
~^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftExport.swift:187:26: error: cannot infer contextual base in reference to member 'pkgbuild'
try await shell(.pkgbuild, "--identifier", pkgIdentifier, "--version", config.pkgVersion, "--root", pkgRoot.filePath, "--sign", config.exportConfig.package.certificate, pkgFile.filePath)
~^~~~~~~~
/host/spi-builder-workspace/Sources/SwiftExport.swift:190:26: error: cannot infer contextual base in reference to member 'xcrun'
try await shell(.xcrun, "notarytool", "submit", pkgFile.filePath, "--keychain-profile", config.exportConfig.notary.keychainProfile, "--wait")
~^~~~~
/host/spi-builder-workspace/Sources/SwiftExport.swift:192:26: error: cannot infer contextual base in reference to member 'xcrun'
try await shell(.xcrun, "stapler", "staple", "-v", pkgFile.filePath)
~^~~~~
/host/spi-builder-workspace/Sources/SwiftExport.swift:152:122: error: cannot infer contextual base in reference to member 'isDirectory'
let installDirectory = pkgRoot.appending(path: resource.destination.trimmingPrefix("/"), directoryHint: .isDirectory)
~^~~~~~~~~~~
error: fatalError
BUILD FAILURE 5.10 linux