[swift-users] memory requirements for building swift on linux?
tony.gray at gmail.com
tony.gray at gmail.com
Mon Dec 14 17:10:56 CST 2015
I started with a Linux VM with 8G of physical RAM, and 4G of swap, and it wouldn’t compile using the instructions on Apple’s Github page (i.e., utils/build-script -t). I eventually managed to get it to build by bumping the VM’s RAM allocation up to 16G, and the amount of swap space to 14G. Even then, it took a very long time (I left it running overnight). It seems to be the linking phase that requires so much memory.
- Tony
> On 15 Dec 2015, at 1:03 AM, Kevin Lundberg via swift-users <swift-users at swift.org> wrote:
>
> Hi All,
>
> I've set up a linux VM (ubuntu 15.10) in virtualbox on my windows PC to
> build and test swift on linux, but I've been unable to successfully
> build it to completion. I have all the repos including the corelibs
> cloned locally, and have followed all the steps as far as I know for
> installing dependencies. Every time I build, it fails somewhere during
> linking, the last time failing when linking "CXX shared library
> lib/libLTO.so".
>
> I don't have the full error, but I'm curious if there's some RAM
> requirement for building swift. My VM had 2GB, and I just bumped it up
> to 4GB to try again. Has anyone else run into this, and is there a
> recommended minimum needed to successfully build swift with? Could
> something else be the cause here instead of RAM if 2GB is in fact enough?
>
> Thanks!
>
> -Kevin
> _______________________________________________
> swift-users mailing list
> swift-users at swift.org
> https://lists.swift.org/mailman/listinfo/swift-users
More information about the swift-users
mailing list