VS 2022 Enterprise/Pro Build failure UE5.6 : Exited with error code -1 . The build will fail. Any advice?

dziegielewski
Thu, 07 Aug 2025 13:26:33 +0000
Getting Started & Setup

Trying to build UE5.6 in a corporate security environment

Fresh Epic + Unreal 5.6Engine reinstall a few times now
+Full Administrator rights added for user by IT
+Running VS in admin mode
+Verbose log enabled
+recent vulnerable packages updated
+rc.exe cl.exe is where it says it is
+rc.exe can run standalone with no errors
+all Windows 10+11 SDKs present
+tried Enterprise and Professional VS version
+regenerated solution with each step trying to fix
+false
+ProgramFiles/Epic Game made fully writable
+Overall Configuration Status [Green]
+OS Name Microsoft Windows 11 Enterprise
+Version 10.0.26100 Build 26100

Building and running just blueprint works fine and engine starts
Converting to C++ or starting with c++ yields this result

Here is a bit cut off version for sanity

27>------ Building 26 action(s) started ------
27> Compile [x64] SharedPCH.UnrealEd.Project.NonOptimized.ValApi.ValExpApi.Cpp20.cpp: Exited with error code -1 . The build will fail.
27> Compile [x64] SharedPCH.UnrealEd.Project.NonOptimized.ValApi.ValExpApi.Cpp20.cpp: WorkingDirectory C:\Program Files\Epic Games\UE_5.6\Engine\Source
27> Compile [x64] SharedPCH.UnrealEd.Project.NonOptimized.ValApi.ValExpApi.Cpp20.cpp: C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.38.33130\bin\Hostx64\x64\c
27>[1/26] Compile [x64] SharedPCH.UnrealEd.Project.NonOptimized.ValApi.ValExpApi.Cpp20.cpp
27> Compile [x64] SharedPCH.UnrealEd.Project.ValApi.ValExpApi.Cpp20.cpp: Exited with error code -1 . The build will fail.
27> Compile [x64] SharedPCH.UnrealEd.Project.ValApi.ValExpApi.Cpp20.cpp: WorkingDirectory C:\Program Files\Epic Games\UE_5.6\Engine\Source
27> Compile [x64] SharedPCH.UnrealEd.Project.ValApi.ValExpApi.Cpp20.cpp: C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.38.33130\bin\Hostx64\x64\cl.exe @"C:/_P
27>[2/26] Compile [x64] SharedPCH.UnrealEd.Project.ValApi.ValExpApi.Cpp20.cpp
27>[3/26] Resource Default.rc2
27> Resource Default.rc2: Exited with error code -1 . The build will fail.
27> Resource Default.rc2: WorkingDirectory C:\Program Files\Epic Games\UE_5.6\Engine\Source
27> Resource Default.rc2: C:\Program Files (x86)\Windows Kits\10\bin\10.0.22621.0\x64\rc.exe /nologo /D_WIN64 /l 0x409 /I “.” /I "C:/Program Files/Microsoft Visual Studio/2022/Enterprise
27>[4/26] Resource Default.rc2
27> Resource Default.rc2: Exited with error code -1 . The build will fail.
27> Resource Default.rc2: WorkingDirectory C:\Program Files\Epic Games\UE_5.6\Engine\Source
27> Resource Default.rc2: C:\Program Files (x86)\Windows Kits\10\bin\10.0.22621.0\x64\rc.exe /nologo /D_WIN64 /l 0x409 /I “.” /I "C:/Program Files/Microsoft Visual Studio/2022/Enterprise
27>[5/26] Resource Default.rc2
27> Resource Default.rc2: Exited with error code -1 . The build will fail.
27> Resource Default.rc2: WorkingDirectory C:\Program Files\Epic Games\UE_5.6\Engine\Source
27> Resource Default.rc2: C:\Program Files (x86)\Windows Kits\10\bin\10.0.22621.0\x64\rc.exe /nologo /D_WIN64 /l 0x409 /I “.” /I "C:/Program Files/Microsoft Visual Studio/2022/Enterprise
27>[6/26] GenerateTLH dte80a.tlh
27> GenerateTLH dte80a.tlh: Exited with error code -1 . The build will fail.
27> GenerateTLH dte80a.tlh: WorkingDirectory C:\Program Files\Epic Games\UE_5.6\Engine\Source
27> GenerateTLH dte80a.tlh: C:\WINDOWS\system32\cmd.exe /C “C:\Program Files\Epic Games\UE_5.6\Engine\Intermediate\Build\Win64\x64\UnrealEditor\Development\VisualStudioDTE\dte80a.bat”
27>Trace written to file C:/Users/xxx/AppData/Local/UnrealBuildTool/Log.uba with size 2.7kb
27>Total time in Unreal Build Accelerator local executor: 10.11 seconds
27>
27>Result: Failed (OtherCompilationError)
27>Total execution time: 25.83 seconds

and here is the first five lines in full

