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

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

Open
xaperret opened this issue Nov 3, 2020 · 8 comments
Open

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

xaperret opened this issue Nov 3, 2020 · 8 comments

Comments

@xaperret
Copy link

xaperret commented Nov 3, 2020

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

arrui commented Nov 5, 2020

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

@anderson-luizalabs
Copy link

the same problem

@kscieslinski
Copy link

kscieslinski commented Mar 5, 2021

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

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

same problem

@1225574727
Copy link

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

1225574727 commented Apr 22, 2021 via email

@wojtess
Copy link

wojtess commented Nov 2, 2022

Same problem, any solution?

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

7 participants