Menu

Error in building VeraCrypt-DCS

Kath_lyn
2024-07-12
2024-08-12
  • Kath_lyn

    Kath_lyn - 2024-07-12

    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.

     
  • Fernando Ginez da Silva

    Hi!
    I'm facing the same issue here.
    Kath, did you solve the problem?

     
  • Kath_lyn

    Kath_lyn - 2024-08-12

    Hi,
    Unfortunately the problem is not solved.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.