Gentoo Archives: gentoo-user

From: urpion@×××.com
To: gentoo-user@l.g.o
Subject: [gentoo-user] Re: [SOLVED] =dev-lang/spidermonkey-60.5.2_p0-r4 fails @world update
Date: Sat, 20 Jun 2020 03:32:10
Message-Id: <20200620031737.GA7964@imap.gmx.com:993>
1 On Sat, Jun 20, 2020 at 08:56:52AM +1000, urpion@×××.com wrote:
2 > On Fri, Jun 19, 2020 at 06:08:49PM +0100, Michael wrote:
3 > > On Friday, 19 June 2020 17:10:54 BST urpion@×××.com wrote:
4 > > > On Fri, Jun 19, 2020 at 04:52:30PM +0100, Michael wrote:
5 > >
6 > > > > NP, did you get an OOM error in dmesg when this happened by any chance?
7 > > > > You don't seem to have much RAM, you have no swap and the number of jobs
8 > > > > is relatively high for memory hungry compiles.
9 > > > >
10 > > > > It could be a bug, but unless a report has been filed already in BGO to
11 > > > > this effect, I suggest you add a swapfile, enable it, and try again with
12 > > > > MAKEOPTS="-j1" or "-j2". Please ask if you need more detail.
13 > > >
14 > > > I was thinking about -j1. I tried -j4. I thought I didn't need swap with
15 > > > >=4GB of RAM, but it makes sense. My machine kinda crawls trying to build
16 > > > that package. Oh man, I'll have to re-partition:-(
17 > >
18 > > A single compile job on a big package can eat >3G of RAM. I don't know what
19 > > spidermonkey jobs may grow up to, but drop it down to '-j1' and see what you
20 > > get.
21 > >
22 > > A swapfile which you enable on a per ebuild basis if required, can be handy.
23 > > You can configure this in a package.profile file. On an ext4 fs you could do
24 > > this as root:
25 > >
26 > > touch swapfile
27 > > dd if=/dev/zero of=swapfile bs=4096 count=400000
28 > > mkswap -L Swappage swapfile
29 > > swapon swapfile
30 > >
31 > > If it is a btrfs you'll need to tweak things to be able to used it as a swap:
32 > >
33 > > https://wiki.archlinux.org/index.php/Swap#Swap_file
34 >
35 > Wow. Thanks Micheal. That's really cool. I will try that.
36 >
37 I tried to merge the package again with -j1, just to see, but no go.
38 Making a swap file just as Micheal said did the trick. Thanks a bunch.
39 I made it in /home. Is that a bad idea? I guess I need to review my
40 partion scheme. Thanks everyuone, it's great to be back on Gentoo again
41
42 (-: :-)