Ronsenval / UnrealEngineCompilationUsingFastBuild

Compile Unreal Engine 4.22 using FastBuild
Other
26 stars 13 forks source link

4.24 Support. #5

Open duplexsystem opened 4 years ago

duplexsystem commented 4 years ago

I've used a fork of this for 4.24 but get errors:

Build with surface heuristics started at 18:12:20
Use build tool: C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\MSBuild.exe
CONSOLE: Microsoft (R) Build Engine version 16.4.0+e901037fe for .NET Framework
CONSOLE: Copyright (C) Microsoft Corporation. All rights reserved.
CONSOLE: Build started 2/29/2020 6:12:20 PM.
0>------- Started building project: UnrealBuildTool
0>Skipping target "GenerateTargetFrameworkMonikerAttribute" because all output files are up-to-date with respect to the input files.
0>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\Roslyn\csc.exe /noconfig /unsafe- /nowarn:1701,1702,2008 /nostdlib+ /platform:AnyCPU /errorreport:prompt /doc:..\..\..\Binaries\DotNET\UnrealBuildTool.xml /define:TRACE /errorendlocation /preferreduilang:en-US /highentropyva+ /reference:C:\Users\sgidi\CGWUnrealEngine4\Engine\Binaries\DotNET\DotNETUtilities.dll /reference:C:\Users\sgidi\CGWUnrealEngine4\Engine\Binaries\DotNET\Ionic.Zip.Reduced.dll /link:C:\Users\sgidi\CGWUnrealEngine4\Engine\Binaries\ThirdParty\VisualStudio\Microsoft.VisualStudio.Setup.Configuration.Interop.dll /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6.2\mscorlib.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6.2\System.Core.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6.2\System.Data.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6.2\System.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6.2\System.Management.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6.2\System.ServiceProcess.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6.2\System.Web.Extensions.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6.2\System.Xml.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6.2\System.Xml.Linq.dll" /debug:pdbonly /optimize+ /out:obj\Development\UnrealBuildTool.exe /ruleset:"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Team Tools\Static Analysis Tools\\Rule Sets\MinimumRecommendedRules.ruleset" /subsystemversion:6.00 /target:exe /utf8output /win32manifest:app.manifest /langversion:6 /analyzerconfig:C:\Users\sgidi\CGWUnrealEngine4\.editorconfig Platform\Mac\MacExports.cs Platform\Mac\MacToolChain.cs Platform\Mac\UEBuildMac.cs Platform\Mac\MacProjectGenerator.cs Platform\Mac\UEDeployMac.cs ToolChain\AppleToolChain.cs Configuration\ModuleRulesContext.cs Executors\HybridExecutor.cs Modes\BuildMode.cs Modes\CleanMode.cs Modes\DeployMode.cs Modes\GenerateClangDatabase.cs Modes\QueryTargetsMode.cs Modes\ExecuteMode.cs Modes\JsonExportMode.cs Modes\GenerateProjectFilesMode.cs Modes\SetupPlatformsMode.cs Modes\ValidatePlatformsMode.cs Modes\WriteDocumentationMode.cs Configuration\ModuleRules.cs Configuration\PlatformTargetRules.cs Configuration\TargetDescriptor.cs Configuration\UEBuildModuleExternal.cs Configuration\UEBuildPlatformFactory.cs Configuration\UEBuildPlatformSDK.cs Configuration\UEBuildPlugin.cs Executors\Distcc.cs Executors\LocalExecutor.cs Executors\ParallelExecutor.cs Executors\SNDBS.cs Executors\XGE.cs Modes\WriteMetadataMode.cs Platform\IOS\IOSPostBuildSyncMode.cs Platform\IOS\MobileProvisionContents.cs Platform\Lumin\LuminPackageManifest.cs Platform\Lumin\UEDeployLumin.cs ProjectFiles\CLion\CLionGenerator.cs ProjectFiles\CMake\CMakefileGenerator.cs ProjectFiles\CodeLite\CodeLiteGenerator.cs ProjectFiles\CodeLite\CodeLiteProject.cs ProjectFiles\Eddie\EddieGenerator.cs ProjectFiles\Eddie\EddieProject.cs ProjectFiles\KDevelop\KDevelopGenerator.cs ProjectFiles\Make\MakefileGenerator.cs ProjectFiles\PlatformProjectGenerator.cs ProjectFiles\PlatformProjectGeneratorCollection.cs ProjectFiles\Project.cs ProjectFiles\ProjectFileGenerator.cs ProjectFiles\QMake\QMakefileGenerator.cs ProjectFiles\Rider\RiderProjectFile.cs ProjectFiles\Rider\RiderProjectFileGenerator.cs ProjectFiles\VisualStudioCode\VSCodeProjectFileGenerator.cs ProjectFiles\VisualStudio\VCProject.cs ProjectFiles\VisualStudio\VCProjectFileGenerator.cs ProjectFiles\VisualStudio\VCSolutionOptions.cs ProjectFiles\Xcode\XcodeFrameworkWrapperProject.cs ProjectFiles\Xcode\XcodeProject.cs ProjectFiles\Xcode\XcodeProjectFileGenerator.cs System\Action.cs System\ActionExecutor.cs Modes\AggregateParsedTimingInfo.cs System\Asn.cs System\BuildVersion.cs System\ConfigValueTracker.cs System\CppCompileEnvironment.cs System\CppDependencyCache.cs System\CppIncludeParser.cs System\FASTBuild.cs System\FileMetadataPrefetch.cs Modes\ParseMsvcTimingInfo.cs System\RestrictedFolders.cs System\RulesScope.cs System\SourceFileMetadataCache.cs System\DataDrivenPlatformInfo.cs System\DirectoryItem.cs System\EncryptionAndSigning.cs System\HotReload.cs System\NativeProjects.cs System\ModuleManifest.cs System\PluginReferenceDescriptor.cs System\PrecompiledManifest.cs System\RulesDocumentation.cs System\PrecompiledHeaderInstance.cs System\PrecompiledHeaderTemplate.cs Configuration\TargetInfo.cs Configuration\TargetRules.cs Configuration\UEBuildBundleResource.cs Configuration\UEBuildFramework.cs Configuration\UEBuildModuleCPP.cs System\PlatformExports.cs System\CommandLine.cs System\ConfigCache.cs System\ConfigFile.cs System\ConfigFileAttribute.cs System\ConfigHierarchy.cs System\CustomBuildSteps.cs System\InstalledPlatformInfo.cs System\LocalizationDescriptor.cs System\ObsoleteOverrideAttribute.cs System\ProgressWriter.cs System\RulesAssembly.cs System\ScopedTimer.cs System\SingleInstanceMutex.cs System\SourceFileWorkingSet.cs System\StartupTraceListener.cs System\SupportedConfigurationsAttribute.cs System\SupportedPlatformsAttribute.cs System\TargetMakefile.cs System\TargetReceipt.cs System\Timeline.cs System\TimingData.cs System\ToolMode.cs System\UniqueStringRegistry.cs System\VersionNumber.cs System\XmlConfig.cs System\XmlConfigData.cs System\XmlConfigFile.cs System\XmlConfigFileAttribute.cs System\UnrealPluginLanguage.cs ProjectFiles\VisualStudioMac\VisualStudioMacProjectFileGenerator.cs Platform\TVOS\TVOSExports.cs Platform\TVOS\TVOSProjectGenerator.cs Platform\TVOS\TVOSToolChain.cs Platform\TVOS\UEBuildTVOS.cs Platform\TVOS\UEDeployTVOS.cs Platform\Android\UEBuildAndroid.cs Platform\Android\UEDeployAndroid.cs Platform\Android\AndroidAARHandler.cs Platform\Android\AndroidExports.cs Platform\Android\AndroidToolChain.cs Platform\Android\AndroidProjectGenerator.cs ToolChain\RemoteMac.cs UnrealBuildTool.cs Platform\Windows\PVSToolChain.cs Platform\HoloLens\UEBuildHoloLens.cs Platform\HoloLens\HoloLensDeploy.cs Platform\HoloLens\HoloLensExports.cs Platform\HoloLens\HoloLensProjectGenerator.cs Platform\HoloLens\HoloLensToolChain.cs Platform\HoloLens\ManifestGenerator.cs Platform\HoloLens\WinMDRegistrationInfo.cs Platform\IOS\IOSExports.cs Platform\IOS\IOSProjectGenerator.cs Platform\IOS\IOSToolChain.cs Platform\IOS\UEBuildIOS.cs Platform\IOS\UEDeployIOS.cs Platform\Linux\LinuxCommon.cs Platform\Linux\LinuxExports.cs Platform\Linux\LinuxProjectGenerator.cs Platform\Linux\LinuxToolChain.cs Platform\Linux\UEBuildLinux.cs Platform\Lumin\LuminExports.cs Platform\Lumin\LuminProjectGenerator.cs Platform\Lumin\LuminToolChain.cs Platform\Lumin\UEBuildLumin.cs ..\DotNETCommon\MetaData.cs Configuration\UEBuildDeploy.cs Configuration\UEBuildBinary.cs Configuration\UEBuildModule.cs Configuration\UEBuildPlatform.cs Properties\AssemblyInfo.cs Configuration\UEBuildTarget.cs System\ActionGraph.cs System\ActionHistory.cs System\BuildException.cs Configuration\BuildConfiguration.cs System\BuildHostPlatform.cs System\ModuleDescriptor.cs System\PluginDescriptor.cs System\ProjectDescriptor.cs System\DirectoryLookupCache.cs System\DynamicCompilation.cs System\ExternalExecution.cs System\FileItem.cs System\JunkDeleter.cs System\LinkEnvironment.cs System\Plugins.cs System\RulesCompiler.cs System\SourceFileSearch.cs System\Unity.cs System\Utils.cs ToolChain\UEToolChain.cs Platform\Windows\UEBuildWindows.cs Platform\Windows\VCEnvironment.cs Platform\Windows\VCToolChain.cs Platform\Windows\WindowsExports.cs Platform\Windows\WindowsProjectGenerator.cs ..\..\..\..\Engine\Platforms\XXX\Source\Programs\UnrealBuildTool\UEBuildXXX.cs ..\..\..\..\Engine\Platforms\XXX\Source\Programs\UnrealBuildTool\XXXToolChain.cs "C:\Users\sgidi\AppData\Local\Temp\.NETFramework,Version=v4.6.2.AssemblyAttributes.cs"
0>Using shared compilation with compiler from directory: C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\Roslyn
0>Touching "C:\Users\sgidi\CGWUnrealEngine4\Engine\Source\Programs\UnrealBuildTool\obj\Development\UnrealBuildTool.csproj.CopyComplete".
0>Skipping target "_CopyAppConfigFile" because all output files are up-to-date with respect to the input files.
0>Copying file from "C:\Users\sgidi\CGWUnrealEngine4\Engine\Source\Programs\UnrealBuildTool\obj\Development\UnrealBuildTool.exe" to "C:\Users\sgidi\CGWUnrealEngine4\Engine\Binaries\DotNET\UnrealBuildTool.exe".
0>UnrealBuildTool -> C:\Users\sgidi\CGWUnrealEngine4\Engine\Binaries\DotNET\UnrealBuildTool.exe
0>Copying file from "C:\Users\sgidi\CGWUnrealEngine4\Engine\Source\Programs\UnrealBuildTool\obj\Development\UnrealBuildTool.pdb" to "C:\Users\sgidi\CGWUnrealEngine4\Engine\Binaries\DotNET\UnrealBuildTool.pdb".
0>------- Finished building project: UnrealBuildTool. Succeeded: True. Errors: 0. Warnings: 0
1>------- Started building project: UE4
1>..\..\Build\BatchFiles\Build.bat -Target="UE4Editor Win64 Development" -Target="ShaderCompileWorker Win64 Development -Quiet" -WaitMutex -FromMsBuild -FastPDB
1>Using 'git status' to determine working set for adaptive non-unity build (C:\Users\sgidi\CGWUnrealEngine4).
1>Creating makefile for UE4Editor (UnrealBuildTool.exe is newer)
1>While compiling C:\Users\sgidi\CGWUnrealEngine4\Engine\Intermediate\Build\BuildRules\UE4Rules.dll:
1>c:\Users\sgidi\CGWUnrealEngine4\Engine\Plugins\FMODStudio\Source\FMODStudio\FMODStudio.Build.cs(17,13): Warning CS0618: 'UnrealBuildTool.ModuleRules.bFasterWithoutUnity' is obsolete: 'bFasterWithoutUnity has been deprecated in favor of setting 'bUseUnity' on a per module basis in BuildConfiguration'
1>c:\Users\sgidi\CGWUnrealEngine4\Engine\Plugins\FMODStudio\Source\FMODStudio\FMODStudio.Build.cs(135,17): Warning CS0618: 'UnrealBuildTool.ModuleRules.PublicLibraryPaths' is obsolete: 'For external libraries use the full path in PublicAdditionalLibraries, if its a system library then use PublicSystemLibraries/PublicSystemLibraryPaths'
1>c:\Users\sgidi\CGWUnrealEngine4\Engine\Plugins\FMODStudio\Source\FMODStudio\FMODStudio.Build.cs(136,17): Warning CS0618: 'UnrealBuildTool.ModuleRules.PublicLibraryPaths' is obsolete: 'For external libraries use the full path in PublicAdditionalLibraries, if its a system library then use PublicSystemLibraries/PublicSystemLibraryPaths'
1>c:\Users\sgidi\CGWUnrealEngine4\Engine\Plugins\FMODStudio\Source\FMODStudio\FMODStudio.Build.cs(137,17): Warning CS0618: 'UnrealBuildTool.ModuleRules.PublicLibraryPaths' is obsolete: 'For external libraries use the full path in PublicAdditionalLibraries, if its a system library then use PublicSystemLibraries/PublicSystemLibraryPaths'
1>c:\Users\sgidi\CGWUnrealEngine4\Engine\Plugins\FMODStudio\Source\FMODStudio\FMODStudio.Build.cs(178,13): Warning CS0618: 'UnrealBuildTool.ModuleRules.PublicLibraryPaths' is obsolete: 'For external libraries use the full path in PublicAdditionalLibraries, if its a system library then use PublicSystemLibraries/PublicSystemLibraryPaths'
1>c:\Users\sgidi\CGWUnrealEngine4\Engine\Plugins\FMODStudio\Source\FMODStudioEditor\FMODStudioEditor.Build.cs(17,13): Warning CS0618: 'UnrealBuildTool.ModuleRules.bFasterWithoutUnity' is obsolete: 'bFasterWithoutUnity has been deprecated in favor of setting 'bUseUnity' on a per module basis in BuildConfiguration'
1>Target Platform -- Win64
1>Target Platform -- Win64
1>Creating makefile for UnrealHeaderTool (UnrealBuildTool.exe is newer)
1>No brokerage root; did you set FASTBUILD_BROKERAGE_PATH?
1>No workers available - Distributed compilation disabled
1>8> Obj: C:\Users\sgidi\CGWUnrealEngine4\Engine\Intermediate\Build\Win64\UnrealHeaderTool\Development\TraceLog\Module.TraceLog.cpp.obj
1>10>Obj: C:\Users\sgidi\CGWUnrealEngine4\Engine\Intermediate\Build\Win64\UnrealHeaderTool\Development\CoreUObject\Module.CoreUObject.4_of_7.cpp.obj
1>9> Obj: C:\Users\sgidi\CGWUnrealEngine4\Engine\Intermediate\Build\Win64\UnrealHeaderTool\Development\UnrealHeaderTool\Module.UnrealHeaderTool.2_of_2.cpp.obj
1>12>Obj: C:\Users\sgidi\CGWUnrealEngine4\Engine\Intermediate\Build\Win64\UnrealHeaderTool\Development\Json\Module.Json.cpp.obj
1>4> Obj: C:\Users\sgidi\CGWUnrealEngine4\Engine\Intermediate\Build\Win64\UnrealHeaderTool\Development\CoreUObject\Module.CoreUObject.6_of_7.cpp.obj
1>6> Obj: C:\Users\sgidi\CGWUnrealEngine4\Engine\Intermediate\Build\Win64\UnrealHeaderTool\Development\CoreUObject\Module.CoreUObject.1_of_7.cpp.obj
1>3> Obj: C:\Users\sgidi\CGWUnrealEngine4\Engine\Intermediate\Build\Win64\UnrealHeaderTool\Development\UnrealHeaderTool\Module.UnrealHeaderTool.1_of_2.cpp.obj
1>2> Obj: C:\Users\sgidi\CGWUnrealEngine4\Engine\Intermediate\Build\Win64\UnrealHeaderTool\Development\CoreUObject\Module.CoreUObject.3_of_7.cpp.obj
1>11>Obj: C:\Users\sgidi\CGWUnrealEngine4\Engine\Intermediate\Build\Win64\UnrealHeaderTool\Development\CoreUObject\Module.CoreUObject.2_of_7.cpp.obj
1>1> Obj: C:\Users\sgidi\CGWUnrealEngine4\Engine\Intermediate\Build\Win64\UnrealHeaderTool\Development\Projects\Module.Projects.cpp.obj
1>5> Obj: C:\Users\sgidi\CGWUnrealEngine4\Engine\Intermediate\Build\Win64\UnrealHeaderTool\Development\CoreUObject\Module.CoreUObject.5_of_7.cpp.obj
1>7> Obj: C:\Users\sgidi\CGWUnrealEngine4\Engine\Intermediate\Build\Win64\UnrealHeaderTool\Development\CoreUObject\Module.CoreUObject.7_of_7.cpp.obj
1>EXEC(0,0): Error 3> Failed to build Object.: 2 (0x02) Target: 'C:\Users\sgidi\CGWUnrealEngine4\Engine\Intermediate\Build\Win64\UnrealHeaderTool\Development\UnrealHeaderTool\Module.UnrealHeaderTool.1_of_2.cpp.obj'
1>3> PROBLEM: C:\Users\sgidi\CGWUnrealEngine4\Engine\Intermediate\Build\Win64\UnrealHeaderTool\Development\UnrealHeaderTool\Module.UnrealHeaderTool.1_of_2.cpp.obj
1>Module.UnrealHeaderTool.1_of_2.cpp
1>C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\shared\intsafe.h(66,0): Error C4668: '__midl' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
1>EXEC(0,0): Error 5> Failed to build Object.: 2 (0x02) Target: 'C:\Users\sgidi\CGWUnrealEngine4\Engine\Intermediate\Build\Win64\UnrealHeaderTool\Development\CoreUObject\Module.CoreUObject.5_of_7.cpp.obj'
1>5> PROBLEM: C:\Users\sgidi\CGWUnrealEngine4\Engine\Intermediate\Build\Win64\UnrealHeaderTool\Development\CoreUObject\Module.CoreUObject.5_of_7.cpp.obj
1>Module.CoreUObject.5_of_7.cpp
1>C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\shared\intsafe.h(66,0): Error C4668: '__midl' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
1>EXEC(0,0): Error 7> Failed to build Object.: 2 (0x02) Target: 'C:\Users\sgidi\CGWUnrealEngine4\Engine\Intermediate\Build\Win64\UnrealHeaderTool\Development\CoreUObject\Module.CoreUObject.7_of_7.cpp.obj'
1>7> PROBLEM: C:\Users\sgidi\CGWUnrealEngine4\Engine\Intermediate\Build\Win64\UnrealHeaderTool\Development\CoreUObject\Module.CoreUObject.7_of_7.cpp.obj
1>Module.CoreUObject.7_of_7.cpp
1>C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\shared\intsafe.h(66,0): Error C4668: '__midl' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
1>EXEC(0,0): Error 12>Failed to build Object.: 2 (0x02) Target: 'C:\Users\sgidi\CGWUnrealEngine4\Engine\Intermediate\Build\Win64\UnrealHeaderTool\Development\Json\Module.Json.cpp.obj'
1>12>PROBLEM: C:\Users\sgidi\CGWUnrealEngine4\Engine\Intermediate\Build\Win64\UnrealHeaderTool\Development\Json\Module.Json.cpp.obj
1>Module.Json.cpp
1>C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\shared\intsafe.h(66,0): Error C4668: '__midl' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
1>EXEC(0,0): Error 1> Failed to build Object.: 2 (0x02) Target: 'C:\Users\sgidi\CGWUnrealEngine4\Engine\Intermediate\Build\Win64\UnrealHeaderTool\Development\Projects\Module.Projects.cpp.obj'
1>1> PROBLEM: C:\Users\sgidi\CGWUnrealEngine4\Engine\Intermediate\Build\Win64\UnrealHeaderTool\Development\Projects\Module.Projects.cpp.obj
1>Module.Projects.cpp
1>C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\shared\intsafe.h(66,0): Error C4668: '__midl' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
1>EXEC(0,0): Error 8> Failed to build Object.: 2 (0x02) Target: 'C:\Users\sgidi\CGWUnrealEngine4\Engine\Intermediate\Build\Win64\UnrealHeaderTool\Development\TraceLog\Module.TraceLog.cpp.obj'
1>8> PROBLEM: C:\Users\sgidi\CGWUnrealEngine4\Engine\Intermediate\Build\Win64\UnrealHeaderTool\Development\TraceLog\Module.TraceLog.cpp.obj
1>Module.TraceLog.cpp
1>C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\shared\intsafe.h(66,0): Error C4668: '__midl' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
1>EXEC(0,0): Error 10>Failed to build Object.: 2 (0x02) Target: 'C:\Users\sgidi\CGWUnrealEngine4\Engine\Intermediate\Build\Win64\UnrealHeaderTool\Development\CoreUObject\Module.CoreUObject.4_of_7.cpp.obj'
1>10>PROBLEM: C:\Users\sgidi\CGWUnrealEngine4\Engine\Intermediate\Build\Win64\UnrealHeaderTool\Development\CoreUObject\Module.CoreUObject.4_of_7.cpp.obj
1>Module.CoreUObject.4_of_7.cpp
1>C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\shared\intsafe.h(66,0): Error C4668: '__midl' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
1>EXEC(0,0): Error 4> Failed to build Object.: 2 (0x02) Target: 'C:\Users\sgidi\CGWUnrealEngine4\Engine\Intermediate\Build\Win64\UnrealHeaderTool\Development\CoreUObject\Module.CoreUObject.6_of_7.cpp.obj'
1>4> PROBLEM: C:\Users\sgidi\CGWUnrealEngine4\Engine\Intermediate\Build\Win64\UnrealHeaderTool\Development\CoreUObject\Module.CoreUObject.6_of_7.cpp.obj
1>Module.CoreUObject.6_of_7.cpp
1>C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\shared\intsafe.h(66,0): Error C4668: '__midl' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
1>EXEC(0,0): Error 6> Failed to build Object.: 2 (0x02) Target: 'C:\Users\sgidi\CGWUnrealEngine4\Engine\Intermediate\Build\Win64\UnrealHeaderTool\Development\CoreUObject\Module.CoreUObject.1_of_7.cpp.obj'
1>6> PROBLEM: C:\Users\sgidi\CGWUnrealEngine4\Engine\Intermediate\Build\Win64\UnrealHeaderTool\Development\CoreUObject\Module.CoreUObject.1_of_7.cpp.obj
1>Module.CoreUObject.1_of_7.cpp
1>C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\shared\intsafe.h(66,0): Error C4668: '__midl' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
1>EXEC(0,0): Error 2> Failed to build Object.: 2 (0x02) Target: 'C:\Users\sgidi\CGWUnrealEngine4\Engine\Intermediate\Build\Win64\UnrealHeaderTool\Development\CoreUObject\Module.CoreUObject.3_of_7.cpp.obj'
1>2> PROBLEM: C:\Users\sgidi\CGWUnrealEngine4\Engine\Intermediate\Build\Win64\UnrealHeaderTool\Development\CoreUObject\Module.CoreUObject.3_of_7.cpp.obj
1>Module.CoreUObject.3_of_7.cpp
1>C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\shared\intsafe.h(66,0): Error C4668: '__midl' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
1>EXEC(0,0): Error 11>Failed to build Object.: 2 (0x02) Target: 'C:\Users\sgidi\CGWUnrealEngine4\Engine\Intermediate\Build\Win64\UnrealHeaderTool\Development\CoreUObject\Module.CoreUObject.2_of_7.cpp.obj'
1>11>PROBLEM: C:\Users\sgidi\CGWUnrealEngine4\Engine\Intermediate\Build\Win64\UnrealHeaderTool\Development\CoreUObject\Module.CoreUObject.2_of_7.cpp.obj
1>Module.CoreUObject.2_of_7.cpp
1>C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\shared\intsafe.h(66,0): Error C4668: '__midl' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
1>EXEC(0,0): Error 9> Failed to build Object.: 2 (0x02) Target: 'C:\Users\sgidi\CGWUnrealEngine4\Engine\Intermediate\Build\Win64\UnrealHeaderTool\Development\UnrealHeaderTool\Module.UnrealHeaderTool.2_of_2.cpp.obj'
1>9> PROBLEM: C:\Users\sgidi\CGWUnrealEngine4\Engine\Intermediate\Build\Win64\UnrealHeaderTool\Development\UnrealHeaderTool\Module.UnrealHeaderTool.2_of_2.cpp.obj
1>Module.UnrealHeaderTool.2_of_2.cpp
1>C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\shared\intsafe.h(66,0): Error C4668: '__midl' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
1>C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um\winnt.h(329,0): Error C4668: '_M_HYBRID' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
1>C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um\winnt.h(337,0): Error C4668: '_M_HYBRID' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
1>C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um\winnt.h(13184,0): Error C4668: '_WIN32_WINNT_WIN10_RS3' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
1>C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um\winnt.h(13750,0): Error C4668: '_WIN32_WINNT_WIN10_RS5' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
1>C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um\minwinbase.h(207,0): Error C4668: '_WIN32_WINNT_WIN10_RS1' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
1>C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um\synchapi.h(679,0): Error C4668: '_NT_TARGET_VERSION_WIN10_RS4' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
1>C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um\processthreadsapi.h(1022,0): Error C4668: '_WIN32_WINNT_WIN10_RS3' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
1>C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um\winbase.h(8616,0): Error C4668: '_WIN32_WINNT_WIN10_RS1' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
1>C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um\winbase.h(8621,0): Error C4668: '_WIN32_WINNT_WIN10_RS3' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
1>C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um\winbase.h(8626,0): Error C4668: '_WIN32_WINNT_WIN10_RS1' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
1>C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um\winbase.h(8673,0): Error C4668: '_WIN32_WINNT_WIN10_RS1' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
1>C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um\winbase.h(8679,0): Error C4668: '_WIN32_WINNT_WIN10_RS5' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
1>C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um\winbase.h(9073,0): Error C4668: 'NTDDI_WIN7SP1' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
1>--- Most Expensive ----------------------------------------------
1>Time (s)  Name:
1>1.585     C:\Users\sgidi\CGWUnrealEngine4\Engine\Intermediate\Build\Win64\UnrealHeaderTool\Development\UnrealHeaderTool\Module.UnrealHeaderTool.2_of_2.cpp.obj
1>1.408     C:\Users\sgidi\CGWUnrealEngine4\Engine\Intermediate\Build\Win64\UnrealHeaderTool\Development\CoreUObject\Module.CoreUObject.2_of_7.cpp.obj
1>1.395     C:\Users\sgidi\CGWUnrealEngine4\Engine\Intermediate\Build\Win64\UnrealHeaderTool\Development\CoreUObject\Module.CoreUObject.3_of_7.cpp.obj
1>1.391     C:\Users\sgidi\CGWUnrealEngine4\Engine\Intermediate\Build\Win64\UnrealHeaderTool\Development\CoreUObject\Module.CoreUObject.1_of_7.cpp.obj
1>1.366     C:\Users\sgidi\CGWUnrealEngine4\Engine\Intermediate\Build\Win64\UnrealHeaderTool\Development\CoreUObject\Module.CoreUObject.6_of_7.cpp.obj
1>1.364     C:\Users\sgidi\CGWUnrealEngine4\Engine\Intermediate\Build\Win64\UnrealHeaderTool\Development\CoreUObject\Module.CoreUObject.4_of_7.cpp.obj
1>1.351     C:\Users\sgidi\CGWUnrealEngine4\Engine\Intermediate\Build\Win64\UnrealHeaderTool\Development\TraceLog\Module.TraceLog.cpp.obj
1>1.347     C:\Users\sgidi\CGWUnrealEngine4\Engine\Intermediate\Build\Win64\UnrealHeaderTool\Development\Projects\Module.Projects.cpp.obj
1>1.333     C:\Users\sgidi\CGWUnrealEngine4\Engine\Intermediate\Build\Win64\UnrealHeaderTool\Development\Json\Module.Json.cpp.obj
1>1.330     C:\Users\sgidi\CGWUnrealEngine4\Engine\Intermediate\Build\Win64\UnrealHeaderTool\Development\CoreUObject\Module.CoreUObject.7_of_7.cpp.obj
1>1.326     C:\Users\sgidi\CGWUnrealEngine4\Engine\Intermediate\Build\Win64\UnrealHeaderTool\Development\CoreUObject\Module.CoreUObject.5_of_7.cpp.obj
1>1.318     C:\Users\sgidi\CGWUnrealEngine4\Engine\Intermediate\Build\Win64\UnrealHeaderTool\Development\UnrealHeaderTool\Module.UnrealHeaderTool.1_of_2.cpp.obj
1>
1>--- Summary -----------------------------------------------------
1>                                 /----- Cache -----\
1>Build:          Seen    Built   Hit     Miss    Store   CPU
1> - File       : 46      46      -       -       -       0.001s
1> - Library    : 7       0       -       -       -       0.000s
1> - Object     : 25      0       -       -       -       16.514s
1> - Alias      : 1       0       -       -       -       0.000s
1> - Compiler   : 1       1       -       -       -       0.000s
1> - ObjectList : 25      0       -       -       -       0.000s
1>Cache:
1> - Hits       : 0 (0.0 %)
1> - Misses     : 0
1> - Stores     : 0
1>Time:
1> - Real       : 1.602s
1> - Local CPU  : 16.515s (10.3:1)
1> - Remote CPU : 0.000s (0.0:1)
1>-----------------------------------------------------------------
1>FBuild(0,0): Error: BUILD FAILED: all
1>Time: 1.618s
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.MakeFile.Targets(44,5): Error MSB3075: The command "..\..\Build\BatchFiles\Build.bat -Target="UE4Editor Win64 Development" -Target="ShaderCompileWorker Win64 Development -Quiet" -WaitMutex -FromMsBuild -FastPDB" exited with code 5. Please verify that you have sufficient rights to run this command.
1>------- Finished building project: UE4. Succeeded: False. Errors: 39. Warnings: 6
Build completed in 00:00:10.721

