<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hi all,<div class=""><br class=""></div><div class="">the following could also be of interest: <a href="http://lists.llvm.org/pipermail/llvm-dev/2019-November/thread.html#137226" class="">http://lists.llvm.org/pipermail/llvm-dev/2019-November/thread.html#137226</a></div><div class=""><br class=""></div><div class="">David</div><div class=""><div><br class=""><blockquote type="cite" class=""><div class="">On 3. Jan 2020, at 08:21, Kókai Péter via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org" class="">llvm-dev@lists.llvm.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div dir="auto" class="">Hello,<div dir="auto" class=""><br class=""></div><div dir="auto" class="">I am willing to work on changing the defaults reducing memory for build. Do you have a link for discussion about the agreement?</div><div dir="auto" class="">I am just looking for pointers - as I am pretty much inexperienced with llvm compilation - that could be checked out for finding better defaults. Regardless I am going to check out things mentioned in this thread.</div><div dir="auto" class=""><br class=""></div><div dir="auto" class="">--</div><div class="">Kokan</div><div dir="auto" class=""></div><br class=""><br class=""><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, 2 Jan 2020, 10:12 pm Reid Kleckner via llvm-dev, <<a href="mailto:llvm-dev@lists.llvm.org" target="_blank" class="">llvm-dev@lists.llvm.org</a>> wrote:<br class=""></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr" class="">The last time this came up, we agreed something should be done to fix the defaults, but nobody picked it up and ran with it. I think there was consensus, it just needs legwork now.</div><br class=""><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Jan 2, 2020 at 11:58 AM Aaron Smith via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org" rel="noreferrer" target="_blank" class="">llvm-dev@lists.llvm.org</a>> wrote:<br class=""></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">There was a recent thread on reducing memory:<br class="">
<a href="http://lists.llvm.org/pipermail/llvm-dev/2019-June/thread.html#133215" rel="noreferrer noreferrer" target="_blank" class="">http://lists.llvm.org/pipermail/llvm-dev/2019-June/thread.html#133215</a><br class="">
<br class="">
On Thu, Jan 2, 2020 at 11:24 AM David Blaikie via llvm-dev<br class="">
<<a href="mailto:llvm-dev@lists.llvm.org" rel="noreferrer" target="_blank" class="">llvm-dev@lists.llvm.org</a>> wrote:<br class="">
><br class="">
> Various options for reducing memory usage when building LLVM:<br class="">
> * Don't use bfd-ld, at least use gold, probably use lld if you have it available<br class="">
> * With Ninja and/or CMake there's some way to specify the maximum number of concurrent linkactions - lower this to fit in your available memory<br class="">
> * If you're building with debug info: Use Split DWARF<br class="">
><br class="">
><br class="">
> On Thu, Jan 2, 2020 at 5:21 AM Kókai Péter via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org" rel="noreferrer" target="_blank" class="">llvm-dev@lists.llvm.org</a>> wrote:<br class="">
>><br class="">
>> Hello,<br class="">
>><br class="">
>> I cannot tell you if this is due to ram, but I had ram issue with 32<br class="">
>> GB + 16 core when build with default options (clang was around 1 GB<br class="">
>> binary), you could try to enable shared libraries(BUILD_SHARED_LIBS).<br class="">
>> In that case I did not run into out of memory kind of issues.<br class="">
>><br class="">
>> --<br class="">
>> Kokan<br class="">
>><br class="">
>> On Thu, 2 Jan 2020 at 14:14, Priyanka Panigrahi via llvm-dev<br class="">
>> <<a href="mailto:llvm-dev@lists.llvm.org" rel="noreferrer" target="_blank" class="">llvm-dev@lists.llvm.org</a>> wrote:<br class="">
>> ><br class="">
>> > hello,<br class="">
>> ><br class="">
>> > I am trying to build LLVM with default options. I am getting the following error message after make.<br class="">
>> ><br class="">
>> > [100%] Building C object tools/llvm-c-test/CMakeFiles/llvm-c-test.dir/metadata.c.o<br class="">
>> > [100%] Building C object tools/llvm-c-test/CMakeFiles/llvm-c-test.dir/module.c.o<br class="">
>> > [100%] Building C object tools/llvm-c-test/CMakeFiles/llvm-c-test.dir/object.c.o<br class="">
>> > [100%] Building C object tools/llvm-c-test/CMakeFiles/llvm-c-test.dir/targets.c.o<br class="">
>> > [100%] Linking CXX executable ../../bin/llvm-c-test<br class="">
>> > clang: error: unable to execute command: Killed<br class="">
>> > clang: error: linker command failed due to signal (use -v to see invocation)<br class="">
>> > tools/llvm-lto/CMakeFiles/llvm-lto.dir/build.make:211: recipe for target 'bin/llvm-lto' failed<br class="">
>> > make[2]: *** [bin/llvm-lto] Error 254<br class="">
>> > CMakeFiles/Makefile2:21155: recipe for target 'tools/llvm-lto/CMakeFiles/llvm-lto.dir/all' failed<br class="">
>> > make[1]: *** [tools/llvm-lto/CMakeFiles/llvm-lto.dir/all] Error 2<br class="">
>> > [100%] Built target llvm-lipo<br class="">
>> > clang: error: unable to execute command: Killed<br class="">
>> > clang: error: linker command failed due to signal (use -v to see invocation)<br class="">
>> > tools/llc/CMakeFiles/llc.dir/build.make:212: recipe for target 'bin/llc' failed<br class="">
>> > make[2]: *** [bin/llc] Error 254<br class="">
>> > CMakeFiles/Makefile2:22024: recipe for target 'tools/llc/CMakeFiles/llc.dir/all' failed<br class="">
>> > make[1]: *** [tools/llc/CMakeFiles/llc.dir/all] Error 2<br class="">
>> > clang: error: unable to execute command: Killed<br class="">
>> > clang: error: linker command failed due to signal (use -v to see invocation)<br class="">
>> > tools/dsymutil/CMakeFiles/dsymutil.dir/build.make:476: recipe for target 'bin/dsymutil' failed<br class="">
>> > make[2]: *** [bin/dsymutil] Error 254<br class="">
>> > CMakeFiles/Makefile2:21803: recipe for target 'tools/dsymutil/CMakeFiles/dsymutil.dir/all' failed<br class="">
>> > make[1]: *** [tools/dsymutil/CMakeFiles/dsymutil.dir/all] Error 2<br class="">
>> > clang: error: unable to execute command: Killed<br class="">
>> > clang: error: linker command failed due to signal (use -v to see invocation)<br class="">
>> > tools/llvm-dwp/CMakeFiles/llvm-dwp.dir/build.make:230: recipe for target 'bin/llvm-dwp' failed<br class="">
>> > make[2]: *** [bin/llvm-dwp] Error 254<br class="">
>> > CMakeFiles/Makefile2:24606: recipe for target 'tools/llvm-dwp/CMakeFiles/llvm-dwp.dir/all' failed<br class="">
>> > make[1]: *** [tools/llvm-dwp/CMakeFiles/llvm-dwp.dir/all] Error 2<br class="">
>> > clang: error: unable to execute command: Killed<br class="">
>> > clang: error: linker command failed due to signal (use -v to see invocation)<br class="">
>> > tools/llvm-lto2/CMakeFiles/llvm-lto2.dir/build.make:210: recipe for target 'bin/llvm-lto2' failed<br class="">
>> > make[2]: *** [bin/llvm-lto2] Error 254<br class="">
>> > CMakeFiles/Makefile2:26436: recipe for target 'tools/llvm-lto2/CMakeFiles/llvm-lto2.dir/all' failed<br class="">
>> > make[1]: *** [tools/llvm-lto2/CMakeFiles/llvm-lto2.dir/all] Error 2<br class="">
>> > [100%] Built target lli<br class="">
>> > clang: error: unable to execute command: Killed<br class="">
>> > clang: error: linker command failed due to signal (use -v to see invocation)<br class="">
>> > tools/llvm-isel-fuzzer/CMakeFiles/llvm-isel-fuzzer.dir/build.make:238: recipe for target 'bin/llvm-isel-fuzzer' failed<br class="">
>> > make[2]: *** [bin/llvm-isel-fuzzer] Error 254<br class="">
>> > CMakeFiles/Makefile2:25580: recipe for target 'tools/llvm-isel-fuzzer/CMakeFiles/llvm-isel-fuzzer.dir/all' failed<br class="">
>> > make[1]: *** [tools/llvm-isel-fuzzer/CMakeFiles/llvm-isel-fuzzer.dir/all] Error 2<br class="">
>> > [100%] Built target llvm-opt-fuzzer<br class="">
>> > [100%] Built target llvm-c-test<br class="">
>> > [100%] Built target LTO<br class="">
>> > Makefile:151: recipe for target 'all' failed<br class="">
>> > make: *** [all] Error 2<br class="">
>> ><br class="">
>> > Is it because of RAM? I am trying to build in a 16GB RAM, 12 core processor.<br class="">
>> > Can anyone please help what am I missing?<br class="">
>> ><br class="">
>> > Thank you for your time.<br class="">
>> ><br class="">
>> > Priyanka<br class="">
>> > _______________________________________________<br class="">
>> > LLVM Developers mailing list<br class="">
>> > <a href="mailto:llvm-dev@lists.llvm.org" rel="noreferrer" target="_blank" class="">llvm-dev@lists.llvm.org</a><br class="">
>> > <a href="https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer noreferrer" target="_blank" class="">https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br class="">
>> _______________________________________________<br class="">
>> LLVM Developers mailing list<br class="">
>> <a href="mailto:llvm-dev@lists.llvm.org" rel="noreferrer" target="_blank" class="">llvm-dev@lists.llvm.org</a><br class="">
>> <a href="https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer noreferrer" target="_blank" class="">https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br class="">
><br class="">
> _______________________________________________<br class="">
> LLVM Developers mailing list<br class="">
> <a href="mailto:llvm-dev@lists.llvm.org" rel="noreferrer" target="_blank" class="">llvm-dev@lists.llvm.org</a><br class="">
> <a href="https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer noreferrer" target="_blank" class="">https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br class="">
_______________________________________________<br class="">
LLVM Developers mailing list<br class="">
<a href="mailto:llvm-dev@lists.llvm.org" rel="noreferrer" target="_blank" class="">llvm-dev@lists.llvm.org</a><br class="">
<a href="https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer noreferrer" target="_blank" class="">https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br class="">
</blockquote></div>
_______________________________________________<br class="">
LLVM Developers mailing list<br class="">
<a href="mailto:llvm-dev@lists.llvm.org" rel="noreferrer" target="_blank" class="">llvm-dev@lists.llvm.org</a><br class="">
<a href="https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer noreferrer" target="_blank" class="">https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br class="">
</blockquote></div></div>
</div>
_______________________________________________<br class="">LLVM Developers mailing list<br class=""><a href="mailto:llvm-dev@lists.llvm.org" class="">llvm-dev@lists.llvm.org</a><br class="">https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev<br class=""></div></blockquote></div><br class=""></div></body></html>