Make error on Ubuntu 20.04.
omieo2 opened this issue · comments
When I compiled 4.0 of ollvm, I encountered some error messages.
Compile command:
cmake -DCMAKE_BUILD_TYPE=Release -DLLVM_INCLUDE_TESTS=OFF ../obfuscator/
make -j8
The following errors occur when executing at 82%:
make[2]: *** [tools/clang/lib/CodeGen/CMakeFiles/clangCodeGen.dir/build.make:759:tools/clang/lib/CodeGen/CMakeFiles/clangCodeGen.dir/CGOpenMPRuntime.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:17048:tools/clang/lib/CodeGen/CMakeFiles/clangCodeGen.dir/all] Error 2
make: *** [Makefile:152:all] Error 2
Envirment of OS:
Ubuntu 20.04
gcc 9.3.0 / g++ 9.3.0
ndk 21.1.6352462
cmake 3.10.2
any updates?
Had the same issue, with
Ubuntu 20.04
cmake version 3.16.3
g++-9 (Ubuntu 9.3.0-10ubuntu2) 9.3.0
GNU Make 4.2.1
A workaround is to install g++ 8 next to the version 9 and switch to it before calling cmake and make (see https://linuxconfig.org/how-to-switch-between-multiple-gcc-and-g-compiler-versions-on-ubuntu-20-04-lts-focal-fossa)
$ c++ --version
c++ (Ubuntu 8.4.0-3ubuntu2) 8.4.0
On top of that, you also need to apply the fix from #148 otherwise compilation breaks later on OrcRemoteTargetClient.h
Same issue, with
Arch Linux, cmake version 3.19.2, GNU make 4.3, gcc/g++/c++ 10.2.0
same issue,
centos7 (vmware virtual machine ram:6G/swap:4G)
cmake 3.6.2
gcc 8.3.1
make 3.82
first,i do it :
cmake ../build
make -j8
The same errors occur when executing at 95%.
after,the ram keeps decreasing... at 50~200.
the system killed the process.
by the way, during the running,it has break up repeatedly.
i try but useless:
upgrade
ram:6G--->8G---->10G
swap:4G-->8G
degrade
gcc 9.3---->8.3
then,i just do it again.(again cmake with release) ( ram:6G/swap:4G)
cmake -DCMAKE_BUILD_TYPE=Release ../build
make -j8
after 30mins.. successful!!!
what ????
same issue,with
Arch Linux, cmake version 3.19.6, GNU make 4.3, gcc/g++/c++ 10.2.0
any update?
what about windows 10?
mingw32-make[2]: *** [bin/llvm-undname.exe] Error 1
CMakeFiles\Makefile2:64731: recipe for target 'tools/llvm-undname/CMakeFiles/llvm-undname.dir/all' failed
mingw32-make[1]: *** [tools/llvm-undname/CMakeFiles/llvm-undname.dir/all] Error 2
Makefile:154: recipe for target 'all' failed
mingw32-make: *** [all] Error 2
Following these steps but there are still some error cannot solve this proble
https://www.unknowncheats.me/forum/anti-cheat-bypass/445826-llvm-obfuscator-9-0-1-step-step.html
With gcc/g++ version 9 , got stuck at 97% after running "make -j5" command several times.
Switching to gcc/g++ version 8, got stuck at 98% after running "make -j5" command several times..
Switching to gcc/g++ version 7, got stuck at 99% first, but at second attempt it was 100%.
How to switch gcc/g++ version:
https://linuxconfig.org/how-to-switch-between-multiple-gcc-and-g-compiler-versions-on-ubuntu-20-04-lts-focal-fossa)