Package failure after upgrade from 12.2 to 12.5 (LNK1181)

I just upgraded from 4.12.2 to 4.12.5, and now I get this error when packaging. No other changes made.

“Packaging (Windows (64-bit)): UnrealBuildTool: LINK : fatal error LNK1181: cannot open input file ‘tbbmalloc.lib’”

Full build log:

MainFrameActions: Packaging (Windows (64-bit)): Running AutomationTool…
MainFrameActions: Packaging (Windows (64-bit)): Automation.ParseCommandLine: Parsing command line: -ScriptsForProject=G:/Perforce/UE4_depot/dev/BlindHotel/BlindHotel_412/BlindHotel.uproject BuildCookRun -nocompile -nocompileeditor -installed -nop4 -project=G:/Perforce/UE4_depot/dev/BlindHotel/BlindHotel
MainFrameActions: Packaging (Windows (64-bit)): _412/BlindHotel.uproject -cook -stage -archive -archivedirectory=C:/Users/JorgeJ/Desktop/LocalBuild -package -clientconfig=Shipping -ue4exe=UE4Editor-Cmd.exe -clean -pak -prereqs -nodebuginfo -targetplatform=Win64 -build -CrashReporter -utf8output
MainFrameActions: Packaging (Windows (64-bit)): Automation.Process: Setting up command environment.
MainFrameActions: Packaging (Windows (64-bit)): BuildCookRun.SetupParams: Setting up ProjectParams for G:\Perforce\UE4_depot\dev\BlindHotel\BlindHotel_412\BlindHotel.uproject
MainFrameActions: Packaging (Windows (64-bit)): Project.Build: ********** BUILD COMMAND STARTED **********
MainFrameActions: Packaging (Windows (64-bit)): CommandUtils.Run: Run: G:\UE4\Epic Games\4.12\Engine\Binaries\DotNET\UnrealBuildTool.exe BlindHotel Win64 Shipping -Project=G:\Perforce\UE4_depot\dev\BlindHotel\BlindHotel_412\BlindHotel.uproject -clean G:\Perforce\UE4_depot\dev\BlindHotel\BlindHotel_412\B
MainFrameActions: Packaging (Windows (64-bit)): lindHotel.uproject -remoteini=“G:\Perforce\UE4_depot\dev\BlindHotel\BlindHotel_412” -nobuilduht -NoHotReloadFromIDE
MainFrameActions: Packaging (Windows (64-bit)): CommandUtils.Run: Run: Took 1.8301047s to run UnrealBuildTool.exe, ExitCode=0
MainFrameActions: Packaging (Windows (64-bit)): CommandUtils.Run: Run: G:\UE4\Epic Games\4.12\Engine\Binaries\DotNET\UnrealBuildTool.exe BlindHotel Win64 Shipping -Project=G:\Perforce\UE4_depot\dev\BlindHotel\BlindHotel_412\BlindHotel.uproject G:\Perforce\UE4_depot\dev\BlindHotel\BlindHotel_412\BlindHo
MainFrameActions: Packaging (Windows (64-bit)): tel.uproject -remoteini=“G:\Perforce\UE4_depot\dev\BlindHotel\BlindHotel_412” -noxge -generatemanifest -NoHotReloadFromIDE -ignorejunk
MainFrameActions: Packaging (Windows (64-bit)): CommandUtils.Run: Run: Took 1.1840677s to run UnrealBuildTool.exe, ExitCode=0
MainFrameActions: Packaging (Windows (64-bit)): CommandUtils.Run: Run: G:\UE4\Epic Games\4.12\Engine\Binaries\DotNET\UnrealBuildTool.exe BlindHotel Win64 Shipping -Project=G:\Perforce\UE4_depot\dev\BlindHotel\BlindHotel_412\BlindHotel.uproject G:\Perforce\UE4_depot\dev\BlindHotel\BlindHotel_412\BlindHo
MainFrameActions: Packaging (Windows (64-bit)): tel.uproject -remoteini=“G:\Perforce\UE4_depot\dev\BlindHotel\BlindHotel_412” -noxge -NoHotReloadFromIDE -ignorejunk
MainFrameActions: Packaging (Windows (64-bit)): UnrealBuildTool: Creating makefile for BlindHotel (no existing makefile)
MainFrameActions: Packaging (Windows (64-bit)): UnrealBuildTool: Performing full C++ include scan (no include cache file)
MainFrameActions: Packaging (Windows (64-bit)): UnrealBuildTool: Performing 3 actions (4 in parallel)
MainFrameActions: Packaging (Windows (64-bit)): UnrealBuildTool: PCH.UELinkerFixupsName.h.cpp
MainFrameActions: Packaging (Windows (64-bit)): UnrealBuildTool: UELinkerFixups.cpp
MainFrameActions: Packaging (Windows (64-bit)): UnrealBuildTool: [3/3] Link BlindHotel-Win64-Shipping.exe
MainFrameActions: Packaging (Windows (64-bit)): UnrealBuildTool: LINK : fatal error LNK1181: cannot open input file ‘tbbmalloc.lib’
MainFrameActions: Packaging (Windows (64-bit)): UnrealBuildTool: ERROR: UBT ERROR: Failed to produce item: G:\Perforce\UE4_depot\dev\BlindHotel\BlindHotel_412\Binaries\Win64\BlindHotel-Win64-Shipping.exe
MainFrameActions: Packaging (Windows (64-bit)): UnrealBuildTool: Total build time: 5.51 seconds
MainFrameActions: Packaging (Windows (64-bit)): CommandUtils.Run: Run: Took 5.6603237s to run UnrealBuildTool.exe, ExitCode=5
MainFrameActions: Packaging (Windows (64-bit)): Program.Main: ERROR: AutomationTool terminated with exception: AutomationTool.AutomationException: Command failed (Result:5): G:\UE4\Epic Games\4.12\Engine\Binaries\DotNET\UnrealBuildTool.exe BlindHotel Win64 Shipping -Project=G:\Perforce\UE4_depot\dev\Bli
MainFrameActions: Packaging (Windows (64-bit)): ndHotel\BlindHotel_412\BlindHotel.uproject G:\Perforce\UE4_depot\dev\BlindHotel\BlindHotel_412\BlindHotel.uproject -remoteini=“G:\Perforce\UE4_depot\dev\BlindHotel\BlindHotel_412” -noxge -NoHotReloadFromIDE -ignorejunk. See logfile for details: ‘UnrealBuildTool-2016.07.26-11.22.11.txt’
MainFrameActions: Packaging (Windows (64-bit)): at AutomationTool.CommandUtils.RunAndLog(String App, String CommandLine, String Logfile, Int32 MaxSuccessCode, String Input, ERunOptions Options, Dictionary2 EnvVars) MainFrameActions: Packaging (Windows (64-bit)): at AutomationTool.CommandUtils.RunUBT(CommandEnvironment Env, String UBTExecutable, String CommandLine, String LogName, Dictionary2 EnvVars)
MainFrameActions: 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 EnvV ars) MainFrameActions: 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,
Dictionary2 InTargetToManifest) MainFrameActions: Packaging (Windows (64-bit)): at Project.Build(BuildCommand Command, ProjectParams Params, Int32 WorkingCL, ProjectBuildTargets TargetMask) MainFrameActions: Packaging (Windows (64-bit)): at BuildCookRun.DoBuildCookRun(ProjectParams Params) MainFrameActions: Packaging (Windows (64-bit)): at AutomationTool.BuildCommand.Execute() MainFrameActions: Packaging (Windows (64-bit)): at AutomationTool.Automation.Execute(List1 CommandsToExecute, CaselessDictionary1 Commands) MainFrameActions: Packaging (Windows (64-bit)): at AutomationTool.Automation.Process(String[] CommandLine) MainFrameActions: Packaging (Windows (64-bit)): at AutomationTool.Program.MainProc(Object Param) MainFrameActions: Packaging (Windows (64-bit)): at AutomationTool.InternalUtils.RunSingleInstance(Func2 Main, Object Param)
MainFrameActions: Packaging (Windows (64-bit)): at AutomationTool.Program.Main()
MainFrameActions: Packaging (Windows (64-bit)): Program.Main: AutomationTool exiting with ExitCode=5 (5)
MainFrameActions: Packaging (Windows (64-bit)): Domain_ProcessExit
MainFrameActions: Packaging (Windows (64-bit)): copying UAT log files…
MainFrameActions: Packaging (Windows (64-bit)): BUILD FAILED
PackagingResults:Error: Error Unknown Error

