Build from Source Error MSB3073

When I try to build UE from source (wether it being 4.27 or 5), an error pops up in Visual Studio which prevents the compilation from finishing. The error reads as follows:

|Severity|Code|Description|Project|File|Line|Suppression State|
|---|---|---|---|---|---|---|
|Error|MSB3073|The command ..\..\Build\BatchFiles\Build.bat -Target=UE4Editor Win64 Development -Target=ShaderCompileWorker Win64 Development -Quiet -WaitMutex -FromMsBuild exited with code 6.|UE4|F:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.MakeFile.Targets|44||

I tried the following things so far:

  • Switched from Visual Studio 2017 to 2019 and 2022
  • Altered the PsAllocator.h in line 40 ("include ")
  • Removed and moved the extra quotation mark in the Build Command line after “-Quiet”
  • Removed the “ResonanceAudio” Folder
  • Deleted the “VisualStudioDTE”

Nothing seems to work so far. Has anyone encountered this issue? Thanks in advance.

1 Like

I had a similar problem when rebuilding UE5.0.1.
At that time, the following message was displayed in the output.

4>------ ビルド開始: プロジェクト: UE5, 構成: Development_Editor x64 ------
4>Using bundled DotNet SDK
4>Log file: G:\UnrealEngine\Engine\Programs\UnrealBuildTool\Log.txt
4>Using ‘git status’ to determine working set for adaptive non-unity build (G:\UnrealEngine).
4>Creating makefile for UnrealEditor (UnrealBuildTool assembly is newer)
4>Creating makefile for ShaderCompileWorker (UnrealBuildTool assembly is newer)
4>Building UnrealEditor and ShaderCompileWorker…
4>Using Visual Studio 2019 14.29.30143 toolchain (C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133) and Windows 10.0.18362.0 SDK (C:\Program Files (x86)\Windows Kits\10).
4>Determining max actions to execute in parallel (4 physical cores, 8 logical cores)
4> Executing up to 4 processes, one per physical core
4>Building 11 actions with 4 processes…
4>[1/11] Touch msado15.tlh
4>[1/11]Touch msado15.tlh - Error but no output
4>[1/11]Touch msado15.tlh - 1 G:\UnrealEngine\Engine\Source C:\WINDOWS\system32\cmd.exe /C “copy /b “G:\UnrealEngine\Engine\Plugins\Runtime\Database\ADOSupport\Intermediate\Build\Win64\UnrealEditor\Development\ADOSupport\msado15.tlh”+, “G:\UnrealEngine\Engine\Plugins\Runtime\Database\ADOSupport\Intermediate\Build\Win64\UnrealEditor\Development\ADOSupport\msado15.tlh” 1>nul:”
4>[2/11] GenerateTLH dte80a.cpp
4>[3/11] Touch dte80a.tlh
4>[4/11] Compile Module.VisualStudioSourceCodeAccess.cpp
4>[5/11] Link UnrealEditor-VisualStudioSourceCodeAccess.lib
4> ライブラリ …\Plugins\Developer\VisualStudioSourceCodeAccess\Intermediate\Build\Win64\UnrealEditor\Development\VisualStudioSourceCodeAccess\UnrealEditor-VisualStudioSourceCodeAccess.lib とオブジェクト …\Plugins\Developer\VisualStudioSourceCodeAccess\Intermediate\Build\Win64\UnrealEditor\Development\VisualStudioSourceCodeAccess\UnrealEditor-VisualStudioSourceCodeAccess.exp を作成中
4>[6/11] Link UnrealEditor-VisualStudioSourceCodeAccess.dll
4> ライブラリ …\Plugins\Developer\VisualStudioSourceCodeAccess\Intermediate\Build\Win64\UnrealEditor\Development\VisualStudioSourceCodeAccess\UnrealEditor-VisualStudioSourceCodeAccess.suppressed.lib とオブジェクト …\Plugins\Developer\VisualStudioSourceCodeAccess\Intermediate\Build\Win64\UnrealEditor\Development\VisualStudioSourceCodeAccess\UnrealEditor-VisualStudioSourceCodeAccess.suppressed.exp を作成中
4>C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.MakeFile.Targets(44,5): error MSB3073: コマンド “…..\Build\BatchFiles\Build.bat -Target=“UnrealEditor Win64 Development” -Target=“ShaderCompileWorker Win64 Development -Quiet” -WaitMutex -FromMsBuild” はコード 6 で終了しました。
4>プロジェクト “UE5.vcxproj” のビルドが終了しました – 失敗。

In my case, I got an error in the following two folders, so I deleted it and rebuilt it successfully.

  • Engine\Plugins\Runtime\Database\ADOSupport\Intermediate\Build\Win64\UnrealEditor\Development\ADOSupport
  • Engine\Intermediate\Build\Win64\UnrealEditor\Development\VisualStudioDTE
6 Likes

Thank you. I solved the same problem

thanks

I looked and there wasn’t a VisualStudioDTE folder in my copy.

