From: "J. Roeleveld" <joost@antarean.org>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] emerge -u fails with "OSError: [Errno 12] Cannot allocate memory"
Date: Tue, 16 Jun 2020 21:35:20 +0200 [thread overview]
Message-ID: <44C21CB3-B137-4753-AEE7-50EDE29A43AD@antarean.org> (raw)
In-Reply-To: <cbbfa175-ceb7-578e-81d9-85d9efdfbb93@web.de>
On 16 June 2020 20:31:56 CEST, n952162 <n952162@web.de> wrote:
>Admonished to get everything updated, I turned to my raspberry pi with
>Sakaki's binary image. 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(<bound
>method...0x7f9180d9d8>>)
>handle: <Handle AsynchronousTask._exit_listener_cb(<bound
>method...0x7f9180d9d8>>)>
>Traceback (most recent call last):
> File "/usr/lib64/python3.6/asyncio/events.py", line 145, in _run
> self._callback(*self._args)
> File
>"/usr/lib64/python3.6/site-packages/_emerge/AsynchronousTask.py", line
>201, in _exit_listener_cb
> listener(self)
> File
>"/usr/lib64/python3.6/site-packages/_emerge/BinpkgPrefetcher.py", line
>31, in _fetcher_exit
> self._start_task(verifier, self._verifier_exit)
> File "/usr/lib64/python3.6/site-packages/_emerge/CompositeTask.py",
>line 113, in _start_task
> task.start()
> File
>"/usr/lib64/python3.6/site-packages/_emerge/AsynchronousTask.py", line
>30, in start
> self._start()
> File "/usr/lib64/python3.6/site-packages/_emerge/BinpkgVerifier.py",
>line 59, in _start
> self._digester_exit)
> File "/usr/lib64/python3.6/site-packages/_emerge/CompositeTask.py",
>line 113, in _start_task
> task.start()
> File
>"/usr/lib64/python3.6/site-packages/_emerge/AsynchronousTask.py", line
>30, in start
> self._start()
> File
>"/usr/lib64/python3.6/site-packages/portage/util/_async/FileDigester.py",
>line 30, in _start
> ForkProcess._start(self)
> File "/usr/lib64/python3.6/site-packages/_emerge/SpawnProcess.py",
>line 112, in _start
> retval = self._spawn(self.args, **kwargs)
> File
>"/usr/lib64/python3.6/site-packages/portage/util/_async/ForkProcess.py",
>line 24, in _spawn
> pid = os.fork()
> File "/usr/lib64/python3.6/site-packages/portage/__init__.py", line
>246, in __call__
> rval = 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 tend not to bother with Gentoo on them.
--
Joost
--
Sent from my Android device with K-9 Mail. Please excuse my brevity.
next prev parent reply other threads:[~2020-06-16 19:35 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-06-16 18:31 [gentoo-user] emerge -u fails with "OSError: [Errno 12] Cannot allocate memory" n952162
2020-06-16 19:35 ` J. Roeleveld [this message]
2020-06-17 5:54 ` [gentoo-user] emerge -u fails with "OSError: [Errno 12] Cannot allocate memory" [ RESOLVED, kinda ] n952162
2020-06-17 6:42 ` J. Roeleveld
2020-06-20 12:32 ` [gentoo-user] emerge -u fails with "OSError: [Errno 12] Cannot allocate memory" Sean O'Myers
2020-06-20 12:57 ` Dale
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=44C21CB3-B137-4753-AEE7-50EDE29A43AD@antarean.org \
--to=joost@antarean.org \
--cc=gentoo-user@lists.gentoo.org \
/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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox