You are not logged in.

#1 2017-05-24 15:06:31

archtefo
Member
Registered: 2016-08-07
Posts: 18

[Solved] I'm not be able to compile a big package.

Hi all,

I'm trying to compile a lot of times this package from AUR: telegram-desktop-systemqt.
After two hours of compiling it always fails, with this output:

cc1plus: out of memory allocating 218373416 bytes after a total of 47648768 bytes
make[2]: *** [CMakeFiles/Telegram.dir/build.make:10608: CMakeFiles/Telegram.dir/obj/gen/Telegram/qrc/qrc_telegram.o] Error 1
make[2]: se sale del directorio '/home/st/Desktop/TMPBUILD/telegram-desktop-systemqt/src/tdesktop/out/Release'
make[1]: *** [CMakeFiles/Makefile2:372: CMakeFiles/Telegram.dir/all] Error 2
make[1]: se sale del directorio '/home/st/Desktop/TMPBUILD/telegram-desktop-systemqt/src/tdesktop/out/Release'
make: *** [Makefile:87: all] Error 2
==> ERROR: Se produjo un fallo en build().
    Cancelando…
==> ERROR: Makepkg no ha podido compilar telegram-desktop-systemqt.

I replace the /tmp dir for another located on my /home, which has more available space. I also added a swap file with 1GB, but nothing works.

What else can I do?
Thanks!

Last edited by archtefo (2017-11-16 04:05:43)

Offline

#2 2017-05-24 15:11:51

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,739

Re: [Solved] I'm not be able to compile a big package.

I believe you are running out of memory, not storage.   How much RAM have you?
Do you have swap enabled?  Note that if you start using virtual memory, this compile process could bring your system to a crawl.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#3 2017-05-24 15:41:33

archtefo
Member
Registered: 2016-08-07
Posts: 18

Re: [Solved] I'm not be able to compile a big package.

I have 2GB of RAM and now 1GB of swap in a swap file, which is active:

              total        used        free      shared  buff/cache   available
Mem:           1,9G        1,1G         77M        126M        698M        478M
Swap:          1,0G         71M        952M

I closed all applications and let the PC just compiling.

Offline

#4 2017-05-24 16:05:59

drcouzelis
Member
From: Connecticut, USA
Registered: 2009-11-09
Posts: 4,092
Website

Re: [Solved] I'm not be able to compile a big package.

Someone mentioned a similar issue here: https://github.com/telegramdesktop/tdesktop/issues/3257

Maybe just make a bigger swap file? 4 GB?

When you use "makepkg", try "watch free -m" in another terminal window. smile

Offline

#5 2017-05-24 16:11:48

archtefo
Member
Registered: 2016-08-07
Posts: 18

Re: [Solved] I'm not be able to compile a big package.

Well, I'll try once again with a swap file of 4GB.
Thanks, I'll tell how I go.

Last edited by archtefo (2017-05-24 16:17:54)

Offline

#6 2017-05-25 19:07:03

archtefo
Member
Registered: 2016-08-07
Posts: 18

Re: [Solved] I'm not be able to compile a big package.

I can compile it, creating a 4GB swap file.
Thanks!

Offline

#7 2017-05-25 19:23:53

drcouzelis
Member
From: Connecticut, USA
Registered: 2009-11-09
Posts: 4,092
Website

Re: [Solved] I'm not be able to compile a big package.

Great! Yeah, I recently had to create a 16 GB swap file to compile something... Crazy. tongue

You can "Edit" your original post and add "[SOLVED]" to the title.

Offline

Board footer

Powered by FluxBB