alacritty build

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

alacritty build

Justin Muir
Just wishing to give alacritty a go so I git'd the source and did a cargo
build.

I get this error after a while:

LLVM ERROR: out of memory
error: Could not compile `alacritty`

I tried increasing the dataset-cur and -max to 4000M in login.conf, didn't
seem to work.

Any ideas?

tia!

j
Reply | Threaded
Open this post in threaded view
|

Re: alacritty build

Stuart Henderson
On 2020-03-10, Justin Muir <[hidden email]> wrote:

> Just wishing to give alacritty a go so I git'd the source and did a cargo
> build.
>
> I get this error after a while:
>
> LLVM ERROR: out of memory
> error: Could not compile `alacritty`
>
> I tried increasing the dataset-cur and -max to 4000M in login.conf, didn't
> seem to work.
>
> Any ideas?
>
> tia!
>
> j
>

Did you logout before retrying? You will need a new X session, console
login, or to use a new ssh multiplex connection (whichever are relevant).

If that doesn't help, maybe increase it further, the rust compiler uses
an astonishing amount of memory, it's even worse than c++.


Reply | Threaded
Open this post in threaded view
|

Re: alacritty build

Wayne Oliver
In reply to this post by Justin Muir
On 2020/03/10 21:09, Justin Muir wrote:

> Just wishing to give alacritty a go so I git'd the source and did a cargo
> build.
>
> I get this error after a while:
>
> LLVM ERROR: out of memory
> error: Could not compile `alacritty`
>
> I tried increasing the dataset-cur and -max to 4000M in login.conf, didn't
> seem to work.
>
> Any ideas?

I managed to build this on my laptop about a week ago. I'll happily
check my settings for you when I get home this evening (SAST) if you
don't come right before then.


Reply | Threaded
Open this post in threaded view
|

Re: alacritty build

Wayne Oliver
On Wed, 11 Mar 2020 at 06:21, Wayne Oliver <[hidden email]> wrote:
>
> On 2020/03/10 21:09, Justin Muir wrote:
> > Just wishing to give alacritty a go so I git'd the source and did a
cargo
> > build.
> >
> > I get this error after a while:
> >
> > LLVM ERROR: out of memory
> > error: Could not compile `alacritty`
> >
> > I tried increasing the dataset-cur and -max to 4000M in login.conf,
didn't
> > seem to work.
> >
> > Any ideas?
>
> I managed to build this on my laptop about a week ago. I'll happily
> check my settings for you when I get home this evening (SAST) if you
> don't come right before then.
>
>

part of the staff group, datasizr-cur=4096M max infinity
during build on my dual core i7 4xxx it took 17m to build RAM usage really
going over 800mb

35mb binary

not sure it's worth all of that
--
Wayn0
Reply | Threaded
Open this post in threaded view
|

Re: alacritty build

Luke A. Call
On 03-11 16:51, Wayn0 wrote:

> On Wed, 11 Mar 2020 at 06:21, Wayne Oliver <[hidden email]> wrote:
> > On 2020/03/10 21:09, Justin Muir wrote:
> > > Just wishing to give alacritty a go so I git'd the source and did a
> cargo
> > > build.
> > > I get this error after a while:
> > > LLVM ERROR: out of memory
> > > I tried increasing the dataset-cur and -max to 4000M in login.conf,
> didn't
> > > seem to work.
> > I managed to build this on my laptop about a week ago. I'll happily
> > check my settings for you when I get home this evening (SAST) if you
> > don't come right before then.
> part of the staff group, datasizr-cur=4096M max infinity
> during build on my dual core i7 4xxx it took 17m to build RAM usage really
> going over 800mb
> 35mb binary

Just curious: what was the size after running "strip" on the binary, or did you?

--
Luke Call
My thoughts:  http://lukecall.net  (updated 2020-02-18)

Reply | Threaded
Open this post in threaded view
|

Re: alacritty build

Wayne Oliver
On 2020/03/11 21:26, Luke A. Call wrote:

> On 03-11 16:51, Wayn0 wrote:
>> On Wed, 11 Mar 2020 at 06:21, Wayne Oliver <[hidden email]> wrote:
>>> On 2020/03/10 21:09, Justin Muir wrote:
>>>> Just wishing to give alacritty a go so I git'd the source and did a
>> cargo
>>>> build.
>>>> I get this error after a while:
>>>> LLVM ERROR: out of memory
>>>> I tried increasing the dataset-cur and -max to 4000M in login.conf,
>> didn't
>>>> seem to work.
>>> I managed to build this on my laptop about a week ago. I'll happily
>>> check my settings for you when I get home this evening (SAST) if you
>>> don't come right before then.
>> part of the staff group, datasizr-cur=4096M max infinity
>> during build on my dual core i7 4xxx it took 17m to build RAM usage really
>> going over 800mb
>> 35mb binary
>
> Just curious: what was the size after running "strip" on the binary, or did you?
>

I did not bother, I did try the terminal for a few days when I first
built it, but did not really plan on using it long term.

wayne@xps:~/src/alacritty $ ls -al target/release/alacritty
 

-rwxr-xr-x  2 wayne  wayne  35.6M Mar 11 16:47 target/release/alacritty*
wayne@xps:~/src/alacritty $ strip target/release/alacritty
wayne@xps:~/src/alacritty $ ls -al target/release/alacritty
-rwxr-xr-x  2 wayne  wayne   5.8M Mar 12 08:28 target/release/alacritty*

Reply | Threaded
Open this post in threaded view
|

Re: alacritty build

David Demelier-2
In reply to this post by Wayne Oliver
Le 11/03/2020 à 15:51, Wayn0 a écrit :
> part of the staff group, datasizr-cur=4096M max infinity
> during build on my dual core i7 4xxx it took 17m to build RAM usage really
> going over 800mb
>
> 35mb binary
>
> not sure it's worth all of that

This is mostly because rust statically link to almost everything. Once
stripped it's a bit “better”.

--
David