You are not logged in.
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
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
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
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.
Offline
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
I can compile it, creating a 4GB swap file.
Thanks!
Offline
Great! Yeah, I recently had to create a 16 GB swap file to compile something... Crazy.
You can "Edit" your original post and add "[SOLVED]" to the title.
Offline