Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 580792 - libtool.eclass: elibtoolize: add ppc64le handling
Summary: libtool.eclass: elibtoolize: add ppc64le handling
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: PPC64 Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on: 581314
Blocks:
  Show dependency tree
 
Reported: 2016-04-22 03:29 UTC by Leno Hou
Modified: 2017-02-22 02:54 UTC (History)
4 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Leno Hou 2016-04-22 03:29:44 UTC
Packages list for Unable to read SONAME from ${lib}:

 platform       package
 ppc64le	app-text/opensp			
 ppc64le	dev-libs/expat		
 ppc64le	net-firewall/iptables			
 ppc64le	net-libs/libmnl		
 ppc64le	sys-apps/acl			
 ppc64le	sys-apps/attire
 ppc64le	sys-libs/gdbm			
 ppc64le	sys-process/procps: Fix ppc64le configure problem
			

Reproducible: Always

Steps to Reproduce:
1. USE CHOST="powerpc64le-unknown-linux-gnu"
   #localhost portage # powerpc64le-unknown-linux-gnu-gcc -v
Using built-in specs.
COLLECT_GCC=/usr/powerpc64le-unknown-linux-gnu/gcc-bin/5.3.0/powerpc64le-unknown-linux-gnu-gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/powerpc64le-unknown-linux-gnu/5.3.0/lto-wrapper
Target: powerpc64le-unknown-linux-gnu
Configured with: /var/tmp/portage/sys-devel/gcc-5.3.0/work/gcc-5.3.0/configure --host=powerpc64le-unknown-linux-gnu --build=powerpc64le-unknown-linux-gnu --prefix=/usr --bindir=/usr/powerpc64le-unknown-linux-gnu/gcc-bin/5.3.0 --includedir=/usr/lib/gcc/powerpc64le-unknown-linux-gnu/5.3.0/include --datadir=/usr/share/gcc-data/powerpc64le-unknown-linux-gnu/5.3.0 --mandir=/usr/share/gcc-data/powerpc64le-unknown-linux-gnu/5.3.0/man --infodir=/usr/share/gcc-data/powerpc64le-unknown-linux-gnu/5.3.0/info --with-gxx-include-dir=/usr/lib/gcc/powerpc64le-unknown-linux-gnu/5.3.0/include/g++-v5 --with-python-dir=/share/gcc-data/powerpc64le-unknown-linux-gnu/5.3.0/python --enable-languages=c,c++,fortran --enable-obsolete --enable-secureplt --disable-werror --with-system-zlib --enable-nls --without-included-gettext --enable-checking=release --with-bugurl=https://bugs.gentoo.org/ --with-pkgversion='Gentoo 5.3.0 p1.0, pie-0.6.5' --enable-libstdcxx-time --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --disable-multilib --enable-altivec --disable-fixed-point --enable-targets=all --disable-libgcj --enable-libgomp --disable-libmudflap --disable-libssp --disable-libcilkrts --enable-lto --without-isl --enable-libsanitizer
Thread model: posix
gcc version 5.3.0 (Gentoo 5.3.0 p1.0, pie-0.6.5) 

