From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 997B31382C5 for ; Wed, 17 Jun 2020 06:00:07 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 80955E0A7F; Wed, 17 Jun 2020 06:00:02 +0000 (UTC) Received: from mout.web.de (mout.web.de [212.227.15.14]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 10437E0A4A for ; Wed, 17 Jun 2020 06:00:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=dbaedf251592; t=1592373590; bh=C4J8q6vrK9hAhSrExVrNjs0iDxJKBcW+cuR2Lj6C63g=; h=X-UI-Sender-Class:Subject:To:References:From:Date:In-Reply-To; b=GbF8MQePqonL7jemdShk+cOEYN5cEaszNPz+smFG7/lyPuShqsCXJePjuO1cwH1L2 g56U9RcttN7Mx+xUTq43td+18clC0iINOWquTS/fWRMbGz5OiJS62n/jDL+GV+WJG+ xuGgd4l8Ftd5yfKExvZ4BwWTWISpX81fzWBjTnr4= X-UI-Sender-Class: c548c8c5-30a9-4db5-a2e7-cb6cb037b8f9 Received: from [192.168.178.96] ([77.4.75.251]) by smtp.web.de (mrweb005 [213.165.67.108]) with ESMTPSA (Nemesis) id 1M7Nii-1jojMH0S6u-007mlF for ; Wed, 17 Jun 2020 07:54:45 +0200 Subject: Re: [gentoo-user] emerge -u fails with "OSError: [Errno 12] Cannot allocate memory" [ RESOLVED, kinda ] To: gentoo-user@lists.gentoo.org References: <44C21CB3-B137-4753-AEE7-50EDE29A43AD@antarean.org> From: n952162 Message-ID: <59710d0a-758b-e453-9aaa-fe03749dccfd@web.de> Date: Wed, 17 Jun 2020 07:54:22 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 In-Reply-To: <44C21CB3-B137-4753-AEE7-50EDE29A43AD@antarean.org> Content-Type: multipart/alternative; boundary="------------2255F6F137D0B96B2BAD05A4" Content-Language: en-US X-Provags-ID: V03:K1:q5o7iKnJEmV5Qf2BnxY4/39FNf+ky0Nnqlxufcy/YZmFZ4szysU RWSIletSwH/NL+8OwtUrj8NGm/PWKeppwXBc4zUJtlm9kTKBbXsFEHzs4q8x9fyC/KwrjdK 7LAPSD+hLEhJkjHcw2kdOG/k3QGFznPS7AJiIGMRq85Dufq+O+vpNfN6Cgi1SUERBusRFQ3 aMK+HytbxehUu7tZ59j+A== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:bdfr6IIfvJU=:/cbanup+P2SViReJSs+Ijz zMk6EuaUose5LHRBqz4ysFZNQOlNZgHYm5tmO1vAVb4sp8aECovDSWCI87nxT8Ra1LcS3BqkC Jv1wOLP0NyIcKdUDD+taSVo+tvhHeUS62YV2N+488wkd5lWsacGuEw25DaBgUf2XmJawxIV+0 G0KH8+qCkOC9W231MGZboQ1LA9/hzXpng0vMvqKpegkCvGegnn2yW5i0extCrEfOS0EqGdLpu 1txc5lVAOSrlpF0uMEs45U3iEHaoDYfN9b/HngRc3WTVFBRP32X0vO+4++LlNvYyeaB/s4utU E5EkJby/4/NGFVb7O3Oru/GDiHTotyqbYQ9zeWGzGvxPi3Vm0kRAXG+2AQebpxOFhoe8qEcw2 9kBHwxTCWmwZqW9XuTOcH5shj4bxRA/8lrF0/+kA9HJ6tJwjEN4EF8LWtOKY3BkaCz4ErZiYK srvzfLkDWsKzR3OWZIho7U81cOGhGFUy/DfZ1CqqXWv1HoMKmsTagvEsoXDaNzizftgq8o/Ed KdAVtuT/ud3L5Fv6hkMkOp/kZ9euS0i4MkP5A+fOQ+3uUxZ0VKiBYZ1+v3DDoqtU5u4rGsPeH D/+1XJ3/zR4DP9B6nrRo9rCcn+VkCm4YOFJdxMpAWdEtfeD1E9zsZgd0uSNcpE44XI35R7I1Y Ytw//sUn6jUmRMt/qHz419YUwpiKSCU7DWZtu4XalA28fef1ui3uECSdmHTHoZP3FUw1Rd007 Q6aSknMA3f8vL1U7amLtNEkdvNSJL9cGGs4fE0e3GSwPKGF/w+wz2PQ4URYY45jCJ4VsXEcNa Ot/ibjvIgUd/vcyjpHvNcIqD5dmOmvTslJLIcja3oVQiKeyEmBFFYIFI3VDPDIGRU+LXU/c/P r4ARPCaWmqU6LLXwnfHfs+xdhBTfXBRkVMy0puGSFuyQdlZatWtLQLRG2ZqfJaMPFKuHjuCJ2 JsTJhl+EL8ZCwdSxvGWk4TQG4pt860a8bjb0uqBrZFH2VGzFZJFyYkx1RwjiMJxL0PECS61tD nogyYhO1gZjotBAnOFdSyIkpnRqQhzGuwvTuxLyYhX92Ml/R+70O1kj0xoII9602+h96Cigbp MYKK1Yrc71ghdNRhZjQnOGnKnDMcGiVA+qNHNBfXSwLUjHgY9bw7QFpyqzR6feGSn04tIT0LM cOOgxJOmFwYvkEp9G+eyH8GuN79zSvBuWP3wjHs9D6KDz1yhayNaLS2dzSENEtB2iQfsg= X-Archives-Salt: d24915a8-25da-4ced-ba7e-61dfce447f32 X-Archives-Hash: 5f81ef9160d26d17446b4002db244a30 This is a multi-part message in MIME format. --------------2255F6F137D0B96B2BAD05A4 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable On 06/16/20 21:35, J. Roeleveld wrote: > On 16 June 2020 20:31:56 CEST, n952162 wrote: >> Admonished to get everything updated, I turned to my raspberry pi with >> Sakaki's binary image.=C2=A0 Synced and updated portage with no problem= . >> Then I did an emerge -u @world and got (after *hours* of dependency >> checking): >> >>>>> Jobs: 0 of 206 complete, 1 running Load avg: 2.84, 3.44, 3.85 >>>>> Emerging binary (1 of 206) sys-libs/glibc-2.31-r5::gentoo >>>>> Jobs: 0 of 206 complete, 1 running Load avg: 2.84, 3.44, 3.85 >>>>> Jobs: 0 of 206 complete Load avg: 3.60, 3.54, 3.87 >>>>> Installing (1 of 206) sys-libs/glibc-2.31-r5::gentoo >>>>> Jobs: 0 of 206 complete Load avg: 3.60, 3.54, 3.87 >> Exception in callback AsynchronousTask._exit_listener_cb(> method...0x7f9180d9d8>>) >> handle: > method...0x7f9180d9d8>>)> >> Traceback (most recent call last): >> =C2=A0 File "/usr/lib64/python3.6/asyncio/events.py", line 145, in _ru= n >> =C2=A0=C2=A0=C2=A0 self._callback(*self._args) >> =C2=A0 File >> "/usr/lib64/python3.6/site-packages/_emerge/AsynchronousTask.py", line >> 201, in _exit_listener_cb >> =C2=A0=C2=A0=C2=A0 listener(self) >> =C2=A0 File >> "/usr/lib64/python3.6/site-packages/_emerge/BinpkgPrefetcher.py", line >> 31, in _fetcher_exit >> =C2=A0=C2=A0=C2=A0 self._start_task(verifier, self._verifier_exit) >> =C2=A0 File "/usr/lib64/python3.6/site-packages/_emerge/CompositeTask.= py", >> line 113, in _start_task >> =C2=A0=C2=A0=C2=A0 task.start() >> =C2=A0 File >> "/usr/lib64/python3.6/site-packages/_emerge/AsynchronousTask.py", line >> 30, in start >> =C2=A0=C2=A0=C2=A0 self._start() >> =C2=A0 File "/usr/lib64/python3.6/site-packages/_emerge/BinpkgVerifier= .py", >> line 59, in _start >> =C2=A0=C2=A0=C2=A0 self._digester_exit) >> =C2=A0 File "/usr/lib64/python3.6/site-packages/_emerge/CompositeTask.= py", >> line 113, in _start_task >> =C2=A0=C2=A0=C2=A0 task.start() >> =C2=A0 File >> "/usr/lib64/python3.6/site-packages/_emerge/AsynchronousTask.py", line >> 30, in start >> =C2=A0=C2=A0=C2=A0 self._start() >> =C2=A0 File >> "/usr/lib64/python3.6/site-packages/portage/util/_async/FileDigester.py= ", >> line 30, in _start >> =C2=A0=C2=A0=C2=A0 ForkProcess._start(self) >> =C2=A0 File "/usr/lib64/python3.6/site-packages/_emerge/SpawnProcess.p= y", >> line 112, in _start >> =C2=A0=C2=A0=C2=A0 retval =3D self._spawn(self.args, **kwargs) >> =C2=A0 File >> "/usr/lib64/python3.6/site-packages/portage/util/_async/ForkProcess.py"= , >> line 24, in _spawn >> =C2=A0=C2=A0=C2=A0 pid =3D os.fork() >> =C2=A0 File "/usr/lib64/python3.6/site-packages/portage/__init__.py", = line >> 246, in __call__ >> =C2=A0=C2=A0=C2=A0 rval =3D self._func(*wrapped_args, **wrapped_kwargs= ) >> OSError: [Errno 12] Cannot allocate memory >> >> What's the recommended course of action here? >> >> Log attached. > Suggestion: > 1) ensure you only have 1 job running and absolutely no parallel builds.= "--jobs 1" for both emerge and make > > 2) get SWAP, preferably on USB stick/harddrive so as not to kill the SD = card. > > Because rasppis are low on memory and they have very specific uses, I te= nd not to bother with Gentoo on them. > > -- > Joost I started getting a harddisk ready for a swap area, but then decided to try to emerge @system as a first step (using the -j 1 option this time - thank you) and that completed, as did then the subsequent emerge of @world= . It completed successfully (as I interpret it) with only 1 package being emerged, but it also output these messages: =C2=A0=C2=A0=C2=A0 WARNING: One or more updates/rebuilds have been sk= ipped due to a dependency conflict: =C2=A0=C2=A0=C2=A0 xfce-base/libxfce4ui:0 =C2=A0=C2=A0=C2=A0 !!! The following binary packages have been ignore= d due to non matching USE: =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 =3Dsys-devel/clang-9.0.1 p= ython_single_target_python3_6 -python_single_target_python3_7 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 =3Dsys-devel/clang-8.0.1 p= ython_targets_python2_7 =C2=A0=C2=A0=C2=A0 !!! The following binary packages have been ignore= d due to changed dependencies: =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 mail-mta/ssmtp-2.64-= r3::gentoo =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 sys-devel/llvm-9.0.1= ::gentoo =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 sys-devel/llvm-8.0.1= ::gentoo =C2=A0 Unclear to me is: * =C2=A0 why the dependency conflict for xfce-base/libxfce4ui did not prevent the emerge when dependency conflicts seem to normally do so. * =C2=A0 why the non-matching USE flags didn't cause, this time, the emerge to break * =C2=A0 What the difference is between: o =C2=A0=C2=A0=C2=A0 - the WARNING above o =C2=A0=C2=A0=C2=A0 - the two !!!=C2=A0 events o =C2=A0=C2=A0=C2=A0 - terminating errors in general --------------2255F6F137D0B96B2BAD05A4 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 06/16/20 21:35, J. Roeleveld wrote:
On 16 June 2020 20:31:56 CEST, n952162 <n952162@web.de>=
 wrote:
Admonished to get everything updated, I turned to m=
y raspberry pi with
Sakaki's binary image.=C2=A0 Synced and updated portage with no problem.=
=C2=A0
Then I did an emerge -u @world and got (after *hours* of dependency
checking):

Jobs: 0 of 206 complete, 1 running Load avg: =
2.84, 3.44, 3.85
Emerging binary (1 of 206) sys-libs/glibc-2.31-r5::gentoo
Jobs: 0 of 206 complete, 1 running Load avg: 2.84, 3.44, 3.85
Jobs: 0 of 206 complete Load avg: 3.60, 3.54, 3.87
Installing (1 of 206) sys-libs/glibc-2.31-r5::gentoo
Jobs: 0 of 206 complete Load avg: 3.60, 3.54, 3.87
Exception in callback AsynchronousTask._exit_listen=
er_cb(<bound
method...0x7f9180d9d8>>)
handle: <Handle AsynchronousTask._exit_listener_cb(<bound
method...0x7f9180d9d8>>)>
Traceback (most recent call last):
=C2=A0 File "/usr/lib64/python3.6/asyncio/events.py", line 145, in _run
=C2=A0=C2=A0=C2=A0 self._callback(*self._args)
=C2=A0 File
"/usr/lib64/python3.6/site-packages/_emerge/AsynchronousTask.py", line
201, in _exit_listener_cb
=C2=A0=C2=A0=C2=A0 listener(self)
=C2=A0 File
"/usr/lib64/python3.6/site-packages/_emerge/BinpkgPrefetcher.py", line
31, in _fetcher_exit
=C2=A0=C2=A0=C2=A0 self._start_task(verifier, self._verifier_exit)
=C2=A0 File "/usr/lib64/python3.6/site-packages/_emerge/CompositeTask.py",
line 113, in _start_task
=C2=A0=C2=A0=C2=A0 task.start()
=C2=A0 File
"/usr/lib64/python3.6/site-packages/_emerge/AsynchronousTask.py", line
30, in start
=C2=A0=C2=A0=C2=A0 self._start()
=C2=A0 File "/usr/lib64/python3.6/site-packages/_emerge/BinpkgVerifier.py"=
,
line 59, in _start
=C2=A0=C2=A0=C2=A0 self._digester_exit)
=C2=A0 File "/usr/lib64/python3.6/site-packages/_emerge/CompositeTask.py",
line 113, in _start_task
=C2=A0=C2=A0=C2=A0 task.start()
=C2=A0 File
"/usr/lib64/python3.6/site-packages/_emerge/AsynchronousTask.py", line
30, in start
=C2=A0=C2=A0=C2=A0 self._start()
=C2=A0 File
"/usr/lib64/python3.6/site-packages/portage/util/_async/FileDigester.py",
line 30, in _start
=C2=A0=C2=A0=C2=A0 ForkProcess._start(self)
=C2=A0 File "/usr/lib64/python3.6/site-packages/_emerge/SpawnProcess.py",
line 112, in _start
=C2=A0=C2=A0=C2=A0 retval =3D self._spawn(self.args, **kwargs)
=C2=A0 File
"/usr/lib64/python3.6/site-packages/portage/util/_async/ForkProcess.py",
line 24, in _spawn
=C2=A0=C2=A0=C2=A0 pid =3D os.fork()
=C2=A0 File "/usr/lib64/python3.6/site-packages/portage/__init__.py", line
246, in __call__
=C2=A0=C2=A0=C2=A0 rval =3D self._func(*wrapped_args, **wrapped_kwargs)
OSError: [Errno 12] Cannot allocate memory

