Gentoo Archives: gentoo-user

From: "J. Roeleveld" <joost@××××××××.org>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] emerge -u fails with "OSError: [Errno 12] Cannot allocate memory"
Date: Tue, 16 Jun 2020 19:35:37
Message-Id: 44C21CB3-B137-4753-AEE7-50EDE29A43AD@antarean.org
In Reply to: [gentoo-user] emerge -u fails with "OSError: [Errno 12] Cannot allocate memory" by n952162
1 On 16 June 2020 20:31:56 CEST, n952162 <n952162@×××.de> wrote:
2 >Admonished to get everything updated, I turned to my raspberry pi with
3 >Sakaki's binary image.  Synced and updated portage with no problem. 
4 >Then I did an emerge -u @world and got (after *hours* of dependency
5 >checking):
6 >
7 > >>> Jobs: 0 of 206 complete, 1 running Load avg: 2.84, 3.44, 3.85
8 > >>> Emerging binary (1 of 206) sys-libs/glibc-2.31-r5::gentoo
9 > >>> Jobs: 0 of 206 complete, 1 running Load avg: 2.84, 3.44, 3.85
10 > >>> Jobs: 0 of 206 complete Load avg: 3.60, 3.54, 3.87
11 > >>> Installing (1 of 206) sys-libs/glibc-2.31-r5::gentoo
12 > >>> Jobs: 0 of 206 complete Load avg: 3.60, 3.54, 3.87
13 >Exception in callback AsynchronousTask._exit_listener_cb(<bound
14 >method...0x7f9180d9d8>>)
15 >handle: <Handle AsynchronousTask._exit_listener_cb(<bound
16 >method...0x7f9180d9d8>>)>
17 >Traceback (most recent call last):
18 >   File "/usr/lib64/python3.6/asyncio/events.py", line 145, in _run
19 >     self._callback(*self._args)
20 >   File
21 >"/usr/lib64/python3.6/site-packages/_emerge/AsynchronousTask.py", line
22 >201, in _exit_listener_cb
23 >     listener(self)
24 >   File
25 >"/usr/lib64/python3.6/site-packages/_emerge/BinpkgPrefetcher.py", line
26 >31, in _fetcher_exit
27 >     self._start_task(verifier, self._verifier_exit)
28 >   File "/usr/lib64/python3.6/site-packages/_emerge/CompositeTask.py",
29 >line 113, in _start_task
30 >     task.start()
31 >   File
32 >"/usr/lib64/python3.6/site-packages/_emerge/AsynchronousTask.py", line
33 >30, in start
34 >     self._start()
35 >   File "/usr/lib64/python3.6/site-packages/_emerge/BinpkgVerifier.py",
36 >line 59, in _start
37 >     self._digester_exit)
38 >   File "/usr/lib64/python3.6/site-packages/_emerge/CompositeTask.py",
39 >line 113, in _start_task
40 >     task.start()
41 >   File
42 >"/usr/lib64/python3.6/site-packages/_emerge/AsynchronousTask.py", line
43 >30, in start
44 >     self._start()
45 >   File
46 >"/usr/lib64/python3.6/site-packages/portage/util/_async/FileDigester.py",
47 >line 30, in _start
48 >     ForkProcess._start(self)
49 >   File "/usr/lib64/python3.6/site-packages/_emerge/SpawnProcess.py",
50 >line 112, in _start
51 >     retval = self._spawn(self.args, **kwargs)
52 >   File
53 >"/usr/lib64/python3.6/site-packages/portage/util/_async/ForkProcess.py",
54 >line 24, in _spawn
55 >     pid = os.fork()
56 >   File "/usr/lib64/python3.6/site-packages/portage/__init__.py", line
57 >246, in __call__
58 >     rval = self._func(*wrapped_args, **wrapped_kwargs)
59 >OSError: [Errno 12] Cannot allocate memory
60 >
61 >What's the recommended course of action here?
62 >
63 >Log attached.
64
65 Suggestion:
66 1) ensure you only have 1 job running and absolutely no parallel builds. "--jobs 1" for both emerge and make
67
68 2) get SWAP, preferably on USB stick/harddrive so as not to kill the SD card.
69
70 Because rasppis are low on memory and they have very specific uses, I tend not to bother with Gentoo on them.
71
72 --
73 Joost
74 --
75 Sent from my Android device with K-9 Mail. Please excuse my brevity.

Replies