Build Error: Error Uknown Error

Can’t seem to build a package without error, both 32/64-bit, filtering the log with “error” it gave back these 2 lines:

  • UATHelper: Packaging (Windows
    (64-bit)): UnrealBuildTool: ERROR:
    Failed to find cl.exe in the default
    toolchain directory C:\Program Files
    (x86)\Microsoft Visual Studio
    14.0\Common7\Tools…/…/VC/bin/x86_amd64\cl.exe.
    Please verify that “Common Tools for
    Visual C++ 2015” was selected when
    instal

  • UATHelper: Packaging (Windows
    (64-bit)): Program.Main: ERROR:
    AutomationTool terminated with
    exception:
    AutomationTool.CommandUtils+CommandFailedException:
    Command failed (Result:5): C:\Program
    Files (x86)\Epic
    Games\4.13\Engine\Binaries\DotNET\UnrealBuildTool.exe
    CharControlTest Win64 Developmen
    PackagingResults:Error: Error Unknown
    Error

I have visual studio C++ 2017 for Unreal installed, Here is the rest of the log:


LogSavePackage: Save=414.43ms
LogSavePackage: Moving ‘…/…/…/…/…/…/Users/Vaulken/Documents/Unreal Projects/CharControlTest/Saved/UEDPCMinimal_Default29956F594E04366A1DBE6ABDD8E2007E.tmp’ to ‘…/…/…/…/…/…/Users/Vaulken/Documents/Unreal Projects/CharControlTest/Saved/Autosaves/Game/StarterContent/Maps/UEDPCMinimal_Default.umap’
LogSavePackage:Display: Finished SavePackage …/…/…/…/…/…/Users/Vaulken/Documents/Unreal Projects/CharControlTest/Saved/Autosaves/Game/StarterContent/Maps/UEDPCMinimal_Default.umap
LogEditorTransaction: Undo Spawn Play From Here Start
UATHelper: Packaging (Windows (64-bit)): Running AutomationTool…
UATHelper: Packaging (Windows (64-bit)): Automation.ParseCommandLine: Parsing command line: -ScriptsForProject=“C:/Users/Vaulken/Documents/Unreal Projects/CharControlTest/CharControlTest.uproject” BuildCookRun -nocompile -nocompileeditor -installed -nop4 -project=“C:/Users/Vaulken/Documents/Unrea
UATHelper: Packaging (Windows (64-bit)): l Projects/CharControlTest/CharControlTest.uproject” -cook -stage -archive -archivedirectory=C:/Users/Vaulken/Desktop -package -clientconfig=Development -ue4exe=UE4Editor-Cmd.exe -clean -pak -prereqs -nodebuginfo -targetplatform=Win64 -build -CrashReporter -utf8output
UATHelper: Packaging (Windows (64-bit)): Automation.Process: Setting up command environment.
UATHelper: Packaging (Windows (64-bit)): WindowsPlatform.get_Compiler: WARNING: Visual C++ 2015 toolchain does not appear to be correctly installed. Please verify that “Common Tools for Visual C++ 2015” was selected when installing Visual Studio 2015.
UATHelper: Packaging (Windows (64-bit)): BuildCookRun.SetupParams: Setting up ProjectParams for C:\Users\Vaulken\Documents\Unreal Projects\CharControlTest\CharControlTest.uproject
UATHelper: Packaging (Windows (64-bit)): Project.Build: ********** BUILD COMMAND STARTED **********
UATHelper: Packaging (Windows (64-bit)): CommandUtils.Run: Run: C:\Program Files (x86)\Epic Games\4.13\Engine\Binaries\DotNET\UnrealBuildTool.exe CharControlTest Win64 Development -Project=“C:\Users\Vaulken\Documents\Unreal Projects\CharControlTest\CharControlTest.uproject” -clean “C:\Users\Vaulk
UATHelper: Packaging (Windows (64-bit)): en\Documents\Unreal Projects\CharControlTest\CharControlTest.uproject” -remoteini=“C:\Users\Vaulken\Documents\Unreal Projects\CharControlTest” -nobuilduht -NoHotReload
UATHelper: Packaging (Windows (64-bit)): UnrealBuildTool: Performing full C++ include scan (building a new target)
UATHelper: Packaging (Windows (64-bit)): UnrealBuildTool: Visual C++ 2015 toolchain does not appear to be correctly installed. Please verify that “Common Tools for Visual C++ 2015” was selected when installing Visual Studio 2015.
UATHelper: Packaging (Windows (64-bit)): CommandUtils.Run: Run: Took 2.763158s to run UnrealBuildTool.exe, ExitCode=0
UATHelper: Packaging (Windows (64-bit)): CommandUtils.Run: Run: C:\Program Files (x86)\Epic Games\4.13\Engine\Binaries\DotNET\UnrealBuildTool.exe CharControlTest Win64 Development -Project=“C:\Users\Vaulken\Documents\Unreal Projects\CharControlTest\CharControlTest.uproject” “C:\Users\Vaulken\Doc
UATHelper: Packaging (Windows (64-bit)): uments\Unreal Projects\CharControlTest\CharControlTest.uproject” -remoteini=“C:\Users\Vaulken\Documents\Unreal Projects\CharControlTest” -noxge -generatemanifest -NoHotReload -ignorejunk
UATHelper: Packaging (Windows (64-bit)): UnrealBuildTool: Visual C++ 2015 toolchain does not appear to be correctly installed. Please verify that “Common Tools for Visual C++ 2015” was selected when installing Visual Studio 2015.
UATHelper: Packaging (Windows (64-bit)): CommandUtils.Run: Run: Took 2.7181555s to run UnrealBuildTool.exe, ExitCode=0
UATHelper: Packaging (Windows (64-bit)): CommandUtils.Run: Run: C:\Program Files (x86)\Epic Games\4.13\Engine\Binaries\DotNET\UnrealBuildTool.exe CharControlTest Win64 Development -Project=“C:\Users\Vaulken\Documents\Unreal Projects\CharControlTest\CharControlTest.uproject” “C:\Users\Vaulken\Doc
UATHelper: Packaging (Windows (64-bit)): uments\Unreal Projects\CharControlTest\CharControlTest.uproject” -remoteini=“C:\Users\Vaulken\Documents\Unreal Projects\CharControlTest” -noxge -NoHotReload -ignorejunk
UATHelper: Packaging (Windows (64-bit)): UnrealBuildTool: Creating makefile for CharControlTest (no existing makefile)
UATHelper: Packaging (Windows (64-bit)): UnrealBuildTool: Performing full C++ include scan (no include cache file)
UATHelper: Packaging (Windows (64-bit)): UnrealBuildTool: Visual C++ 2015 toolchain does not appear to be correctly installed. Please verify that “Common Tools for Visual C++ 2015” was selected when installing Visual Studio 2015.
UATHelper: Packaging (Windows (64-bit)): UnrealBuildTool: ERROR: Failed to find cl.exe in the default toolchain directory C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\Tools…/…/VC/bin/x86_amd64\cl.exe. Please verify that “Common Tools for Visual C++ 2015” was selected when instal
UATHelper: Packaging (Windows (64-bit)): ling Visual Studio 2015.
UATHelper: Packaging (Windows (64-bit)): CommandUtils.Run: Run: Took 2.7031546s to run UnrealBuildTool.exe, ExitCode=5
UATHelper: Packaging (Windows (64-bit)): Program.Main: ERROR: AutomationTool terminated with exception: AutomationTool.CommandUtils+CommandFailedException: Command failed (Result:5): C:\Program Files (x86)\Epic Games\4.13\Engine\Binaries\DotNET\UnrealBuildTool.exe CharControlTest Win64 Developmen
UATHelper: Packaging (Windows (64-bit)): t -Project=“C:\Users\Vaulken\Documents\Unreal Projects\CharControlTest\CharControlTest.uproject” “C:\Users\Vaulken\Documents\Unreal Projects\CharControlTest\CharControlTest.uproject” -remoteini=“C:\Users\Vaulken\Documents\Unreal Projects\CharControlTest” -noxge -NoHotReload -ignorejunk. See logfile for details: ‘Unr
ealBuildTool-2017.09.01-18.11.27.txt’
UATHelper: Packaging (Windows (64-bit)): at AutomationTool.CommandUtils.RunAndLog(String App, String CommandLine, String Logfile, Int32 MaxSuccessCode, String Input, ERunOptions Options, Dictionary2 EnvVars, SpewFilterCallbackType SpewFilterCallback) UATHelper: Packaging (Windows (64-bit)): at AutomationTool.CommandUtils.RunAndLog(CommandEnvironment Env, String App, String CommandLine, String LogName, Int32 MaxSuccessCode, String Input, ERunOptions Options, Dictionary2 EnvVars, SpewFilterCallbackType SpewFilterCallback)
UATHelper: Packaging (Windows (64-bit)): at AutomationTool.CommandUtils.RunUBT(CommandEnvironment Env, String UBTExecutable, String CommandLine, String LogName, Dictionary2 EnvVars) UATHelper: Packaging (Windows (64-bit)): at AutomationTool.CommandUtils.RunUBT(CommandEnvironment Env, String UBTExecutable, FileReference Project, String Target, String Platform, String Config, String AdditionalArgs, String LogName, Dictionary2 EnvVars)
UATHelper: Packaging (Windows (64-bit)): at AutomationTool.UE4Build.BuildWithUBT(String TargetName, UnrealTargetPlatform TargetPlatform, String Config, FileReference UprojectPath, Boolean ForceMonolithic, Boolean ForceNonUnity, Boolean ForceDebugInfo, Boolean ForceFlushMac, Boolean DisableXGE, String InAddArgs, Boolean ForceUnity, Dictionary2 EnvVars) UATHelper: Packaging (Windows (64-bit)): at AutomationTool.UE4Build.Build(BuildAgenda Agenda, Nullable1 InDeleteBuildProducts, Boolean InUpdateVersionFiles, Boolean InForceNoXGE, Boolean InUseParallelExecutor, Boolean InForceNonUnity, Boolean InForceUnity, Boolean InShowProgress, Dictionary2 PlatformEnvVars, Nullable1 InChangelistNumberOverride, Dictio
nary2 InTargetToManifest) UATHelper: Packaging (Windows (64-bit)): at Project.Build(BuildCommand Command, ProjectParams Params, Int32 WorkingCL, ProjectBuildTargets TargetMask) UATHelper: Packaging (Windows (64-bit)): at BuildCookRun.DoBuildCookRun(ProjectParams Params) UATHelper: Packaging (Windows (64-bit)): at AutomationTool.BuildCommand.Execute() UATHelper: Packaging (Windows (64-bit)): at AutomationTool.Automation.Execute(List1 CommandsToExecute, CaselessDictionary1 Commands) UATHelper: Packaging (Windows (64-bit)): at AutomationTool.Automation.Process(String[] Arguments) UATHelper: Packaging (Windows (64-bit)): at AutomationTool.Program.MainProc(Object Param) UATHelper: Packaging (Windows (64-bit)): at AutomationTool.InternalUtils.RunSingleInstance(Func2 Main, Object Param)
UATHelper: Packaging (Windows (64-bit)): at AutomationTool.Program.Main()
UATHelper: Packaging (Windows (64-bit)): Program.Main: AutomationTool exiting with ExitCode=5 (5)
UATHelper: Packaging (Windows (64-bit)): BUILD FAILED
PackagingResults:Error: Error Unknown Error

