Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 571606 - sys-libs/zlib-1.2.8-r1 fails at install stage on x86 musl system: unable to read SONAME from libz.so
Summary: sys-libs/zlib-1.2.8-r1 fails at install stage on x86 musl system: unable to r...
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: Normal normal (vote)
Assignee: Gentoo musl team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-01-12 01:05 UTC by Jasen Borisov
Modified: 2016-01-15 04:51 UTC (History)
1 user (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 Jasen Borisov 2016-01-12 01:05:54 UTC
This is a fresh x86 (32-bit) gentoo installation with musl libc, straight after unpacking the latest stage3 archive: stage3-i686-musl-vanilla-20160104.tar.bz2

after syncing portage and adding the musl overlay, as described in https://wiki.gentoo.org/wiki/Project:Hardened_musl , I attempted to rebuild the system (emerge -euND --keep-going=y --with-bdeps=y @world), and everything built fine except for sys-libs/zlib.

zlib failed with an error at install phase (the compile finished successfully):

unable to read SONAME from libz.so


I am building my system with -Os, but I tried the default CFLAGS (-O2 -pipe) as well, and the problem persisted.


Also, if this is of any relevance: I am chrooting into the new rootfs from my regular desktop gentoo system, so the build and emerge output attached to this bug report were generated from inside a chroot. My regular desktop system is amd64 with 64-bit kernel, if that matters at all.


Reproducible: Always
Comment 1 Jasen Borisov 2016-01-12 01:08:23 UTC
build.log:

# cat tmp/portage/sys-libs/zlib-1.2.8-r1/temp/build.log
 * Package:    sys-libs/zlib-1.2.8-r1
 * Repository: gentoo
 * Maintainer: base-system
 * USE:        abi_x86_32 elibc_musl kernel_linux userland_GNU x86
 * FEATURES:   preserve-libs sandbox userpriv usersandbox
>>> Unpacking source...
>>> Unpacking zlib-1.2.8.tar.gz to /tmp/portage/sys-libs/zlib-1.2.8-r1/work
>>> Source unpacked in /tmp/portage/sys-libs/zlib-1.2.8-r1/work
>>> Preparing source in /tmp/portage/sys-libs/zlib-1.2.8-r1/work/zlib-1.2.8 ...
 * Will copy sources from /tmp/portage/sys-libs/zlib-1.2.8-r1/work/zlib-1.2.8
 * abi_x86_32.x86: copying to /tmp/portage/sys-libs/zlib-1.2.8-r1/work/zlib-1.2.8-abi_x86_32.x86
>>> Source prepared.
>>> Configuring source in /tmp/portage/sys-libs/zlib-1.2.8-r1/work/zlib-1.2.8 ...
 * abi_x86_32.x86: running multilib-minimal_abi_src_configure
./configure --shared --prefix=/usr --libdir=/usr/lib --uname=linux
Using i686-pc-linux-musl-ar
Using i686-pc-linux-musl-ranlib
Using i686-pc-linux-musl-nm
Checking for i686-pc-linux-musl-gcc...
Checking for shared library support...
Building shared library libz.so.1.2.8 with cc.
Checking for off64_t... Yes.
Checking for fseeko... Yes.
Checking for strerror... Yes.
Checking for unistd.h... Yes.
Checking for stdarg.h... Yes.
Checking whether to use vs[n]printf() or s[n]printf()... using vs[n]printf().
Checking for vsnprintf() in stdio.h... Yes.
Checking for return value of vsnprintf()... Yes.
>>> Source configured.
>>> Compiling source in /tmp/portage/sys-libs/zlib-1.2.8-r1/work/zlib-1.2.8 ...
 * abi_x86_32.x86: running multilib-minimal_abi_src_compile
make -j17 
cc -Os -march=i686 -mtune=generic -pipe -D_LARGEFILE64_SOURCE=1 -I. -c -o example.o test/example.c
cc -Os -march=i686 -mtune=generic -pipe -D_LARGEFILE64_SOURCE=1   -c -o adler32.o adler32.c
cc -Os -march=i686 -mtune=generic -pipe -D_LARGEFILE64_SOURCE=1   -c -o crc32.o crc32.c
cc -Os -march=i686 -mtune=generic -pipe -D_LARGEFILE64_SOURCE=1   -c -o deflate.o deflate.c
cc -Os -march=i686 -mtune=generic -pipe -D_LARGEFILE64_SOURCE=1   -c -o infback.o infback.c
cc -Os -march=i686 -mtune=generic -pipe -D_LARGEFILE64_SOURCE=1   -c -o inffast.o inffast.c
cc -Os -march=i686 -mtune=generic -pipe -D_LARGEFILE64_SOURCE=1   -c -o inflate.o inflate.c
cc -Os -march=i686 -mtune=generic -pipe -D_LARGEFILE64_SOURCE=1   -c -o inftrees.o inftrees.c
cc -Os -march=i686 -mtune=generic -pipe -D_LARGEFILE64_SOURCE=1   -c -o trees.o trees.c
cc -Os -march=i686 -mtune=generic -pipe -D_LARGEFILE64_SOURCE=1   -c -o zutil.o zutil.c
cc -Os -march=i686 -mtune=generic -pipe -D_LARGEFILE64_SOURCE=1   -c -o compress.o compress.c
cc -Os -march=i686 -mtune=generic -pipe -D_LARGEFILE64_SOURCE=1   -c -o uncompr.o uncompr.c
cc -Os -march=i686 -mtune=generic -pipe -D_LARGEFILE64_SOURCE=1   -c -o gzclose.o gzclose.c
cc -Os -march=i686 -mtune=generic -pipe -D_LARGEFILE64_SOURCE=1   -c -o gzlib.o gzlib.c
cc -Os -march=i686 -mtune=generic -pipe -D_LARGEFILE64_SOURCE=1   -c -o gzread.o gzread.c
cc -Os -march=i686 -mtune=generic -pipe -D_LARGEFILE64_SOURCE=1   -c -o gzwrite.o gzwrite.c
cc -Os -march=i686 -mtune=generic -pipe -D_LARGEFILE64_SOURCE=1 -I. -c -o minigzip.o test/minigzip.c
cc -Os -march=i686 -mtune=generic -pipe -D_LARGEFILE64_SOURCE=1 -DPIC -c -o objs/deflate.o deflate.c
cc -Os -march=i686 -mtune=generic -pipe -D_LARGEFILE64_SOURCE=1 -DPIC -c -o objs/crc32.o crc32.c
cc -Os -march=i686 -mtune=generic -pipe -D_LARGEFILE64_SOURCE=1 -DPIC -c -o objs/adler32.o adler32.c
cc -Os -march=i686 -mtune=generic -pipe -D_LARGEFILE64_SOURCE=1 -DPIC -c -o objs/inflate.o inflate.c
cc -Os -march=i686 -mtune=generic -pipe -D_LARGEFILE64_SOURCE=1 -DPIC -c -o objs/inftrees.o inftrees.c
cc -Os -march=i686 -mtune=generic -pipe -D_LARGEFILE64_SOURCE=1 -DPIC -c -o objs/infback.o infback.c
cc -Os -march=i686 -mtune=generic -pipe -D_LARGEFILE64_SOURCE=1 -DPIC -c -o objs/inffast.o inffast.c
cc -Os -march=i686 -mtune=generic -pipe -D_LARGEFILE64_SOURCE=1 -DPIC -c -o objs/trees.o trees.c
cc -Os -march=i686 -mtune=generic -pipe -D_LARGEFILE64_SOURCE=1 -DPIC -c -o objs/zutil.o zutil.c
cc -Os -march=i686 -mtune=generic -pipe -D_LARGEFILE64_SOURCE=1 -DPIC -c -o objs/compress.o compress.c
cc -Os -march=i686 -mtune=generic -pipe -D_LARGEFILE64_SOURCE=1 -DPIC -c -o objs/uncompr.o uncompr.c
cc -Os -march=i686 -mtune=generic -pipe -D_LARGEFILE64_SOURCE=1 -DPIC -c -o objs/gzclose.o gzclose.c
cc -Os -march=i686 -mtune=generic -pipe -D_LARGEFILE64_SOURCE=1 -DPIC -c -o objs/gzlib.o gzlib.c
cc -Os -march=i686 -mtune=generic -pipe -D_LARGEFILE64_SOURCE=1 -I. -D_FILE_OFFSET_BITS=64 -c -o example64.o test/example.c
cc -Os -march=i686 -mtune=generic -pipe -D_LARGEFILE64_SOURCE=1 -DPIC -c -o objs/gzwrite.o gzwrite.c
cc -Os -march=i686 -mtune=generic -pipe -D_LARGEFILE64_SOURCE=1 -DPIC -c -o objs/gzread.o gzread.c
cc -Os -march=i686 -mtune=generic -pipe -D_LARGEFILE64_SOURCE=1 -I. -D_FILE_OFFSET_BITS=64 -c -o minigzip64.o test/minigzip.c
i686-pc-linux-musl-ar rc libz.a adler32.o crc32.o deflate.o infback.o inffast.o inflate.o inftrees.o trees.o zutil.o compress.o uncompr.o gzclose.o gzlib.o gzread.o gzwrite.o 
cc -Os -march=i686 -mtune=generic -pipe -D_LARGEFILE64_SOURCE=1 -o example example.o -L. libz.a
cc -Os -march=i686 -mtune=generic -pipe -D_LARGEFILE64_SOURCE=1 -o minigzip minigzip.o -L. libz.a
cc -Os -march=i686 -mtune=generic -pipe -D_LARGEFILE64_SOURCE=1 -o example64 example64.o -L. libz.a
cc -Os -march=i686 -mtune=generic -pipe -D_LARGEFILE64_SOURCE=1 -o minigzip64 minigzip64.o -L. libz.a
cc -shared -Os -march=i686 -mtune=generic -pipe -D_LARGEFILE64_SOURCE=1 -o libz.so.1.2.8 adler32.lo crc32.lo deflate.lo infback.lo inffast.lo inflate.lo inftrees.lo trees.lo zutil.lo compress.lo uncompr.lo gzclose.lo gzlib.lo gzread.lo gzwrite.lo  -lc -Wl,-O1 -Wl,--as-needed
/usr/bin/ld: crc32.lo: warning: relocation in readonly section `.text'.
/usr/bin/ld: warning: creating a DT_TEXTREL in object.
rm -f libz.so libz.so.1
ln -s libz.so.1.2.8 libz.so
ln -s libz.so.1.2.8 libz.so.1
cc -Os -march=i686 -mtune=generic -pipe -D_LARGEFILE64_SOURCE=1 -o examplesh example.o -L. libz.so.1.2.8
cc -Os -march=i686 -mtune=generic -pipe -D_LARGEFILE64_SOURCE=1 -o minigzipsh minigzip.o -L. libz.so.1.2.8
>>> Source compiled.
>>> Test phase [not enabled]: sys-libs/zlib-1.2.8-r1

>>> Install zlib-1.2.8-r1 into /tmp/portage/sys-libs/zlib-1.2.8-r1/image/ category sys-libs
 * abi_x86_32.x86: running multilib-minimal_abi_src_install
make -j17 install DESTDIR=/tmp/portage/sys-libs/zlib-1.2.8-r1/image/ LDCONFIG=: 
cp libz.a /tmp/portage/sys-libs/zlib-1.2.8-r1/image//usr/lib
chmod 644 /tmp/portage/sys-libs/zlib-1.2.8-r1/image//usr/lib/libz.a
cp libz.so.1.2.8 /tmp/portage/sys-libs/zlib-1.2.8-r1/image//usr/lib
chmod 755 /tmp/portage/sys-libs/zlib-1.2.8-r1/image//usr/lib/libz.so.1.2.8
cp zlib.3 /tmp/portage/sys-libs/zlib-1.2.8-r1/image//usr/share/man/man3
chmod 644 /tmp/portage/sys-libs/zlib-1.2.8-r1/image//usr/share/man/man3/zlib.3
cp zlib.pc /tmp/portage/sys-libs/zlib-1.2.8-r1/image//usr/lib/pkgconfig
chmod 644 /tmp/portage/sys-libs/zlib-1.2.8-r1/image//usr/lib/pkgconfig/zlib.pc
cp zlib.h zconf.h /tmp/portage/sys-libs/zlib-1.2.8-r1/image//usr/include
chmod 644 /tmp/portage/sys-libs/zlib-1.2.8-r1/image//usr/include/zlib.h /tmp/portage/sys-libs/zlib-1.2.8-r1/image//usr/include/zconf.h
 * ERROR: sys-libs/zlib-1.2.8-r1::gentoo failed (install phase):
 *   unable to read SONAME from libz.so
 * 
 * Call stack:
 *     ebuild.sh, line  133:  Called src_install
 *   environment, line 3191:  Called multilib-minimal_src_install
 *   environment, line 2466:  Called multilib_foreach_abi 'multilib-minimal_abi_src_install'
 *   environment, line 2660:  Called multibuild_foreach_variant '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_install'
 *   environment, line 2353:  Called _multibuild_run '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_install'
 *   environment, line 2351:  Called _multilib_multibuild_wrapper 'multilib-minimal_abi_src_install'
 *   environment, line  502:  Called multilib-minimal_abi_src_install
 *   environment, line 2456:  Called multilib_src_install
 *   environment, line 2909:  Called gen_usr_ldscript '-a' 'z'
 *   environment, line 1778:  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-libs/zlib-1.2.8-r1::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=sys-libs/zlib-1.2.8-r1::gentoo'`.
 * The complete build log is located at '/tmp/portage/sys-libs/zlib-1.2.8-r1/temp/build.log'.
 * The ebuild environment file is located at '/tmp/portage/sys-libs/zlib-1.2.8-r1/temp/environment'.
 * Working directory: '/tmp/portage/sys-libs/zlib-1.2.8-r1/work/zlib-1.2.8-abi_x86_32.x86'
 * S: '/tmp/portage/sys-libs/zlib-1.2.8-r1/work/zlib-1.2.8'
Comment 2 Jasen Borisov 2016-01-12 01:10:12 UTC
# emerge --info '=sys-libs/zlib-1.2.8-r1::gentoo'

Portage 2.2.26 (python 2.7.10-final-0, hardened/linux/musl/x86, gcc-4.9.3, musl-1.1.12, 4.4.0-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.4.0-gentoo-x86_64-Intel-R-_Core-TM-_i7-5960X_CPU_@_3.00GHz-with-gentoo-2.2
KiB Mem:    32833912 total,   9515244 free
KiB Swap:   33554428 total,  33554428 free
Timestamp of repository gentoo: Mon, 11 Jan 2016 13:43:09 +0000
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.18.4::gentoo
sys-apps/sandbox:         2.6-r999::musl
sys-devel/autoconf:       2.69::gentoo
sys-devel/automake:       1.13.4::gentoo, 1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo
sys-devel/gcc:            4.9.3-r99::musl
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: 3.16::musl (virtual/os-headers)
sys-libs/musl:            1.1.12::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000

musl
    location: /var/lib/layman/musl
    masters: gentoo
    priority: 0

ABI="x86"
ABI_X86="32"
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA"
ACCEPT_PROPERTIES="*"
ACCEPT_RESTRICT="*"
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"
ARCH="x86"
AUTOCLEAN="yes"
BOOTSTRAP_USE="cxx unicode internal-glib python_targets_python3_4 python_targets_python2_7 hardened nptl pax_kernel pic -berkdb -jit -nls -orc"
CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author"
CAMERAS="ptp2"
CBUILD="i686-pc-linux-musl"
CFLAGS="-Os -march=i686 -mtune=generic -pipe"
CHOST="i686-pc-linux-musl"
CHOST_x86="i686-gentoo-linux-musl"
CLEAN_DELAY="5"
COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog"
COLLISION_IGNORE="/lib/modules/* *.py[co] *$py.class */dropin.cache"
COLORTERM="yes"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/portage /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CPU_FLAGS_X86=""
CXXFLAGS="-Os -march=i686 -mtune=generic -pipe"
DCC_EMAILLOG_WHOM_TO_BLAME=""
DEFAULT_ABI="x86"
DISPLAY=":0.0"
DISTCC_ENABLE_DISCREPANCY_EMAIL=""
DISTCC_FALLBACK="1"
DISTCC_SAVE_TEMPS="0"
DISTCC_SSH=""
DISTCC_TCP_CORK=""
DISTCC_VERBOSE="0"
DISTDIR="/usr/portage/distfiles"
EDITOR="/usr/bin/vim"
ELIBC="musl"
EMERGE_DEFAULT_OPTS="--keep-going=y --color=y --verbose --jobs=16 --ask --with-bdeps=y"
EMERGE_WARNING_DELAY="10"
EPREFIX=""
EROOT="/"
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"
FETCHCOMMAND="wget -t 3 -T 60 --passive-ftp -O "${DISTDIR}/${FILE}" "${URI}""
FETCHCOMMAND_RSYNC="rsync -avP "${URI}" "${DISTDIR}/${FILE}""
FETCHCOMMAND_SFTP="bash -c "x=\${2#sftp://} ; host=\${x%%/*} ; port=\${host##*:} ; host=\${host%:*} ; [[ \${host} = \${port} ]] && port=22 ; eval \"declare -a ssh_opts=(\${3})\" ; exec sftp -P \${port} \"\${ssh_opts[@]}\" \"\${host}:/\${x#*/}\" \"\$1\"" sftp "${DISTDIR}/${FILE}" "${URI}" "${PORTAGE_SSH_OPTS}""
FETCHCOMMAND_SSH="bash -c "x=\${2#ssh://} ; host=\${x%%/*} ; port=\${host##*:} ; host=\${host%:*} ; [[ \${host} = \${port} ]] && port=22 ; exec rsync --rsh=\"ssh -p\${port} \${3}\" -avP \"\${host}:/\${x#*/}\" \"\$1\"" rsync "${DISTDIR}/${FILE}" "${URI}" "${PORTAGE_SSH_OPTS}""
FFLAGS="-O2 -pipe"
GCC_SPECS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org"
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"
GRUB_PLATFORMS=""
GSETTINGS_BACKEND="dconf"
GUILE_LOAD_PATH="/usr/share/guile/1.8"
HOME="/root"
INFINALITY_FT_AUTOHINT_HORIZONTAL_STEM_DARKEN_STRENGTH="10"
INFINALITY_FT_AUTOHINT_INCREASE_GLYPH_HEIGHTS="true"
INFINALITY_FT_AUTOHINT_SNAP_STEM_HEIGHT="100"
INFINALITY_FT_AUTOHINT_VERTICAL_STEM_DARKEN_STRENGTH="25"
INFINALITY_FT_BOLD_EMBOLDEN_X_VALUE="0"
INFINALITY_FT_BOLD_EMBOLDEN_Y_VALUE="0"
INFINALITY_FT_BRIGHTNESS="0"
INFINALITY_FT_CHROMEOS_STYLE_SHARPENING_STRENGTH="0"
INFINALITY_FT_CONTRAST="0"
INFINALITY_FT_FILTER_PARAMS="11 22 38 22 11"
INFINALITY_FT_FRINGE_FILTER_STRENGTH="0"
INFINALITY_FT_GAMMA_CORRECTION="0 100"
INFINALITY_FT_GLOBAL_EMBOLDEN_X_VALUE="0"
INFINALITY_FT_GLOBAL_EMBOLDEN_Y_VALUE="0"
INFINALITY_FT_GRAYSCALE_FILTER_STRENGTH="0"
INFINALITY_FT_STEM_ALIGNMENT_STRENGTH="25"
INFINALITY_FT_STEM_FITTING_STRENGTH="25"
INFINALITY_FT_STEM_SNAPPING_SLIDING_SCALE="40"
INFINALITY_FT_USE_KNOWN_SETTINGS_ON_SELECTED_FONTS="true"
INFINALITY_FT_USE_VARIOUS_TWEAKS="true"
INFINALITY_FT_WINDOWS_STYLE_SHARPENING_STRENGTH="5"
INFOPATH="/usr/share/info:/usr/share/gcc-data/i686-gentoo-linux-musl/4.9.3/info:/usr/share/binutils-data/i686-pc-linux-musl/2.25.1/info"
INPUT_DEVICES="keyboard mouse evdev"
INSTALL_MASK="charset.alias"
IUSE_IMPLICIT="abi_x86_32 prefix prefix-guest"
KERNEL="linux"
LANG="en_GB.utf8"
LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text"
LC_MESSAGES="C"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LESS="-R -M --shift 5"
LESSOPEN="|lesspipe %s"
LESS_TERMCAP_mb=""
LESS_TERMCAP_md=""
LESS_TERMCAP_me=""
LESS_TERMCAP_se=""
LESS_TERMCAP_so=""
LESS_TERMCAP_ue=""
LESS_TERMCAP_us=""
LIBDIR_x86="lib"
LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer"
LOGNAME="root"
LS_COLORS="rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.axv=01;35:*.anx=01;35:*.ogv=01;35:*.ogx=01;35:*.pdf=00;32:*.ps=00;32:*.txt=00;32:*.patch=00;32:*.diff=00;32:*.log=00;32:*.tex=00;32:*.doc=00;32:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.axa=00;36:*.oga=00;36:*.spx=00;36:*.xspf=00;36:"
MAIL="/var/mail/root"
MAKEOPTS="-j17"
MANPAGER="manpager"
MANPATH="/usr/local/share/man:/usr/share/man:/usr/share/gcc-data/i686-gentoo-linux-musl/4.9.3/man:/usr/share/binutils-data/i686-pc-linux-musl/2.25.1/man"
MULTILIB_ABIS="x86"
MULTIOSDIRS="../lib"
NETBEANS="apisupport cnd groovy gsf harness ide identity j2ee java mobility nb php profiler soa visualweb webcommon websvccommon xml"
NOCOLOR="false"
OFFICE_IMPLEMENTATION="libreoffice"
OPENCL_PROFILE="mesa"
OPENGL_PROFILE="xorg-x11"
PAGER="/usr/bin/less"
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/i686-gentoo-linux-musl/gcc-bin/4.9.3"
PHP_TARGETS="php5-5"
PKGDIR="/usr/portage/packages"
PORTAGE_ARCHLIST="alpha amd64 amd64-fbsd amd64-linux arm arm-linux arm64 hppa hppa-hpux ia64 ia64-hpux ia64-linux m68k m68k-mint mips nios2 ppc ppc-aix ppc-macos ppc-openbsd ppc64 ppc64-linux riscv s390 sh sparc sparc-fbsd sparc-solaris sparc64-freebsd sparc64-solaris x64-cygwin x64-freebsd x64-macos x64-openbsd x64-solaris x86 x86-cygwin x86-fbsd x86-freebsd x86-interix x86-linux x86-macos x86-netbsd x86-openbsd x86-solaris x86-winnt"
PORTAGE_BIN_PATH="/usr/lib/portage/python2.7"
PORTAGE_COMPRESS_EXCLUDE_SUFFIXES="css gif htm[l]? jp[e]?g js pdf png"
PORTAGE_CONFIGROOT="/"
PORTAGE_DEBUG="0"
PORTAGE_DEPCACHEDIR="/var/cache/edb/dep"
PORTAGE_ELOG_CLASSES="log warn error"
PORTAGE_ELOG_MAILFROM="portage@localhost"
PORTAGE_ELOG_MAILSUBJECT="[portage] ebuild log for ${PACKAGE} on ${HOST}"
PORTAGE_ELOG_MAILURI="root"
PORTAGE_ELOG_SYSTEM="save_summary:log,warn,error,qa echo"
PORTAGE_FETCH_CHECKSUM_TRY_MIRRORS="5"
PORTAGE_FETCH_RESUME_MIN_SIZE="350K"
PORTAGE_GID="250"
PORTAGE_GPG_SIGNING_COMMAND="gpg --sign --digest-algo SHA256 --clearsign --yes --default-key "${PORTAGE_GPG_KEY}" --homedir "${PORTAGE_GPG_DIR}" "${FILE}""
PORTAGE_INST_GID="0"
PORTAGE_INST_UID="0"
PORTAGE_INTERNAL_CALLER="1"
PORTAGE_OVERRIDE_EPREFIX=""
PORTAGE_PYM_PATH="/usr/lib/python2.7/site-packages"
PORTAGE_PYTHONPATH="/usr/lib/python2.7/site-packages"
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_RSYNC_RETRIES="-1"
PORTAGE_SYNC_STALE="30"
PORTAGE_TMPDIR="/tmp"
PORTAGE_VERBOSE="1"
PORTAGE_WORKDIR_MODE="0700"
PORTAGE_XATTR_EXCLUDE="btrfs.* security.evm security.ima 	security.selinux system.nfs4_acl"
PORT_LOGDIR_CLEAN="find "${PORT_LOGDIR}" -type f ! -name "summary.log*" -mtime +7 -delete"
PROFILE_ONLY_VARIABLES="ARCH ELIBC IUSE_IMPLICIT KERNEL USERLAND USE_EXPAND_IMPLICIT USE_EXPAND_UNPREFIXED USE_EXPAND_VALUES_ARCH USE_EXPAND_VALUES_ELIBC USE_EXPAND_VALUES_KERNEL USE_EXPAND_VALUES_USERLAND"
PWD="/"
PYTHONDONTWRITEBYTECODE="1"
PYTHON_SINGLE_TARGET="python3_4"
PYTHON_TARGETS="python2_7 python3_4"
QEMU_SOFTMMU_TARGETS="*"
QEMU_USER_TARGETS=""
QT_GRAPHICSSYSTEM="raster"
RESUMECOMMAND="wget -c -t 3 -T 60 --passive-ftp -O "${DISTDIR}/${FILE}" "${URI}""
RESUMECOMMAND_RSYNC="rsync -avP "${URI}" "${DISTDIR}/${FILE}""
RESUMECOMMAND_SSH="bash -c "x=\${2#ssh://} ; host=\${x%%/*} ; port=\${host##*:} ; host=\${host%:*} ; [[ \${host} = \${port} ]] && port=22 ; exec rsync --rsh=\"ssh -p\${port} \${3}\" -avP \"\${host}:/\${x#*/}\" \"\$1\"" rsync "${DISTDIR}/${FILE}" "${URI}" "${PORTAGE_SSH_OPTS}""
ROOT="/"
ROOTPATH="/opt/bin:/usr/i686-gentoo-linux-musl/gcc-bin/4.9.3"
RPMDIR="/usr/portage/rpm"
RUBY_TARGETS="ruby20 ruby21"
SHELL="/bin/zsh"
SHLVL="2"
SUDO_COMMAND="/bin/zsh"
SUDO_GID="1000"
SUDO_UID="1000"
SUDO_USER="tajjada"
SYMLINK_LIB="no"
TERM="xterm"
UNCACHED_ERR_FD=""
UNINSTALL_IGNORE="/lib/modules/* /var/run /var/lock"
USE="cli cracklib crypt cxx dri fortran iconv ipv6 modules ncurses nls nptl openmp pax_kernel pcre pic readline seccomp session ssl tcpd unicode x86 xattr zlib" ABI_X86="32" 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="musl" 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="python3_4" PYTHON_TARGETS="python2_7 python3_4" QEMU_SOFTMMU_TARGETS="*" RUBY_TARGETS="ruby20 ruby21" USERLAND="GNU" VIDEO_CARDS="dummy fbdev 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"
USER="root"
USERLAND="GNU"
USERNAME="root"
USE_EXPAND="ABI_MIPS ABI_PPC ABI_S390 ABI_X86 ALSA_CARDS APACHE2_MODULES APACHE2_MPMS CALLIGRA_FEATURES CAMERAS COLLECTD_PLUGINS CPU_FLAGS_X86 CROSSCOMPILE_OPTS CURL_SSL DRACUT_MODULES DVB_CARDS ELIBC ENLIGHTENMENT_MODULES FCDSL_CARDS FFTOOLS FOO2ZJS_DEVICES FRITZCAPI_CARDS GPSD_PROTOCOLS GRUB_PLATFORMS INPUT_DEVICES KERNEL LCD_DEVICES LIBREOFFICE_EXTENSIONS LINGUAS LIRC_DEVICES MONKEYD_PLUGINS NETBEANS_MODULES NGINX_MODULES_HTTP NGINX_MODULES_MAIL OFED_DRIVERS OFFICE_IMPLEMENTATION OPENMPI_FABRICS OPENMPI_OFED_FEATURES OPENMPI_RM PHP_TARGETS PYTHON_SINGLE_TARGET PYTHON_TARGETS QEMU_SOFTMMU_TARGETS QEMU_USER_TARGETS ROS_MESSAGES RUBY_TARGETS SANE_BACKENDS USERLAND UWSGI_PLUGINS VIDEO_CARDS VOICEMAIL_STORAGE XFCE_PLUGINS XTABLES_ADDONS"
USE_EXPAND_HIDDEN="ABI_MIPS ABI_PPC ABI_S390 ABI_X86 CROSSCOMPILE_OPTS ELIBC KERNEL USERLAND"
USE_EXPAND_IMPLICIT="ARCH ELIBC KERNEL USERLAND"
USE_EXPAND_UNPREFIXED="ARCH"
USE_EXPAND_VALUES_ARCH="alpha amd64 amd64-fbsd amd64-linux arm arm-linux arm64 hppa hppa-hpux ia64 ia64-hpux ia64-linux m68k m68k-mint mips nios2 ppc ppc64 ppc64-linux ppc-aix ppc-macos ppc-openbsd riscv s390 sh sparc sparc64-freebsd sparc64-solaris sparc-fbsd sparc-solaris x64-cygwin x64-freebsd x64-macos x64-openbsd x64-solaris x86 x86-cygwin x86-fbsd x86-freebsd x86-interix x86-linux x86-macos x86-netbsd x86-openbsd x86-solaris x86-winnt"
USE_EXPAND_VALUES_ELIBC="AIX Cygwin Darwin DragonFly FreeBSD glibc HPUX Interix mintlib musl NetBSD OpenBSD SunOS uclibc Winnt"
USE_EXPAND_VALUES_KERNEL="AIX Darwin FreeBSD freemint HPUX linux NetBSD OpenBSD SunOS Winnt"
USE_EXPAND_VALUES_USERLAND="BSD GNU"
USE_ORDER="env:pkg:conf:defaults:pkginternal:repo:env.d"
VIDEO_CARDS="dummy fbdev v4l"
VISUAL="/usr/bin/vim"
XAUTHORITY="/home/tajjada/.Xauthority"
XDG_CONFIG_DIRS="/etc/xdg"
XDG_DATA_DIRS="/usr/local/share:/usr/share"
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"
Comment 3 Felix Janda 2016-01-12 08:28:10 UTC
Thanks for the report. There seems to be a problem in the configure
stage. (It is using cc instead of gcc.) Please post configure.log.
Comment 4 Jasen Borisov 2016-01-12 14:31:47 UTC
OK, so something very strange happened.

Last night, after submitting this bug report, I continued playing around with that musl system, and eventually even more packages besides zlib started failing with the same error. Eventually the system completely broke, so I discarded it. Hence, unfortunately, I don't have a configure.log to post.

I just tried to reproduce it right now by unpacking that same stage3 archive into another directory and chrooting there, and I am no longer able to reproduce it. Everything, including zlib, works fine now. I am using the same CFLAGS (and make.conf in general) as I did last night. This is very strange...
Comment 5 Jory A. Pratt gentoo-dev 2016-01-15 00:43:22 UTC
(In reply to Jasen Borisov from comment #4)
> OK, so something very strange happened.
> 
> Last night, after submitting this bug report, I continued playing around
> with that musl system, and eventually even more packages besides zlib
> started failing with the same error. Eventually the system completely broke,
> so I discarded it. Hence, unfortunately, I don't have a configure.log to
> post.
> 
> I just tried to reproduce it right now by unpacking that same stage3 archive
> into another directory and chrooting there, and I am no longer able to
> reproduce it. Everything, including zlib, works fine now. I am using the
> same CFLAGS (and make.conf in general) as I did last night. This is very
> strange...

This is all caused from >=pax-utils-1.1 you can downgrade it and your builds will be fine.
Comment 6 SpanKY gentoo-dev 2016-01-15 03:47:43 UTC
(In reply to Jory A. Pratt from comment #5)

why exactly do you think that ?  his configure log is clearly wrong and the shared lib is clearly broken -- it does not have a -soname flag passed to it.  so scanelf returning an empty result is correct behavior.

if you know of a problem with pax-utils, you need to report it.  there are no known bugs with the latest version.
Comment 7 Jory A. Pratt gentoo-dev 2016-01-15 03:52:02 UTC
I was meaning to add that this is caused by a bad system call, simple scanelf --soname libz.so would show this, maybe it is time to implement the use of objdump to find the soname.
Comment 8 Jory A. Pratt gentoo-dev 2016-01-15 04:29:46 UTC
I am done discussing this, the status appears to have changed when we had a collision on posts.
Comment 9 SpanKY gentoo-dev 2016-01-15 04:51:11 UTC
(In reply to Jory A. Pratt from comment #7)

again, please read the log.  it has nothing to do with scanelf -- libz.so clearly lacks a SONAME.

if you know of a case where scanelf hits a non-whitelisted syscall, you should file a bug.