From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tobias Geerinckx-Rice via Bug reports for GNU Guix Subject: bug#37482: Guix fails to build libreoffice Date: Sun, 22 Sep 2019 19:45:52 +0200 Message-ID: <8736gorzqn.fsf@nckx> References: <20190922185206.3ed64af4@interia.pl> Reply-To: Tobias Geerinckx-Rice Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:33952) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iC5vx-0007QF-0a for bug-guix@gnu.org; Sun, 22 Sep 2019 13:46:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iC5vv-0004Eh-Pq for bug-guix@gnu.org; Sun, 22 Sep 2019 13:46:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:53897) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iC5vt-0004Do-Ul for bug-guix@gnu.org; Sun, 22 Sep 2019 13:46:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iC5vt-0008Ce-PT for bug-guix@gnu.org; Sun, 22 Sep 2019 13:46:01 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-reply-to: <20190922185206.3ed64af4@interia.pl> List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: 37482@debbugs.gnu.org, Jan Wielkiewicz --=-=-= Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Jan, Thanks for the report, and sorry you had to learn this the hard=20 way. Jan Wielkiewicz =E5=86=99=E9=81=93=EF=BC=9A > I've recently tried to reconfigure my system, but after about 3=20 > hours > of building libreoffice, the system froze for 2 hours and then=20 > guix > threw: [=E2=80=A6] > g++: internal compiler error: Killed (program cc1plus) > Please submit a full bug report, > with preprocessed source if appropriate. > See for instructions. This message and the freezing above is a tell-tale sign of OOM=20 (out-of-memory). If you check your dmesg or /var/log/messages at=20 that time, I'm almost certain you'll see the OOM killer plot its=20 dastardly deeds. > My system is an old ThinkPad with 2GB of RAM and Intel Centrino=20 > Duo > processor, but I'm unsure if this was the cause of the build=20 > failing. You may be sure. 2 GiB of RAM is simply not enough to build many packages these=20 days. That's the world we live in. There's nothing Guix can do=20 to change that. You can restrict the number of parallel builds and jobs by=20 respectively passing --max-jobs=3D1 and --cores=3D1 to the daemon.=20 You can make this permanent by setting (extra-options =E2=80=A6) in your=20 system configuration. Even then, some complex executables will simply fail to link with=20 so little RAM. > I saw some other packages have similar problems like, if my=20 > memory is > correct, the support for ARM have been removed from webkit-qt. I don't see how this is related to running out of RAM. If=20 webkit-qt is broken on ARM that's unfortunate, but it's better to=20 mark it as such than failing to build it on 100% of ARM systems. Your issue is different: the exact same libreoffice might have=20 built fine if you had 4 GiB of RAM, or 3, or 5, or 2 with swap,=20 but only if your weren't also running any (Guix or other) builds=20 at the time, or watching a movie, or had the room thermostat=20 turned up, or use Gnome 3, all beneath a gibbous moon. All these=20 things, and many more, will cause builds to fail or succeed=20 =E2=80=98randomly=E2=80=99. The only way to know is to try. > I'm not sure if removing support for an achitecture is the right > solution here - wouldn't it be better if Guix checked if the=20 > system is > powerful enough to handle building certain packages? I personally think the annoyances of =E2=80=98helpful=E2=80=99 warnings=20 (=3Dextremely inaccurate guesses) would far outweigh any purported=20 benefit. Kind regards, T G-R --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEfo+u0AlEeO9y5k0W2Imw8BjFSTwFAl2Hs1AACgkQ2Imw8BjF STypdA/+KpnOS1/x5PUCzVmyG10tJou499UtE92Ap+WH27NTD9y6KrynzzD5j8fq +4bHXNv7/59zddWijEv3ntAoGiZ03AADHBugAgsKPlqFhnC5OOsaSdMVf+dy660p 3UulNI8BVaWzbAY+l4stlSqowoHA1XKsmNe3eL65WIPhuqf6wN+9kzIRLbI0eDtP R2fohVpJZb/vJc7/4k9KIHjXVoJJHxFgnyJqOf8ElO29HHhWOQlyTTPdYauhBNtR XMB3tIeEwXW64EIVSktDyVFJ2pAWnQPNDZRD64acbN0FijtaJwUzEAwk/u2ekDiw pdMhIFJOjhTchlMyyEH6SvXIp0rWsi5V0NBK9YjtHsvLY8hVVOe5MevxYOQlhihE 5ZDfpMMYSps3GfPY/Trs1Bq7WApL9UWSQSE9xJ1P8e5DZAXBsN/qDwnXGruHFieK BlMVJ9/aMvFpaBy03RAzMBfMg+OyUXuJLZeBXfbJPi+IiEd83gkZ0cmaOufBgKk8 Mj+LYAUcj0TKvVb+XWrXWaWfp5FAgLlE7/CCbwueNk8af42TQjw+j+VvwtOLvbNL AOnryyGuHF3p9wnP/27B8E4TQTFEnoCjt8yeN/gKCJ0X676II4X1J9v1fk3+6b9L G1IXjKURvXap+adPYu39W26Ge9G1Uf6d8FhWE8WvdnSlZW+r1co= =ui78 -----END PGP SIGNATURE----- --=-=-=--