Did you try installing Visual Studio 2015 since you are using 4.13?

I updated to 4.17 and have new errors

  • UATHelper: Packaging (Windows
    (32-bit)): UnrealBuildTool: ERROR: No
    32-bit compiler toolchain found in
    C:\Program Files (x86)\Microsoft
    Visual Studio 14.0\VC\bin\cl.exe

  • UATHelper: Packaging (Windows
    (32-bit)): Program.Main: ERROR:
    AutomationTool terminated with
    exception:
    AutomationTool.CommandUtils+CommandFailedException:
    Command failed (Result:5): C:\Program
    Files (x86)\Epic
    Games\UE_4.17\Engine\Binaries\DotNET\UnrealBuildTool.exe
    CharControlTest Win32 Development
    -Project=“C:\Users\Vaulken\Documents\Unreal
    Projects\CharC ontrolTest
    4.17\CharControlTest.uproject” -clean “C:\Users\Vaulken\Documents\Unreal
    Projects\CharControlTest
    4.17\CharControlTest.uproject” -NoUBTMakefiles -remoteini=“C:\Users\Vaulken\Documents\Unreal
    Projects\CharControlTest 4.17”
    -skipdeploy -nobuilduht -NoHotReload. See logfile for details:
    ‘UnrealBuildTool-2017.09.01-20.26.37.txt’

