I first ran into this issue this morning trying to build a hppa2.0 cross-toolchain on my sparc. Solar informed me that it seems to be an issue for installing *any* toolchain from a binpkg (I have FEATURES=buildpkg). I was just able to reproduce it locally on my amd64 box with 'emerge -1k sys-devel/gcc'. I could be entirely wrong (it's been known to happen), but it looks like the problem was introduced with this commit: http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/toolchain.eclass?r1=1.288&r2=1.289 Here's the revelant output: --- !empty dir /usr --- !empty dir /sbin --- !empty dir /lib/rcscripts/awk --- !empty dir /lib/rcscripts --- !empty dir /lib --- !empty dir /etc/env.d/gcc --- !empty dir /etc >>> Original instance of package unmerged safely. * The current gcc config appears valid, so it will not be * automatically switched for you. If you would like to * switch to the newly installed gcc version, do the * following: * eselect compiler set <profile> * If you have issues with packages unable to locate libstdc++.la, * then try running 'fix_libtool_files.sh' on the old gcc versions. cp: cannot stat `///usr/share/gcc-data/x86_64-pc-linux-gnu/4.1.1/fixlafiles.awk': No such file or directory !!! ERROR: sys-devel/gcc-4.1.1 failed. Call stack: ebuild.sh, line 1520: Called pkg_postinst ebuild.sh, line 1248: Called toolchain_pkg_postinst toolchain.eclass, line 36: Called gcc-compiler_pkg_postinst toolchain.eclass, line 875: Called die !!! installing fixlafiles.awk !!! If you need support, post the topmost build error, and the call stack if relevant.
CC'ing release as this likely b0rks catalyst builds using pkgcache.
well, i can add a check to the eclass to only copy the file if it exists to work around old binary packages, but that lets in the chance of people installing a newer gcc incorrectly
It doesn't appear to just be older binpkgs. I just did another crossdev run on my sparc, and it failed on cross-gcc-stage2 (which I'd never gotten to before, so no binpkg) with the same error.
has nothing to do with normal releases fixed in cvs
Bumped into this on a catalyst run when it tried to re-merge gcc-4.1.1 from binpkg. The snapshot is current as of 20060618.
Created attachment 89648 [details] Failed to install fixlafiles.awk
your binpkg is out of date >>> /tmp/stage1root/lib/rcscripts/awk/fixlafiles.awk >>> /tmp/stage1root/sbin/fix_libtool_files.sh