Error when compiling release?debug under windows

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By rogerdv

I cant compile the master branch under Windows if I use target=release_debug, I get this error:

d:\work\godot\core\cowdata.h(372) : error C2220: warning treated as error - no 'object' file generated
d:\work\godot\core\cowdata.h(372) : error C2220: warning treated as error - no 'object' file generated
d:\work\godot\core\cowdata.h(372) : warning C4789: buffer 'result' of size 8 bytes will be overrun; 8 bytes will be written starting at offset 8
d:\work\godot\core\cowdata.h(372) : warning C4789: buffer 'result' of size 8 bytes will be overrun; 8 bytes will be written starting at offset 8
d:\work\godot\core\cowdata.h(372) : warning C4789: buffer 'result' of size 8 bytes will be overrun; 8 bytes will be written starting at offset 8
[ 34%] Compiling ==> modules\gdnative\gdnative\vector3.cpp
vector3.cpp
[ 34%] Compiling ==> modules\gdnative\nativescript\api_generator.cpp
[ 34%] scons: *** [modules\gdnative\gdnative\string.windows.opt.tools.64.obj] Error 2
Compiling ==> modules\gdnative\nativescript\godot_nativescript.cpp
api_generator.cpp
godot_nativescript.cpp
scons: building terminated because of errors.

How can I solve this?

same here

PS C:\godot> scons platform=windows tools=no target=release bits=64
scons: Reading SConscript files ...
Configuring for Windows: target=release, bits=64
Found MSVC version 14.1, arch amd64, bits=64
Checking for C header file mntent.h... (cached) no
scons: done reading SConscript files.
scons: Building targets ...
[Initial build] e[94mCompiling e[95m==> e[93mmodules\gdnative\gdnative\string.cppe[0m
string.cpp
c:\godot\core\cowdata.h(372) : error C2220: warning treated as error - no 'object' file generated
c:\godot\core\cowdata.h(372) : error C2220: warning treated as error - no 'object' file generated
c:\godot\core\cowdata.h(372) : warning C4789: buffer 'result' of size 8 bytes will be overrun; 8 bytes will be written starting at offset 8
c:\godot\core\cowdata.h(372) : warning C4789: buffer 'result' of size 8 bytes will be overrun; 8 bytes will be written starting at offset 8
c:\godot\core\cowdata.h(372) : warning C4789: buffer 'result' of size 8 bytes will be overrun; 8 bytes will be written starting at offset 8
scons: *** [modules\gdnative\gdnative\string.windows.opt.64.obj] Error 2
scons: building terminated because of errors.
PS C:\godot>

buribalazs | 2020-05-07 13:00