Error Code
Took 2444.5545271s to run UnrealBuildTool.exe, ExitCode=6
UATHelper: Packaging (Windows (64-bit)): UnrealBuildTool failed. See log for more details. (C:\Tools\UnrealEngine\Engine\Programs\AutomationTool\Saved\Logs\UBT-UE426-Win64-Development.txt)
UATHelper: Packaging (Windows (64-bit)): AutomationTool exiting with ExitCode=6 (6)
UATHelper: Packaging (Windows (64-bit)): BUILD FAILED
PackagingResults: Error: Unknown Error
Context
I ran Unreal Engine 4 from the source code in Visual Studio. After adding assets, I realized that I ran out of space, so I uninstalled Visual Studio since I didn’t know that I would need this to actually package the whole thing. I reinstalled it then, built the UE4.sln file, and built the AutomationTool as well. However, after packaging all 700+ files, it gave me the error code I specified in the first section of this post.
Full Error Message
UnrealBuildTool.Main: CompilationResultException: Error: OtherCompilationError
UnrealBuildTool.Main: at UnrealBuildTool.ActionGraph.ExecuteActions(BuildConfiguration BuildConfiguration, List1 ActionsToExecute) in C:\Tools\UnrealEngine\Engine\Source\Programs\UnrealBuildTool\System\ActionGraph.cs:line 230 UnrealBuildTool.Main: at UnrealBuildTool.BuildMode.Build(TargetMakefile[] Makefiles, List
1 TargetDescriptors, BuildConfiguration BuildConfiguration, ISourceFileWorkingSet WorkingSet, BuildOptions Options, FileReference WriteOutdatedActionsFile) in C:\Tools\UnrealEngine\Engine\Source\Programs\UnrealBuildTool\Modes\BuildMode.cs:line 483
UnrealBuildTool.Main: at UnrealBuildTool.BuildMode.Execute(CommandLineArguments Arguments) in C:\Tools\UnrealEngine\Engine\Source\Programs\UnrealBuildTool\Modes\BuildMode.cs:line 226
UnrealBuildTool.Main: at UnrealBuildTool.UnrealBuildTool.Main(String[] ArgumentsArray) in C:\Tools\UnrealEngine\Engine\Source\Programs\UnrealBuildTool\UnrealBuildTool.cs:line 550
Timeline.Print: Timeline:
Timeline.Print:
Timeline.Print: [ 0.000]
Timeline.Print: 0.000
Timeline.Print: 0.040 FileMetadataPrefetch.QueueEngineDirectory()
Timeline.Print: 0.047 XmlConfig.ReadConfigFiles()
Timeline.Print: 0.155 SingleInstanceMutex.Acquire()
Timeline.Print: 0.155 UEBuildPlatform.RegisterPlatforms()
Timeline.Print: 0.157 0.001 Initializing InstalledPlatformInfo
Timeline.Print: 0.236 0.080 Querying types
Timeline.Print: 0.239 0.083 MacPlatformFactory
Timeline.Print: 0.305 0.149 TVOSPlatformFactory
Timeline.Print: 0.318 0.162 AndroidPlatformFactory
Timeline.Print: 0.325 0.169 HoloLensPlatformFactory
Timeline.Print: 0.333 0.178 IOSPlatformFactory
Timeline.Print: 0.353 0.197 LinuxPlatformFactory
Timeline.Print: 0.360 0.204 LuminPlatformFactory
Timeline.Print: 0.364 0.208 WindowsPlatformFactory
Timeline.Print: 0.377 DeleteJunk()
Timeline.Print: 0.383 TargetDescriptor.ParseCommandLine()
Timeline.Print: 0.421
Timeline.Print: 0.446 UEBuildTarget.Create()
Timeline.Print: 0.452 0.005 RulesCompiler.CreateTargetRulesAssembly()
Timeline.Print: 0.452 0.005 0.000
Timeline.Print: 0.585 0.139 0.133 Finding engine modules
Timeline.Print: 0.620 0.173 0.167 Finding plugin modules
Timeline.Print: 0.626 0.179 0.173
Timeline.Print: 0.775 0.329 0.323 Finding program modules
Timeline.Print: 0.794 0.348 0.342 Finding program targets
Timeline.Print: 0.808 0.362 RulesAssembly.CreateTargetRules()
Timeline.Print: 0.950 0.503 UEBuildTarget constructor
Timeline.Print: 0.956 0.510 0.006 Reading source file metadata cache
Timeline.Print: 1.068 0.621 UEBuildTarget.PreBuildSetup()
Timeline.Print: 1.603 UEBuildTarget.Build()
Timeline.Print: 1.603 0.000
Timeline.Print: 1.664 0.060 ExternalExecution.SetupUObjectModules()
Timeline.Print: 1.725 0.121
Timeline.Print: 1.970 0.366 ExternalExecution.UpdateDirectoryTimestamps()
Timeline.Print: 2.208 0.604 UEBuildBinary.Build()
Timeline.Print: 4.403 2.799
Timeline.Print: 4.529 ActionGraph.CheckPathLengths
Timeline.Print: 4.535
Timeline.Print: 4.560 Reading action history
Timeline.Print: 4.561 Reading dependency cache
Timeline.Print: 4.565 Prefetching include dependencies
Timeline.Print: 4.595 Cache outdated actions
Timeline.Print: 4.764
Timeline.Print: 4.785 ActionGraph.ExecuteActions()
Timeline.Print: 2444.270
Timeline.Print: 2444.370 FileMetadataPrefetch.Stop()
Timeline.Print: [2444.374]