unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
From: Tobias Geerinckx-Rice via Bug reports for GNU Guix <bug-guix@gnu.org>
To: 37482@debbugs.gnu.org,
	Jan Wielkiewicz <tona_kosmicznego_smiecia@interia.pl>
Subject: bug#37482: Guix fails to build libreoffice
Date: Sun, 22 Sep 2019 19:45:52 +0200	[thread overview]
Message-ID: <8736gorzqn.fsf@nckx> (raw)
In-Reply-To: <20190922185206.3ed64af4@interia.pl>

[-- Attachment #1: Type: text/plain, Size: 2485 bytes --]

Jan,

Thanks for the report, and sorry you had to learn this the hard 
way.

Jan Wielkiewicz 写道:
> I've recently tried to reconfigure my system, but after about 3 
> hours
> of building libreoffice, the system froze for 2 hours and then 
> guix
> threw:

[…]

> g++: internal compiler error: Killed (program cc1plus)
> Please submit a full bug report,
> with preprocessed source if appropriate.
> See <http://gcc.gnu.org/bugs.html> for instructions.

This message and the freezing above is a tell-tale sign of OOM 
(out-of-memory).  If you check your dmesg or /var/log/messages at 
that time, I'm almost certain you'll see the OOM killer plot its 
dastardly deeds.

> My system is an old ThinkPad with 2GB of RAM and Intel Centrino 
> Duo
> processor, but I'm unsure if this was the cause of the build 
> failing.

You may be sure.

2 GiB of RAM is simply not enough to build many packages these 
days.  That's the world we live in.  There's nothing Guix can do 
to change that.

You can restrict the number of parallel builds and jobs by 
respectively passing --max-jobs=1 and --cores=1 to the daemon. 
You can make this permanent by setting (extra-options …) in your 
system configuration.

Even then, some complex executables will simply fail to link with 
so little RAM.

> I saw some other packages have similar problems like, if my 
> 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 
webkit-qt is broken on ARM that's unfortunate, but it's better to 
mark it as such than failing to build it on 100% of ARM systems.

Your issue is different: the exact same libreoffice might have 
built fine if you had 4 GiB of RAM, or 3, or 5, or 2 with swap, 
but only if your weren't also running any (Guix or other) builds 
at the time, or watching a movie, or had the room thermostat 
turned up, or use Gnome 3, all beneath a gibbous moon.  All these 
things, and many more, will cause builds to fail or succeed 
‘randomly’.

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 
> system is
> powerful enough to handle building certain packages?

I personally think the annoyances of ‘helpful’ warnings 
(=extremely inaccurate guesses) would far outweigh any purported 
benefit.

Kind regards,

T G-R

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

  reply	other threads:[~2019-09-22 17:46 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-09-22 16:52 bug#37482: Guix fails to build libreoffice Jan Wielkiewicz
2019-09-22 17:45 ` Tobias Geerinckx-Rice via Bug reports for GNU Guix [this message]
2019-09-22 18:28   ` Jesse Gibbons
2019-09-22 18:41     ` Tobias Geerinckx-Rice via Bug reports for GNU Guix
2019-09-22 18:44       ` Tobias Geerinckx-Rice via Bug reports for GNU Guix
2019-09-23  0:45   ` Jan
2019-09-26 20:04     ` Ludovic Courtès
2019-09-27 18:02       ` Jan
2019-09-28  9:31         ` Ludovic Courtès

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8736gorzqn.fsf@nckx \
    --to=bug-guix@gnu.org \
    --cc=37482@debbugs.gnu.org \
    --cc=me@tobias.gr \
    --cc=tona_kosmicznego_smiecia@interia.pl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).