Build Information
Failed to build xcprojectlint, reference main (e0f3d9
), with Swift 6.2 (beta) for Linux on 19 Jun 2025 23:23:34 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.2-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/americanexpress/xcprojectlint.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/americanexpress/xcprojectlint
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at e0f3d93 Monterey updates (#38)
Cloned https://github.com/americanexpress/xcprojectlint.git
Revision (git rev-parse @):
e0f3d9383d8f56d76b5b1dd9819f1ba32a3b3bc1
SUCCESS checkout https://github.com/americanexpress/xcprojectlint.git at main
========================================
Build
========================================
Selected platform: linux
Swift version: 6.2
Building package at path: $PWD
https://github.com/americanexpress/xcprojectlint.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.2-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:f81a7bd7aa87a0f81848d48c5bcc03f5f78deebd37fa5f9be9913077205d3687
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.2-latest
Fetching https://github.com/apple/swift-argument-parser
Fetching https://github.com/apple/swift-tools-support-core.git
[1/6855] Fetching swift-tools-support-core
[6856/22235] Fetching swift-tools-support-core, swift-argument-parser
Fetched https://github.com/apple/swift-tools-support-core.git from cache (0.84s)
Fetched https://github.com/apple/swift-argument-parser from cache (0.85s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 1.5.1 (1.25s)
Computing version for https://github.com/apple/swift-tools-support-core.git
Computed https://github.com/apple/swift-tools-support-core.git at 0.7.3 (0.54s)
Creating working copy for https://github.com/apple/swift-tools-support-core.git
Working copy of https://github.com/apple/swift-tools-support-core.git resolved at 0.7.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.1
[1/1] Compiling plugin GenerateManual
Building for debugging...
[1/23] Write sources
[8/23] Compiling TSCclibc libc.c
[9/23] Compiling TSCclibc strerror.c
[10/23] Compiling TSCclibc process.c
[11/23] Write swift-version-24593BA9C3E375BF.txt
[13/27] Emitting module ArgumentParserToolInfo
[14/27] Compiling ArgumentParserToolInfo ToolInfo.swift
[15/28] Wrapping AST for ArgumentParserToolInfo for debugging
[17/66] Emitting module TSCLibc
[18/66] Compiling TSCLibc libc.swift
[19/67] Wrapping AST for TSCLibc for debugging
[21/107] Emitting module ArgumentParser
[22/112] Emitting module TSCBasic
[23/117] Compiling TSCBasic Await.swift
[24/117] Compiling TSCBasic Base64URL.swift
[25/117] Compiling TSCBasic ByteString.swift
[26/117] Compiling TSCBasic CStringArray.swift
[27/117] Compiling TSCBasic CacheableSequence.swift
[28/117] Compiling TSCBasic Closable.swift
[29/117] Compiling TSCBasic CodableResult.swift
[30/117] Compiling TSCBasic CollectionAlgorithms.swift
[31/117] Compiling TSCBasic CollectionExtensions.swift
[32/117] Compiling TSCBasic Condition.swift
[33/117] Compiling TSCBasic DeltaAlgorithm.swift
[34/117] Compiling TSCBasic DiagnosticsEngine.swift
[35/117] Compiling TSCBasic DictionaryExtensions.swift
[36/117] Compiling TSCBasic DictionaryLiteralExtensions.swift
[37/117] Compiling TSCBasic EditDistance.swift
[38/117] Compiling TSCBasic FileInfo.swift
[39/117] Compiling TSCBasic FileSystem.swift
[40/117] Compiling TSCBasic GraphAlgorithms.swift
[41/117] Compiling TSCBasic PathShims.swift
[42/117] Compiling TSCBasic Process.swift
[43/117] Compiling TSCBasic ProcessEnv.swift
[44/117] Compiling ArgumentParser CollectionExtensions.swift
[45/117] Compiling ArgumentParser Platform.swift
[46/117] Compiling TSCBasic TerminalController.swift
[47/117] Compiling TSCBasic Thread.swift
[48/117] Compiling TSCBasic Tuple.swift
[67/117] Compiling TSCBasic HashAlgorithms.swift
[68/117] Compiling TSCBasic JSON.swift
[69/117] Compiling TSCBasic JSONMapper.swift
[70/117] Compiling TSCBasic KeyedPair.swift
[73/117] Compiling TSCBasic OSLog.swift
[74/117] Compiling TSCBasic ObjectIdentifierProtocol.swift
[75/117] Compiling TSCBasic OrderedDictionary.swift
[76/117] Compiling TSCBasic OrderedSet.swift
[77/117] Compiling TSCBasic Path.swift
[83/117] Compiling TSCBasic Result.swift
[84/117] Compiling TSCBasic SortedArray.swift
[85/117] Compiling TSCBasic StringConversions.swift
[86/117] Compiling TSCBasic SynchronizedQueue.swift
[87/117] Compiling TSCBasic TemporaryFile.swift
[91/117] Compiling TSCBasic ProcessSet.swift
[92/117] Compiling TSCBasic RegEx.swift
[104/118] Wrapping AST for ArgumentParser for debugging
[109/118] Compiling TSCBasic WritableByteStream.swift
[110/118] Compiling TSCBasic misc.swift
[111/119] Wrapping AST for TSCBasic for debugging
[113/154] Emitting module TSCUtility
[114/158] Compiling TSCUtility Context.swift
[115/158] Compiling TSCUtility Diagnostics.swift
[116/158] Compiling TSCUtility FSWatch.swift
[117/158] Compiling TSCUtility FloatingPointExtensions.swift
[118/158] Compiling TSCUtility Git.swift
[119/158] Compiling TSCUtility Version.swift
[120/158] Compiling TSCUtility Versioning.swift
[121/158] Compiling TSCUtility dlopen.swift
[122/158] Compiling TSCUtility misc.swift
[123/158] Compiling TSCUtility Hex.swift
[124/158] Compiling TSCUtility IndexStore.swift
[125/158] Compiling TSCUtility InterruptHandler.swift
[126/158] Compiling TSCUtility JSONMessageStreamingParser.swift
[127/158] Compiling TSCUtility Netrc.swift
[128/158] Compiling TSCUtility Archiver.swift
[129/158] Compiling TSCUtility ArgumentParser.swift
[130/158] Compiling TSCUtility ArgumentParserShellCompletion.swift
[131/158] Compiling TSCUtility Array+Extensions.swift
[132/158] Compiling TSCUtility Bits.swift
[133/158] Compiling TSCUtility OSLog.swift
[134/158] Compiling TSCUtility OrderedZip.swift
[135/158] Compiling TSCUtility PkgConfig.swift
[136/158] Compiling TSCUtility Platform.swift
[137/158] Compiling TSCUtility PolymorphicCodable.swift
[138/158] Compiling TSCUtility Tracing.swift
[139/158] Compiling TSCUtility Triple.swift
[140/158] Compiling TSCUtility URL.swift
[141/158] Compiling TSCUtility Verbosity.swift
[142/158] Compiling TSCUtility Bitstream.swift
[143/158] Compiling TSCUtility BitstreamReader.swift
[144/158] Compiling TSCUtility BitstreamWriter.swift
[145/158] Compiling TSCUtility BuildFlags.swift
[146/158] Compiling TSCUtility CollectionExtensions.swift
[147/158] Compiling TSCUtility ProgressAnimation.swift
[148/158] Compiling TSCUtility SerializedDiagnostics.swift
[149/158] Compiling TSCUtility SimplePersistence.swift
[150/158] Compiling TSCUtility StringExtensions.swift
[151/158] Compiling TSCUtility StringMangling.swift
[152/159] Wrapping AST for TSCUtility for debugging
[153/159] Write Objects.LinkFileList
[154/159] Linking libSwiftToolsSupport.so
[156/173] Compiling xcprojectlint_package Report.swift
[157/173] Compiling xcprojectlint_package Usage.swift
[158/173] Compiling xcprojectlint_package Validation.swift
[159/174] Compiling xcprojectlint_package Version.swift
[160/174] Emitting module xcprojectlint_package
[161/174] Compiling xcprojectlint_package DiskLayoutMatchesProject.swift
[162/174] Compiling xcprojectlint_package EnsureAlphaOrder.swift
[163/174] Compiling xcprojectlint_package NoDanglingSourceFiles.swift
[164/174] Compiling xcprojectlint_package NoEmptyGroups.swift
[165/174] Compiling xcprojectlint_package ErrorReporter.swift
[166/174] Compiling xcprojectlint_package FilesExistOnDisk.swift
[167/174] Compiling xcprojectlint_package CheckForInternalProjectSettings.swift
[168/174] Compiling xcprojectlint_package CheckForWhitespaceSpecifications.swift
[169/174] Compiling xcprojectlint_package Project.swift
[170/174] Compiling xcprojectlint_package ProjectParser.swift
[171/175] Wrapping AST for xcprojectlint-package for debugging
error: emit-module command failed with exit code 1 (use -v to see invocation)
[173/177] Emitting module xcprojectlint
/host/spi-builder-workspace/Sources/xcprojectlint/XcodeProjectLint.swift:19:1: error: 'main' attribute cannot be used in a module that contains top-level code
1 | /*
| |- note: top-level code defined in this source file
| `- note: pass '-parse-as-library' to compiler invocation if this is intentional
2 | * Copyright (c) 2018 American Express Travel Related Services Company, Inc.
3 | *
:
17 | import xcprojectlint_package
18 |
19 | @main
| `- error: 'main' attribute cannot be used in a module that contains top-level code
20 | struct xcprojectlint: ParsableCommand {
21 | static var configuration = CommandConfiguration(
[174/177] Compiling xcprojectlint XcodeProjectLint.swift
/host/spi-builder-workspace/Sources/xcprojectlint/XcodeProjectLint.swift:19:1: error: 'main' attribute cannot be used in a module that contains top-level code
1 | /*
| |- note: top-level code defined in this source file
| `- note: pass '-parse-as-library' to compiler invocation if this is intentional
2 | * Copyright (c) 2018 American Express Travel Related Services Company, Inc.
3 | *
:
17 | import xcprojectlint_package
18 |
19 | @main
| `- error: 'main' attribute cannot be used in a module that contains top-level code
20 | struct xcprojectlint: ParsableCommand {
21 | static var configuration = CommandConfiguration(
BUILD FAILURE 6.2 linux