Hello,

  • Are you able to package a clean, blank project successfully?
  • Also, in the meantime, below are links to posts that contain a similar error to yours that you can take a look at to see if any of the solutions help resolve your errors:

Did you try changing it to vc14 to see if that helps? It could be referencing an old file path.

Yes, I am, works fine.

Update: I looked in the IntellBB.build and see this:

			else if (WindowsPlatform.Compiler == WindowsCompiler.VisualStudio2013)
			{
				PublicLibraryPaths.Add(IntelTBBPath + "lib/Win64/vc12");
			}

However, there is no vc12 folder, only a vc14 folder.

That is correct, I didn’t realize that that was the case. If you get VS 2015 installed and are still experiencing packaging issues, feel free to provide the updated output log and I can take a look at the new errors.

I duped vc14 and renamed to vc12, no change. What is intel TBB? This is a blueprint only project and I have no idea what it is for.

OK, I added inteltbb 4.0 from 4.11, and made a copy of vc14 named vc12, now I get a different error:

MainFrameActions: Packaging (Windows (64-bit)): UnrealBuildTool: Performing 3 actions (4 in parallel)
MainFrameActions: Packaging (Windows (64-bit)): UnrealBuildTool: PCH.UELinkerFixupsName.h.cpp
MainFrameActions: Packaging (Windows (64-bit)): UnrealBuildTool: UELinkerFixups.cpp
MainFrameActions: Packaging (Windows (64-bit)): UnrealBuildTool: [3/3] Link BlindHotel-Win64-Shipping.exe
MainFrameActions: Packaging (Windows (64-bit)): UnrealBuildTool: LINK : fatal error LNK1181: cannot open input file ‘sicudt.lib’

oh, I see that 4.12 now requires VS15 not thirteen? Argh. That is my problem.

Hey I have been having a similar issue to Serellan, the log is here.
link text
I have checked visual studio 2015 is installed and done a complete reinstall just in case there was an issue there. It is also a blueprint only project.

Hey Debono,

It looks like you’re getting a different error: ERROR: AutomationTool terminated with exception: System.ArgumentException: An item with the same key has already been added.

What I’d recommend is running a google search for that error message and taking a look at the posts that pop up. Then you can search through those answers and see if one of those resolves your issue. If it does not, please feel free to create a new post for this issue in the Packaging & Deployment Section.

Have a great day