Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 430624 - emerge fails to build sys-devel/binutils-2.22-r1 during the bootstrapping process.
Summary: emerge fails to build sys-devel/binutils-2.22-r1 during the bootstrapping pro...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: x86 Linux
: Normal blocker
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-08-09 15:56 UTC by Raboo Treed
Modified: 2012-08-09 16:43 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 Raboo Treed 2012-08-09 15:56:19 UTC
During the step where I should "emerge --oneshot --nodeps sys-devel/binutils" according to the solaris botstrapping instructions. binutils fails to build because it does not find zlib.

Reproducible: Always

Steps to Reproduce:
emerge --oneshot --nodeps sys-devel/binutils
Actual Results:  
Failed to build because it did not find zlib

Expected Results:  
Succeed to build since i have zlib in $EPREFIX/tmp. Also tried to emerge zlib beefore binutils. Still failed.

Tested on CentOS 5.x x86 and CentOS 6.x x86_64.
 


# emerge output
$ emerge --oneshot --nodeps sys-devel/binutils

--- snip ---

>>> Unpacking binutils-2.22-patches-1.2.tar.bz2 to /usr/local/gprefix/var/tmp/portage/sys-devel/binutils-2.22-r1/work
 * Applying various patches (bugfixes/updates) ...
 * 03_all_binutils-2.15.92.0.2-ppc64-pie.patch ... [ ok ]
 * 08_all_binutils-RPATH_ENVVAR-smack.patch ... [ ok ]
 * 10_all_binutils-2.22-ppc-textrels.patch ... [ ok ]
 * 12_all_sh-targets.patch ... [ ok ]
 * 20_all_ld-sysroot.patch ... [ ok ]
 * 30_all_binutils-2.22-flexible-tests.patch ... [ ok ]
 * 40_all_binutils-2.22-s390x-PIC.patch ... [ ok ]
 * 50_all_binutils-2.22-hppa-tls-pr13476.patch ... [ ok ]
 * 51_all_binutils-2.22-hppa-plt-pr13387.patch ... [ ok ]
 * 62_all_binutils-2.22-hardened-crtbegin.patch ... [ ok ]
 * 63_all_binutils-2.22-pt-pax-flags-20111121.patch ... [ ok ]
 * 66_all_binutils-2.22-warn-textrel.patch ... [ ok ]
 * 75_all_binutils-default-test-flags.patch ... [ ok ]
 * 76_all_use-new-ld-dtags.patch ... [ ok ]
 * 77_all_generate-gnu-hash.patch ... [ ok ]
 * 78_all_use-relro.patch ... [ ok ]
 * 91_all_libiberty-pic.patch ... [ ok ]
 * Done with patching
 * Using GNU config files from
 * Can't read /config.sub, skipping..
 * Can't read /config.guess, skipping..
 * Running elibtoolize in: binutils-2.22/
 * Applying portage/2.2 patch ...
 * Applying sed/1.5.6 patch ...
 * Applying as-needed/2.2.6 patch ...
 * Applying binutils-2.22-mint.patch ... [ ok ]
 * Applying binutils-2.19.50.0.1-mint.patch ... [ ok ]
>>> Source unpacked in /usr/local/gprefix/var/tmp/portage/sys-devel/binutils-2.22-r1/work
>>> Compiling source in /usr/local/gprefix/var/tmp/portage/sys-devel/binutils-2.22-r1/work/binutils-2.22 ...

 * CATEGORY: sys-devel
 * CBUILD: i686-pc-linux-gnu
 * CHOST: i686-pc-linux-gnu
 * CTARGET: i686-pc-linux-gnu
 * CFLAGS: -O2 -march=i686 -pipe -m32
 * LDFLAGS: -Wl,-rpath=/usr/local/gprefix/usr/lib -Wl,-rpath=/usr/local/gprefix/lib -Wl,-rpath=/usr/local/gprefix/tmp/usr/lib

./configure --enable-gold --enable-plugins --enable-plugins --disable-nls --with-zlib --build=i686-pc-linux-gnu --prefix=/usr/local/gprefix/usr --host=i686-pc-linux-gnu --target=i686-pc-linux-gnu --datadir=/usr/local/gprefix/usr/share/binutils-data/i686-pc-linux-gnu/2.22 --infodir=/usr/local/gprefix/usr/share/binutils-data/i686-pc-linux-gnu/2.22/info --mandir=/usr/local/gprefix/usr/share/binutils-data/i686-pc-linux-gnu/2.22/man --bindir=/usr/local/gprefix/usr/i686-pc-linux-gnu/binutils-bin/2.22 --libdir=/usr/local/gprefix/usr/lib/binutils/i686-pc-linux-gnu/2.22 --libexecdir=/usr/local/gprefix/usr/lib/binutils/i686-pc-linux-gnu/2.22 --includedir=/usr/local/gprefix/usr/lib/binutils/i686-pc-linux-gnu/2.22/include --enable-64-bit-bfd --enable-obsolete --enable-shared --enable-threads --disable-werror --with-bugurl=http://bugs.gentoo.org/ --disable-static

--- snip ---

