swiftlang / swift-package-manager

The Package Manager for the Swift Programming Language
Apache License 2.0
9.76k stars 1.35k forks source link

Swift 6 crashes my whole Windows PC when trying to compile SwiftGodot #7992

Open kelteseth opened 2 months ago

kelteseth commented 2 months ago

Is it reproducible with SwiftPM command-line tools: swift build, swift test, swift package etc?

Description

I'm no longer able to compile SwiftGodot. It worked with Swift 5.10.1, but crashes with Swift 6. It either stops doing anything while trying to link SwiftGodotMacroLibrary-tool.exe or it straight up crashes my pc (16 core 5950x with 32gb of Ram, Windows 11 23h2 x64) when doing a full rebuild. I have never experienced a single crash before, when compiling big projects like Godot or Qt. I guess this has something to do with:

In Swift 6, the Swift package manager also parallelizes builds across multiple cores on Windows by default.

All my cores are at 100%, RAM is at 80%. Then spotify starts to break down. Hard reset a few seconds later, then bios screen. This is the first time I have manage to crash this pc when doing all core compilations, so I do not think this is a hardware issue? Is there a way to specify the core count used for compilation?

Last build logs I managed to save: PowerShell 7.4.5 PS C:\Code\Swift\GodotSwift6Test> swift build Fetching https://github.com/migueldeicaza/SwiftGodot from cache warning: 'swiftgodot': skipping cache due to an error: Couldn’t fetch updates from remote repositories: fatal: not a git repository (or any of the parent directories): .git Fetched https://github.com/migueldeicaza/SwiftGodot from cache (2.39s) Fetching https://github.com/migueldeicaza/SwiftGodotKit from cache warning: 'swiftgodotkit': skipping cache due to an error: Couldn’t fetch updates from remote repositories: fatal: not a git repository (or any of the parent directories): .git Fetched https://github.com/migueldeicaza/SwiftGodotKit from cache (0.71s) Fetching https://github.com/apple/swift-syntax from cache warning: 'swift-syntax': skipping cache due to an error: Couldn’t fetch updates from remote repositories: fatal: not a git repository (or any of the parent directories): .git Fetched https://github.com/apple/swift-syntax from cache (3.20s) Computing version for https://github.com/apple/swift-syntax Computed https://github.com/apple/swift-syntax at 510.0.3 (1.15s) Creating working copy for https://github.com/migueldeicaza/SwiftGodot Working copy of https://github.com/migueldeicaza/SwiftGodot resolved at fe24cb01640c2d4d48c8555a71adfe346d9543cf Creating working copy for https://github.com/migueldeicaza/SwiftGodotKit Working copy of https://github.com/migueldeicaza/SwiftGodotKit resolved at main (1a720b3) Creating working copy for https://github.com/apple/swift-syntax Working copy of https://github.com/apple/swift-syntax resolved at 510.0.3 Fetching binary artifact https://github.com/migueldeicaza/SwiftGodotKit/releases/download/v1.1.0/libgodot.xcframework.zip from cache Fetched https://github.com/migueldeicaza/SwiftGodotKit/releases/download/v1.1.0/libgodot.xcframework.zip from cache (1.39s) Building for debugging... lld-link: warning: C:\Code\Swift\GodotSwift6Test\.build\plugins\tools\debug\Generator-tool.build\Arguments.swift.o: locally defined symbol imported: $s12ExtensionApi14JGodotArgumentVN (defined in C:\Code\Swift\GodotSwift6Test\.build\plugins\tools\debug\ExtensionApi-tool.build\ApiJsonModel.swift.o) [LNK4217] lld-link: warning: C:\Code\Swift\GodotSwift6Test\.build\plugins\tools\debug\Generator-tool.build\Arguments.swift.o: locally defined symbol imported: $s12ExtensionApi14JGodotArgumentVAA12TypeWithMetaAAMc (defined in C:\Code\Swift\GodotSwift6Test\.build\plugins\tools\debug\ExtensionApi-tool.build\ApiJsonModel+Extra.swift.o) [LNK4217] lld-link: warning: C:\Code\Swift\GodotSwift6Test\.build\plugins\tools\debug\Generator-tool.build\Arguments.swift.o: locally defined symbol imported: $s12ExtensionApi14JGodotArgumentVMn (defined in C:\Code\Swift\GodotSwift6Test\.build\plugins\tools\debug\ExtensionApi-tool.build\ApiJsonModel.swift.o) [LNK4217] lld-link: warning: C:\Code\Swift\GodotSwift6Test\.build\plugins\tools\debug\Generator-tool.build\Arguments.swift.o: locally defined symbol imported: $s12ExtensionApi18JGodotValueElementVMn (defined in C:\Code\Swift\GodotSwift6Test\.build\plugins\tools\debug\ExtensionApi-tool.build\ApiJsonModel.swift.o) [LNK4217] lld-link: warning: C:\Code\Swift\GodotSwift6Test\.build\plugins\tools\debug\Generator-tool.build\BuiltinGen.swift.o: locally defined symbol imported: $s12ExtensionApi14JGodotArgumentVN (defined in C:\Code\Swift\GodotSwift6Test\.build\plugins\tools\debug\ExtensionApi-tool.build\ApiJsonModel.swift.o) [LNK4217] lld-link: warning: C:\Code\Swift\GodotSwift6Test\.build\plugins\tools\debug\Generator-tool.build\BuiltinGen.swift.o: locally defined symbol imported: $s12ExtensionApi18JGodotBuiltinClassVN (defined in C:\Code\Swift\GodotSwift6Test\.build\plugins\tools\debug\ExtensionApi-tool.build\ApiJsonModel.swift.o) [LNK4217] lld-link: warning: C:\Code\Swift\GodotSwift6Test\.build\plugins\tools\debug\Generator-tool.build\BuiltinGen.swift.o: locally defined symbol imported: $s12ExtensionApi18JGodotBuiltinClassVAA10JClassInfoAAMc (defined in C:\Code\Swift\GodotSwift6Test\.build\plugins\tools\debug\ExtensionApi-tool.build\ApiJsonModel+Extra.swift.o) [LNK4217] lld-link: warning: C:\Code\Swift\GodotSwift6Test\.build\plugins\tools\debug\Generator-tool.build\BuiltinGen.swift.o: locally defined symbol imported: $s12ExtensionApi14JGodotArgumentV4name4type11description12defaultValue4metaACSS_S2SSgAiA0cD4MetaOSgtcfC (defined in C:\Code\Swift\GodotSwift6Test\.build\plugins\tools\debug\ExtensionApi-tool.build\ApiJsonModel.swift.o) [LNK4217] lld-link: warning: C:\Code\Swift\GodotSwift6Test\.build\plugins\tools\debug\Generator-tool.build\BuiltinGen.swift.o: locally defined symbol imported: $s12ExtensionApi24JGodotBuiltinClassMethodVN (defined in C:\Code\Swift\GodotSwift6Test\.build\plugins\tools\debug\ExtensionApi-tool.build\ApiJsonModel.swift.o) [LNK4217] lld-link: warning: C:\Code\Swift\GodotSwift6Test\.build\plugins\tools\debug\Generator-tool.build\BuiltinGen.swift.o: locally defined symbol imported: $s12ExtensionApi17JGodotReturnValueV4type4metaACSS_AA0C12ArgumentMetaOSgtcfC (defined in C:\Code\Swift\GodotSwift6Test\.build\plugins\tools\debug\ExtensionApi-tool.build\ApiJsonModel.swift.o) [LNK4217] lld-link: warning: C:\Code\Swift\GodotSwift6Test\.build\plugins\tools\debug\Generator-tool.build\BuiltinGen.swift.o: locally defined symbol imported: $s12ExtensionApi17JGodotReturnValueVN (defined in C:\Code\Swift\GodotSwift6Test\.build\plugins\tools\debug\ExtensionApi-tool.build\ApiJsonModel.swift.o) [LNK4217] lld-link: warning: C:\Code\Swift\GodotSwift6Test\.build\plugins\tools\debug\Generator-tool.build\BuiltinGen.swift.o: locally defined symbol imported: $s12ExtensionApi17JGodotReturnValueVAA12TypeWithMetaAAMc (defined in C:\Code\Swift\GodotSwift6Test\.build\plugins\tools\debug\ExtensionApi-tool.build\ApiJsonModel+Extra.swift.o) [LNK4217] lld-link: warning: C:\Code\Swift\GodotSwift6Test\.build\plugins\tools\debug\Generator-tool.build\BuiltinGen.swift.o: locally defined symbol imported: $s12ExtensionApi17JGodotConstructorVMn (defined in C:\Code\Swift\GodotSwift6Test\.build\plugins\tools\debug\ExtensionApi-tool.build\ApiJsonModel.swift.o) [LNK4217] lld-link: warning: C:\Code\Swift\GodotSwift6Test\.build\plugins\tools\debug\Generator-tool.build\BuiltinGen.swift.o: locally defined symbol imported: $s12ExtensionApi26JGodotBuiltinClassConstantVMn (defined in C:\Code\Swift\GodotSwift6Test\.build\plugins\tools\debug\ExtensionApi-tool.build\ApiJsonModel.swift.o) [LNK4217] lld-link: warning: C:\Code\Swift\GodotSwift6Test\.build\plugins\tools\debug\Generator-tool.build\BuiltinGen.swift.o: locally defined symbol imported: $s12ExtensionApi18JGodotBuiltinClassVMn (defined in C:\Code\Swift\GodotSwift6Test\.build\plugins\tools\debug\ExtensionApi-tool.build\ApiJsonModel.swift.o) [LNK4217] lld-link: warning: C:\Code\Swift\GodotSwift6Test\.build\plugins\tools\debug\Generator-tool.build\BuiltinGen.swift.o: locally defined symbol imported: $s12ExtensionApi14JGodotArgumentVMn (defined in C:\Code\Swift\GodotSwift6Test\.build\plugins\tools\debug\ExtensionApi-tool.build\ApiJsonModel.swift.o) [LNK4217] lld-link: warning: C:\Code\Swift\GodotSwift6Test\.build\plugins\tools\debug\Generator-tool.build\BuiltinGen.swift.o: locally defined symbol imported: $s12ExtensionApi14JGodotOperatorVMn (defined in C:\Code\Swift\GodotSwift6Test\.build\plugins\tools\debug\ExtensionApi-tool.build\ApiJsonModel.swift.o) [LNK4217] lld-link: warning: C:\Code\Swift\GodotSwift6Test\.build\plugins\tools\debug\Generator-tool.build\BuiltinGen.swift.o: locally defined symbol imported: $s12ExtensionApi24JGodotBuiltinClassMethodVMn (defined in C:\Code\Swift\GodotSwift6Test\.build\plugins\tools\debug\ExtensionApi-tool.build\ApiJsonModel.swift.o) [LNK4217] lld-link: warning: C:\Code\Swift\GodotSwift6Test\.build\plugins\tools\debug\Generator-tool.build\BuiltinGen.swift.o: locally defined symbol imported: $s12ExtensionApi12JGodotMemberVMn (defined in C:\Code\Swift\GodotSwift6Test\.build\plugins\tools\debug\ExtensionApi-tool.build\ApiJsonModel.swift.o) [LNK4217] lld-link: warning: C:\Code\Swift\GodotSwift6Test\.build\plugins\tools\debug\Generator-tool.build\ClassGen.swift.o: locally defined symbol imported: $s12ExtensionApi06JGodotA8APIClassVN (defined in C:\Code\Swift\GodotSwift6Test\.build\plugins\tools\debug\ExtensionApi-tool.build\ApiJsonModel.swift.o) [LNK4217] lld-link: warning: C:\Code\Swift\GodotSwift6Test\.build\plugins\tools\debug\Generator-tool.build\ClassGen.swift.o: locally defined symbol imported: $s12ExtensionApi17JGodotReturnValueVN (defined in C:\Code\Swift\GodotSwift6Test\.build\plugins\tools\debug\ExtensionApi-tool.build\ApiJsonModel.swift.o) [LNK4217] lld-link: warning: C:\Code\Swift\GodotSwift6Test\.build\plugins\tools\debug\Generator-tool.build\ClassGen.swift.o: locally defined symbol imported: $s12ExtensionApi14JGodotArgumentVN (defined in C:\Code\Swift\GodotSwift6Test\.build\plugins\tools\debug\ExtensionApi-tool.build\ApiJsonModel.swift.o) [LNK4217] lld-link: warning: C:\Code\Swift\GodotSwift6Test\.build\plugins\tools\debug\Generator-tool.build\ClassGen.swift.o: locally defined symbol imported: $s12ExtensionApi17JGodotReturnValueVAA12TypeWithMetaAAMc (defined in C:\Code\Swift\GodotSwift6Test\.build\plugins\tools\debug\ExtensionApi-tool.build\ApiJsonModel+Extra.swift.o) [LNK4217] lld-link: warning: C:\Code\Swift\GodotSwift6Test\.build\plugins\tools\debug\Generator-tool.build\ClassGen.swift.o: locally defined symbol imported: $s12ExtensionApi17JGodotClassMethodVN (defined in C:\Code\Swift\GodotSwift6Test\.build\plugins\tools\debug\ExtensionApi-tool.build\ApiJsonModel.swift.o) [LNK4217] lld-link: warning: C:\Code\Swift\GodotSwift6Test\.build\plugins\tools\debug\Generator-tool.build\ClassGen.swift.o: locally defined symbol imported: $s12ExtensionApi17JGodotClassMethodVAA0E10DefinitionAAMc (defined in C:\Code\Swift\GodotSwift6Test\.build\plugins\tools\debug\ExtensionApi-tool.build\ApiJsonModel+Extra.swift.o) [LNK4217] lld-link: warning: C:\Code\Swift\GodotSwift6Test\.build\plugins\tools\debug\Generator-tool.build\ClassGen.swift.o: locally defined symbol imported: $s12ExtensionApi06JGodotA8APIClassVAA10JClassInfoAAMc (defined in C:\Code\Swift\GodotSwift6Test\.build\plugins\tools\debug\ExtensionApi-tool.build\ApiJsonModel+Extra.swift.o) [LNK4217] lld-link: warning: C:\Code\Swift\GodotSwift6Test\.build\plugins\tools\debug\Generator-tool.build\ClassGen.swift.o: locally defined symbol imported: $s12ExtensionApi14JGodotArgumentVAA12TypeWithMetaAAMc (defined in C:\Code\Swift\GodotSwift6Test\.build\plugins\tools\debug\ExtensionApi-tool.build\ApiJsonModel+Extra.swift.o) [LNK4217] lld-link: warning: C:\Code\Swift\GodotSwift6Test\.build\plugins\tools\debug\Generator-tool.build\ClassGen.swift.o: locally defined symbol imported: $s12ExtensionApi12JGodotSignalVN (defined in C:\Code\Swift\GodotSwift6Test\.build\plugins\tools\debug\ExtensionApi-tool.build\ApiJsonModel.swift.o) [LNK4217] lld-link: warning: C:\Code\Swift\GodotSwift6Test\.build\plugins\tools\debug\Generator-tool.build\ClassGen.swift.o: locally defined symbol imported: $s12ExtensionApi17JGodotClassMethodVMn (defined in C:\Code\Swift\GodotSwift6Test\.build\plugins\tools\debug\ExtensionApi-tool.build\ApiJsonModel.swift.o) [LNK4217] lld-link: warning: C:\Code\Swift\GodotSwift6Test\.build\plugins\tools\debug\Generator-tool.build\ClassGen.swift.o: locally defined symbol imported: $s12ExtensionApi06JGodotA8APIClassVMn (defined in C:\Code\Swift\GodotSwift6Test\.build\plugins\tools\debug\ExtensionApi-tool.build\ApiJsonModel.swift.o) [LNK4217] lld-link: warning: C:\Code\Swift\GodotSwift6Test\.build\plugins\tools\debug\Generator-tool.build\ClassGen.swift.o: locally defined symbol imported: $s12ExtensionApi18JGodotValueElementVMn (defined in C:\Code\Swift\GodotSwift6Test\.build\plugins\tools\debug\ExtensionApi-tool.build\ApiJsonModel.swift.o) [LNK4217] lld-link: warning: C:\Code\Swift\GodotSwift6Test\.build\plugins\tools\debug\Generator-tool.build\ClassGen.swift.o: locally defined symbol imported: $s12ExtensionApi14JGodotPropertyVMn (defined in C:\Code\Swift\GodotSwift6Test\.build\plugins\tools\debug\ExtensionApi-tool.build\ApiJsonModel.swift.o) [LNK4217] lld-link: warning: C:\Code\Swift\GodotSwift6Test\.build\plugins\tools\debug\Generator-tool.build\ClassGen.swift.o: locally defined symbol imported: $s12ExtensionApi14JGodotArgumentVMn (defined in C:\Code\Swift\GodotSwift6Test\.build\plugins\tools\debug\ExtensionApi-tool.build\ApiJsonModel.swift.o) [LNK4217] lld-link: warning: C:\Code\Swift\GodotSwift6Test\.build\plugins\tools\debug\Generator-tool.build\ClassGen.swift.o: locally defined symbol imported: $s12ExtensionApi12JGodotSignalVMn (defined in C:\Code\Swift\GodotSwift6Test\.build\plugins\tools\debug\ExtensionApi-tool.build\ApiJsonModel.swift.o) [LNK4217] lld-link: warning: C:\Code\Swift\GodotSwift6Test\.build\plugins\tools\debug\Generator-tool.build\DocModel.swift.o: locally defined symbol imported: $s12ExtensionApi06JGodotA8APIClassVN (defined in C:\Code\Swift\GodotSwift6Test\.build\plugins\tools\debug\ExtensionApi-tool.build\ApiJsonModel.swift.o) [LNK4217] lld-link: warning: C:\Code\Swift\GodotSwift6Test\.build\plugins\tools\debug\Generator-tool.build\DocModel.swift.o: locally defined symbol imported: $s12ExtensionApi23JGodotGlobalEnumElementVN (defined in C:\Code\Swift\GodotSwift6Test\.build\plugins\tools\debug\ExtensionApi-tool.build\ApiJsonModel.swift.o) [LNK4217] lld-link: warning: C:\Code\Swift\GodotSwift6Test\.build\plugins\tools\debug\Generator-tool.build\DocModel.swift.o: locally defined symbol imported: $s12ExtensionApi18JGodotValueElementVN (defined in C:\Code\Swift\GodotSwift6Test\.build\plugins\tools\debug\ExtensionApi-tool.build\ApiJsonModel.swift.o) [LNK4217] lld-link: warning: C:\Code\Swift\GodotSwift6Test\.build\plugins\tools\debug\Generator-tool.build\DocModel.swift.o: locally defined symbol imported: $s12ExtensionApi14JGodotArgumentVN (defined in C:\Code\Swift\GodotSwift6Test\.build\plugins\tools\debug\ExtensionApi-tool.build\ApiJsonModel.swift.o) [LNK4217] lld-link: warning: C:\Code\Swift\GodotSwift6Test\.build\plugins\tools\debug\Generator-tool.build\DocModel.swift.o: locally defined symbol imported: $s12ExtensionApi18JGodotBuiltinClassVN (defined in C:\Code\Swift\GodotSwift6Test\.build\plugins\tools\debug\ExtensionApi-tool.build\ApiJsonModel.swift.o) [LNK4217] lld-link: warning: C:\Code\Swift\GodotSwift6Test\.build\plugins\tools\debug\Generator-tool.build\DocModel.swift.o: locally defined symbol imported: $s12ExtensionApi06JGodotA8APIClassVAA10JClassInfoAAMc (defined in C:\Code\Swift\GodotSwift6Test\.build\plugins\tools\debug\ExtensionApi-tool.build\ApiJsonModel+Extra.swift.o) [LNK4217] lld-link: warning: C:\Code\Swift\GodotSwift6Test\.build\plugins\tools\debug\Generator-tool.build\DocModel.swift.o: locally defined symbol imported: $s12ExtensionApi23JGodotGlobalEnumElementVMn (defined in C:\Code\Swift\GodotSwift6Test\.build\plugins\tools\debug\ExtensionApi-tool.build\ApiJsonModel.swift.o) [LNK4217] lld-link: warning: C:\Code\Swift\GodotSwift6Test\.build\plugins\tools\debug\Generator-tool.build\DocModel.swift.o: locally defined symbol imported: $s12ExtensionApi06JGodotA8APIClassVMn (defined in C:\Code\Swift\GodotSwift6Test\.build\plugins\tools\debug\ExtensionApi-tool.build\ApiJsonModel.swift.o) [LNK4217] lld-link: warning: C:\Code\Swift\GodotSwift6Test\.build\plugins\tools\debug\Generator-tool.build\DocModel.swift.o: locally defined symbol imported: $s12ExtensionApi18JGodotValueElementVMn (defined in C:\Code\Swift\GodotSwift6Test\.build\plugins\tools\debug\ExtensionApi-tool.build\ApiJsonModel.swift.o) [LNK4217] lld-link: warning: C:\Code\Swift\GodotSwift6Test\.build\plugins\tools\debug\Generator-tool.build\DocModel.swift.o: locally defined symbol imported: $s12ExtensionApi10JClassInfoMp (defined in C:\Code\Swift\GodotSwift6Test\.build\plugins\tools\debug\ExtensionApi-tool.build\ApiJsonModel+Extra.swift.o) [LNK4217] lld-link: warning: C:\Code\Swift\GodotSwift6Test\.build\plugins\tools\debug\Generator-tool.build\DocModel.swift.o: locally defined symbol imported: $s12ExtensionApi14JGodotArgumentVMn (defined in C:\Code\Swift\GodotSwift6Test\.build\plugins\tools\debug\ExtensionApi-tool.build\ApiJsonModel.swift.o) [LNK4217] lld-link: warning: C:\Code\Swift\GodotSwift6Test\.build\plugins\tools\debug\Generator-tool.build\DocModel.swift.o: locally defined symbol imported: $s12ExtensionApi17JGodotClassMethodVMn (defined in C:\Code\Swift\GodotSwift6Test\.build\plugins\tools\debug\ExtensionApi-tool.build\ApiJsonModel.swift.o) [LNK4217] lld-link: warning: C:\Code\Swift\GodotSwift6Test\.build\plugins\tools\debug\Generator-tool.build\DocModel.swift.o: locally defined symbol imported: $s12ExtensionApi24JGodotBuiltinClassMethodVMn (defined in C:\Code\Swift\GodotSwift6Test\.build\plugins\tools\debug\ExtensionApi-tool.build\ApiJsonModel.swift.o) [LNK4217] lld-link: warning: C:\Code\Swift\GodotSwift6Test\.build\plugins\tools\debug\Generator-tool.build\Enums.swift.o: locally defined symbol imported: $s12ExtensionApi06JGodotA8APIClassVN (defined in C:\Code\Swift\GodotSwift6Test\.build\plugins\tools\debug\ExtensionApi-tool.build\ApiJsonModel.swift.o) [LNK4217] lld-link: warning: C:\Code\Swift\GodotSwift6Test\.build\plugins\tools\debug\Generator-tool.build\Enums.swift.o: locally defined symbol imported: $s12ExtensionApi23JGodotGlobalEnumElementVMn (defined in C:\Code\Swift\GodotSwift6Test\.build\plugins\tools\debug\ExtensionApi-tool.build\ApiJsonModel.swift.o) [LNK4217] lld-link: warning: C:\Code\Swift\GodotSwift6Test\.build\plugins\tools\debug\Generator-tool.build\Enums.swift.o: locally defined symbol imported: $s12ExtensionApi18JGodotValueElementVMn (defined in C:\Code\Swift\GodotSwift6Test\.build\plugins\tools\debug\ExtensionApi-tool.build\ApiJsonModel.swift.o) [LNK4217] lld-link: warning: C:\Code\Swift\GodotSwift6Test\.build\plugins\tools\debug\Generator-tool.build\MethodGen.swift.o: locally defined symbol imported: $s12ExtensionApi14JGodotArgumentVN (defined in C:\Code\Swift\GodotSwift6Test\.build\plugins\tools\debug\ExtensionApi-tool.build\ApiJsonModel.swift.o) [LNK4217] lld-link: warning: C:\Code\Swift\GodotSwift6Test\.build\plugins\tools\debug\Generator-tool.build\MethodGen.swift.o: locally defined symbol imported: $s12ExtensionApi06JGodotA8APIClassVN (defined in C:\Code\Swift\GodotSwift6Test\.build\plugins\tools\debug\ExtensionApi-tool.build\ApiJsonModel.swift.o) [LNK4217] lld-link: warning: C:\Code\Swift\GodotSwift6Test\.build\plugins\tools\debug\Generator-tool.build\MethodGen.swift.o: locally defined symbol imported: $s12ExtensionApi17JGodotReturnValueVN (defined in C:\Code\Swift\GodotSwift6Test\.build\plugins\tools\debug\ExtensionApi-tool.build\ApiJsonModel.swift.o) [LNK4217] lld-link: warning: C:\Code\Swift\GodotSwift6Test\.build\plugins\tools\debug\Generator-tool.build\MethodGen.swift.o: locally defined symbol imported: $s12ExtensionApi17JGodotReturnValueVAA12TypeWithMetaAAMc (defined in C:\Code\Swift\GodotSwift6Test\.build\plugins\tools\debug\ExtensionApi-tool.build\ApiJsonModel+Extra.swift.o) [LNK4217] lld-link: warning: C:\Code\Swift\GodotSwift6Test\.build\plugins\tools\debug\Generator-tool.build\MethodGen.swift.o: locally defined symbol imported: $s12ExtensionApi14JGodotArgumentVMn (defined in C:\Code\Swift\GodotSwift6Test\.build\plugins\tools\debug\ExtensionApi-tool.build\ApiJsonModel.swift.o) [LNK4217] lld-link: warning: C:\Code\Swift\GodotSwift6Test\.build\plugins\tools\debug\Generator-tool.build\StringOperations.swift.o: locally defined symbol imported: $s12ExtensionApi18JGodotValueElementVMn (defined in C:\Code\Swift\GodotSwift6Test\.build\plugins\tools\debug\ExtensionApi-tool.build\ApiJsonModel.swift.o) [LNK4217] lld-link: warning: C:\Code\Swift\GodotSwift6Test\.build\plugins\tools\debug\Generator-tool.build\TypeHelpers.swift.o: locally defined symbol imported: $s12ExtensionApi23JGodotGlobalEnumElementVN (defined in C:\Code\Swift\GodotSwift6Test\.build\plugins\tools\debug\ExtensionApi-tool.build\ApiJsonModel.swift.o) [LNK4217] lld-link: warning: C:\Code\Swift\GodotSwift6Test\.build\plugins\tools\debug\Generator-tool.build\TypeHelpers.swift.o: locally defined symbol imported: $s12ExtensionApi06JGodotA8APIClassVN (defined in C:\Code\Swift\GodotSwift6Test\.build\plugins\tools\debug\ExtensionApi-tool.build\ApiJsonModel.swift.o) [LNK4217] lld-link: warning: C:\Code\Swift\GodotSwift6Test\.build\plugins\tools\debug\Generator-tool.build\TypeHelpers.swift.o: locally defined symbol imported: $s12ExtensionApi23JGodotGlobalEnumElementVMn (defined in C:\Code\Swift\GodotSwift6Test\.build\plugins\tools\debug\ExtensionApi-tool.build\ApiJsonModel.swift.o) [LNK4217] lld-link: warning: C:\Code\Swift\GodotSwift6Test\.build\plugins\tools\debug\Generator-tool.build\TypeHelpers.swift.o: locally defined symbol imported: $s12ExtensionApi18JGodotValueElementVMn (defined in C:\Code\Swift\GodotSwift6Test\.build\plugins\tools\debug\ExtensionApi-tool.build\ApiJsonModel.swift.o) [LNK4217] lld-link: warning: C:\Code\Swift\GodotSwift6Test\.build\plugins\tools\debug\Generator-tool.build\TypeHelpers.swift.o: locally defined symbol imported: $s12ExtensionApi12TypeWithMetaMp (defined in C:\Code\Swift\GodotSwift6Test\.build\plugins\tools\debug\ExtensionApi-tool.build\ApiJsonModel+Extra.swift.o) [LNK4217] lld-link: warning: C:\Code\Swift\GodotSwift6Test\.build\plugins\tools\debug\Generator-tool.build\TypeHelpers.swift.o: locally defined symbol imported: $s12ExtensionApi18JGodotArgumentMetaOMn (defined in C:\Code\Swift\GodotSwift6Test\.build\plugins\tools\debug\ExtensionApi-tool.build\ApiJsonModel.swift.o) [LNK4217] lld-link: warning: C:\Code\Swift\GodotSwift6Test\.build\plugins\tools\debug\Generator-tool.build\UtilityGen.swift.o: locally defined symbol imported: $s12ExtensionApi21JGodotUtilityFunctionVN (defined in C:\Code\Swift\GodotSwift6Test\.build\plugins\tools\debug\ExtensionApi-tool.build\ApiJsonModel.swift.o) [LNK4217] lld-link: warning: C:\Code\Swift\GodotSwift6Test\.build\plugins\tools\debug\Generator-tool.build\UtilityGen.swift.o: locally defined symbol imported: $s12ExtensionApi21JGodotUtilityFunctionVAA16MethodDefinitionAAMc (defined in C:\Code\Swift\GodotSwift6Test\.build\plugins\tools\debug\ExtensionApi-tool.build\ApiJsonModel+Extra.swift.o) [LNK4217] lld-link: warning: C:\Code\Swift\GodotSwift6Test\.build\plugins\tools\debug\Generator-tool.build\UtilityGen.swift.o: locally defined symbol imported: $s12ExtensionApi21JGodotUtilityFunctionVMn (defined in C:\Code\Swift\GodotSwift6Test\.build\plugins\tools\debug\ExtensionApi-tool.build\ApiJsonModel.swift.o) [LNK4217] lld-link: warning: C:\Code\Swift\GodotSwift6Test\.build\plugins\tools\debug\Generator-tool.build\main.swift.o: locally defined symbol imported: $s12ExtensionApi06JGodotA3APIVN (defined in C:\Code\Swift\GodotSwift6Test\.build\plugins\tools\debug\ExtensionApi-tool.build\ApiJsonModel.swift.o) [LNK4217] lld-link: warning: C:\Code\Swift\GodotSwift6Test\.build\plugins\tools\debug\Generator-tool.build\main.swift.o: locally defined symbol imported: $s12ExtensionApi23JGodotGlobalEnumElementVN (defined in C:\Code\Swift\GodotSwift6Test\.build\plugins\tools\debug\ExtensionApi-tool.build\ApiJsonModel.swift.o) [LNK4217] lld-link: warning: C:\Code\Swift\GodotSwift6Test\.build\plugins\tools\debug\Generator-tool.build\main.swift.o: locally defined symbol imported: $s12ExtensionApi06JGodotA8APIClassVN (defined in C:\Code\Swift\GodotSwift6Test\.build\plugins\tools\debug\ExtensionApi-tool.build\ApiJsonModel.swift.o) [LNK4217] lld-link: warning: C:\Code\Swift\GodotSwift6Test\.build\plugins\tools\debug\Generator-tool.build\main.swift.o: locally defined symbol imported: $s12ExtensionApi18JGodotBuiltinClassVN (defined in C:\Code\Swift\GodotSwift6Test\.build\plugins\tools\debug\ExtensionApi-tool.build\ApiJsonModel.swift.o) [LNK4217] lld-link: warning: C:\Code\Swift\GodotSwift6Test\.build\plugins\tools\debug\Generator-tool.build\main.swift.o: locally defined symbol imported: $s12ExtensionApi14JGodotArgumentVN (defined in C:\Code\Swift\GodotSwift6Test\.build\plugins\tools\debug\ExtensionApi-tool.build\ApiJsonModel.swift.o) [LNK4217] lld-link: warning: C:\Code\Swift\GodotSwift6Test\.build\plugins\tools\debug\Generator-tool.build\main.swift.o: locally defined symbol imported: $s12ExtensionApi14JGodotTypeEnumO8rawValueSSvg (defined in C:\Code\Swift\GodotSwift6Test\.build\plugins\tools\debug\ExtensionApi-tool.build\ApiJsonModel.swift.o) [LNK4217] lld-link: warning: C:\Code\Swift\GodotSwift6Test\.build\plugins\tools\debug\Generator-tool.build\main.swift.o: locally defined symbol imported: $s12ExtensionApi06JGodotA3APIVSeAAMc (defined in C:\Code\Swift\GodotSwift6Test\.build\plugins\tools\debug\ExtensionApi-tool.build\ApiJsonModel.swift.o) [LNK4217] lld-link: warning: C:\Code\Swift\GodotSwift6Test\.build\plugins\tools\debug\Generator-tool.build\main.swift.o: locally defined symbol imported: $s12ExtensionApi23JGodotGlobalEnumElementVMn (defined in C:\Code\Swift\GodotSwift6Test\.build\plugins\tools\debug\ExtensionApi-tool.build\ApiJsonModel.swift.o) [LNK4217] lld-link: warning: C:\Code\Swift\GodotSwift6Test\.build\plugins\tools\debug\Generator-tool.build\main.swift.o: locally defined symbol imported: $s12ExtensionApi06JGodotA8APIClassVMn (defined in C:\Code\Swift\GodotSwift6Test\.build\plugins\tools\debug\ExtensionApi-tool.build\ApiJsonModel.swift.o) [LNK4217] lld-link: warning: C:\Code\Swift\GodotSwift6Test\.build\plugins\tools\debug\Generator-tool.build\main.swift.o: locally defined symbol imported: $s12ExtensionApi18JGodotBuiltinClassVMn (defined in C:\Code\Swift\GodotSwift6Test\.build\plugins\tools\debug\ExtensionApi-tool.build\ApiJsonModel.swift.o) [LNK4217] lld-link: warning: C:\Code\Swift\GodotSwift6Test\.build\plugins\tools\debug\Generator-tool.build\main.swift.o: locally defined symbol imported: $s12ExtensionApi22JGodotBuiltinClassSizeVMn (defined in C:\Code\Swift\GodotSwift6Test\.build\plugins\tools\debug\ExtensionApi-tool.build\ApiJsonModel.swift.o) [LNK4217] lld-link: warning: C:\Code\Swift\GodotSwift6Test\.build\plugins\tools\debug\Generator-tool.build\main.swift.o: locally defined symbol imported: $s12ExtensionApi12JGodotMemberVMn (defined in C:\Code\Swift\GodotSwift6Test\.build\plugins\tools\debug\ExtensionApi-tool.build\ApiJsonModel.swift.o) [LNK4217] lld-link: warning: C:\Code\Swift\GodotSwift6Test\.build\plugins\tools\debug\Generator-tool.build\main.swift.o: locally defined symbol imported: $s12ExtensionApi30JGodotBuiltinClassMemberOffsetVMn (defined in C:\Code\Swift\GodotSwift6Test\.build\plugins\tools\debug\ExtensionApi-tool.build\ApiJsonModel.swift.o) [LNK4217] lld-link: warning: C:\Code\Swift\GodotSwift6Test\.build\plugins\tools\debug\Generator-tool.build\main.swift.o: locally defined symbol imported: $s12ExtensionApi030JGodotBuiltinClassMemberOffsetE0VMn (defined in C:\Code\Swift\GodotSwift6Test\.build\plugins\tools\debug\ExtensionApi-tool.build\ApiJsonModel.swift.o) [LNK4217] lld-link: warning: C:\Code\Swift\GodotSwift6Test\.build\plugins\tools\debug\Generator-tool.build\main.swift.o: locally defined symbol imported: $s12ExtensionApi10JGodotSizeVMn (defined in C:\Code\Swift\GodotSwift6Test\.build\plugins\tools\debug\ExtensionApi-tool.build\ApiJsonModel.swift.o) [LNK4217] [25/25] Linking C:\Code\Swift\GodotSwift6Test\.build\plugins\tools\debug\Generator-tool.exe Build of product 'Generator' complete! (12.49s) Building for debugging...

Expected behavior

Compile and do not crash my PC

Actual behavior

Crashes my pc

Steps to reproduce

Run swift build on (or clone an run https://github.com/EstevanBR/SwiftGodotKick) GodotSwift6Test.zip

Swift Package Manager version/commit hash

No response

Swift & OS version (output of swift --version ; uname -a)

PS C:\Users\Eli> swift --version ; uname -a Swift version 6.0 (swift-6.0-RELEASE) Target: x86_64-unknown-windows-msvc

jakepetroules commented 2 months ago

Is there a way to specify the core count used for compilation?

There is, you can pass -j or --jobs to specify the concurrency level. This defaults to the number of cores on your machine.

If you believe it's related to "In Swift 6, the Swift package manager also parallelizes builds across multiple cores on Windows by default." (swiftlang/swift-llbuild#937), can you try with --jobs 1 and let us know if that resolves your issue? If not, the cause must lie elsewhere.

Can you also run echo %NUMBER_OF_PROCESSORS% in a cmd.exe shell and let us know the value?

MahdiBM commented 2 months ago

This might be related although I was testing stuff on Linux, not Windows: https://github.com/swiftlang/swift/issues/76555