Error executing Waf, help appreciated

I installed latest Lumberyard, now when I try to rebuild project (Starter Game) it fails with “Error executing WAF”. I fixed the first reason for this error, it was due to a space being in the install directory. Once I removed the space from the install directory this is what I get:

“E:\AmazonGames\1.24.0.0\dev\lmbr_waf.bat” build_win_x64_vs2019_profile --enabled-game-projects=StarterGame -p all
[WAF] Engine Root: E:\AmazonGames\1.24.0.0\dev
[WAF] Executing ‘build_win_x64_vs2019_profile’ in ‘e:\AmazonGames\1.24.0.0\dev\BinTemp\win_x64_vs2019_profile’
[INFO] Regenerating 3rd Party settings file…
[WARN] Missing JDK path from Setup Assistant detected. Target platforms that require java will be disabled. Please re-run Setup Assistant with “Compile For Android” enabled and run the configure command again.
[SETTINGS] msvs_version = 16 (default 15)
[SETTINGS] Target Output folder (win_x64_vs2019/profile): Bin64vc142
[SETTINGS] enable_android_armv8_clang = False (default True)
[SETTINGS] enable_win_x64_vs2017 = False (default True)
[WARNING] Incredibuild disabled by build option
[WARN] Invalid module ‘AmazonQtControlGallery’ in spec ‘all’
[WARN] Invalid module ‘LyIdentity_shared’ in spec ‘all’
[WARN] Invalid module ‘LyIdentity_static’ in spec ‘all’
[WARN] Invalid module ‘LyInstallerMetrics’ in spec ‘all’
[WARN] Invalid module ‘LyMetricsConsumer’ in spec ‘all’
[WARN] Invalid module ‘LyMetricsProducer_python’ in spec ‘all’
[WARN] Invalid module ‘LyMetricsProducer_shared’ in spec ‘all’
[WARN] Invalid module ‘LyMetricsProducer_static’ in spec ‘all’
[WARN] Invalid module ‘LyMetricsShared_shared’ in spec ‘all’
[WARN] Invalid module ‘LyMetricsShared_static’ in spec ‘all’
[WARN] Invalid module ‘LyzardGems’ in spec ‘all’
[WARN] Invalid module ‘LyzardEngines’ in spec ‘all’
[WARN] Invalid module ‘LyzardProjects’ in spec ‘all’
[WARN] Invalid module ‘NewsBuilder’ in spec ‘all’
[WARN] Invalid module ‘ToolsCrashUploader’ in spec ‘all’
[WARN] Invalid module ‘SerializeContextTools’ in spec ‘all’
[WARN] Invalid module ‘DeltaCataloger’ in spec ‘all’
[WARN] Module use dependency ‘CrashHandler’ for target ‘CrySystem’ refers to an invalid module
[WARN] Module use dependency ‘LyIdentity_shared’ for target ‘EditorLib’ refers to an invalid module
[WARN] Module use dependency ‘LyMetricsProducer_shared’ for target ‘EditorLib’ refers to an invalid module
[WARN] Module use dependency ‘LyMetricsShared_shared’ for target ‘EditorLib’ refers to an invalid module
[WARN] Module use dependency ‘ToolsCrashHandler’ for target ‘EditorLib’ refers to an invalid module
[WARN] Module use dependency ‘LyIdentity_shared’ for target ‘Editor’ refers to an invalid module
[WARN] Module use dependency ‘LyMetricsProducer_shared’ for target ‘Editor’ refers to an invalid module
[WARN] Module use dependency ‘LyMetricsShared_shared’ for target ‘Editor’ refers to an invalid module
[WARN] Module use dependency ‘LyIdentity_shared’ for target ‘AssetProcessor’ refers to an invalid module
[WARN] Module use dependency ‘LyMetricsProducer_shared’ for target ‘AssetProcessor’ refers to an invalid module
[WARN] Module use dependency ‘LyMetricsShared_shared’ for target ‘AssetProcessor’ refers to an invalid module
[WARN] Module use dependency ‘ToolsCrashHandler’ for target ‘AssetProcessor’ refers to an invalid module
[WARN] Module use dependency ‘LyIdentity_shared’ for target ‘AssetProcessorBatch’ refers to an invalid module
[WARN] Module use dependency ‘LyMetricsProducer_shared’ for target ‘AssetProcessorBatch’ refers to an invalid module
[WARN] Module use dependency ‘LyMetricsShared_shared’ for target ‘AssetProcessorBatch’ refers to an invalid module
[WARN] Module use dependency ‘LyIdentity_shared’ for target ‘UiCanvasEditor’ refers to an invalid module
[WARN] Module use dependency ‘LyMetricsProducer_shared’ for target ‘UiCanvasEditor’ refers to an invalid module
[WARN] Module use dependency ‘LyMetricsShared_shared’ for target ‘UiCanvasEditor’ refers to an invalid module
[WARN] Module use dependency ‘LyIdentity_shared’ for target ‘MaglevControlPanel’ refers to an invalid module
[WARN] Module use dependency ‘LyMetricsProducer_shared’ for target ‘MaglevControlPanel’ refers to an invalid module
[WARN] Module use dependency ‘LyMetricsShared_shared’ for target ‘MaglevControlPanel’ refers to an invalid module
[WARN] Module use dependency ‘LyIdentity_shared’ for target ‘ResourceCompilerPC’ refers to an invalid module
[WARN] Module use dependency ‘LyMetricsProducer_shared’ for target ‘ResourceCompilerPC’ refers to an invalid module
[WARN] Module use dependency ‘LyMetricsShared_shared’ for target ‘ResourceCompilerPC’ refers to an invalid module
[WARN] Module use dependency ‘LyIdentity_shared’ for target ‘LuaIDE’ refers to an invalid module
[WARN] Module use dependency ‘LyMetricsProducer_shared’ for target ‘LuaIDE’ refers to an invalid module
[WARN] Module use dependency ‘LyMetricsShared_shared’ for target ‘LuaIDE’ refers to an invalid module
[WARN] Module use dependency ‘ToolsCrashHandler’ for target ‘LuaIDE’ refers to an invalid module
[WARN] Module use dependency ‘LyIdentity_shared’ for target ‘Profiler’ refers to an invalid module
[WARN] Module use dependency ‘LyMetricsProducer_shared’ for target ‘Profiler’ refers to an invalid module
[WARN] Module use dependency ‘LyMetricsShared_shared’ for target ‘Profiler’ refers to an invalid module
[WARN] Module use dependency ‘LyIdentity_shared’ for target ‘AssetBundlerBatch’ refers to an invalid module
[WARN] Module use dependency ‘LyMetricsProducer_shared’ for target ‘AssetBundlerBatch’ refers to an invalid module
[WARN] Module use dependency ‘LyMetricsShared_shared’ for target ‘AssetBundlerBatch’ refers to an invalid module
[WARN] Module use dependency ‘LyIdentity_shared’ for target ‘EMotionFX.Editor’ refers to an invalid module
[WARN] Module use dependency ‘LyMetricsProducer_shared’ for target ‘EMotionFX.Editor’ refers to an invalid module
[WARN] Module use dependency ‘LyMetricsShared_shared’ for target ‘EMotionFX.Editor’ refers to an invalid module
[WARN] Module use dependency ‘LyIdentity_shared’ for target ‘Clouds.Editor’ refers to an invalid module
[WARN] Module use dependency ‘LyMetricsProducer_shared’ for target ‘Clouds.Editor’ refers to an invalid module
[WARN] Module use dependency ‘LyMetricsShared_shared’ for target ‘Clouds.Editor’ refers to an invalid module
[WARN] Module use dependency ‘LyIdentity_shared’ for target ‘ScriptCanvasGem.Editor’ refers to an invalid module
[WARN] Module use dependency ‘LyMetricsProducer_shared’ for target ‘ScriptCanvasGem.Editor’ refers to an invalid module
[WARN] Module use dependency ‘LyMetricsShared_shared’ for target ‘ScriptCanvasGem.Editor’ refers to an invalid module
[WARN] Module use dependency ‘LyIdentity_shared’ for target ‘ScriptCanvasEditor’ refers to an invalid module
[WARN] Module use dependency ‘LyMetricsProducer_shared’ for target ‘ScriptCanvasEditor’ refers to an invalid module
[WARN] Module use dependency ‘LyMetricsShared_shared’ for target ‘ScriptCanvasEditor’ refers to an invalid module
[WARN] Module use dependency ‘LyIdentity_shared’ for target ‘LmbrCentral.Editor’ refers to an invalid module
[WARN] Module use dependency ‘LyMetricsProducer_shared’ for target ‘LmbrCentral.Editor’ refers to an invalid module
[WARN] Module use dependency ‘LyMetricsShared_shared’ for target ‘LmbrCentral.Editor’ refers to an invalid module
[WARNING] ‘includes’ value ‘e:\amazongames\1.24.0.0\dev\code\tools\lymetrics\lymetricsproducer\include’ defined in TaskGenerator “AssetProcessor” does not exist
[WARNING] ‘includes’ value ‘e:\amazongames\1.24.0.0\dev\code\tools\lymetrics\lymetricsproducer\include’ defined in TaskGenerator “AssetProcessorBatch” does not exist
[WARNING] ‘includes’ value ‘e:\amazongames\1.24.0.0\dev\code\tools\lymetrics\lymetricsproducer\include’ defined in TaskGenerator “AssetBundlerBatch” does not exist
unable to find QT
unable to find QT resources or translations
unable to find QT
Traceback (most recent call last):
File “E:\AmazonGames\1.24.0.0\dev\Tools\build\waf-1.7.13\waflib\Scripting.py”, line 226, in waf_entry_point
run_commands()
File “E:\AmazonGames\1.24.0.0\dev\Tools\build\waf-1.7.13\waflib\Scripting.py”, line 342, in run_commands
ctx = run_command(cmd_name)
File “E:\AmazonGames\1.24.0.0\dev\Tools\build\waf-1.7.13\waflib\Scripting.py”, line 319, in run_command
ctx.execute()
File “E:\AmazonGames\1.24.0.0\dev\Tools\build\waf-1.7.13\lmbrwaflib\build_configurations.py”, line 1507, in execute
return execute_method(self)
File “E:\AmazonGames\1.24.0.0\dev\Tools\build\waf-1.7.13\lmbrwaflib\msvs.py”, line 2226, in override_build_state
old(ctx)
File “E:\AmazonGames\1.24.0.0\dev\Tools\build\waf-1.7.13\lmbrwaflib\build_configurations.py”, line 1507, in execute
return execute_method(self)
File “E:\AmazonGames\1.24.0.0\dev\Tools\build\waf-1.7.13\waflib\Scripting.py”, line 696, in execute
return execute_method(self)
File “E:\AmazonGames\1.24.0.0\dev\Tools\build\waf-1.7.13\waflib\Build.py”, line 252, in execute
self.execute_build()
File “E:\AmazonGames\1.24.0.0\dev\Tools\build\waf-1.7.13\waflib\Build.py”, line 275, in execute_build
self.compile()
File “E:\AmazonGames\1.24.0.0\dev\Tools\build\waf-1.7.13\waflib\Build.py”, line 368, in compile
self.producer.start()
File “E:\AmazonGames\1.24.0.0\dev\Tools\build\waf-1.7.13\waflib\Runner.py”, line 306, in start
self.refill_task_list()
File “E:\AmazonGames\1.24.0.0\dev\Tools\build\waf-1.7.13\waflib\Runner.py”, line 208, in refill_task_list
self.add_outstanding_tasks(next(self.biter))
File “E:\AmazonGames\1.24.0.0\dev\Tools\build\waf-1.7.13\waflib\Build.py”, line 816, in get_build_iterator
self.post_group()
File “E:\AmazonGames\1.24.0.0\dev\Tools\build\waf-1.7.13\waflib\Build.py”, line 787, in post_group
f()
File “E:\AmazonGames\1.24.0.0\dev\Tools\build\waf-1.7.13\waflib\TaskGen.py”, line 218, in post
v()
File “E:\AmazonGames\1.24.0.0\dev\Tools\build\waf-1.7.13\lmbrwaflib\cry_utils.py”, line 898, in add_compiler_dependency
if os.path.isabs( self.env[‘CC’] ):
File “E:\AmazonGames\1.24.0.0\dev\Tools\Python\3.7.5\windows\lib\ntpath.py”, line 69, in isabs
s = os.fspath(s)
TypeError: expected str, bytes or os.PathLike object, not list
Process failed with return code: 1

hi…
They used std::runtime_error in Sandbox’s code.
Another error for " std::runtime_error " can be solved by add this line in StdAfx.h of Editor module:
[Lumberyard_Root]\dev\Code\Sandbox\Editor\StdAfx.h

#include <stdexcept>

open ILevelSystem.h
The code that creates problems is:

typedef struct
{
string name;
string xmlFile;
int cgfCount;
void GetMemoryUsage(ICrySizer* pSizer) const
{
pSizer->AddObject(name);
pSizer->AddObject(xmlFile);
}
} TGameTypeInfo ;

In C++ you don’t need typedef… Solution:

struct TGameTypeInfo
{
string name;
string xmlFile;
int cgfCount;
void GetMemoryUsage(ICrySizer* pSizer) const
{
pSizer->AddObject(name);
pSizer->AddObject(xmlFile);
}
};

The error you are seeing is due to a malformed command. In this case, you probably want to be building “-p game_and_engine” instead of “-p game”.