obfuscator-llvm / obfuscator

3.89k stars 1.17k forks source link

cmake error on kali linux #135

Open ericliyanghui opened 5 years ago

ericliyanghui commented 5 years ago

When I cmake ollvm on kali linux 2018.3 with the operations same as Ubuntu, it failed at 91% process. The error is as follows: In file included from /usr/include/c++/8/utility:70, from /root/obfuscator/obfuscator-llvm-4.0/include/llvm/ADT/iterator_range.h:22, from /root/obfuscator/obfuscator-llvm-4.0/include/llvm/ADT/SmallVector.h:17, from /root/obfuscator/obfuscator-llvm-4.0/include/llvm/ADT/Twine.h:13, from /root/obfuscator/obfuscator-llvm-4.0/include/llvm/ADT/Triple.h:13, from /root/obfuscator/obfuscator-llvm-4.0/tools/lli/OrcLazyJIT.h:18, from /root/obfuscator/obfuscator-llvm-4.0/tools/lli/lli.cpp:16: /usr/include/c++/8/bits/stl_pair.h:198:12: note: ‘struct std::pair<const llvm::MCSymbol*, const llvm::MCSymbol*>’ declared here struct pair ^~~~ make[2]: *** [tools/lli/CMakeFiles/lli.dir/build.make:63: tools/lli/CMakeFiles/lli.dir/lli.cpp.o] Error 1 make[1]: *** [CMakeFiles/Makefile2:40977: tools/lli/CMakeFiles/lli.dir/all] Error 2 make: *** [Makefile:152: all] Error 2

I don't know what's wrong with it.

Naville commented 5 years ago

Your error log is not complete. Also, just a reminder that some legacy LLVM versions require an old version of compiler to compile.

skyel1u commented 5 years ago

Your error log is not complete. Please check your gcc&g++ version first.