If anyone could help me out that would be appreciated.

duplexsystem commented 4 years ago

I fixed those errors by adding OtherCompilerOptions = OtherCompilerOptions.Replace("we4668", "wd4668"); Every time OtherCompilerOptions was defined. It seems a bit hacky but it works. I now get this error (sometimes with other numbers): Failed due to missing file: C:\Users\sgidi\CGWUnrealEngine4\Engine\Source\Action_32

duplexsystem commented 4 years ago

Ok I think I fixed it by disabling fastbuild to compile unrealheadertool and making Action_0-6 in the source folder

duplexsystem commented 4 years ago

ok that failed. I get this error:


0>Module.Engine.31_of_46.cpp
0>C:\Users\sgidi\CGWUnrealEngine4\Engine\Source\Runtime\Engine\Private\PhysicsEngine\Experimental\PhysInterface_Chaos.cpp(815,0): Error C2027: use of undefined type 'USkeletalMeshComponent'
0>C:\Users\sgidi\CGWUnrealEngine4\Engine\Source\Runtime\Engine\Public\PhysicsPublic.h(26): note: see declaration of 'USkeletalMeshComponent'
0>C:\Users\sgidi\CGWUnrealEngine4\Engine\Source\Runtime\Engine\Private\PhysicsEngine\Experimental\PhysInterface_Chaos.cpp(817,0): Error C2065: 'BI': undeclared identifier
0>C:\Users\sgidi\CGWUnrealEngine4\Engine\Source\Runtime\Engine\Private\PhysicsEngine\Experimental\PhysInterface_Chaos.cpp(820,0): Error C2043: illegal break
0>EXEC(0,0): Error 12>Failed to build Object.: 2 (0x02) Target: 'C:\Users\sgidi\CGWUnrealEngine4\Engine\Intermediate\Build\Win64\UE4Editor\Development\Engine\Module.Engine.31_of_46.cpp.obj'
0>--- Most Expensive ----------------------------------------------
0>Time (s)  Name:
0>180.632   C:\Users\sgidi\CGWUnrealEngine4\Engine\Intermediate\Build\Win64\UE4Editor\Development\Persona\Module.Persona.4_of_4.cpp.obj
0>156.452   C:\Users\sgidi\CGWUnrealEngine4\Engine\Intermediate\Build\Win64\UE4Editor\Development\Persona\Module.Persona.1_of_4.cpp.obj
0>154.129   C:\Users\sgidi\CGWUnrealEngine4\Engine\Intermediate\Build\Win64\UE4Editor\Development\Sequencer\Module.Sequencer.2_of_3.cpp.obj
0>144.944   C:\Users\sgidi\CGWUnrealEngine4\Engine\Intermediate\Build\Win64\UE4Editor\Development\Sequencer\Module.Sequencer.1_of_3.cpp.obj
0>140.474   C:\Users\sgidi\CGWUnrealEngine4\Engine\Plugins\Experimental\ControlRig\Intermediate\Build\Win64\UE4Editor\Development\ControlRigEditor\Module.ControlRigEditor.1_of_2.cpp.obj
0>126.517   C:\Users\sgidi\CGWUnrealEngine4\Engine\Intermediate\Build\Win64\UE4Editor\Development\UnrealEd\Module.UnrealEd.1_of_22.cpp.obj
0>123.058   C:\Users\sgidi\CGWUnrealEngine4\Engine\Intermediate\Build\Win64\UE4Editor\Development\MovieSceneTools\Module.MovieSceneTools.2_of_3.cpp.obj
0>122.105   C:\Users\sgidi\CGWUnrealEngine4\Engine\Intermediate\Build\Win64\UE4Editor\Development\UMGEditor\Module.UMGEditor.2_of_2.cpp.obj
0>120.518   C:\Users\sgidi\CGWUnrealEngine4\Engine\Plugins\Experimental\DataPrepEditor\Intermediate\Build\Win64\UE4Editor\Development\DataprepEditor\Module.DataprepEditor.cpp.obj
0>115.072   C:\Users\sgidi\CGWUnrealEngine4\Engine\Intermediate\Build\Win64\UE4Editor\Development\UMGEditor\Module.UMGEditor.1_of_2.cpp.obj
0>114.073   C:\Users\sgidi\CGWUnrealEngine4\Engine\Intermediate\Build\Win64\UE4Editor\Development\DetailCustomizations\Module.DetailCustomizations.1_of_4.cpp.obj
0>111.605   C:\Users\sgidi\CGWUnrealEngine4\Engine\Intermediate\Build\Win64\UE4Editor\Development\UnrealEd\Module.UnrealEd.11_of_22.cpp.obj
0>110.213   C:\Users\sgidi\CGWUnrealEngine4\Engine\Intermediate\Build\Win64\UE4Editor\Development\UnrealEd\Module.UnrealEd.12_of_22.cpp.obj
0>108.469   C:\Users\sgidi\CGWUnrealEngine4\Engine\Plugins\FX\Niagara\Intermediate\Build\Win64\UE4Editor\Development\NiagaraEditor\Module.NiagaraEditor.4_of_6.cpp.obj
0>106.810   C:\Users\sgidi\CGWUnrealEngine4\Engine\Intermediate\Build\Win64\UE4Editor\Development\UnrealEd\Module.UnrealEd.18_of_22.cpp.obj
0>106.658   C:\Users\sgidi\CGWUnrealEngine4\Engine\Intermediate\Build\Win64\UE4Editor\Development\AppFramework\Module.AppFramework.1_of_2.cpp.obj
0>104.939   C:\Users\sgidi\CGWUnrealEngine4\Engine\Intermediate\Build\Win64\UE4Editor\Development\UnrealEd\Module.UnrealEd.4_of_22.cpp.obj
0>103.180   C:\Users\sgidi\CGWUnrealEngine4\Engine\Intermediate\Build\Win64\UE4Editor\Development\Kismet\Module.Kismet.4_of_6.cpp.obj
0>101.296   C:\Users\sgidi\CGWUnrealEngine4\Engine\Intermediate\Build\Win64\UE4Editor\Development\Kismet\Module.Kismet.1_of_6.cpp.obj
0>100.322   C:\Users\sgidi\CGWUnrealEngine4\Engine\Intermediate\Build\Win64\UE4Editor\Development\FoliageEdit\Module.FoliageEdit.cpp.obj
0>
0>--- Summary -----------------------------------------------------
0>                                 /----- Cache -----\
0>Build:          Seen    Built   Hit     Miss    Store   CPU
0> - File       : 25503   2734    -       -       -       0.000s
0> - Library    : 872     0       -       -       -       0.000s
0> - Object     : 1856    623     0       624     623     4h:42m 49.305s
0> - Alias      : 1       0       -       -       -       0.000s
0> - Compiler   : 1       1       -       -       -       0.170s
0> - ObjectList : 1856    0       -       -       -       0.000s
0>Cache:
0> - Hits       : 0 (0.0 %)
0> - Misses     : 624
0> - Stores     : 623
0>Time:
0> - Real       : 23m 58.415s
0> - Local CPU  : 4h:42m 49.475s (11.8:1)
0> - Remote CPU : 0.000s (0.0:1)
0>-----------------------------------------------------------------
0>FBuild(0,0): Error: BUILD FAILED: all
0>Time: 24m 0.037s
0>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.MakeFile.Targets(44,5): Error MSB3075: The command "..\..\Build\BatchFiles\Build.bat -Target="UE4Editor Win64 Development" -Target="ShaderCompileWorker Win64 Development -Quiet" -WaitMutex -FromMsBuild -FastPDB" exited with code 5. Please verify that you have sufficient rights to run this command.
0>------- Finished building project: UE4. Succeeded: False. Errors: 6. Warnings: 0```
jarjarfinks commented 4 years ago

Can you provide the files you changed? I'd like to try to help you out with this

duplexsystem commented 4 years ago

@jarjarfinks I just made a repo for it. https://github.com/budgidiere/UnrealEngineCompilationUsingFastBuild

jarjarfinks commented 4 years ago

@budgidiere I got it working, except one issue I'm having....distributed building always ends with an error saying "Failed due to missing file: C:\Users\Public\Git\UnrealEngine\Engine\Source\Action_0"

Any idea what to do about that? Also, I can't post an issue to your repo fyi

duplexsystem commented 4 years ago

@jarjarfinks Yep that's the same problem I'm having. I've narrowed down the code that causes it but don't know what to do. I'll try to enable issues on the repo. If you makes that folder it asks for another folder, etc. I made a python script to make Action_X folders up to 10000 but then I got more errors.

duplexsystem commented 4 years ago

I fixed issues on my repo.

duplexsystem commented 4 years ago

@jarjarfinks I think I figured out the error. I'm also working on addin some new features such as better support for baking this into the engine and having different configurations for different machines. Do you have any feature requests?

jarjarfinks commented 4 years ago

@budgidiere Oh, awesome, I didn't even get to look at anything today lol. I will say I'm not as proficient in C# as I'd like to be, which I didn't realize until I offered to help. Apart from shader compilation, not really, anything you're already planning otherwise?

duplexsystem commented 4 years ago

@jarjarfinks when you enabled network distribution did you have all the registry keys setup for FASTBuild network distribution? I'll look in to shader compilation I think I saw someone doing that with an older build. Also have you been able to get a successful build of the engine? I don't actually know if anything works because I'm using chaos and it gets choked up on some of the special files it uses.

jarjarfinks commented 4 years ago

@budgidiere registry keys? The FASTBuild docs don't say anything about registry keys....I set the environmental variables though. Did I miss something? I haven't tried to get a build since you updated, I'll try again tomorrow. I got distribution working with one worker, but I can't get the rest of my network to recognize it, but it may be due to the fact I'm trying to do a SMB over the internet setup for my remote working folks. I'll try more stuff and let you know when I try either tomorrow or Monday. I appreciate your work!

duplexsystem commented 4 years ago

@jarjarfinks sorry I'm I meant environmental variables. Did you get distribution work in general or with Unreal? I have not updated the GitHub yet. Could you try doing a build with private bool bEnableDistribution = false; in FASTBuild.cs Thank you :)!

duplexsystem commented 4 years ago

I just updated the git repo.

rhinewg commented 4 years ago

is it surport unreal 4.24? I faild in missing file due to ...action_34.

duplexsystem commented 4 years ago

That happens if you have distributed builds enabled. This is a WIP. I have not worked on it this week because I've had time off.

jarjarfinks commented 4 years ago

@budgidiere you get the distributed building working? I'm also having that issue. I think it's due to the fact Fast build doesn't have a system for checking the queue of build actions or managing them this way. So there are files that get missed most of the time

czqjtr commented 4 years ago

@budgidiere I changed some code to make link work, but it shows "link fatal error lnk1158 cannot run 'mt.exe'"

duplexsystem commented 4 years ago

@czqjtr could you post the changes you made in a PR?

czqjtr commented 4 years ago

@budgidiere I got your FASTBuild.cs for UE4.24, but the link part not work when link, so I did some change, the link worked, but "link fatal error lnk1158 cannot run 'mt.exe'". It is my visual studio error, I copied mt.exe and rc.exe to Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.16.27023\bin\Hostx64\x64 . Fortunately, it works well.

czqjtr commented 4 years ago

@budgidiere And I have another idea, why not use cl-filter and link-filter to build in FastBuild. IncrediBuild has used it since UE4.24

duplexsystem commented 4 years ago

@czqjtr I honestly don't know what that means but if you know how to do that then you can made a PR (or just keep it on your own fork)

jarjarfinks commented 4 years ago

@budgidiere does distribution work yet on your version of the repo?

duplexsystem commented 4 years ago

@jarjarfinks no. someone else name a repo and I think it works there. I responded to your issue on my repo with the link. There are still a few issues I'm working on fixing.