Download

Boost Library not packaging on 4.10 (but works fine with older versions)

Hello, guys. I’ve been working on a UE4 project that uses Boost Library and it was working fine until 4.10 update.

I didn’t change anything in the project, but when I try to package it, I get this (I’m pasting only the error related lines):


MainFrameActions: Packaging (Windows (64-bit)): UnrealBuildTool: D:\UE4_Projects\Archimap_C 4.10\ThirdParty\boost\include\boost/core/demangle.hpp(106): error C4577: 'noexcept' used with no exception handling mode specified; termination on exception is not guaranteed. Specify /EHscMainFrameActions: Packaging (Windows (64-bit)): UnrealBuildTool: D:\UE4_Projects\Archimap_C 4.10\ThirdParty\boost\include\boost/core/demangle.hpp(111): error C4577: 'noexcept' used with no exception handling mode specified; termination on exception is not guaranteed. Specify /EHsc
MainFrameActions: Packaging (Windows (64-bit)): UnrealBuildTool: D:\UE4_Projects\Archimap_C 4.10\ThirdParty\boost\include\boost/smart_ptr/shared_ptr.hpp(632): error C4577: 'noexcept' used with no exception handling mode specified; termination on exception is not guaranteed. Specify /EHsc
MainFrameActions: Packaging (Windows (64-bit)): UnrealBuildTool: D:\UE4_Projects\Archimap_C 4.10\ThirdParty\boost\include\boost/smart_ptr/shared_ptr.hpp(347): error C4577: 'noexcept' used with no exception handling mode specified; termination on exception is not guaranteed. Specify /EHsc
MainFrameActions: Packaging (Windows (64-bit)): UnrealBuildTool: D:\UE4_Projects\Archimap_C 4.10\ThirdParty\boost\include\boost/smart_ptr/shared_ptr.hpp(405): error C4577: 'noexcept' used with no exception handling mode specified; termination on exception is not guaranteed. Specify /EHsc
MainFrameActions: Packaging (Windows (64-bit)): UnrealBuildTool: D:\UE4_Projects\Archimap_C 4.10\ThirdParty\boost\include\boost/smart_ptr/shared_ptr.hpp(724): error C4577: 'noexcept' used with no exception handling mode specified; termination on exception is not guaranteed. Specify /EHsc
MainFrameActions: Packaging (Windows (64-bit)): UnrealBuildTool: D:\UE4_Projects\Archimap_C 4.10\ThirdParty\boost\include\boost/smart_ptr/shared_ptr.hpp(608): error C4577: 'noexcept' used with no exception handling mode specified; termination on exception is not guaranteed. Specify /EHsc
MainFrameActions: Packaging (Windows (64-bit)): UnrealBuildTool: D:\UE4_Projects\Archimap_C 4.10\ThirdParty\boost\include\boost/smart_ptr/make_shared_object.hpp(103): error C4577: 'noexcept' used with no exception handling mode specified; termination on exception is not guaranteed. Specify /EHsc
MainFrameActions: Packaging (Windows (64-bit)): UnrealBuildTool: D:\UE4_Projects\Archimap_C 4.10\ThirdParty\boost\include\boost/smart_ptr/make_shared_object.hpp(98): error C4577: 'noexcept' used with no exception handling mode specified; termination on exception is not guaranteed. Specify /EHsc
MainFrameActions: Packaging (Windows (64-bit)): UnrealBuildTool: D:\UE4_Projects\Archimap_C 4.10\ThirdParty\boost\include\boost/smart_ptr/shared_ptr.hpp(745): error C4577: 'noexcept' used with no exception handling mode specified; termination on exception is not guaranteed. Specify /EHsc
MainFrameActions: Packaging (Windows (64-bit)): UnrealBuildTool: D:\UE4_Projects\Archimap_C 4.10\ThirdParty\boost\include\boost/smart_ptr/shared_ptr.hpp(447): error C4577: 'noexcept' used with no exception handling mode specified; termination on exception is not guaranteed. Specify /EHsc
MainFrameActions: Packaging (Windows (64-bit)): UnrealBuildTool: D:\UE4_Projects\Archimap_C 4.10\ThirdParty\boost\include\boost/smart_ptr/detail/sp_forward.hpp(39): error C4577: 'noexcept' used with no exception handling mode specified; termination on exception is not guaranteed. Specify /EHsc
MainFrameActions: Packaging (Windows (64-bit)): UnrealBuildTool: D:\UE4_Projects\Archimap_C 4.10\ThirdParty\boost\include\boost/smart_ptr/make_shared_object.hpp(71): error C4577: 'noexcept' used with no exception handling mode specified; termination on exception is not guaranteed. Specify /EHsc
MainFrameActions: Packaging (Windows (64-bit)): UnrealBuildTool: D:\UE4_Projects\Archimap_C 4.10\ThirdParty\boost\include\boost/core/demangle.hpp(106): error C4577: 'noexcept' used with no exception handling mode specified; termination on exception is not guaranteed. Specify /EHsc
MainFrameActions: Packaging (Windows (64-bit)): UnrealBuildTool: D:\UE4_Projects\Archimap_C 4.10\ThirdParty\boost\include\boost/core/demangle.hpp(111): error C4577: 'noexcept' used with no exception handling mode specified; termination on exception is not guaranteed. Specify /EHsc
MainFrameActions: Packaging (Windows (64-bit)): UnrealBuildTool: D:\UE4_Projects\Archimap_C 4.10\ThirdParty\boost\include\boost/smart_ptr/shared_ptr.hpp(632): error C4577: 'noexcept' used with no exception handling mode specified; termination on exception is not guaranteed. Specify /EHsc
MainFrameActions: Packaging (Windows (64-bit)): UnrealBuildTool: D:\UE4_Projects\Archimap_C 4.10\ThirdParty\boost\include\boost/smart_ptr/shared_ptr.hpp(347): error C4577: 'noexcept' used with no exception handling mode specified; termination on exception is not guaranteed. Specify /EHsc
MainFrameActions: Packaging (Windows (64-bit)): UnrealBuildTool: D:\UE4_Projects\Archimap_C 4.10\ThirdParty\boost\include\boost/smart_ptr/shared_ptr.hpp(405): error C4577: 'noexcept' used with no exception handling mode specified; termination on exception is not guaranteed. Specify /EHsc
MainFrameActions: Packaging (Windows (64-bit)): UnrealBuildTool: D:\UE4_Projects\Archimap_C 4.10\ThirdParty\boost\include\boost/smart_ptr/shared_ptr.hpp(724): error C4577: 'noexcept' used with no exception handling mode specified; termination on exception is not guaranteed. Specify /EHsc
MainFrameActions: Packaging (Windows (64-bit)): UnrealBuildTool: D:\UE4_Projects\Archimap_C 4.10\ThirdParty\boost\include\boost/smart_ptr/shared_ptr.hpp(608): error C4577: 'noexcept' used with no exception handling mode specified; termination on exception is not guaranteed. Specify /EHsc
MainFrameActions: Packaging (Windows (64-bit)): UnrealBuildTool: D:\UE4_Projects\Archimap_C 4.10\ThirdParty\boost\include\boost/smart_ptr/make_shared_object.hpp(103): error C4577: 'noexcept' used with no exception handling mode specified; termination on exception is not guaranteed. Specify /EHsc
MainFrameActions: Packaging (Windows (64-bit)): UnrealBuildTool: D:\UE4_Projects\Archimap_C 4.10\ThirdParty\boost\include\boost/smart_ptr/make_shared_object.hpp(98): error C4577: 'noexcept' used with no exception handling mode specified; termination on exception is not guaranteed. Specify /EHsc
MainFrameActions: Packaging (Windows (64-bit)): UnrealBuildTool: D:\UE4_Projects\Archimap_C 4.10\ThirdParty\boost\include\boost/smart_ptr/shared_ptr.hpp(745): error C4577: 'noexcept' used with no exception handling mode specified; termination on exception is not guaranteed. Specify /EHsc
MainFrameActions: Packaging (Windows (64-bit)): UnrealBuildTool: D:\UE4_Projects\Archimap_C 4.10\ThirdParty\boost\include\boost/smart_ptr/shared_ptr.hpp(447): error C4577: 'noexcept' used with no exception handling mode specified; termination on exception is not guaranteed. Specify /EHsc
MainFrameActions: Packaging (Windows (64-bit)): UnrealBuildTool: D:\UE4_Projects\Archimap_C 4.10\ThirdParty\boost\include\boost/smart_ptr/detail/sp_forward.hpp(39): error C4577: 'noexcept' used with no exception handling mode specified; termination on exception is not guaranteed. Specify /EHsc
MainFrameActions: Packaging (Windows (64-bit)): UnrealBuildTool: D:\UE4_Projects\Archimap_C 4.10\ThirdParty\boost\include\boost/smart_ptr/make_shared_object.hpp(71): error C4577: 'noexcept' used with no exception handling mode specified; termination on exception is not guaranteed. Specify /EHsc
MainFrameActions: Packaging (Windows (64-bit)): UnrealBuildTool: D:\UE4_Projects\Archimap_C 4.10\ThirdParty\boost\include\boost/core/demangle.hpp(106): error C4577: 'noexcept' used with no exception handling mode specified; termination on exception is not guaranteed. Specify /EHsc
MainFrameActions: Packaging (Windows (64-bit)): UnrealBuildTool: D:\UE4_Projects\Archimap_C 4.10\ThirdParty\boost\include\boost/core/demangle.hpp(111): error C4577: 'noexcept' used with no exception handling mode specified; termination on exception is not guaranteed. Specify /EHsc
MainFrameActions: Packaging (Windows (64-bit)): UnrealBuildTool: D:\UE4_Projects\Archimap_C 4.10\ThirdParty\boost\include\boost/smart_ptr/shared_ptr.hpp(347): error C4577: 'noexcept' used with no exception handling mode specified; termination on exception is not guaranteed. Specify /EHsc
MainFrameActions: Packaging (Windows (64-bit)): UnrealBuildTool: D:\UE4_Projects\Archimap_C 4.10\ThirdParty\boost\include\boost/smart_ptr/shared_ptr.hpp(405): error C4577: 'noexcept' used with no exception handling mode specified; termination on exception is not guaranteed. Specify /EHsc
MainFrameActions: Packaging (Windows (64-bit)): UnrealBuildTool: D:\UE4_Projects\Archimap_C 4.10\ThirdParty\boost\include\boost/smart_ptr/make_shared_object.hpp(103): error C4577: 'noexcept' used with no exception handling mode specified; termination on exception is not guaranteed. Specify /EHsc
MainFrameActions: Packaging (Windows (64-bit)): UnrealBuildTool: D:\UE4_Projects\Archimap_C 4.10\ThirdParty\boost\include\boost/smart_ptr/make_shared_object.hpp(98): error C4577: 'noexcept' used with no exception handling mode specified; termination on exception is not guaranteed. Specify /EHsc
MainFrameActions: Packaging (Windows (64-bit)): UnrealBuildTool: D:\UE4_Projects\Archimap_C 4.10\ThirdParty\boost\include\boost/smart_ptr/shared_ptr.hpp(745): error C4577: 'noexcept' used with no exception handling mode specified; termination on exception is not guaranteed. Specify /EHsc
MainFrameActions: Packaging (Windows (64-bit)): UnrealBuildTool: D:\UE4_Projects\Archimap_C 4.10\ThirdParty\boost\include\boost/smart_ptr/shared_ptr.hpp(447): error C4577: 'noexcept' used with no exception handling mode specified; termination on exception is not guaranteed. Specify /EHsc
MainFrameActions: Packaging (Windows (64-bit)): UnrealBuildTool: D:\UE4_Projects\Archimap_C 4.10\ThirdParty\boost\include\boost/smart_ptr/detail/sp_forward.hpp(39): error C4577: 'noexcept' used with no exception handling mode specified; termination on exception is not guaranteed. Specify /EHsc
MainFrameActions: Packaging (Windows (64-bit)): UnrealBuildTool: D:\UE4_Projects\Archimap_C 4.10\ThirdParty\boost\include\boost/smart_ptr/make_shared_object.hpp(71): error C4577: 'noexcept' used with no exception handling mode specified; termination on exception is not guaranteed. Specify /EHsc
MainFrameActions: Packaging (Windows (64-bit)): UnrealBuildTool: -------- End Detailed Actions Stats -----------------------------------------------------------
MainFrameActions: Packaging (Windows (64-bit)): UnrealBuildTool: ERROR: UBT ERROR: Failed to produce item: D:\UE4_Projects\Archimap_C 4.10\Binaries\Win64\Archinteriors29.exe
MainFrameActions: Packaging (Windows (64-bit)): UnrealBuildTool: Total build time: 29,66 seconds
MainFrameActions: Packaging (Windows (64-bit)): CommandUtils.Run: Run: Took 29,6901743s to run UnrealBuildTool.exe, ExitCode=5
MainFrameActions: Packaging (Windows (64-bit)): BuildCommand.Execute: ERROR: BUILD FAILED
MainFrameActions: Packaging (Windows (64-bit)): Program.Main: ERROR: AutomationTool terminated with exception:
MainFrameActions: Packaging (Windows (64-bit)): Program.Main: ERROR: Exception in AutomationUtils.Automation: Command failed (Result:5): C:\Program Files\Epic Games\4.10\Engine\Binaries\DotNET\UnrealBuildTool.exe Archinteriors29 Win64 Development  "D:\UE4_Projects\Archimap_C 4.10\Archimap_C.uproject"  -remoteini="D:\UE4_Projects\Archimap_C 4.10" -noxge -rocket -NoHotReloadFromIDE -ignorejunk. See logfile for details: 'UnrealBuildTool-2015.12.28-14.38.54.txt' 
MainFrameActions: Packaging (Windows (64-bit)): Stacktrace:    em AutomationTool.CommandUtils.RunAndLog(String App, String CommandLine, String Logfile, Int32 MaxSuccessCode, String Input, ERunOptions Options, Dictionary`2 EnvVars)
MainFrameActions: Packaging (Windows (64-bit)):    em AutomationTool.CommandUtils.RunUBT(CommandEnvironment Env, String UBTExecutable, String CommandLine, String LogName, Dictionary`2 EnvVars)
MainFrameActions: Packaging (Windows (64-bit)):    em AutomationTool.UE4Build.BuildWithUBT(String ProjectName, String TargetName, UnrealTargetPlatform TargetPlatform, String Config, String UprojectPath, Boolean ForceMonolithic, Boolean ForceNonUnity, Boolean ForceDebugInfo, Boolean ForceFlushMac, Boolean DisableXGE, String 
MainFrameActions: Packaging (Windows (64-bit)): InAddArgs, Boolean ForceUnity, Dictionary`2 EnvVars)
MainFrameActions: Packaging (Windows (64-bit)):    em AutomationTool.UE4Build.Build(BuildAgenda Agenda, Nullable`1 InDeleteBuildProducts, Boolean InUpdateVersionFiles, Boolean InForceNoXGE, Boolean InUseParallelExecutor, Boolean InForceNonUnity, Boolean InForceUnity, Boolean InShowProgress, Dictionary`2 PlatformEnvVars)
MainFrameActions: Packaging (Windows (64-bit)):    em Project.Build(BuildCommand Command, ProjectParams Params, Int32 WorkingCL)
MainFrameActions: Packaging (Windows (64-bit)):    em BuildCookRun.DoBuildCookRun(ProjectParams Params)
MainFrameActions: Packaging (Windows (64-bit)):    em BuildCommand.Execute()
MainFrameActions: Packaging (Windows (64-bit)):    em AutomationTool.Automation.Execute(List`1 CommandsToExecute, CaselessDictionary`1 Commands)
MainFrameActions: Packaging (Windows (64-bit)):    em AutomationTool.Automation.Process(String] CommandLine)
MainFrameActions: Packaging (Windows (64-bit)):    em AutomationTool.Program.MainProc(Object Param)
MainFrameActions: Packaging (Windows (64-bit)):    em AutomationTool.InternalUtils.RunSingleInstance(Action`1 Main, Object Param)
MainFrameActions: Packaging (Windows (64-bit)):    em AutomationTool.Program.Main()
MainFrameActions: Packaging (Windows (64-bit)): ProcessManager.KillAll: Trying to kill 0 spawned processes.
MainFrameActions: Packaging (Windows (64-bit)): Program.Main: AutomationTool exiting with ExitCode=5
MainFrameActions: Packaging (Windows (64-bit)): Domain_ProcessExit
MainFrameActions: Packaging (Windows (64-bit)): copying UAT log files...
MainFrameActions: Packaging (Windows (64-bit)): RunUAT.bat ERROR: AutomationTool was unable to run successfully.
MainFrameActions: Packaging (Windows (64-bit)): BUILD FAILED
PackagingResults:Error: Error Unknown Error

It works fine if I play the game within the editor or as standalone game, though.
Any ideas? I’m currently stuck on 4.9 just because of this.

I’ve found the solution: C4577: 'noexcept' used with no exception handling mode specified; termination on exception is not guaranteed. Specify /EHsc - UE4 AnswerHub

Adding the line:


UEBuildConfiguration.bForceEnableExceptions =true;

to the project’s build.cs file