Re: [swift-users] memory requirements for building swift on linux?

2015-12-15 Thread Luca Finzi Contini via swift-users
Hi,
I have tried to build the swift ecosystem on an Ubuntu 15.10 machine loaded
with 16GB of RAM and 16GB of swap space.
What happens is that if you run the "utils/build-script -t" command as
suggested, this will use all processors available to speedup the build
BUT
it will also try to perform parallel links of tools when finished
compiling.
This is when memory is filled up totally and disks start to grind.
I tried running the whole thing with just one single job, using:

utils/build-script -j 1 -t

and it took more time to finish but it finished :)

I think there could be room for some enhancements in the way that the build
script uses processors : either you know how much RAM isneeded to build the
whole thing, or just get down to one single job for the purpose of linking.



Message: 7
> Date: Mon, 14 Dec 2015 09:03:36 -0500
> From: Kevin Lundberg <ke...@klundberg.com>
> To: swift-users@swift.org
> Subject: [swift-users] memory requirements for building swift on
> linux?
> Message-ID: <566ecc38.9030...@klundberg.com>
> Content-Type: text/plain; charset=utf-8
>
> 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
>
>
> --
>
> Message: 8
> Date: Mon, 14 Dec 2015 14:30:22 +
> From: Tobias Scholze <tobias.scho...@gmail.com>
> To: Kevin Lundberg <ke...@klundberg.com>, swift-users@swift.org
> Subject: Re: [swift-users] memory requirements for building swift on
> linux?
> Message-ID:
> <CAHZb28bw_7M10b+j69h55ykxunfPUocD=
> satpmp-donymnn...@mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
> 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
> >
> -- next part ------
> An HTML attachment was scrubbed...
> URL: <
> https://lists.swift.org/pipermail/swift-users/attachments/20151214/5ef837e0/attachment-0001.html
> >
>
> --
>
> Message: 9
> Date: Mon, 14 Dec 2015 09:55:19 -0500
> From: Kevin Lundberg <ke...@klundberg.com>
> To: Tobias Scholze <tobias.scho...@gmail.com>, swift-users@swift.org
> Subject: Re: [swift-users] memory requirements for building swift on
> linux?
> Message-ID: <566ed857.90...@klundberg.com>
> Content-Type: text/plain; charset="utf-8"
>
> 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 

Re: [swift-users] memory requirements for building swift on linux?

2015-12-14 Thread Kevin Lundberg via 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  > 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
>

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


[swift-users] memory requirements for building swift on linux?

2015-12-14 Thread Kevin Lundberg via swift-users
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


Re: [swift-users] memory requirements for building swift on linux?

2015-12-14 Thread Daniel Dunbar via 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 
>  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 < 
>> 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 
>> 
> 
> 
> ___
> swift-users mailing list
> 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