I'm trying to build a new gentoo system from an existing (i'm following the /HOWTO Xen and Gentoo/ instructions from http://gentoo-wiki.com/HOWTO_Xen_and_Gentoo#Gentoo_domU_using_quickpkg) 1) creating binary packages from the existing system for PKG in $(equery -q list | cut -d ' ' -f 3) do quickpkg =$PKG done 2) then copying - stage3-amd64-2006.0 tarball (extract) - /usr/portage - /etc/make.conf, /etc/portage to the new file file system 3) finally doing this: ROOT=/mnt/gentoo/ CONFIG_PROTECT=-/etc FEATURES=-collision-protect emerge --usepkg --emptytree system during postinst of gcc-4.1.1 it fails (here is the output) ... * If you have issues with packages unable to locate libstdc++.la, * then try running 'fix_libtool_files.sh' on the old gcc versions. --- !empty dir /mnt/gentoo-u0/etc/env.d --- !empty dir /mnt/gentoo-u0/etc >>> Regenerating /mnt/gentoo-u0/etc/ld.so.cache... >>> Original instance of package unmerged safely. -- cp: cannot stat `/mnt/gentoo-u0///usr/share/gcc-data/x86_64-pc-linux-gnu/4.1.1/c89': No such file or directory cp: cannot stat `/mnt/gentoo-u0///usr/share/gcc-data/x86_64-pc-linux-gnu/4.1.1/c99': No such file or directory !!! ERROR: sys-devel/gcc-4.1.1 failed. Call stack: ebuild.sh, line 1526: Called pkg_postinst ebuild.sh, line 1254: Called toolchain_pkg_postinst toolchain.eclass, line 36: Called gcc-compiler_pkg_postinst toolchain.eclass, line 883: Called die !!! installing c89/c99 !!! If you need support, post the topmost build error, and the call stack if relevant. !!! FAILED postinst: 1
known issue with binary packages always using latest eclass solution: re-emerge gcc and rebuild the binpkg