<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">On Darwin (which uses its own linker and not GNU ld), you can definitely build Swift with less than 16GB of RAM available.<div class=""><br class=""></div><div class="">Maybe you could try gold?</div><div class=""><br class=""></div><div class="">Slava</div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On May 6, 2017, at 7:21 PM, Brandon B via swift-users &lt;<a href="mailto:swift-users@swift.org" class="">swift-users@swift.org</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html charset=utf-8" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hello,<div class=""><br class=""></div><div class="">I’m installing Swift 3 on FreeBSD 11. After installing the necessary dependencies, I now only need to run the build-script.</div><div class=""><br class=""></div><div class="">The problem is that I cannot proceed beyond:</div><div class=""><br class=""></div><div class="">&gt; &nbsp;<span style="color: rgb(36, 39, 41); font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; font-size: 15px; background-color: rgb(252, 249, 238);" class="">Linking CXX executable bin/llvm-lto</span></div><div class=""><br class=""></div><div class="">because I consistently run out of memory on my 16GB server.</div><div class=""><br class=""></div><div class="">From what I’ve gathered, the problem lies in &nbsp;ld &nbsp;which is apparently infamous for this sort of behavior.</div><div class=""><br class=""></div><div class="">I know that I can run ld without debug options (which would reduce its memory footprint dramatically) but I don’t know how I would do that, given that it is called by the build-script.</div><div class=""><br class=""></div><div class="">What do I need to do to make the build-script use less memory?</div><div class=""><br class=""></div><div class="">— Brandon Bradley</div></div>_______________________________________________<br class="">swift-users mailing list<br class=""><a href="mailto:swift-users@swift.org" class="">swift-users@swift.org</a><br class="">https://lists.swift.org/mailman/listinfo/swift-users<br class=""></div></blockquote></div><br class=""></div></body></html>