Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 932329

Summary: [Prefix] upgrading sys-libs/glibc-2.38-r13 -> sys-libs/glibc-2.39-r6 Fatal glibc error: cannot get entropy for arc4random
Product: Gentoo/Alt Reporter: Steven Trogdon <strogdon>
Component: Prefix SupportAssignee: Gentoo Prefix <prefix>
Status: UNCONFIRMED ---    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Steven Trogdon 2024-05-21 05:15:54 UTC
The above upgrade apparently happened (associated with a system upgrade):

$ eix sys-libs/glibc
[I] sys-libs/glibc
     Available versions:  (2.2) [M]~2.19-r3^s [M]2.31-r7^t [M]2.32-r8^t [M]2.33-r14^t [M]2.34-r14^t {M}2.35-r11^t {M}2.36-r8^t {M}2.37-r10^t 2.38-r13^t 2.39-r6^t **9999*l^t
       {audit caps cet +clone3 compile-locales +crypt custom-cflags debug doc experimental-loong gd hash-sysv-compat headers-only +multiarch multilib multilib-bootstrap nscd perl profile selinux +ssp stack-realign +static-libs static-pie suid systemd systemtap test vanilla}
     Installed versions:  2.39-r6(2.2)^t(08:26:36 PM 05/20/2024)(multiarch ssp static-libs -audit -caps -cet -compile-locales -custom-cflags -doc -gd -hash-sysv-compat -headers-only -multilib -multilib-bootstrap -nscd -perl -profile -selinux -stack-realign -suid -systemd -systemtap -test -vanilla)
     Homepage:            https://www.gnu.org/software/libc/
     Description:         GNU libc C library

However, the uninstall log for glibc-2.38-r13 has

Fatal glibc error: cannot get entropy for arc4random
/storage/strogdon/gentoo-rap/var/tmp/portage/._portage_reinstall_.2_0fr_dk/bin/phase-functions.sh: line 159: 16276 Aborted                 (core dumped) ( export SANDBOX_ON=1; source "${T}/environment" || exit $?; export SANDBOX_ON=0; source "${PORTAGE_BIN_PATH}/save-ebuild-env.sh" || exit $?; __save_ebuild_env || exit $?;  >> "${T}/environment.success" || exit $? ) > "${T}/environment.filtered"
 * ERROR: sys-libs/glibc-2.38-r11::gentoo failed (prerm phase):
 *   error processing environment
 * 
 * Call stack:
 *   ebuild.sh, line 561:  Called die
 * The specific snippet of code:
 *      __preprocess_ebuild_env || die "error processing environment"
 * 
 * If you need support, post the output of `emerge --info '=sys-libs/glibc-2.38-r11::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=sys-libs/glibc-2.38-r11::gentoo'`.
 * The complete build log is located at '/storage/strogdon/gentoo-rap/var/tmp/portage/._unmerge_/sys-libs/glibc-2.38-r11/temp/build.log'.
 * The ebuild environment file is located at '/storage/strogdon/gentoo-rap/var/tmp/portage/._unmerge_/sys-libs/glibc-2.38-r11/temp/environment'.
 * Working directory: '/storage/strogdon/gentoo-rap/var/tmp/portage/._unmerge_/sys-libs/glibc-2.38-r11/empty'
 * S: '/storage/strogdon/gentoo-rap/var/tmp/portage/._unmerge_/sys-libs/glibc-2.38-r11/work/glibc-2.38'
Fatal glibc error: cannot get entropy for arc4random
 * The ebuild phase 'die_hooks' has been killed by signal 6.
!!! FAILED prerm: 1
Fatal glibc error: cannot get entropy for arc4random
 * The ebuild phase 'postrm' has been killed by signal 6.
Fatal glibc error: cannot get entropy for arc4random
 * The ebuild phase 'die_hooks' has been killed by signal 6.
!!! FAILED postrm: 1
 * The 'postrm' phase of the 'sys-libs/glibc-2.38-r11' package has failed
 * with exit value 1.
 * 
 * The problem occurred while executing the ebuild file named
 * 'glibc-2.38-r11.ebuild' located in the '/storage/strogdon/gentoo-
 * rap/var/db/pkg/sys-libs/glibc-2.38-r11' directory. If necessary,
 * manually remove the environment.bz2 file and/or the ebuild file located
 * in that directory.
 * 
 * Removal of the environment.bz2 file is preferred since it may allow the
 * removal phases to execute successfully. The ebuild will be sourced and
 * the eclasses from the current ebuild repository will be used when
 * necessary. Removal of the ebuild file will cause the pkg_pr

and to complete the upgrade I need:

$ emerge -puDN world

These are the packages that would be merged, in order:

Calculating dependencies... done!
Dependency resolution took 14.36 s (backtrack: 0/20).

[ebuild     U  ] sys-libs/libxcrypt-4.4.36-r3 [4.4.36]
[ebuild     U  ] net-libs/nodejs-20.12.1 [20.11.0]
[ebuild     U  ] x11-libs/libxcb-1.17.0 [1.16.1]
[ebuild     U  ] x11-misc/compose-tables-1.8.9 [1.8.7]
[ebuild     U  ] x11-libs/libX11-1.8.9 [1.8.7]
[ebuild     U  ] dev-python/scipy-1.12.0-r1 [1.12.0]

which cannot be implemented:

emerge -uDN world
Calculating dependencies... done!
Dependency resolution took 14.51 s (backtrack: 0/20).


>>> Verifying ebuild manifests

>>> Running pre-merge checks for sys-libs/libxcrypt-4.4.36-r3

>>> Running pre-merge checks for net-libs/nodejs-20.12.1

>>> Emerging (1 of 6) sys-libs/libxcrypt-4.4.36-r3::gentoo
 * libxcrypt-4.4.36-autotools.tar.xz BLAKE2B SHA512 size ;-) ...                                  [ ok ]
Fatal glibc error: cannot get entropy for arc4random
 * The ebuild phase 'unpack' has been killed by signal 6.
Fatal glibc error: cannot get entropy for arc4random
 * The ebuild phase 'die_hooks' has been killed by signal 6.

>>> Failed to emerge sys-libs/libxcrypt-4.4.36-r3, Log file:

>>>  '/storage/strogdon/gentoo-rap/var/tmp/portage/sys-libs/libxcrypt-4.4.36-r3/temp/build.log'

 * Messages for package sys-libs/libxcrypt-4.4.36-r3:

 * The ebuild phase 'unpack' has been killed by signal 6.