* QA Notice: invalid self-reference install_name /Volumes/Development/Gentoo/usr/lib/gcc/powerpc-apple-darwin9/4.5.1/libgcc_s.1.dylib in /Users/konstantintokarev/Gentoo/usr/lib/gcc/powerpc-apple-darwin9/4.5.1/libgcc_ext.10.4.dylib * QA Notice: invalid self-reference install_name /Volumes/Development/Gentoo/usr/lib/gcc/powerpc-apple-darwin9/4.5.1/libgcc_s.1.dylib in /Users/konstantintokarev/Gentoo/usr/lib/gcc/powerpc-apple-darwin9/4.5.1/libgcc_ext.10.5.dylib * QA Notice: invalid self-reference install_name /Volumes/Development/Gentoo/usr/lib/gcc/powerpc-apple-darwin9/4.5.1/libgcc_s.1.dylib in /Users/konstantintokarev/Gentoo/usr/lib/gcc/powerpc-apple-darwin9/4.5.1/libgcc_s.1.dylib * QA Notice: invalid self-reference install_name /Volumes/Development/Gentoo/usr/lib/gcc/powerpc-apple-darwin9/4.5.1/libgfortran.3.dylib in /Users/konstantintokarev/Gentoo/usr/lib/gcc/powerpc-apple-darwin9/4.5.1/libgfortran.3.dylib * QA Notice: invalid self-reference install_name /Volumes/Development/Gentoo/usr/lib/gcc/powerpc-apple-darwin9/4.5.1/libobjc-gnu.2.dylib in /Users/konstantintokarev/Gentoo/usr/lib/gcc/powerpc-apple-darwin9/4.5.1/libobjc-gnu.2.dylib * QA Notice: invalid self-reference install_name /Volumes/Development/Gentoo/usr/lib/gcc/powerpc-apple-darwin9/4.5.1/libstdc++.6.dylib in /Users/konstantintokarev/Gentoo/usr/lib/gcc/powerpc-apple-darwin9/4.5.1/libstdc++.6.dylib * ERROR: sys-devel/gcc-4.5.1-r1 failed: * invalid install_name found, your application or library will crash at runtime
your prefix is a symlink, by chance?
Yes, I've moved it after installation. Is it the reason for this error?
Yes, because gcc can't deal with that too much. You better set your prefix to the new location, and try an emerge -e system world. The install_names it complains about are actually point to your new location /Volumes/Development/Gentoo.
Isn't it possible just to install gcc with correct $EPREFIX variable, or modify startprefix script for this case? Everything else works for me fine with symlink in EPREFIX now.
you can try to hack the ebuild, but no guarantees that everything is ok afterwards.