I encounter an error while building Godot

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By snwflk
:warning: Old Version Published before Godot 3 was released.

I followed the instructions here: Compiling for Windows — Godot Engine (latest) documentation in English?
I get warnings and errors:
multiple type cast warnings like:

warning C4311: 'type cast': pointer truncation from 'void *' to 'long'
warning C4311: 'type cast': pointer truncation from 'const unsigned char *' to 'unsigned long'

then

thirdparty\openssl\crypto\whrlpool\wp_block.c(87): warning C4164: '_rotl64': intrinsic function not declared

and this kind of warnings:

j:\godot\modules\stb_vorbis\audio_stream_ogg_vorbis.h(37): warning C4068: unknown pragma
j:\godot\modules\stb_vorbis\audio_stream_ogg_vorbis.h(38): warning C4068: unknown pragma
j:\godot\modules\stb_vorbis\audio_stream_ogg_vorbis.h(40): warning C4068: unknown pragma
modules\stb_vorbis\audio_stream_ogg_vorbis.cpp(34): warning C4068: unknown pragma
modules\stb_vorbis\audio_stream_ogg_vorbis.cpp(35): warning C4068: unknown pragma
modules\stb_vorbis\audio_stream_ogg_vorbis.cpp(37): warning C4068: unknown pragma

Errors:

openssl\ssl\s2_clnt.c
\thirdparty\openssl\ssl\s3_clnt.windows.tools.64.obj
Access is denied
cons: building terminated because of errors.

Other times I try to build I get:

cl : Command line error D8022 : cannot open 'h:\~1\temp\tmpoddcdd.lnk'
scons: *** [thirdparty\libsimplewebm\libwebm\mkvparser\mkvparser.windows.tools.64.obj] Error 2

Any ideas?