Following the solaris instructions on Linux, binutils fails to build. Reproducible: Always Steps to Reproduce: $ emerge --oneshot --nodeps sys-devel/binutils Actual Results: Failed to build. Expected Results: Succeed to build. emerge --oneshot --nodeps sys-devel/binutils --- snip --- checking whether to enable maintainer-specific portions of Makefiles... no -lm configure: updating cache ./config.cache configure: creating ./config.status Setting warning flags = -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow configure: updating cache ./config.cache configure: creating ./config.status config.status: creating Makefile config.status: creating testsuite/Makefile config.status: creating po/Makefile.in config.status: WARNING: '/usr/local/gprefix/var/tmp/portage/sys-devel/binutils-2.22-r1/work/binutils-2.22/gold/po/Make-in' seems to ignore the --datarootdir setting config.status: creating config.h config.status: executing depfiles commands config.status: creating Makefile config.status: executing default-1 commands config.status: creating po/Makefile.in config.status: creating po/POTFILES config.status: WARNING: '/usr/local/gprefix/var/tmp/portage/sys-devel/binutils-2.22-r1/work/binutils-2.22/gprof/po/Make-in' seems to ignore the --datarootdir setting config.status: creating po/Makefile config.status: creating gconfig.h config.status: executing depfiles commands config.status: executing libtool commands config.status: executing default-1 commands config.status: creating po/POTFILES config.status: creating po/Makefile 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 3011: Called toolchain-binutils_src_compile * environment, line 3772: 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 3011: Called toolchain-binutils_src_compile * environment, line 3772: 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'
I think the real error is somewhere up, could you check and see if you have an Error *** somewhere up?
Created attachment 320858 [details] emerge binutils output Not sure what to look for... Perhaps you can help with that?
configure: error: zlib (libz) library was explicitly requested but not found yes checking whether snprintf is declared... make[1]: *** [configure-gas] Error 1 make[1]: *** Waiting for unfinished jobs.... zlib issue
zlib is installed in $EPREFIX/tmp as part of the bootstrap process. I now even tried to "emerge --oneshot sys-libs/zlib" and after that "emerge --oneshot --nodeps sys-devel/binutils". Still same issue.
What host OS was this? I cannot reproduce on 3 different distros.
CentOS 6 on x86_64 and CentOS 5 on x86. Both of them running in a openvz container.
installing zlib-devel on the host OS fixes the problem... But then it is another problem.. shouldn't gentoo-prefix applications rely on what's under the prefix and not the host OS libraries and binaries?
yes, so I'm unhappy you did so, because it means for some reason the zlib that was installed during the bootstrap is not found
if it works for you now, I'm happy