Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make error on Ubuntu 20.04. #151

Open
omieo2 opened this issue May 12, 2020 · 8 comments
Open

Make error on Ubuntu 20.04. #151

omieo2 opened this issue May 12, 2020 · 8 comments

Comments

@omieo2
Copy link

omieo2 commented May 12, 2020

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
@NotoriousRebel
Copy link

any updates?

@mi-art
Copy link

mi-art commented Jul 31, 2020

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

@Luckyton
Copy link

Same issue, with
Arch Linux, cmake version 3.19.2, GNU make 4.3, gcc/g++/c++ 10.2.0

@int0x7
Copy link

int0x7 commented Jan 8, 2021

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 ????

@ttxs69
Copy link

ttxs69 commented Mar 4, 2021

same issue,with
Arch Linux, cmake version 3.19.6, GNU make 4.3, gcc/g++/c++ 10.2.0
any update?

@Zaibali9999
Copy link

Zaibali9999 commented Feb 15, 2022

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

@Zaibali9999
Copy link

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

@AnsaryTanvir
Copy link

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants