c:\edk2\DcsPkg\Library\VeraCryptLib\common\Volumes.c(185) : error C2220: warning treated as error - no 'object' file generated
c:\edk2\DcsPkg\Library\VeraCryptLib\common\Volumes.c(185) : warning C4189: 'pkcs5PrfCount' : local variable is initialized but not referenced
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 10.0\Vc\bin\x86_amd64\cl.exe"' : return code '0x2'
Stop.
To fix, changed warning level option to \WX- in VeraCryptLib.inf (not sure if it's the right approach.)
But now have some more errors:
c:\edk2\DcsPkg\DcsInt\DcsInt.c(710) : error C2220: warning treated as error - no 'object' file generated
c:\edk2\DcsPkg\DcsInt\DcsInt.c(710) : warning C4047: 'function' : 'PCRYPTO_INFO ' differs in levels of indirection from 'int'
c:\edk2\DcsPkg\DcsInt\DcsInt.c(710) : warning C4024: 'ReadVolumeHeader' : different types for formal and actual parameter 6
c:\edk2\DcsPkg\DcsInt\DcsInt.c(710) : warning C4047: 'function' : 'CRYPTO_INFO ' differs in levels of indirection from 'PCRYPTO_INFO *'
c:\edk2\DcsPkg\DcsInt\DcsInt.c(710) : warning C4024: 'ReadVolumeHeader' : different types for formal and actual parameter 7
c:\edk2\DcsPkg\DcsInt\DcsInt.c(710) : warning C4020: 'ReadVolumeHeader' : too many actual parameters
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 10.0\Vc\bin\x86_amd64\cl.exe"' : return code '0x2'
Stop.
Could there be a problem or I've done something wrong?
Thanks in advance.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I'm trying to build VeraCrypt-DCS and VeraCrypt-1.26.7 source codes.
-DCS is downloaded from https://github.com/veracrypt/VeraCrypt-DCS-master.
-I followed the instructions from https://github.com/veracrypt/VeraCrypt/blob/master/src/Boot/EFI/Readme.txt file.
I get the following compilation errors:
c:\edk2\DcsPkg\Library\VeraCryptLib\common\Volumes.c(185) : error C2220: warning treated as error - no 'object' file generated
c:\edk2\DcsPkg\Library\VeraCryptLib\common\Volumes.c(185) : warning C4189: 'pkcs5PrfCount' : local variable is initialized but not referenced
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 10.0\Vc\bin\x86_amd64\cl.exe"' : return code '0x2'
Stop.
To fix, changed warning level option to \WX- in VeraCryptLib.inf (not sure if it's the right approach.)
But now have some more errors:
c:\edk2\DcsPkg\DcsInt\DcsInt.c(710) : error C2220: warning treated as error - no 'object' file generated
c:\edk2\DcsPkg\DcsInt\DcsInt.c(710) : warning C4047: 'function' : 'PCRYPTO_INFO ' differs in levels of indirection from 'int'
c:\edk2\DcsPkg\DcsInt\DcsInt.c(710) : warning C4024: 'ReadVolumeHeader' : different types for formal and actual parameter 6
c:\edk2\DcsPkg\DcsInt\DcsInt.c(710) : warning C4047: 'function' : 'CRYPTO_INFO ' differs in levels of indirection from 'PCRYPTO_INFO *'
c:\edk2\DcsPkg\DcsInt\DcsInt.c(710) : warning C4024: 'ReadVolumeHeader' : different types for formal and actual parameter 7
c:\edk2\DcsPkg\DcsInt\DcsInt.c(710) : warning C4020: 'ReadVolumeHeader' : too many actual parameters
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 10.0\Vc\bin\x86_amd64\cl.exe"' : return code '0x2'
Stop.
Could there be a problem or I've done something wrong?
Thanks in advance.
Hi!
I'm facing the same issue here.
Kath, did you solve the problem?
Hi,
Unfortunately the problem is not solved.