http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60719
Bug ID: 60719 Summary: With --program-prefix=$target_alias --program-suffix=-$version install-driver breaks Product: gcc Version: 4.9.0 Status: UNCONFIRMED Keywords: build Severity: normal Priority: P3 Component: bootstrap Assignee: unassigned at gcc dot gnu.org Reporter: rguenth at gcc dot gnu.org With --program-suffix=-4.9 --program-prefix=powerpc64le-suse-linux- --target=powerpc64le-suse-linux I get the non-sensical [ 263s] rm -f /home/abuild/rpmbuild/BUILDROOT/cross-ppc64le-gcc49-4.9.0+r208956-0.x86_64/usr/bin/powerpc64le-suse-linux-gcc-4.9 [ 263s] /usr/bin/install -c xgcc /home/abuild/rpmbuild/BUILDROOT/cross-ppc64le-gcc49-4.9.0+r208956-0.x86_64/usr/bin/powerpc64le-suse-linux-gcc-4.9 [ 263s] rm -f /home/abuild/rpmbuild/BUILDROOT/cross-ppc64le-gcc49-4.9.0+r208956-0.x86_64/usr/bin/powerpc64le-suse-linux-gcc-4.9 [ 263s] ( cd /home/abuild/rpmbuild/BUILDROOT/cross-ppc64le-gcc49-4.9.0+r208956-0.x86_64/usr/bin && \ [ 263s] ln powerpc64le-suse-linux-gcc-4.9 powerpc64le-suse-linux-gcc-4.9 ) [ 263s] ln: failed to access 'powerpc64le-suse-linux-gcc-4.9': No such file or directory [ 263s] Makefile:3270: recipe for target 'install-driver' failed [ 263s] make[1]: [install-driver] Error 1 (ignored) [ 263s] if [ ! -f gcc-cross ] ; then \ [ 263s] rm -f /home/abuild/rpmbuild/BUILDROOT/cross-ppc64le-gcc49-4.9.0+r208956-0.x86_64/usr/bin/powerpc64le-suse-linux-gcc-tmp; \ [ 263s] ( cd /home/abuild/rpmbuild/BUILDROOT/cross-ppc64le-gcc49-4.9.0+r208956-0.x86_64/usr/bin && \ [ 263s] ln powerpc64le-suse-linux-gcc-4.9 powerpc64le-suse-linux-gcc-tmp && \ [ 263s] mv -f powerpc64le-suse-linux-gcc-tmp powerpc64le-suse-linux-powerpc64le-suse-linux-gcc-4.9 ); \ [ 263s] fi not sure who added that GCC_TARGET_INSTALL_NAME special-case, but it's clearly broken when it matches GCC_INSTALL_NAME. Side-note, adding --program-suffix only for a cross configury overrides program_transform_name to not include the $target_alias prefix, thus specifying both like above.