[cfe-dev] collect2: fatal error: ld terminated with signal 9 [Killed] clang

suyash singh via cfe-dev cfe-dev at lists.llvm.org
Wed Mar 25 11:06:38 PDT 2020


I was building clang on Ubuntu 18.04
https://clang.llvm.org/get_started.html#build

and got the error message
*collect2: fatal error: ld terminated with signal 9 [Killed] clang*

I have 8 GB ram
and increased the Linux swap to 40 GB but still same problem.

Full error message








*collect2: fatal error: ld terminated with signal 9 [Killed]compilation
terminated.tools/lto/CMakeFiles/LTO.dir/build.make:270: recipe for target
'lib/libLTO.so.11git' failedmake[2]: *** [lib/libLTO.so.11git] Error
1make[2]: *** Deleting file
'lib/libLTO.so.11git'CMakeFiles/Makefile2:23538: recipe for target
'tools/lto/CMakeFiles/LTO.dir/all' failedmake[1]: ***
[tools/lto/CMakeFiles/LTO.dir/all] Error 2Makefile:151: recipe for target
'all' failedmake: *** [all] Error 2*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20200325/0e65c55b/attachment.html>


More information about the cfe-dev mailing list