<div dir="ltr"><div>Hi Enrique</div><div>There are many options you can set while building the LLVM.</div><div>Given your system features, you can do a release build of llvm. Default one is debug build, you have to change this to release build. <br></div><div> This will result in smaller libraries hence you can complete the linking process. <br></div><div><br></div><div>Thanks.<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, 19 Sep 2019 at 14:54, Enrique González via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Dear all, <div><br></div><div>I'm using a Virtual Machine with Ubuntu 18.04 at VIrtualBox and I'm trying to build the LLVM project from <span style="color:rgb(0,0,0);font-family:Consolas,"Deja Vu Sans Mono","Bitstream Vera Sans Mono",monospace;font-size:13.3px"><a href="https://github.com/llvm/llvm-project.git" target="_blank">https://github.com/llvm/llvm-project.git</a>.</span></div><div><span style="color:rgb(0,0,0);font-family:Consolas,"Deja Vu Sans Mono","Bitstream Vera Sans Mono",monospace;font-size:13.3px"><br></span></div><div><span style="color:rgb(0,0,0);font-family:Consolas,"Deja Vu Sans Mono","Bitstream Vera Sans Mono",monospace;font-size:13.3px">This VM has 6 cores (from an intel core i-7 8th gen), 11GB of RAM and 300GB of storage (from a 1TB HDD) at a laptop, this is the model: MSI GS63 Stealth 8RE.</span></div><div><span style="color:rgb(0,0,0);font-family:Consolas,"Deja Vu Sans Mono","Bitstream Vera Sans Mono",monospace;font-size:13.3px"><br></span></div><div><span style="color:rgb(0,0,0);font-family:Consolas,"Deja Vu Sans Mono","Bitstream Vera Sans Mono",monospace;font-size:13.3px">Then, I'm doing exactly that this tutorial says to build LLVM: </span><a href="https://llvm.org/docs/GettingStarted.html" target="_blank">https://llvm.org/docs/GettingStarted.html</a></div><div><br></div><div>1) Clone the project from git: "git clone 

<a href="https://github.com/llvm/llvm-project.git" target="_blank">https://github.com/llvm/llvm-project.git</a>".</div><div>2) Use cmake at the build directory: "cmake -G 'Ninja' ../llvm".</div><div>3) Build the project with ninja: "ninja" (i do not use any flag).</div><div><br></div><div>It seems to build well until i reach the final part, where the build try to link CXX executables. At this point, the VM freeze and I cannot do anything. 

 I also have tried to expand the SWAP memory creating a second swap file with 90GB and the VM also freeze. </div><div><br></div><div>I have tried this like 20 times and I don't know why this happens, it seems impossible to build this project. If you have any suggestions, please reply this post.<br></div><div><br></div><div>Thanks in advance.</div></div>
_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a><br>
<a href="https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br>
</blockquote></div>