<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="">Prior to the script hanging, I see the following:<div class=""><br class=""></div><div class="">> ninja: no work to do</div><div class="">> llvm: using gold linker</div><div class=""><br class=""></div><div class="">Presumably that means I am using gold, correct?<br class=""><div><blockquote type="cite" class=""><div class="">On May 6, 2017, at 9:21 PM, Brandon B <<a href="mailto:brandonb2019@gmail.com" class="">brandonb2019@gmail.com</a>> 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="">> <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 ld 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></div></blockquote></div><br class=""></div></body></html>