53>------ Rebuild All started: Project: AutomationTool, Configuration: Development Any CPU ------
27>[1/26] Resource Default.rc2
27> Resource Default.rc2: Exited with error code -1 . The build will fail.
27> Resource Default.rc2: WorkingDirectory C:\Program Files\Epic Games\UE_5.6\Engine\Source
27> Resource Default.rc2: C:\Program Files (x86)\Windows Kits\10\bin\10.0.22621.0\x64\rc.exe /nologo /D_WIN64 /l 0x409 /I “.” /I “C:/Program Files/Microsoft Visual Studio/2022/Enterprise/VC/Tools/MSVC/14.38.33130/INCLUDE” /I “C:/Program Files (x86)/Windows Kits/10/include/10.0.22621.0/ucrt” /I “C:/Program Files (x86)/Windows Kits/10/include/10.0.22621.0/shared” /I “C:/Program Files (x86)/Windows Kits/10/include/10.0.22621.0/um” /I “C:/Program Files (x86)/Windows Kits/10/include/10.0.22621.0/winrt” /DIS_PROGRAM=0 /DUE_EDITOR=1 /DUSE_SHADER_COMPILER_WORKER_TRACE=0 /DUE_REFERENCE_COLLECTOR_REQUIRE_OBJECTPTR=1 /DWITH_VERSE_VM=0 /DENABLE_PGO_PROFILE=0 /DUSE_VORBIS_FOR_STREAMING=1 /DUSE_XMA2_FOR_STREAMING=1 /DWITH_DEV_AUTOMATION_TESTS=1 /DWITH_PERF_AUTOMATION_TESTS=1 /DWITH_LOW_LEVEL_TESTS=0 /DEXPLICIT_TESTS_TARGET=0 /DWITH_TESTS=1 /DUNICODE /D_UNICODE /D__UNREAL__ /DIS_MONOLITHIC=0 /DIS_MERGEDMODULES=0 /DWITH_ENGINE=1 /DWITH_UNREAL_DEVELOPER_TOOLS=1 /DWITH_UNREAL_TARGET_DEVELOPER_TOOLS=1 /DWITH_APPLICATION_CORE=1 /DWITH_COREUOBJECT=1 /DUE_TRACE_ENABLED=1 /DUE_TRACE_FORCE_ENABLED=0 /DWITH_VERSE=1 /DUE_USE_VERSE_PATHS=1 /DWITH_VERSE_BPVM=1 /DUSE_STATS_WITHOUT_ENGINE=0 /DWITH_PLUGIN_SUPPORT=0 /DWITH_ACCESSIBILITY=1 /DWITH_PERFCOUNTERS=1 /DWITH_FIXED_TIME_STEP_SUPPORT=1 /DUSE_LOGGING_IN_SHIPPING=0 /DALLOW_CONSOLE_IN_SHIPPING=0 /DALLOW_PROFILEGPU_IN_TEST=0 /DALLOW_PROFILEGPU_IN_SHIPPING=0 /DWITH_LOGGING_TO_MEMORY=0 /DUSE_CACHE_FREED_OS_ALLOCS=1 /DUSE_CHECKS_IN_SHIPPING=0 /DUSE_UTF8_TCHARS=0 /DUSE_ESTIMATED_UTCNOW=0 /DUE_ALLOW_EXEC_COMMANDS_IN_SHIPPING=1 /DWITH_EDITOR=1 /DWITH_IOSTORE_IN_EDITOR=1 /DWITH_CLIENT_CODE=1 /DWITH_SERVER_CODE=1 /DUE_FNAME_OUTLINE_NUMBER=0 /DWITH_PUSH_MODEL=1 /DWITH_CEF3=1 /DWITH_LIVE_CODING=1 /DWITH_CPP_MODULES=0 /DWITH_CPP_COROUTINES=0 /DWITH_PROCESS_PRIORITY_CONTROL=0 /DUBT_MODULE_MANIFEST=“UnrealEditor.modules” /DUBT_MODULE_MANIFEST_DEBUGGAME=“UnrealEditor-Win64-DebugGame.modules” /DUBT_COMPILED_PLATFORM=Win64 /DUBT_COMPILED_TARGET=Editor /DUE_APP_NAME=“UnrealEditor” /DUE_WARNINGS_AS_ERRORS=0 /DFORCE_ANSI_ALLOCATOR=0 /DUSE_MALLOC_BINNED2=1 /DUSE_MALLOC_BINNED3=0 /DNDIS_MINIPORT_MAJOR_VERSION=0 /DWIN32=1 /D_WIN32_WINNT=0x0601 /DWINVER=0x0601 /DPLATFORM_WINDOWS=1 /DPLATFORM_MICROSOFT=1 /DOVERRIDE_PLATFORM_HEADER_NAME=Windows /DRHI_RAYTRACING=1 /DWINDOWS_MAX_NUM_TLS_SLOTS=2048 /DWINDOWS_MAX_NUM_THREADS_WITH_TLS_SLOTS=512 /DNDEBUG=1 /DUE_BUILD_DEVELOPMENT=1 /DORIGINAL_FILE_NAME=“UnrealEditor-MyProject.dll” /DBUILD_ICON_FILE_NAME=“"..\Build\Windows\Resources\Default.ico"” /DPROJECT_COPYRIGHT_STRING=“Fill out your copyright notice in the Description page of Project Settings.” /DPROJECT_PRODUCT_IDENTIFIER=MyProject /fo “C:/_PROJECTS/UNREAL/MyProject/Intermediate/Build/Win64/x64/UnrealEditor/Development/MyProject/Default.rc2.res” “../Build/Windows/Resources/Default.rc2”

2 posts - 2 participants