Build Information
Failed to build SwiftGraph with Swift 6.0 for macOS (SPM).
Build Command
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Build Log
========================================
RunAll
========================================
Builder version: 4.40.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/davecom/SwiftGraph.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/davecom/SwiftGraph
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at 7ee1dd9 Merge pull request #85 from TizianoCoroneo/tiziano/indegree-outdegree
Cloned https://github.com/davecom/SwiftGraph.git
Revision (git rev-parse @):
7ee1dd9e836713b5bb101517314ce63f1ac3a256
SUCCESS checkout https://github.com/davecom/SwiftGraph.git at master
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $workDir
https://github.com/davecom/SwiftGraph.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-6F35C1178C84523A.txt
[3/19] Compiling SwiftGraph WeightedEdge.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraph/WeightedEdge.swift:55:28: warning: generic parameter 'W' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
30 |
31 | /// A weighted edge, who's weight subscribes to Comparable.
32 | public struct WeightedEdge<W: Equatable & Codable>: Edge, CustomStringConvertible, Equatable {
| `- note: 'W' previously declared here
33 | public var u: Int
34 | public var v: Int
:
53 |
54 | //MARK: Operator Overloads
55 | static public func == <W>(lhs: WeightedEdge<W>, rhs: WeightedEdge<W>) -> Bool {
| `- warning: generic parameter 'W' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
56 | return lhs.u == rhs.u && lhs.v == rhs.v && lhs.weight == rhs.weight
57 | }
[4/20] Compiling SwiftGraph UnweightedGraph.swift
[5/20] Compiling SwiftGraph Sort.swift
[6/20] Compiling SwiftGraph Stack.swift
[7/20] Compiling SwiftGraph SwiftPriorityQueue.swift
[8/20] Compiling SwiftGraph Union.swift
error: compile command failed due to signal 6 (use -v to see invocation)
Assertion failed: (extReqs.size() == typeReqs.size()), function isWrittenWithConstraints, file Decl.cpp, line 1819.
Please submit a bug report (https://swift.org/contributing/#reporting-bugs) and include the crash backtrace.
Stack dump:
0. Program arguments: /Library/Developer/Toolchains/swift-6.0-DEVELOPMENT-SNAPSHOT-2024-05-26-a.xctoolchain/usr/bin/swift-frontend -frontend -c /Users/admin/builder/spi-builder-workspace/Sources/SwiftGraph/Constructors.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftGraph/Cycle.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftGraph/Edge.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftGraph/Graph.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftGraph/MST.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftGraph/Queue.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftGraph/Reversed.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftGraph/Search.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftGraph/Sort.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftGraph/Stack.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftGraph/SwiftPriorityQueue.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftGraph/Union.swift -primary-file /Users/admin/builder/spi-builder-workspace/Sources/SwiftGraph/UniqueElementsGraph.swift -primary-file /Users/admin/builder/spi-builder-workspace/Sources/SwiftGraph/UnweightedEdge.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftGraph/UnweightedGraph.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftGraph/WeightedEdge.swift /Users/admin/builder/spi-builder-workspace/Sources/SwiftGraph/WeightedGraph.swift -emit-dependencies-path /Users/admin/builder/spi-builder-workspace/.build/arm64-apple-macosx/debug/SwiftGraph.build/UniqueElementsGraph.d -emit-reference-dependencies-path /Users/admin/builder/spi-builder-workspace/.build/arm64-apple-macosx/debug/SwiftGraph.build/UniqueElementsGraph.swiftdeps -emit-dependencies-path /Users/admin/builder/spi-builder-workspace/.build/arm64-apple-macosx/debug/SwiftGraph.build/UnweightedEdge.d -emit-reference-dependencies-path /Users/admin/builder/spi-builder-workspace/.build/arm64-apple-macosx/debug/SwiftGraph.build/UnweightedEdge.swiftdeps -target arm64-apple-macosx10.13 -Xllvm -aarch64-use-tbi -enable-objc-interop -sdk /Applications/Xcode-15.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.4.sdk -I /Users/admin/builder/spi-builder-workspace/.build/arm64-apple-macosx/debug/Modules -I /Applications/Xcode-15.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/lib -F /Applications/Xcode-15.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks -enable-testing -g -debug-info-format=dwarf -dwarf-version=4 -module-cache-path /Users/admin/builder/spi-builder-workspace/.build/arm64-apple-macosx/debug/ModuleCache -swift-version 5 -Onone -D SWIFT_PACKAGE -D DEBUG -stats-output-dir .stats -strict-concurrency=complete -empty-abi-descriptor -resource-dir /Library/Developer/Toolchains/swift-6.0-DEVELOPMENT-SNAPSHOT-2024-05-26-a.xctoolchain/usr/lib/swift -enable-anonymous-context-mangled-names -file-compilation-dir /Users/admin/builder/spi-builder-workspace -Xcc -isysroot -Xcc /Applications/Xcode-15.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.4.sdk -Xcc -F -Xcc /Applications/Xcode-15.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks -Xcc -fPIC -Xcc -g -module-name SwiftGraph -plugin-path /Library/Developer/Toolchains/swift-6.0-DEVELOPMENT-SNAPSHOT-2024-05-26-a.xctoolchain/usr/lib/swift/host/plugins -plugin-path /Library/Developer/Toolchains/swift-6.0-DEVELOPMENT-SNAPSHOT-2024-05-26-a.xctoolchain/usr/local/lib/swift/host/plugins -target-sdk-version 14.4 -target-sdk-name macosx14.4 -external-plugin-path /Applications/Xcode-15.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/lib/swift/host/plugins#/Applications/Xcode-15.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/bin/swift-plugin-server -external-plugin-path /Applications/Xcode-15.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/local/lib/swift/host/plugins#/Applications/Xcode-15.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/bin/swift-plugin-server -parse-as-library -o /Users/admin/builder/spi-builder-workspace/.build/arm64-apple-macosx/debug/SwiftGraph.build/UniqueElementsGraph.swift.o -o /Users/admin/builder/spi-builder-workspace/.build/arm64-apple-macosx/debug/SwiftGraph.build/UnweightedEdge.swift.o -index-store-path /Users/admin/builder/spi-builder-workspace/.build/arm64-apple-macosx/debug/index/store -index-system-modules
1. Apple Swift version 6.0-dev (LLVM 4b0b1f9e1a69523, Swift 91a3abcf816bc36)
2. Compiling with effective version 5.10
3. While evaluating request IRGenRequest(IR Generation for file "/Users/admin/builder/spi-builder-workspace/Sources/SwiftGraph/UniqueElementsGraph.swift")
4. While emitting IR SIL function "@$s10SwiftGraph014UniqueElementsB0CA2A14UnweightedEdgeVRs_rlE13fromRecursion_15selectingVertex12startingWithACyxAEGSayqd__Gqd__XE_xqd__XEqd__tlFZ".
for 'fromRecursion(_:selectingVertex:startingWith:)' (at /Users/admin/builder/spi-builder-workspace/Sources/SwiftGraph/UniqueElementsGraph.swift:157:12)
Stack dump without symbol names (ensure you have llvm-symbolizer in your PATH or set the environment var `LLVM_SYMBOLIZER_PATH` to point to it):
0 swift-frontend 0x000000010637bbf0 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) + 56
1 swift-frontend 0x000000010637a3bc llvm::sys::RunSignalHandlers() + 112
2 swift-frontend 0x000000010637c238 SignalHandler(int) + 304
3 libsystem_platform.dylib 0x000000018c125a24 _sigtramp + 56
4 libsystem_pthread.dylib 0x000000018c0f5cc0 pthread_kill + 288
5 libsystem_c.dylib 0x000000018c001a40 abort + 180
6 libsystem_c.dylib 0x000000018c000d30 err + 0
7 swift-frontend 0x000000010687a350 swift::ExtensionDecl::isEquivalentToExtendedContext() const (.cold.1) + 0
8 swift-frontend 0x00000001025a7e00 swift::ExtensionDecl::isWrittenWithConstraints() const + 412
9 swift-frontend 0x00000001024b3440 swift::Demangle::ASTBuilder::findDeclContext(swift::Demangle::Node*) + 1696
10 swift-frontend 0x00000001024b31c0 swift::Demangle::ASTBuilder::findDeclContext(swift::Demangle::Node*) + 1056
11 swift-frontend 0x00000001024bc540 swift::Demangle::TypeDecoder<swift::Demangle::ASTBuilder>::decodeMangledTypeDecl(swift::Demangle::Node*, unsigned int, swift::GenericTypeDecl*&, swift::Type&, bool&) + 200
12 swift-frontend 0x00000001024b9628 swift::Demangle::TypeDecoder<swift::Demangle::ASTBuilder>::decodeMangledType(swift::Demangle::Node*, unsigned int, bool) + 9424
13 swift-frontend 0x00000001024b2864 swift::Demangle::getTypeForMangling(swift::ASTContext&, llvm::StringRef, swift::GenericSignature) + 136
14 swift-frontend 0x00000001013f9f80 (anonymous namespace)::IRGenDebugInfoImpl::getOrCreateType(swift::irgen::DebugTypeInfo) + 1256
15 swift-frontend 0x00000001013f43d4 (anonymous namespace)::IRGenDebugInfoImpl::emitVariableDeclaration(swift::irgen::IRBuilder&, llvm::ArrayRef<llvm::Value*>, swift::irgen::DebugTypeInfo, swift::SILDebugScope const*, std::__1::optional<swift::SILLocation>, swift::SILDebugVariable, swift::irgen::IndirectionKind, swift::irgen::ArtificialKind, swift::irgen::AddrDbgInstrKind) + 400
16 swift-frontend 0x00000001013f41f8 swift::irgen::IRGenDebugInfo::emitVariableDeclaration(swift::irgen::IRBuilder&, llvm::ArrayRef<llvm::Value*>, swift::irgen::DebugTypeInfo, swift::SILDebugScope const*, std::__1::optional<swift::SILLocation>, swift::SILDebugVariable, swift::irgen::IndirectionKind, swift::irgen::ArtificialKind, swift::irgen::AddrDbgInstrKind) + 216
17 swift-frontend 0x000000010144a22c (anonymous namespace)::IRGenSILFunction::visitSILBasicBlock(swift::SILBasicBlock*) + 77304
18 swift-frontend 0x0000000101436298 (anonymous namespace)::IRGenSILFunction::emitSILFunction() + 9220
19 swift-frontend 0x0000000101433900 swift::irgen::IRGenModule::emitSILFunction(swift::SILFunction*) + 1604
20 swift-frontend 0x00000001012d63e8 swift::irgen::IRGenerator::emitGlobalTopLevel(std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>>> const&) + 740
21 swift-frontend 0x00000001013e5f0c swift::IRGenRequest::evaluate(swift::Evaluator&, swift::IRGenDescriptor) const + 2172
22 swift-frontend 0x0000000101432db0 swift::GeneratedModule swift::SimpleRequest<swift::IRGenRequest, swift::GeneratedModule (swift::IRGenDescriptor), (swift::RequestFlags)9>::callDerived<0ul>(swift::Evaluator&, std::__1::integer_sequence<unsigned long, 0ul>) const + 200
23 swift-frontend 0x00000001013ee5c0 swift::IRGenRequest::OutputType swift::Evaluator::getResultUncached<swift::IRGenRequest, swift::IRGenRequest::OutputType swift::evaluateOrFatal<swift::IRGenRequest>(swift::Evaluator&, swift::IRGenRequest)::'lambda'()>(swift::IRGenRequest const&, swift::IRGenRequest::OutputType swift::evaluateOrFatal<swift::IRGenRequest>(swift::Evaluator&, swift::IRGenRequest)::'lambda'()) + 212
24 swift-frontend 0x00000001013e7f70 swift::performIRGeneration(swift::FileUnit*, swift::IRGenOptions const&, swift::TBDGenOptions const&, std::__1::unique_ptr<swift::SILModule, std::__1::default_delete<swift::SILModule>>, llvm::StringRef, swift::PrimarySpecificPaths const&, llvm::StringRef, llvm::GlobalVariable**) + 208
25 swift-frontend 0x0000000100ef9824 generateIR(swift::IRGenOptions const&, swift::TBDGenOptions const&, std::__1::unique_ptr<swift::SILModule, std::__1::default_delete<swift::SILModule>>, swift::PrimarySpecificPaths const&, llvm::StringRef, llvm::PointerUnion<swift::ModuleDecl*, swift::SourceFile*>, llvm::GlobalVariable*&, llvm::ArrayRef<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>>) + 156
26 swift-frontend 0x0000000100ef5ac4 performCompileStepsPostSILGen(swift::CompilerInstance&, std::__1::unique_ptr<swift::SILModule, std::__1::default_delete<swift::SILModule>>, llvm::PointerUnion<swift::ModuleDecl*, swift::SourceFile*>, swift::PrimarySpecificPaths const&, int&, swift::FrontendObserver*) + 1416
27 swift-frontend 0x0000000100ef4f2c swift::performCompileStepsPostSema(swift::CompilerInstance&, int&, swift::FrontendObserver*) + 648
28 swift-frontend 0x0000000100f06248 withSemanticAnalysis(swift::CompilerInstance&, swift::FrontendObserver*, llvm::function_ref<bool (swift::CompilerInstance&)>, bool) + 160
29 swift-frontend 0x0000000100ef7590 performCompile(swift::CompilerInstance&, int&, swift::FrontendObserver*) + 708
30 swift-frontend 0x0000000100ef64fc swift::performFrontend(llvm::ArrayRef<char const*>, char const*, void*, swift::FrontendObserver*) + 2388
31 swift-frontend 0x0000000100d103b0 swift::mainEntry(int, char const**) + 3096
32 dyld 0x000000018bd750e0 start + 2360
BUILD FAILURE 6.0 macosSpm