<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from text --><style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
</head>
<body>
<meta content="text/html; charset=UTF-8">
<style type="text/css" style="">
<!--
p
{margin-top:0;
margin-bottom:0}
-->
</style>
<div dir="ltr">
<div id="x_divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:#000000; font-family:Calibri,Helvetica,sans-serif">
<p>Thanks for replying, George. </p>
<p>I allocated 16GB to the VM, as well as 4GB swap. Our executable/shared-library are pretty big, usually 500MB to 2GB in size with debug symbols, and we use "make -j 12" for the 6-core (12 hyperthread) CPU to be fully used. I guess it might be due to parallel
linking, the memory usage would skyrocket? Is there a graceful way to avoid this? </p>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="x_divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> George Burgess IV <george.burgess.iv@gmail.com><br>
<b>Sent:</b> Wednesday, July 26, 2017 2:20:21 AM<br>
<b>To:</b> chen hsu<br>
<b>Cc:</b> Clang Dev<br>
<b>Subject:</b> Re: [cfe-dev] clang crashes when running in VM</font>
<div> </div>
</div>
</div>
<font size="2"><span style="font-size:10pt;">
<div class="PlainText">Hello!<br>
<br>
"error: unable to execute command: Killed" sounds a lot like what I<br>
get when clang gets killed for eating all of my system's memory. Are<br>
you sure that your VM has enough RAM to handle linking whatever it is<br>
that you're linking?<br>
<br>
Thanks,<br>
George<br>
<br>
On Tue, Jul 25, 2017 at 5:24 PM, chen hsu via cfe-dev<br>
<cfe-dev@lists.llvm.org> wrote:<br>
> Hi,<br>
><br>
><br>
> we have clang 3.6.2 on ubuntu 16.04 to build our project and it works well<br>
> on physical machines. but when running in VM (HyperV on Windows Server<br>
> 2012R2), it crashes quite often in linking. Is this a known issue? It seems<br>
> possibly related to memory, as the crash happens more frequently when the<br>
> memory size of the VM is relatively small. Thanks.<br>
><br>
><br>
> clang-3.6: error: unable to execute command: Killed<br>
><br>
> clang-3.6: error: clang frontend command failed due to signal (use -v to see<br>
> invocation)<br>
><br>
> clang version 3.6.2 (tags/RELEASE_362/final 252038)<br>
><br>
> Target: x86_64-unknown-linux-gnu<br>
><br>
> Thread model: posix<br>
><br>
> clang-3.6: note: diagnostic msg: PLEASE submit a bug report to<br>
> <a href="http://llvm.org/bugs/">http://llvm.org/bugs/</a> and include the crash backtrace, preprocessed source,<br>
> and associated run script.<br>
><br>
> ********************<br>
><br>
><br>
><br>
><br>
> _______________________________________________<br>
> cfe-dev mailing list<br>
> cfe-dev@lists.llvm.org<br>
> <a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev">http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev</a><br>
><br>
</div>
</span></font>
</body>
</html>