Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 630552 - CentOS Linux 7.3.1611 (AltArch): scanelf is missing during stage 2 build of ncurses-6.0-r1
Summary: CentOS Linux 7.3.1611 (AltArch): scanelf is missing during stage 2 build of n...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: PPC64 Linux
: Normal normal (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-09-10 04:37 UTC by R030t1
Modified: 2021-01-06 20:36 UTC (History)
0 users

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


Attachments
stage2.log.xz (stage2.log.xz,28.22 KB, application/x-xz)
2017-09-10 04:41 UTC, R030t1
Details

Note You need to log in before you can comment on or make changes to this bug.
Description R030t1 2017-09-10 04:37:57 UTC
Architecture is ppc64le, running CentOS Linux 7.3.1611.

This error is different from other errors I had experienced when stage 2 failed. I am not sure what is causing the variability. In other builds I had to keyword unkeyworded versions of packages to get as far as this build did.
Comment 1 R030t1 2017-09-10 04:41:20 UTC
Created attachment 493640 [details]
stage2.log.xz
Comment 2 Fabian Groffen gentoo-dev 2017-09-12 16:58:25 UTC
scanelf missing should not be fatal, e.g. it is to be expected to be absent during the early stages, that's why a full rebuild is done at the end of the bootstrap.
Comment 3 R030t1 2017-09-13 05:16:48 UTC
>/dev/shm/r0b0t1/gentoo/tmp/var/tmp/portage/sys-libs/ncurses-6.0-r1/temp/environment: line 1288: scanelf: command not found

> * ERROR: sys-libs/ncurses-6.0-r1::gentoo failed (install phase):
> *   unable to read SONAME from libncurses.so
> * 
> * Call stack:
> *     ebuild.sh, line  115:  Called src_install
> *   environment, line 2991:  Called multilib-minimal_src_install
> *   environment, line 2126:  Called multilib_foreach_abi 'multilib-minimal_abi_src_install'
> *   environment, line 2320:  Called multibuild_foreach_variant '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_install'
> *   environment, line 1944:  Called _multibuild_run '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_install'
> *   environment, line 1942:  Called _multilib_multibuild_wrapper 'multilib-minimal_abi_src_install'
> *   environment, line  384:  Called multilib-minimal_abi_src_install
> *   environment, line 2116:  Called multilib_src_install
> *   environment, line 2554:  Called gen_usr_ldscript '-a' 'ncurses' 'ncursesw'
> *   environment, line 1289:  Called die
> * The specific snippet of code:
> *                       [[ -z ${tlib} ]] && die "unable to read SONAME from ${lib}";

I'm not sure how to interpret those snippets then. The command and failure seem related. Do you have any pointers?

I seem to not be able to reproduce this, so it may be irrelevant anyway. Should I continue to be unable to reproduce the issue I will close this bug in a few days. Thank you for your reply.
Comment 4 R030t1 2017-09-13 05:24:15 UTC
Okay, my issue seems to be related to the problem described here: https://forums.gentoo.org/viewtopic-t-1006072-view-next.html.

Please see my comments on bug 592972.

The reason it went away is likely due to my use of a profile that sets the CHOST to ppc64, not ppc64le, which does not seem to be consistently supported.
Comment 5 Fabian Groffen gentoo-dev 2017-09-13 07:24:37 UTC
Ah.

In Gentoo Prefix the usr-split should be disabled, which should also disable gen_usr_ldscript.  Since this is obviously not the case for you, you either:
- got a tree not of off prefix rsync servers (e.g. mainstream rsync, like RAP)
- didn't get PREFIX_DISABLE_GEN_USR_LDSCRIPT=yes in your etc/portage/make.conf

If you are on RAP things are probably activated too, in which case we need to get scanelf in early.
Comment 6 Fabian Groffen gentoo-dev 2021-01-06 20:36:13 UTC
we should revisit this, recent bootstraps on ppc64le worked fine