<div dir="ltr">Hi,<div><br></div><div>It seems that your linker was killed during its process, likely because out-of-memory. Here are a few tips:</div><div><br></div><div>- Are you building in parallel? One thing would be to reduce the parallelism level.</div><div>- By default linux distribution are using the bfd linker, try to switch to gold instead (cmake -DLLVM_USE_LINKER=gold) it is usually a lot more performant.<br></div><div>- Build with optimization and without debug info: cmake -DCMAKE_BUILD_TYPE=Release. </div><div><br></div><div>Hope this'll help!</div><div> <br></div><div>-- </div><div>Mehdi</div></div><div class="gmail_extra"><br><div class="gmail_quote">2017-08-11 9:14 GMT-07:00 Adrian Victor Crisciu via llvm-dev <span dir="ltr"><<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div>Hi,<br><br></div>I tried to build LLVM 4.0.1 on a Slackware Linux box with 3 GB of RAM using gcc-7.1.0. Near the end of the build process, I hit the following error:<br><br>[ 89%] Linking CXX shared library ../../lib/libLTO.so<br><br>collect2: fatal error: ld terminated with signal 9 [Killed]<br>compilation terminated.<br>tools/lto/CMakeFiles/LTO.dir/<wbr>build.make:269: recipe for target 'lib/libLTO.so.4.0.1'<br>failed<br>make[2]: *** [lib/libLTO.so.4.0.1] Error 1<br>make[2]: *** Deleting file 'lib/libLTO.so.4.0.1'<br>CMakeFiles/Makefile2:13932: recipe for target 'tools/lto/CMakeFiles/LTO.dir/<wbr>all'<br>failed<br>make[1]: *** [tools/lto/CMakeFiles/LTO.dir/<wbr>all] Error 2<br>Makefile:149: recipe for target 'all' failed<br>make: *** [all] Error 2<br><br></div>Can anyone help me with this problem?<br><br></div>Thank you in advance for your time!<span class="HOEnZb"><font color="#888888"><br></font></span></div><span class="HOEnZb"><font color="#888888">Adrian Crisciu<br></font></span></div>
<br>______________________________<wbr>_________________<br>
LLVM Developers mailing list<br>
<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/<wbr>mailman/listinfo/llvm-dev</a><br>
<br></blockquote></div><br></div>