<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Jan 2, 2020 at 6:09 PM Itaru Kitayama <<a href="mailto:itaru.kitayama@gmail.com">itaru.kitayama@gmail.com</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"><div dir="ltr">David,</div>Yes, I was indeed trying to build LLVM with a Debug build. I'll stop doing that from now on.</div></blockquote><div><br>I mean, you can - it's just going to be super slow & mostly not what you want, unless you're trying to debug that building process. Usually you'd want to isolate one particular test case, maybe even reduce it, before running it with a debug build of LLVM which will be quite slow (because it's not optimized at all).<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"><div>I am on JSC's JURON machine which has 251 GB of memory on the login node, that's more than sufficient<br></div><div>to do a build, I suppose, and the linker is LLD as LLVM has a CMake variable to select the linker. <br></div></div></blockquote><div><br></div><div>Yep, sounds like you're just tripping over the fact that an unoptimized/debug build of LLVM is very slow. *thumbs up*</div><div> </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"><div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Jan 3, 2020 at 11:02 AM David Blaikie <<a href="mailto:dblaikie@gmail.com" target="_blank">dblaikie@gmail.com</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">Were you trying to use a Debug build to build LLVM? Yes, that would be very slow.<br><br>If you mean you were using a release build of LLVM to build a Debug build of LLVM - yeah, that's generally going to be recommended. Did this get slower/change significantly in performance? Many people have trouble with building Debug builds (no matter the host compiler) especially if they're using bfd-ld, since it's quite slow/uses a lot of memory. There are a few other issues to do with memory usage (do you have less than about a GB of RAM per CPU? Then you'll probably hit swapping by default & have a bad time - there are ways around that)<div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Jan 2, 2020 at 5:42 PM Itaru Kitayama via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">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">Hi,<div><div>When building LLVM, is it always recommended to do it with the</div><div>latest official release, currently, it is 9.0.1? I ask because when I tried</div><div>it with a Debug build, it took an enormous amount of time on POWER8. </div></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>
</blockquote></div></div></div></div>
</blockquote></div></div>