Gentoo Archives: gentoo-user

From: n952162 <n952162@×××.de>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] emerge -u fails with "OSError: [Errno 12] Cannot allocate memory" [ RESOLVED, kinda ]
Date: Wed, 17 Jun 2020 06:00:07
Message-Id: 59710d0a-758b-e453-9aaa-fe03749dccfd@web.de
In Reply to: Re: [gentoo-user] emerge -u fails with "OSError: [Errno 12] Cannot allocate memory" by "J. Roeleveld"
1 On 06/16/20 21:35, J. Roeleveld wrote:
2 > On 16 June 2020 20:31:56 CEST, n952162 <n952162@×××.de> wrote:
3 >> Admonished to get everything updated, I turned to my raspberry pi with
4 >> Sakaki's binary image.  Synced and updated portage with no problem.
5 >> Then I did an emerge -u @world and got (after *hours* of dependency
6 >> checking):
7 >>
8 >>>>> Jobs: 0 of 206 complete, 1 running Load avg: 2.84, 3.44, 3.85
9 >>>>> Emerging binary (1 of 206) sys-libs/glibc-2.31-r5::gentoo
10 >>>>> Jobs: 0 of 206 complete, 1 running Load avg: 2.84, 3.44, 3.85
11 >>>>> Jobs: 0 of 206 complete Load avg: 3.60, 3.54, 3.87
12 >>>>> Installing (1 of 206) sys-libs/glibc-2.31-r5::gentoo
13 >>>>> Jobs: 0 of 206 complete Load avg: 3.60, 3.54, 3.87
14 >> Exception in callback AsynchronousTask._exit_listener_cb(<bound
15 >> method...0x7f9180d9d8>>)
16 >> handle: <Handle AsynchronousTask._exit_listener_cb(<bound
17 >> method...0x7f9180d9d8>>)>
18 >> Traceback (most recent call last):
19 >>   File "/usr/lib64/python3.6/asyncio/events.py", line 145, in _run
20 >>     self._callback(*self._args)
21 >>   File
22 >> "/usr/lib64/python3.6/site-packages/_emerge/AsynchronousTask.py", line
23 >> 201, in _exit_listener_cb
24 >>     listener(self)
25 >>   File
26 >> "/usr/lib64/python3.6/site-packages/_emerge/BinpkgPrefetcher.py", line
27 >> 31, in _fetcher_exit
28 >>     self._start_task(verifier, self._verifier_exit)
29 >>   File "/usr/lib64/python3.6/site-packages/_emerge/CompositeTask.py",
30 >> line 113, in _start_task
31 >>     task.start()
32 >>   File
33 >> "/usr/lib64/python3.6/site-packages/_emerge/AsynchronousTask.py", line
34 >> 30, in start
35 >>     self._start()
36 >>   File "/usr/lib64/python3.6/site-packages/_emerge/BinpkgVerifier.py",
37 >> line 59, in _start
38 >>     self._digester_exit)
39 >>   File "/usr/lib64/python3.6/site-packages/_emerge/CompositeTask.py",
40 >> line 113, in _start_task
41 >>     task.start()
42 >>   File
43 >> "/usr/lib64/python3.6/site-packages/_emerge/AsynchronousTask.py", line
44 >> 30, in start
45 >>     self._start()
46 >>   File
47 >> "/usr/lib64/python3.6/site-packages/portage/util/_async/FileDigester.py",
48 >> line 30, in _start
49 >>     ForkProcess._start(self)
50 >>   File "/usr/lib64/python3.6/site-packages/_emerge/SpawnProcess.py",
51 >> line 112, in _start
52 >>     retval = self._spawn(self.args, **kwargs)
53 >>   File
54 >> "/usr/lib64/python3.6/site-packages/portage/util/_async/ForkProcess.py",
55 >> line 24, in _spawn
56 >>     pid = os.fork()
57 >>   File "/usr/lib64/python3.6/site-packages/portage/__init__.py", line
58 >> 246, in __call__
59 >>     rval = self._func(*wrapped_args, **wrapped_kwargs)
60 >> OSError: [Errno 12] Cannot allocate memory
61 >>
62 >> What's the recommended course of action here?
63 >>
64 >> Log attached.
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 I started getting a harddisk ready for a swap area, but then decided to
76 try to emerge @system as a first step (using the -j 1 option this time -
77 thank you) and that completed, as did then the subsequent emerge of @world.
78
79 It completed successfully (as I interpret it) with only 1 package being
80 emerged, but it also output these messages:
81
82     WARNING: One or more updates/rebuilds have been skipped due to
83 a dependency conflict:
84
85     xfce-base/libxfce4ui:0
86
87
88     !!! The following binary packages have been ignored due to non
89 matching USE:
90
91         =sys-devel/clang-9.0.1 python_single_target_python3_6
92 -python_single_target_python3_7
93         =sys-devel/clang-8.0.1 python_targets_python2_7
94
95
96     !!! The following binary packages have been ignored due to
97 changed dependencies:
98
99          mail-mta/ssmtp-2.64-r3::gentoo
100          sys-devel/llvm-9.0.1::gentoo
101          sys-devel/llvm-8.0.1::gentoo
102
103
104   Unclear to me is:
105
106 *   why the dependency conflict for xfce-base/libxfce4ui did not
107 prevent the emerge when dependency conflicts seem to normally do so.
108 *   why the non-matching USE flags didn't cause, this time, the
109 emerge to break
110 *   What the difference is between:
111 o     - the WARNING above
112 o     - the two !!!  events
113 o     - terminating errors in general

Replies