OpenVic
OpenVic copied to clipboard
Scons tries to use GCC instead of MSVC on Windows 11
MSVC v143 SCons v4.6.0 OpenVic following output when scons is run
scons: Reading SConscript files ...
Auto-detected 12 CPU cores available for build parallelism. Using 11 cores by default. You can override it with the -j argument.
Building for architecture x86_64 on platform windows
Auto-detected 12 CPU cores available for build parallelism. Using 11 cores by default. You can override it with the -j argument.
Building for architecture x86_64 on platform windows
Auto-detected 12 CPU cores available for build parallelism. Using 11 cores by default. You can override it with the -j argument.
Building for architecture x86_64 on platform windows
Auto-detected 12 CPU cores available for build parallelism. Using 11 cores by default. You can override it with the -j argument.
Building for architecture x86_64 on platform windows
Auto-detected 12 CPU cores available for build parallelism. Using 11 cores by default. You can override it with the -j argument.
Building for architecture x86_64 on platform windows
scons: done reading SConscript files.
scons: Building targets ...
[Initial build] g++ -o godot-cpp\src\godot.windows.template_debug.x86_64.o -c -fno-exceptions -std=c++17 -Wwrite-strings -O2 -fvisibility=hidden -DHOT_RELOAD_ENABLED -DWINDOWS_ENABLED -DDEBUG_ENABLED -DDEBUG_METHODS_ENABLED -DNDEBUG -Igodot-cpp\gdextension -Igodot-cpp\include -Igodot-cpp\gen\include godot-cpp\src\godot.cpp
[Initial build] g++ -o godot-cpp\src\classes\editor_plugin_registration.windows.template_debug.x86_64.o -c -fno-exceptions -std=c++17 -Wwrite-strings -O2 -fvisibility=hidden -DHOT_RELOAD_ENABLED -DWINDOWS_ENABLED -DDEBUG_ENABLED -DDEBUG_METHODS_ENABLED -DNDEBUG -Igodot-cpp\gdextension -Igodot-cpp\include -Igodot-cpp\gen\include godot-cpp\src\classes\editor_plugin_registration.cpp
[Initial build] g++ -o godot-cpp\src\classes\low_level.windows.template_debug.x86_64.o -c -fno-exceptions -std=c++17 -Wwrite-strings -O2 -fvisibility=hidden -DHOT_RELOAD_ENABLED -DWINDOWS_ENABLED -DDEBUG_ENABLED -DDEBUG_METHODS_ENABLED -DNDEBUG -Igodot-cpp\gdextension -Igodot-cpp\include -Igodot-cpp\gen\include godot-cpp\src\classes\low_level.cpp
[Initial build] g++ -o godot-cpp\src\classes\wrapped.windows.template_debug.x86_64.o -c -fno-exceptions -std=c++17 -Wwrite-strings -O2 -fvisibility=hidden -DHOT_RELOAD_ENABLED -DWINDOWS_ENABLED -DDEBUG_ENABLED -DDEBUG_METHODS_ENABLED -DNDEBUG -Igodot-cpp\gdextension -Igodot-cpp\include -Igodot-cpp\gen\include godot-cpp\src\classes\wrapped.cpp
[Initial build] g++ -o godot-cpp\src\core\class_db.windows.template_debug.x86_64.o -c -fno-exceptions -std=c++17 -Wwrite-strings -O2 -fvisibility=hidden -DHOT_RELOAD_ENABLED -DWINDOWS_ENABLED -DDEBUG_ENABLED -DDEBUG_METHODS_ENABLED -DNDEBUG -Igodot-cpp\gdextension -Igodot-cpp\include -Igodot-cpp\gen\include godot-cpp\src\core\class_db.cpp
[Initial build] g++ -o godot-cpp\src\core\error_macros.windows.template_debug.x86_64.o -c -fno-exceptions -std=c++17 -Wwrite-strings -O2 -fvisibility=hidden -DHOT_RELOAD_ENABLED -DWINDOWS_ENABLED -DDEBUG_ENABLED -DDEBUG_METHODS_ENABLED -DNDEBUG -Igodot-cpp\gdextension -Igodot-cpp\include -Igodot-cpp\gen\include godot-cpp\src\core\error_macros.cpp
[Initial build] g++ -o godot-cpp\src\core\memory.windows.template_debug.x86_64.o -c -fno-exceptions -std=c++17 -Wwrite-strings -O2 -fvisibility=hidden -DHOT_RELOAD_ENABLED -DWINDOWS_ENABLED -DDEBUG_ENABLED -DDEBUG_METHODS_ENABLED -DNDEBUG -Igodot-cpp\gdextension -Igodot-cpp\include -Igodot-cpp\gen\include godot-cpp\src\core\memory.cpp
[Initial build] g++ -o godot-cpp\src\core\method_bind.windows.template_debug.x86_64.o -c -fno-exceptions -std=c++17 -Wwrite-strings -O2 -fvisibility=hidden -DHOT_RELOAD_ENABLED -DWINDOWS_ENABLED -DDEBUG_ENABLED -DDEBUG_METHODS_ENABLED -DNDEBUG -Igodot-cpp\gdextension -Igodot-cpp\include -Igodot-cpp\gen\include godot-cpp\src\core\method_bind.cpp
[Initial build] g++ -o godot-cpp\src\core\object.windows.template_debug.x86_64.o -c -fno-exceptions -std=c++17 -Wwrite-strings -O2 -fvisibility=hidden -DHOT_RELOAD_ENABLED -DWINDOWS_ENABLED -DDEBUG_ENABLED -DDEBUG_METHODS_ENABLED -DNDEBUG -Igodot-cpp\gdextension -Igodot-cpp\include -Igodot-cpp\gen\include godot-cpp\src\core\object.cpp
[Initial build] g++ -o godot-cpp\src\variant\aabb.windows.template_debug.x86_64.o -c -fno-exceptions -std=c++17 -Wwrite-strings -O2 -fvisibility=hidden -DHOT_RELOAD_ENABLED -DWINDOWS_ENABLED -DDEBUG_ENABLED -DDEBUG_METHODS_ENABLED -DNDEBUG -Igodot-cpp\gdextension -Igodot-cpp\include -Igodot-cpp\gen\include godot-cpp\src\variant\aabb.cpp
[Initial build] scons: *** [godot-cpp\src\godot.windows.template_debug.x86_64.o] The system cannot find the file specified
g++ -o godot-cpp\src\variant\basis.windows.template_debug.x86_64.o -c -fno-exceptions -std=c++17 -Wwrite-strings -O2 -fvisibility=hidden -DHOT_RELOAD_ENABLED -DWINDOWS_ENABLED -DDEBUG_ENABLED -DDEBUG_METHODS_ENABLED -DNDEBUG -Igodot-cpp\gdextension -Igodot-cpp\include -Igodot-cpp\gen\include godot-cpp\src\variant\basis.cpp
scons: *** [godot-cpp\src\classes\editor_plugin_registration.windows.template_debug.x86_64.o] The system cannot find the file specified
scons: *** [godot-cpp\src\classes\low_level.windows.template_debug.x86_64.o] The system cannot find the file specified
scons: *** [godot-cpp\src\classes\wrapped.windows.template_debug.x86_64.o] The system cannot find the file specified
scons: *** [godot-cpp\src\core\class_db.windows.template_debug.x86_64.o] The system cannot find the file specified
scons: *** [godot-cpp\src\core\error_macros.windows.template_debug.x86_64.o] The system cannot find the file specified
scons: *** [godot-cpp\src\core\memory.windows.template_debug.x86_64.o] The system cannot find the file specified
scons: *** [godot-cpp\src\core\method_bind.windows.template_debug.x86_64.o] The system cannot find the file specified
scons: *** [godot-cpp\src\core\object.windows.template_debug.x86_64.o] The system cannot find the file specified
scons: *** [godot-cpp\src\variant\aabb.windows.template_debug.x86_64.o] The system cannot find the file specified
scons: *** [godot-cpp\src\variant\basis.windows.template_debug.x86_64.o] The system cannot find the file specified
scons: building terminated because of errors.
scons can't find MSVC (which would show up as cl in the log) so it's trying to use g++ instead, the error is Windows not being able to find g++.
I'm not sure why this is happening, reinstalling MSVC might fix it. Please let us know if it's still not working (or if you managed to fix it), either here or in the #tech-support channel on our discord server.
Could you please use a more descriptive title for an issue next time?
See OpenVicProject/scripts#8 for warning for these cases.
Closing as archived.