What's the recommended course of action here?

Log attached.
Suggestion:
1) ensure you only have 1 job running and absolutely no parallel builds. "=
=2D-jobs 1" for both emerge and make

2) get SWAP, preferably on USB stick/harddrive so as not to kill the SD ca=
rd.

Because rasppis are low on memory and they have very specific uses, I tend=
 not to bother with Gentoo on them.

=2D-
Joost

I started getting a harddisk ready for a swap area, but then decided to try to emerge @system as a first step (using the -j 1 option this time - thank you) and that completed, as did then the subsequent emerge of @world.

It completed successfully (as I interpret it) with only 1 package being emerged, but it also output these messages:

=C2=A0=C2=A0=C2=A0 WARNING: One or more updates/rebuil= ds have been skipped due to a dependency conflict:
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0
=C2=A0=C2=A0=C2=A0 xfce-base/libxfce4ui:0


=C2=A0=C2=A0=C2=A0 !!! The following binary packages have b= een ignored due to non matching USE:

=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 =3Dsys-devel/cla= ng-9.0.1 python_single_target_python3_6 -python_single_target_python3_7
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 =3Dsys-devel/cla= ng-8.0.1 python_targets_python2_7


=C2=A0=C2=A0=C2=A0 !!! The following binary packages have b= een ignored due to changed dependencies:

=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 mail-mta/s= smtp-2.64-r3::gentoo
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 sys-devel/= llvm-9.0.1::gentoo
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 sys-devel/= llvm-8.0.1::gentoo
=C2=A0

=C2=A0 Unclear to me is:
  • =C2=A0 why the dependency conflict for xfce-base/libxfce4ui did = not prevent the emerge when dependency conflicts seem to normally do so.
  • =C2=A0 why the non-matching USE flags didn't cause, this time, t= he emerge to break
  • =C2=A0 What the difference is between:
    • =C2=A0=C2=A0=C2=A0 - the WARNING above
    • =C2=A0=C2=A0=C2=A0 - the two !!!=C2=A0 events
    • =C2=A0=C2=A0=C2=A0 - terminating errors in general
=C2=A0=C2=A0=C2=A0


--------------2255F6F137D0B96B2BAD05A4--