Here’s the full log:

UATHelper: Packaging (Windows (32-bit)): Running AutomationTool…
UATHelper: Packaging (Windows (32-bit)): Automation.ParseCommandLine: Parsing command line: -ScriptsForProject=“C:/Users/Vaulken/Documents/Unreal Projects/CharControlTest 4.17/CharControlTest.uproject” BuildCookRun -nocompile -nocompileeditor -installed -nop4 -project=“C:/Users/Vaulken/Documents/Unreal Projects/CharControlTest 4.17/CharControlTest.uproject”
-cook -stage -archive -archivedirectory=C:/Users/Vaulken/Desktop -package -clientconfig=Development -ue4exe=UE4Editor-Cmd.exe -clean -pak -prereqs -nodebuginfo -targetplatform=Win32 -build -utf8output
UATHelper: Packaging (Windows (32-bit)): BuildCookRun.SetupParams: Setting up ProjectParams for C:\Users\Vaulken\Documents\Unreal Projects\CharControlTest 4.17\CharControlTest.uproject
UATHelper: Packaging (Windows (32-bit)): Project.Build: ********** BUILD COMMAND STARTED **********
UATHelper: Packaging (Windows (32-bit)): CommandUtils.Run: Run: C:\Program Files (x86)\Epic Games\UE_4.17\Engine\Binaries\DotNET\UnrealBuildTool.exe CharControlTest Win32 Development -Project=“C:\Users\Vaulken\Documents\Unreal Projects\CharControlTest 4.17\CharControlTest.uproject” -clean “C:\Users\Vaulken\Documents\Unreal Projects\CharControlTest 4.17\CharC
ontrolTest.uproject” -NoUBTMakefiles -remoteini=“C:\Users\Vaulken\Documents\Unreal Projects\CharControlTest 4.17” -skipdeploy -nobuilduht -NoHotReload
UATHelper: Packaging (Windows (32-bit)): UnrealBuildTool: ERROR: No 32-bit compiler toolchain found in C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\cl.exe
UATHelper: Packaging (Windows (32-bit)): CommandUtils.Run: Run: Took 1.1150638s to run UnrealBuildTool.exe, ExitCode=5
UATHelper: Packaging (Windows (32-bit)): Program.Main: ERROR: AutomationTool terminated with exception: AutomationTool.CommandUtils+CommandFailedException: Command failed (Result:5): C:\Program Files (x86)\Epic Games\UE_4.17\Engine\Binaries\DotNET\UnrealBuildTool.exe CharControlTest Win32 Development -Project=“C:\Users\Vaulken\Documents\Unreal Projects\CharC
ontrolTest 4.17\CharControlTest.uproject” -clean “C:\Users\Vaulken\Documents\Unreal Projects\CharControlTest 4.17\CharControlTest.uproject” -NoUBTMakefiles -remoteini=“C:\Users\Vaulken\Documents\Unreal Projects\CharControlTest 4.17” -skipdeploy -nobuilduht -NoHotReload. See logfile for details: ‘UnrealBuildTool-2017.09.01-20.26.37.txt’
UATHelper: Packaging (Windows (32-bit)): at AutomationTool.CommandUtils.RunAndLog(String App, String CommandLine, String Logfile, Int32 MaxSuccessCode, String Input, ERunOptions Options, Dictionary2 EnvVars, SpewFilterCallbackType SpewFilterCallback) UATHelper: Packaging (Windows (32-bit)): at AutomationTool.CommandUtils.RunAndLog(CommandEnvironment Env, String App, String CommandLine, String LogName, Int32 MaxSuccessCode, String Input, ERunOptions Options, Dictionary2 EnvVars, SpewFilterCallbackType SpewFilterCallback)
UATHelper: Packaging (Windows (32-bit)): at AutomationTool.CommandUtils.RunUBT(CommandEnvironment Env, String UBTExecutable, String CommandLine, String LogName, Dictionary2 EnvVars) UATHelper: Packaging (Windows (32-bit)): at AutomationTool.CommandUtils.RunUBT(CommandEnvironment Env, String UBTExecutable, FileReference Project, String Target, String Platform, String Config, String AdditionalArgs, String LogName, Dictionary2 EnvVars)
UATHelper: Packaging (Windows (32-bit)): at AutomationTool.UE4Build.CleanWithUBT(String TargetName, UnrealTargetPlatform Platform, String Config, FileReference UprojectPath, Boolean ForceMonolithic, Boolean ForceNonUnity, Boolean ForceDebugInfo, String InAddArgs, Boolean ForceUnity, Dictionary2 EnvVars) UATHelper: Packaging (Windows (32-bit)): at AutomationTool.UE4Build.Build(BuildAgenda Agenda, Nullable1 InDeleteBuildProducts, Boolean InUpdateVersionFiles, Boolean InForceNoXGE, Boolean InUseParallelExecutor, Boolean InForceNonUnity, Boolean InForceUnity, Boolean InShowProgress, Dictionary2 PlatformEnvVars, Nullable1 InChangelistNumberOverride, Dictio
nary2 InTargetToManifest) UATHelper: Packaging (Windows (32-bit)): at Project.Build(BuildCommand Command, ProjectParams Params, Int32 WorkingCL, ProjectBuildTargets TargetMask) UATHelper: Packaging (Windows (32-bit)): at BuildCookRun.DoBuildCookRun(ProjectParams Params) UATHelper: Packaging (Windows (32-bit)): at BuildCookRun.ExecuteBuild() UATHelper: Packaging (Windows (32-bit)): at AutomationTool.BuildCommand.Execute() UATHelper: Packaging (Windows (32-bit)): at AutomationTool.Automation.Execute(List1 CommandsToExecute, Dictionary2 Commands) UATHelper: Packaging (Windows (32-bit)): at AutomationTool.Automation.Process(String[] Arguments) UATHelper: Packaging (Windows (32-bit)): at AutomationTool.Program.MainProc(Object Param) UATHelper: Packaging (Windows (32-bit)): at AutomationTool.InternalUtils.RunSingleInstance(Func2 Main, Object Param)
UATHelper: Packaging (Windows (32-bit)): at AutomationTool.Program.Main()
UATHelper: Packaging (Windows (32-bit)): Program.Main: AutomationTool exiting with ExitCode=5 (5)
UATHelper: Packaging (Windows (32-bit)): BUILD FAILED
PackagingResults: Error: Unknown Error

Please use the “attach” button for your logs. Also, if you reply to x, select answer to x when commenting and if you add more information to your problem, please comment or edit your entry post <3.

It greyed out the comment box and only let me post an answer, how do I get log other than copy pasting?