retdec: Windows build fails with "patch is not recognized as an internal or external command"

Docs state it’s possible to build with any VS version after 2015. This happens with VS 2017 CE:

C:\retdec\build> cmake .. -DCMAKE_INSTALL_PREFIX=c:\retdec -G"Visual Studio 16 2017 Win64"
...
    59>C:\retdec\deps\capstone2llvmir\deps\llvm\src\lib\DebugInfo\PDB\DIA\DIASession.cpp(66): fatal error C1189: #error
       :  "Unknown Visual Studio version." [C:\retdec\build\deps\capstone2llvmir\deps\llvm\llvm-project-prefix\src\llvm
       -project-build\lib\DebugInfo\PDB\LLVMDebugInfoPDB.vcxproj] [c:\retdec\build\deps\capstone2llvmir\deps\llvm\llvm-
       project.vcxproj]

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 16 (9 by maintainers)

Most upvoted comments

Thank you. In the output, we saw the following line:

'patch' is not recognized as an internal or external command

Could you please try installing the patch package into MSYS2 to see whether it fixes the build for you? By running this in the MSYS2 shell:

pacman -S patch

I assume that you have installed everything from our guide, correct?

Great! I have included the patch package into our installation guide.