obfuscator-llvm / obfuscator

3.81k stars 1.16k forks source link

Makefile:171 Error 2 when using make -j7 #157

Open xaperret opened 3 years ago

xaperret commented 3 years ago

Hi, after running cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release -DLLVM_INCLUDE_TESTS=OFF ../obfuscator/

I tried to compile by using "make -j7" but it failed almost at the end.

In file included from /usr/include/c++/10.2.0/utility:70,
                 from /home/xavierp/obfuscator/include/llvm/Support/type_traits.h:18,
                 from /home/xavierp/obfuscator/include/llvm/Support/Casting.h:19,
                 from /home/xavierp/obfuscator/tools/clang/include/clang/Basic/LLVM.h:22,
                 from /home/xavierp/obfuscator/tools/clang/include/clang/AST/APValue.h:17,
                 from /home/xavierp/obfuscator/tools/clang/include/clang/AST/Decl.h:17,
                 from /home/xavierp/obfuscator/tools/clang/include/clang/AST/ASTTypeTraits.h:20,
                 from /home/xavierp/obfuscator/tools/clang/include/clang/AST/ASTContext.h:18,
                 from /home/xavierp/obfuscator/tools/clang/lib/Sema/TypeLocBuilder.h:18,
                 from /home/xavierp/obfuscator/tools/clang/lib/Sema/TypeLocBuilder.cpp:15:
/usr/include/c++/10.2.0/bits/stl_pair.h:211:12: note: ‘struct std::pair<void*, long unsigned int>’ declared here
  211 |     struct pair
      |            ^~~~
[ 83%] Linking CXX static library ../../../../lib/libclangSema.a
[ 83%] Built target clangSema
make: *** [Makefile:171: all] Error 2
arrui commented 3 years ago

The same problem,anyone who knows how to solve it?

anderson-luizalabs commented 3 years ago

the same problem

kscieslinski commented 3 years ago

From my experience this is not the real reason for make to fail. It just appears so as you invoke make with multiple threads. If you scroll up you will see other error regarding collect2: fatal error: ld terminated with signal 9 [killed] . In such case try to increase the swap space.

1225574727 commented 3 years ago

Hi, after running cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release -DLLVM_INCLUDE_TESTS=OFF ../obfuscator/

I tried to compile by using "make -j7" but it failed almost at the end.

In file included from /usr/include/c++/10.2.0/utility:70,
                 from /home/xavierp/obfuscator/include/llvm/Support/type_traits.h:18,
                 from /home/xavierp/obfuscator/include/llvm/Support/Casting.h:19,
                 from /home/xavierp/obfuscator/tools/clang/include/clang/Basic/LLVM.h:22,
                 from /home/xavierp/obfuscator/tools/clang/include/clang/AST/APValue.h:17,
                 from /home/xavierp/obfuscator/tools/clang/include/clang/AST/Decl.h:17,
                 from /home/xavierp/obfuscator/tools/clang/include/clang/AST/ASTTypeTraits.h:20,
                 from /home/xavierp/obfuscator/tools/clang/include/clang/AST/ASTContext.h:18,
                 from /home/xavierp/obfuscator/tools/clang/lib/Sema/TypeLocBuilder.h:18,
                 from /home/xavierp/obfuscator/tools/clang/lib/Sema/TypeLocBuilder.cpp:15:
/usr/include/c++/10.2.0/bits/stl_pair.h:211:12: note: ‘struct std::pair<void*, long unsigned int>’ declared here
  211 |     struct pair
      |            ^~~~
[ 83%] Linking CXX static library ../../../../lib/libclangSema.a
[ 83%] Built target clangSema
make: *** [Makefile:171: all] Error 2

I have the same problem. You have the solution?

chenxiaoquan233 commented 3 years ago

same problem

1225574727 commented 3 years ago

Hi, after running cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release -DLLVM_INCLUDE_TESTS=OFF ../obfuscator/ I tried to compile by using "make -j7" but it failed almost at the end.

In file included from /usr/include/c++/10.2.0/utility:70,
                 from /home/xavierp/obfuscator/include/llvm/Support/type_traits.h:18,
                 from /home/xavierp/obfuscator/include/llvm/Support/Casting.h:19,
                 from /home/xavierp/obfuscator/tools/clang/include/clang/Basic/LLVM.h:22,
                 from /home/xavierp/obfuscator/tools/clang/include/clang/AST/APValue.h:17,
                 from /home/xavierp/obfuscator/tools/clang/include/clang/AST/Decl.h:17,
                 from /home/xavierp/obfuscator/tools/clang/include/clang/AST/ASTTypeTraits.h:20,
                 from /home/xavierp/obfuscator/tools/clang/include/clang/AST/ASTContext.h:18,
                 from /home/xavierp/obfuscator/tools/clang/lib/Sema/TypeLocBuilder.h:18,
                 from /home/xavierp/obfuscator/tools/clang/lib/Sema/TypeLocBuilder.cpp:15:
/usr/include/c++/10.2.0/bits/stl_pair.h:211:12: note: ‘struct std::pair<void*, long unsigned int>’ declared here
  211 |     struct pair
      |            ^~~~
[ 83%] Linking CXX static library ../../../../lib/libclangSema.a
[ 83%] Built target clangSema
make: *** [Makefile:171: all] Error 2

I have the same problem. You have the solution? solve the problem can download obfuscator-llvm 5.0(https://github.com/qtfreet00/llvm-obfuscator), compile again!

1225574727 commented 3 years ago

solve the problem can download obfuscator-llvm 5.0(https://github.com/qtfreet00/llvm-obfuscator), compile again!------------------ 原始邮件 ------------------ @.> 发送时间: 2021年4月22日(星期四) 上午9:01 @.>; @.**@.>; 主题: Re: [obfuscator-llvm/obfuscator] Makefile:171 Error 2 when using make -j7 (#157)

wojtess commented 1 year ago

Same problem, any solution?