Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 631986 - sys-libs/glibc-2.25-r5: install failure during pkg_preinst
Summary: sys-libs/glibc-2.25-r5: install failure during pkg_preinst
Status: RESOLVED INVALID
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-09-25 09:02 UTC by hanetzer
Modified: 2018-04-21 21:58 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log.gz,353.35 KB, application/gzip)
2017-09-25 09:03 UTC, hanetzer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description hanetzer 2017-09-25 09:02:20 UTC
bootstrapping a prefix on gentoo fails to install (not build) sys-devel/glibc
due to the following failed test:

>>> Installing (1 of 37) sys-libs/glibc-2.25-r5::gentoo_prefix
 * Defaulting /etc/host.conf:multi to on
Inconsistency detected by ld.so: get-dynamic-info.h: 146: elf_get_dynamic_info: Assertion `info[DT_RUNPATH] == NULL' failed!
 * ERROR: sys-libs/glibc-2.25-r5::gentoo_prefix failed (preinst phase):
 *   simple run test (/home/hanetzer/gentoo/usr/bin/cal) failed
 * 
 * Call stack:
 *     ebuild.sh, line  115:  Called __call-ebuildshell 'pkg_preinst'
 *     ebuild.sh, line  529:  Called pkg_preinst
 *   environment, line 2889:  Called toolchain-glibc_pkg_preinst
 *   environment, line 4617:  Called glibc_sanity_check
 *   environment, line 2089:  Called die
 * The specific snippet of code:
 *           LC_ALL=C ./ld-*.so --library-path . ${x} > /dev/null || die "simple run test (${x}) failed";
 * 
 * If you need support, post the output of `emerge --info '=sys-libs/glibc-2.25-r5::gentoo_prefix'`,
 * the complete build log and the output of `emerge -pqv '=sys-libs/glibc-2.25-r5::gentoo_prefix'`.
 * The complete build log is located at '/home/hanetzer/gentoo/var/tmp/portage/sys-libs/glibc-2.25-r5/temp/build.log'.
 * The ebuild environment file is located at '/home/hanetzer/gentoo/var/tmp/portage/sys-libs/glibc-2.25-r5/temp/environment'.
 * Working directory: '/home/hanetzer/gentoo/var/tmp/portage/sys-libs/glibc-2.25-r5/image/home/hanetzer/gentoo/lib'
 * S: '/home/hanetzer/gentoo/var/tmp/portage/sys-libs/glibc-2.25-r5/work/glibc-2.25'
!!! FAILED preinst: 1

>>> Failed to install sys-libs/glibc-2.25-r5, Log file:

>>>  '/home/hanetzer/gentoo/var/tmp/portage/sys-libs/glibc-2.25-r5/temp/build.log'
 * Messages for package sys-libs/glibc-2.25-r5:
 * Defaulting /etc/host.conf:multi to on
 * ERROR: sys-libs/glibc-2.25-r5::gentoo_prefix failed (preinst phase):
 *   simple run test (/home/hanetzer/gentoo/usr/bin/cal) failed
 * 
 * Call stack:
 *     ebuild.sh, line  115:  Called __call-ebuildshell 'pkg_preinst'
 *     ebuild.sh, line  529:  Called pkg_preinst
 *   environment, line 2889:  Called toolchain-glibc_pkg_preinst
 *   environment, line 4617:  Called glibc_sanity_check
 *   environment, line 2089:  Called die
 * The specific snippet of code:
 *           LC_ALL=C ./ld-*.so --library-path . ${x} > /dev/null || die "simple run test (${x}) failed";
 * 
 * If you need support, post the output of `emerge --info '=sys-libs/glibc-2.25-r5::gentoo_prefix'`,
 * the complete build log and the output of `emerge -pqv '=sys-libs/glibc-2.25-r5::gentoo_prefix'`.
 * The complete build log is located at '/home/hanetzer/gentoo/var/tmp/portage/sys-libs/glibc-2.25-r5/temp/build.log'.
 * The ebuild environment file is located at '/home/hanetzer/gentoo/var/tmp/portage/sys-libs/glibc-2.25-r5/temp/environment'.
 * Working directory: '/home/hanetzer/gentoo/var/tmp/portage/sys-libs/glibc-2.25-r5/image/home/hanetzer/gentoo/lib'
 * S: '/home/hanetzer/gentoo/var/tmp/portage/sys-libs/glibc-2.25-r5/work/glibc-2.25'


Reproducible: Always

Steps to Reproduce:
1. do whatever hacks you have to to get bootstrap-prefix.sh to get to this point
   (patching gcc, setting FEATURES="-multilib-strict" beforehand)
2. set up timezones in the prefix, and etc/hosts
3. ./bootstrap-prefix.sh
4. follow the prompts
5. glibc builds
6. glibc fails at install time.
Actual Results:  
glibc fails at install time due to failed tests.

Expected Results:  
installation of sys-devel/glibc to gentoo prefix.
Comment 1 hanetzer 2017-09-25 09:03:59 UTC
Created attachment 496342 [details]
build.log
Comment 2 Sergei Trofimovich (RETIRED) gentoo-dev 2017-09-25 21:34:32 UTC
It looks like prefix ${something} injected -rpath/-runpath into ld executable itself.

Build log even complains about it loudly: """ * QA Notice: The following files contain insecure RUNPATHs"""

Do you know what injects those RUNPATHs for you? I don't see it explicitly set
in build log. It looks prefix-specific toolchain tweak.
Comment 3 Daniel Hornung 2017-11-28 10:07:00 UTC
I can confirm this with glibc-2.25-r9, with prefix on SLES 11.  I am adding prefix@gentoo.org to the CC list as well.
Comment 4 hanetzer 2018-01-14 15:15:24 UTC
This now works when doing a rap-style prefix (prefix/linux-standalone/amd64),
but this may still be broken on non-rap prefixes.
Comment 5 Fabian Groffen gentoo-dev 2018-01-14 15:28:14 UTC
Yes, the ld wrapper in Prefix injects rpath entries, so if this breaks it, then this is to be expected.  I don't think we'd ever expect non-RAP Prefix users to compile/use glibc, so I'm not sure how much this is an issue, if it works for RAP (which doesn't use the wrapper in the same way/at all).
Comment 6 Andreas K. Hüttel archtester gentoo-dev 2018-04-21 21:58:00 UTC
(In reply to Fabian Groffen from comment #5)
> Yes, the ld wrapper in Prefix injects rpath entries, so if this breaks it,
> then this is to be expected.  I don't think we'd ever expect non-RAP Prefix
> users to compile/use glibc, so I'm not sure how much this is an issue, if it
> works for RAP (which doesn't use the wrapper in the same way/at all).

Closing as invalid then.