2. emerge PKG   (PKG is the package in Description's package list

3. Encounter Error: unable to read SONAME from ${lib}
Actual Results:  
gmake[2]: Leaving directory '/var/tmp/portage/sys-apps/attr-2.4.47-r2/work/attr-2.4.47-abi_ppc_64.ppc64/man/man3'
/usr/bin/gmake -C man5 install-dev
gmake[2]: Entering directory '/var/tmp/portage/sys-apps/attr-2.4.47-r2/work/attr-2.4.47-abi_ppc_64.ppc64/man/man5'
gmake[2]: Nothing to be done for 'install-dev'.
gmake[2]: Leaving directory '/var/tmp/portage/sys-apps/attr-2.4.47-r2/work/attr-2.4.47-abi_ppc_64.ppc64/man/man5'
gmake[1]: Leaving directory '/var/tmp/portage/sys-apps/attr-2.4.47-r2/work/attr-2.4.47-abi_ppc_64.ppc64/man'
/usr/bin/gmake -C doc install-dev
gmake[1]: Entering directory '/var/tmp/portage/sys-apps/attr-2.4.47-r2/work/attr-2.4.47-abi_ppc_64.ppc64/doc'
gmake[1]: 'install-dev' is up to date.
gmake[1]: Leaving directory '/var/tmp/portage/sys-apps/attr-2.4.47-r2/work/attr-2.4.47-abi_ppc_64.ppc64/doc'
/usr/bin/gmake -C po install-dev
gmake[1]: Entering directory '/var/tmp/portage/sys-apps/attr-2.4.47-r2/work/attr-2.4.47-abi_ppc_64.ppc64/po'
gmake[1]: Nothing to be done for 'install-dev'.
gmake[1]: Leaving directory '/var/tmp/portage/sys-apps/attr-2.4.47-r2/work/attr-2.4.47-abi_ppc_64.ppc64/po'
/usr/bin/gmake -C debian install-dev
gmake[1]: Entering directory '/var/tmp/portage/sys-apps/attr-2.4.47-r2/work/attr-2.4.47-abi_ppc_64.ppc64/debian'
gmake[1]: Nothing to be done for 'install-dev'.
gmake[1]: Leaving directory '/var/tmp/portage/sys-apps/attr-2.4.47-r2/work/attr-2.4.47-abi_ppc_64.ppc64/debian'
/usr/bin/gmake -C package install-dev
gmake[1]: Entering directory '/var/tmp/portage/sys-apps/attr-2.4.47-r2/work/attr-2.4.47-abi_ppc_64.ppc64/package'
gmake[1]: Nothing to be done for 'install-dev'.
gmake[1]: Leaving directory '/var/tmp/portage/sys-apps/attr-2.4.47-r2/work/attr-2.4.47-abi_ppc_64.ppc64/package'
 * ERROR: sys-apps/attr-2.4.47-r2::gentoo failed (install phase):
 *   unable to read SONAME from libattr.so
 * 
 * Call stack:
 *     ebuild.sh, line  133:  Called src_install
 *   environment, line 2397:  Called multilib-minimal_src_install
 *   environment, line 1706:  Called multilib_foreach_abi 'multilib-minimal_abi_src_install'
 *   environment, line 1900:  Called multibuild_foreach_variant '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_install'
 *   environment, line 1593:  Called _multibuild_run '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_install'
 *   environment, line 1591:  Called _multilib_multibuild_wrapper 'multilib-minimal_abi_src_install'
 *   environment, line  274:  Called multilib-minimal_abi_src_install
 *   environment, line 1696:  Called multilib_src_install
 *   environment, line 2125:  Called gen_usr_ldscript '-a' 'attr'
 *   environment, line 1020:  Called die
 * The specific snippet of code:
 *                       [[ -z ${tlib} ]] && die "unable to read SONAME from ${lib}";
 * 
 * If you need support, post the output of `emerge --info '=sys-apps/attr-2.4.47-r2::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=sys-apps/attr-2.4.47-r2::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/sys-apps/attr-2.4.47-r2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-apps/attr-2.4.47-r2/temp/environment'.
 * Working directory: '/var/tmp/portage/sys-apps/attr-2.4.47-r2/work/attr-2.4.47-abi_ppc_64.ppc64'
 * S: '/var/tmp/portage/sys-apps/attr-2.4.47-r2/work/attr-2.4.47'

>>> Failed to emerge sys-apps/attr-2.4.47-r2, Log file:

>>>  '/var/tmp/portage/sys-apps/attr-2.4.47-r2/temp/build.log'

 * Messages for package sys-apps/attr-2.4.47-r2:

 * ERROR: sys-apps/attr-2.4.47-r2::gentoo failed (install phase):
 *   unable to read SONAME from libattr.so
 * 
 * Call stack:
 *     ebuild.sh, line  133:  Called src_install
 *   environment, line 2397:  Called multilib-minimal_src_install
 *   environment, line 1706:  Called multilib_foreach_abi 'multilib-minimal_abi_src_install'
 *   environment, line 1900:  Called multibuild_foreach_variant '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_install'
 *   environment, line 1593:  Called _multibuild_run '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_install'
 *   environment, line 1591:  Called _multilib_multibuild_wrapper 'multilib-minimal_abi_src_install'
 *   environment, line  274:  Called multilib-minimal_abi_src_install
 *   environment, line 1696:  Called multilib_src_install
 *   environment, line 2125:  Called gen_usr_ldscript '-a' 'attr'
 *   environment, line 1020:  Called die
 * The specific snippet of code:
 *                       [[ -z ${tlib} ]] && die "unable to read SONAME from ${lib}";
 * 
 * If you need support, post the output of `emerge --info '=sys-apps/attr-2.4.47-r2::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=sys-apps/attr-2.4.47-r2::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/sys-apps/attr-2.4.47-r2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-apps/attr-2.4.47-r2/temp/environment'.
 * Working directory: '/var/tmp/portage/sys-apps/attr-2.4.47-r2/work/attr-2.4.47-abi_ppc_64.ppc64'
 * S: '/var/tmp/portage/sys-apps/attr-2.4.47-r2/work/attr-2.4.47'

Expected Results:  
Build and install success

localhost portage # emerge --info '=sys-apps/attr-2.4.47-r2::gentoo'
Portage 2.2.26 (python 3.4.3-final-0, default/linux/powerpc/ppc64/13.0/64bit-userland/little-endian, gcc-5.3.0, glibc-2.22-r4, 4.1.15-gentoo-r1 ppc64le)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.1.15-gentoo-r1-ppc64le-POWER8E_-raw-,_altivec_supported-with-gentoo-2.2
KiB Mem:    10456128 total,   9508224 free
KiB Swap:          0 total,         0 free
sh bash 4.3_p42-r1
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
app-shells/bash:          4.3_p42-r1::gentoo
dev-lang/perl:            5.20.2::gentoo
dev-lang/python:          2.7.10-r1::gentoo, 3.4.3-r1::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.19.1::gentoo
sys-apps/sandbox:         2.10-r1::gentoo
sys-devel/autoconf:       2.69::gentoo
sys-devel/automake:       1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo
sys-devel/gcc:            5.3.0::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 4.3::gentoo (virtual/os-headers)
sys-libs/glibc:           2.22-r4::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: git
    sync-uri: https://github.com/gentoo/gentoo
    priority: -1000

ACCEPT_KEYWORDS="ppc64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="powerpc64le-unknown-linux-gnu"
CFLAGS="-O2 -pipe -mcpu=power8 -mtune=power8 -mabi=elfv2"
CHOST="powerpc64le-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
USE="acl altivec berkdb bzip2 cli cracklib crypt cxx dri fortran gdbm ibm iconv ipv6 modules ncurses nls nptl openmp pam pcre ppc64 readline session ssl tcpd unicode xattr zlib" ABI_PPC="64" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby20 ruby21" USERLAND="GNU" VIDEO_CARDS="fbdev mach64 mga nv r128 radeon dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, MAKEOPTS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

=================================================================
                        Package Settings
=================================================================

sys-apps/attr-2.4.47-r2::gentoo was built with the following:
USE="nls -static-libs"
Comment 1 SpanKY gentoo-dev 2016-04-22 03:53:26 UTC
is this a problem with libtool and you need to update elibtoolize as we discussed on the mailing list ?
Comment 2 Leno Hou 2016-04-22 04:35:12 UTC
yes,now i'm testing the patch. will be sent the patch as you suggested later.
Comment 3 James Le Cuirot gentoo-dev 2017-02-21 13:37:48 UTC
Is there any objection to me getting the following patch merged? I'm not sure if it is the latest version but I was able to use it to cross-compile a working stage3.

https://archives.gentoo.org/gentoo-dev/message/f071378e624d05c3cb07955ce5f2c548
Comment 4 SpanKY gentoo-dev 2017-02-21 22:51:50 UTC
i've cleaned up the patch a bit and pushed the elibtoolize changes here:
https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9beda193cf71f2ca84aef6797d77e8ed6e8c16eb

thanks for your hard work Leno!
Comment 5 Leno Hou 2017-02-22 02:54:10 UTC
Hi all,

Thanks for your help. If you want to cross-build stage3 for ppc64le, please refer to this ppc64le overlay. 

https://gitweb.gentoo.org/repo/proj/ppc64le.git