memory requirements for building swift on linux?

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

Hi,
to build Swift from the sources I used a 16 GB bare metal machine and it
was not enough.
So I think, you need a lot of memory ( > 16 GB) to have fun while building
it.

- Toby

···

Kevin Lundberg via swift-users <swift-users@swift.org> schrieb am Mo., 14. Dez. 2015 um 15:03 Uhr:

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@swift.org
https://lists.swift.org/mailman/listinfo/swift-users

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@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@swift.org
https://lists.swift.org/mailman/listinfo/swift-users

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@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@swift.org
https://lists.swift.org/mailman/listinfo/swift-users

For those hitting this issue, you might try building without debug info to see if that helps (build-script -R).

- Daniel

···

On Dec 14, 2015, at 6:55 AM, Kevin Lundberg via swift-users <swift-users@swift.org> wrote:

I was able to build it on my 8GB macbook successfully, but there may be platform differences there that caused that.

It seems that 4GB isn't enough either, fails when linking clang-3.8. I'll have to figure something else out for linux for me. Thanks!

On 12/14/2015 9:30 AM, Tobias Scholze wrote:

Hi,
to build Swift from the sources I used a 16 GB bare metal machine and it was not enough.
So I think, you need a lot of memory ( > 16 GB) to have fun while building it.

- Toby

Kevin Lundberg via swift-users < <mailto:swift-users@swift.org>swift-users@swift.org <mailto:swift-users@swift.org>> schrieb am Mo., 14. Dez. 2015 um 15:03 Uhr:
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@swift.org <mailto:swift-users@swift.org>
https://lists.swift.org/mailman/listinfo/swift-users

_______________________________________________
swift-users mailing list
swift-users@swift.org
https://lists.swift.org/mailman/listinfo/swift-users

I was able to build it on my 8GB macbook successfully, but there may be
platform differences there that caused that.

It seems that 4GB isn't enough either, fails when linking clang-3.8.
I'll have to figure something else out for linux for me. Thanks!

···

On 12/14/2015 9:30 AM, Tobias Scholze wrote:

Hi,
to build Swift from the sources I used a 16 GB bare metal machine and
it was not enough.
So I think, you need a lot of memory ( > 16 GB) to have fun while
building it.

- Toby

Kevin Lundberg via swift-users <swift-users@swift.org
<mailto:swift-users@swift.org>> schrieb am Mo., 14. Dez. 2015 um > 15:03 Uhr:

    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@swift.org <mailto:swift-users@swift.org>
    https://lists.swift.org/mailman/listinfo/swift-users

This appears to have helped me. I’m on to testing the build, it appears my linker woes are behind me. Thanks!

- Kevin

···

On Dec 14, 2015, at 12:04 PM, Daniel Dunbar <daniel_dunbar@apple.com> wrote:

For those hitting this issue, you might try building without debug info to see if that helps (build-script -R).

- Daniel

On Dec 14, 2015, at 6:55 AM, Kevin Lundberg via swift-users <swift-users@swift.org <mailto:swift-users@swift.org>> wrote:

I was able to build it on my 8GB macbook successfully, but there may be platform differences there that caused that.

It seems that 4GB isn't enough either, fails when linking clang-3.8. I'll have to figure something else out for linux for me. Thanks!

On 12/14/2015 9:30 AM, Tobias Scholze wrote:

Hi,
to build Swift from the sources I used a 16 GB bare metal machine and it was not enough.
So I think, you need a lot of memory ( > 16 GB) to have fun while building it.

- Toby

Kevin Lundberg via swift-users < <mailto:swift-users@swift.org>swift-users@swift.org <mailto:swift-users@swift.org>> schrieb am Mo., 14. Dez. 2015 um 15:03 Uhr:
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@swift.org <mailto:swift-users@swift.org>
https://lists.swift.org/mailman/listinfo/swift-users

_______________________________________________
swift-users mailing list
swift-users@swift.org <mailto:swift-users@swift.org>
https://lists.swift.org/mailman/listinfo/swift-users