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

Install error #1

Open
Wan-YunPeng opened this issue Sep 21, 2016 · 5 comments
Open

Install error #1

Wan-YunPeng opened this issue Sep 21, 2016 · 5 comments

Comments

@Wan-YunPeng
Copy link

I use these commands:
mkdir build
cd build
cmake ..
make
and then I get this error:
[ 97%] Linking CXX executable ../../../../bin/clang
collect2: fatal error: ld terminated with signal 9 [Killed]
compilation terminated.
tools/clang/tools/driver/CMakeFiles/clang.dir/build.make:351: recipe for target 'bin/clang-3.4' failed
make[2]: *** [bin/clang-3.4] Error 1
make[2]: *** Deleting file 'bin/clang-3.4'
CMakeFiles/Makefile2:16927: recipe for target 'tools/clang/tools/driver/CMakeFiles/clang.dir/all' failed
make[1]: *** [tools/clang/tools/driver/CMakeFiles/clang.dir/all] Error 2
Makefile:149: recipe for target 'all' failed
make: *** [all] Error 2
Did I install it in a wrong way, or something else?
Please tell me how to install it, Thank you.

@withzombies
Copy link

It's possible that your machine or virtual machine doesn't have enough RAM.

ld, the linker, was killed before the build finished. This could be because the system ran out of memory and killed it.

@Wan-YunPeng
Copy link
Author

Oh, yeah, the problem is I don't have enough RAM, Thanks a lot.

@Wan-YunPeng
Copy link
Author

Another question, when I use make, I get :

llvm[4]: Compiling driver.cpp for Debug+Asserts build
llvm[4]: Linking Debug+Asserts executable clang
collect2: fatal error: ld terminated with signal 9 [Killed]
compilation terminated.
/home/rex/clang-cgc/Makefile.rules:1377: recipe for target '/home/rex/clang-cgc/Debug+Asserts/bin/clang' failed
make[4]: *** [/home/rex/clang-cgc/Debug+Asserts/bin/clang] Error 1
make[4]: Leaving directory '/home/rex/clang-cgc/tools/clang/tools/driver'
/home/rex/clang-cgc/Makefile.rules:900: recipe for target 'driver/.makeall' failed
make[3]: *** [driver/.makeall] Error 2
make[3]: Leaving directory '/home/rex/clang-cgc/tools/clang/tools'
/home/rex/clang-cgc/Makefile.rules:851: recipe for target 'all' failed
make[2]: *** [all] Error 1
make[2]: Leaving directory '/home/rex/clang-cgc/tools/clang'
/home/rex/clang-cgc/Makefile.rules:900: recipe for target 'clang/.makeall' failed
make[1]: *** [clang/.makeall] Error 2
make[1]: Leaving directory '/home/rex/clang-cgc/tools'
/home/rex/clang-cgc/Makefile.rules:851: recipe for target 'all' failed
make: *** [all] Error 1

Am I installing it in a wrong way ?

@yizhidou
Copy link

yizhidou commented Feb 6, 2017

But may I ask...how could you know it was because lacking of RAM or not when you were dealing with your first issue...Actually I'm suffering almost the same situation and I'm totally a beginner. :(
Thanks.

@demoray
Copy link

demoray commented Feb 6, 2017

I'm guessing it is because @withzombies deals with building clang frequently.

Clang takes extensive resources to build, which frequently show up as SIGSEGV errors in the various build tools.

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

4 participants