1 Like

No luck any other idea?
Build started…
1>------ Build started: Project: SurvivalGame, Configuration: Development_Editor x64 ------
1>Running UnrealBuildTool: dotnet “…..\Engine\Binaries\DotNET\UnrealBuildTool\UnrealBuildTool.dll” SurvivalGameEditor Win64 Development -Project=“F:\C++ Unreal\SurvivalGame\SurvivalGame.uproject” -WaitMutex -FromMsBuild
1>Log file: C:\Users\fastf\AppData\Local\UnrealBuildTool\Log.txt
1>Creating makefile for SurvivalGameEditor (no existing makefile)
1>Parsing headers for SurvivalGameEditor
1> Running Internal UnrealHeaderTool “F:\C++ Unreal\SurvivalGame\SurvivalGame.uproject” “F:\C++ Unreal\SurvivalGame\Intermediate\Build\Win64\SurvivalGameEditor\Development\SurvivalGameEditor.uhtmanifest” -WarningsAsErrors -installed
1>F:\C++ Unreal\SurvivalGame\Source\SurvivalGame\Player\GASAttributeSet.h(18): warning : The identifier ‘GENERATED_BODY’ was detected in a block being skipped. Was this intentional?
1>Total of 0 written
1>A:\VS\MSBuild\Microsoft\VC\v170\Microsoft.MakeFile.Targets(44,5): error MSB3073: The command ““A:\HT Game\UE_5.1\Engine\Build\BatchFiles\Build.bat” SurvivalGameEditor Win64 Development -Project=“F:\C++ Unreal\SurvivalGame\SurvivalGame.uproject” -WaitMutex -FromMsBuild” exited with code 6.
1>Done building project “SurvivalGame.vcxproj” – FAILED.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
========== Elapsed 00:02.804 ==========

1 Like

Seems like I have a very similar or even the same problem, chipping in to keep the thread up and to be notified when a solution comes up.

I will notify you when I find a solution elsewhere or by myself.

1 Like

Build started…
1>------ Build started: Project: RetroFPS, Configuration: Development_Editor x64 ------
1>Running UnrealBuildTool: dotnet “…..\Engine\Binaries\DotNET\UnrealBuildTool\UnrealBuildTool.dll” RetroFPSEditor Win64 Development -Project=“C:\Users\xxxx\Documents\UnrealProjects\RetroFPS\RetroFPS.uproject” -WaitMutex -FromMsBuild
1>Log file: C:\Users\xxxx\AppData\Local\UnrealBuildTool\Log.txt
1>Creating makefile for RetroFPSEditor (no existing makefile)
1>Parsing headers for RetroFPSEditor
1> Running Internal UnrealHeaderTool C:\Users\xxxx\Documents\UnrealProjects\RetroFPS\RetroFPS.uproject C:\Users\xxxx\Documents\UnrealProjects\RetroFPS\Intermediate\Build\Win64\RetroFPSEditor\Development\RetroFPSEditor.uhtmanifest -WarningsAsErrors -installed
1>C:\Users\xxxx\Documents\UnrealProjects\RetroFPS\Source\RetroFPS\RetroFPSAttributeSet.h(19): warning : The identifier ‘GENERATED_BODY’ was detected in a block being skipped. Was this intentional?
1>Total of 0 written
1>C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.MakeFile.Targets(44,5): error MSB3073: The command “D:\Games\UE_5.1\Engine\Build\BatchFiles\Build.bat RetroFPSEditor Win64 Development -Project=“C:\Users\xxxx\Documents\UnrealProjects\RetroFPS\RetroFPS.uproject” -WaitMutex -FromMsBuild” exited with code 6.
1>Done building project “RetroFPS.vcxproj” – FAILED.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
========== Elapsed 00:06.949 ==========

Helppppp

You have a whitespace in your directory structure, remove it and try building again.

Where? maybe im blind sorry. "C:\Program Files\Microsoft Visual Studio" here? can you pinpoint it? sorry =o

This should be fine, I wanted to answer to the other post - there, there is a whitespace in the project directory which can cause issues when building the project from VS.

Well that was not the issue… i still don’t know what was… I had to redo the project from scratch… same code… worked fine… lost some days for nothing probably a bug on VS.

I had this error. Regenerated the project files and it simply wouldn’t work. Upon inspection I found I’d accidently placed the letter “i” right before my comment block at the top which caused the error to be thrown. Fixed the typo and it solved the problem. Strange error to throw for a misplaced letter, but maybe it will help someone in case they made the same mistake.

ohoh! it works! thank you!

Man, I spent hours searching for this exact solution!
Thank you for taking the time to post it :crown:

What did you do exactly?!

Bless your heart!
for anyone having this issue on 5.2.1 builds and working on custom shading models/playing with rendering and GBuffer this can happen for some reason.

Delete Engine\Plugins\Runtime\Database\ADOSupport\Intermediate and run the build and that should fix it.

2 Likes

Dumb freaking error. Nothing works.