checking for library containing zlibVersion... (cached) -lz
checking zlib.h usability... no
checking zlib.h presence... no
checking for zlib.h... no
configure: error: zlib (libz) library was explicitly requested but not found
make[1]: *** [configure-bfd] Error 1
make[1]: Leaving directory `/usr/local/gprefix/var/tmp/portage/sys-devel/binutils-2.22-r1/work/build'
make: *** [all] Error 2
emake failed
 * ERROR: sys-devel/binutils-2.22-r1 failed (compile phase):
 * emake failed
 *
 * Call stack:
 * ebuild.sh, line 85: Called src_compile
 * environment, line 3010: Called toolchain-binutils_src_compile
 * environment, line 3771: Called die
 * The specific snippet of code:
 * emake all || die "emake failed";
 *
 * If you need support, post the output of 'emerge --info =sys-devel/binutils-2.22-r1',
 * the complete build log and the output of 'emerge -pqv =sys-devel/binutils-2.22-r1'.
 * The complete build log is located at '/usr/local/gprefix/var/tmp/portage/sys-devel/binutils-2.22-r1/temp/build.log'.
 * The ebuild environment file is located at '/usr/local/gprefix/var/tmp/portage/sys-devel/binutils-2.22-r1/temp/environment'.
 * Working directory: '/usr/local/gprefix/var/tmp/portage/sys-devel/binutils-2.22-r1/work/build'
 * S: '/usr/local/gprefix/var/tmp/portage/sys-devel/binutils-2.22-r1/work/binutils-2.22'

>>> Failed to emerge sys-devel/binutils-2.22-r1, Log file:

>>> '/usr/local/gprefix/var/tmp/portage/sys-devel/binutils-2.22-r1/temp/build.log'

 * Messages for package sys-devel/binutils-2.22-r1:

 * Can't read /config.sub, skipping..
 * Can't read /config.guess, skipping..
 * ERROR: sys-devel/binutils-2.22-r1 failed (compile phase):
 * emake failed
 *
 * Call stack:
 * ebuild.sh, line 85: Called src_compile
 * environment, line 3010: Called toolchain-binutils_src_compile
 * environment, line 3771: Called die
 * The specific snippet of code:
 * emake all || die "emake failed";
 *
 * If you need support, post the output of 'emerge --info =sys-devel/binutils-2.22-r1',
 * the complete build log and the output of 'emerge -pqv =sys-devel/binutils-2.22-r1'.
 * The complete build log is located at '/usr/local/gprefix/var/tmp/portage/sys-devel/binutils-2.22-r1/temp/build.log'.
 * The ebuild environment file is located at '/usr/local/gprefix/var/tmp/portage/sys-devel/binutils-2.22-r1/temp/environment'.
 * Working directory: '/usr/local/gprefix/var/tmp/portage/sys-devel/binutils-2.22-r1/work/build'
 * S: '/usr/local/gprefix/var/tmp/portage/sys-devel/binutils-2.22-r1/work/binutils-2.22'




# emerge --info

$ emerge --info =sys-devel/binutils-2.22-r1
Portage 2.2.01.20430-prefix (prefix/linux/amd64, gcc-4.4.6, unavailable, 2.6.32-11-pve x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-2.6.32-11-pve-x86_64-with-centos-6.2-Santiago
Timestamp of tree: Sat, 30 Jun 2012 21:54:07 +0000
app-shells/bash: 4.2_p29::gentoo_prefix
Repositories: gentoo_prefix
Installed sets: 
ACCEPT_KEYWORDS="~amd64-linux"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf"
CPPFLAGS="-I/usr/local/gprefix/usr/include -I/usr/local/gprefix/tmp/usr/include"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/local/gprefix/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs collision-protect distlocks ebuild-locks fixlafiles force-prefix parallel-fetch preserve-libs protect-owned sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LDFLAGS="-L/usr/local/gprefix/usr/lib -Wl,-rpath=/usr/local/gprefix/usr/lib -L/usr/local/gprefix/lib -Wl,-rpath=/usr/local/gprefix/lib -L/usr/local/gprefix/tmp/usr/lib -Wl,-rpath=/usr/local/gprefix/tmp/usr/lib"
MAKEOPTS="-j4"
PKGDIR="/usr/local/gprefix/usr/portage/packages"
PORTAGE_CONFIGROOT="/usr/local/gprefix/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/usr/local/gprefix/var/tmp"
PORTDIR="/usr/local/gprefix/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.prefix.freens.org/gentoo-portage-prefix"
USE="amd64 bootstrap bzip2 cli cracklib crypt cxx dri iconv ipv6 mmx modules mudflap ncurses nptl openmp pppd prefix session sse sse2 tcpd unicode xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="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" 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 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" PHP_TARGETS="php5-3" PYTHON_TARGETS="python3_2 python2_7" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga neomagic nouveau nv r128 radeon savage sis tdfx trident vesa via vmware 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:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Fabian Groffen gentoo-dev 2012-08-09 16:00:58 UTC
this is a snapshot problem

sorry about that, will have to bump today

if you're courageous, try the following:

- open $EPREFIX/usr/portage/eclass/toolchain.eclass

- find function gcc_do_filter_flags()

- remove the first line "strip-flags"
Comment 2 Fabian Groffen gentoo-dev 2012-08-09 16:43:18 UTC
Snapshot bumped, that should fix this nasty problem.  Sorry and thanks again for reporting.