obfuscator-llvm / obfuscator

3.89k stars 1.17k forks source link

Fixing bugs #176

Open rc-94 opened 1 year ago

rc-94 commented 1 year ago

Hello,

I had some difficulties to compile the project. I finally managed to do it and, as the project does not seem maintained, this may interest someone.

First, I had the following error:

make: *** [Makefile:156: all] Error 2

caused by this : tools/clang/lib/CodeGen/CGOpenMPRuntime.cpp:6275:24: error: lambda parameter ‘CGF’ previously declared as a capture. So you should apply all the patches available here : https://github.com/obfuscator-llvm/obfuscator/pull/172/files

After that, again, I had :

make[2]: * [tools/lto/CMakeFiles/LTO.dir/build.make:158: lib/libLTO.so.4.0.1] Error 1
make[1]: * [CMakeFiles/Makefile2:7383: tools/lto/CMakeFiles/LTO.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....

Then, you should add -DLLVM_PARALLEL_LINK_JOBS=1 to the command line of the cmake. This worked for me.