Seems the ebuild does not respect EPREFIX in the mv call: mkdir -p /scratch/mmokrejs/gentoo_rap/var/tmp/portage/app-text/ghostscript-gpl-9.15-r1/image//scratch/mmokrejs/gentoo_rap/usr/lib64/ghostscript/9.15 /bin/sh -c 'for obj in ; do \ ./base/instcopy -c -m 755 $obj /scratch/mmokrejs/gentoo_rap/var/tmp/portage/app-text/ghostscript-gpl-9.15-r1/image//scratch/mmokrejs/gentoo_rap/usr/lib64/ghostscript/9.15/; done' ./base/instcopy -c -m 644 ./contrib/japanese/dmp_init.ps /scratch/mmokrejs/gentoo_rap/var/tmp/portage/app-text/ghostscript-gpl-9.15-r1/image//scratch/mmokrejs/gentoo_rap/usr/share/ghostscript/9.15/lib || exit 1 ./base/instcopy -c -m 644 ./contrib/japanese/dmp_site.ps /scratch/mmokrejs/gentoo_rap/var/tmp/portage/app-text/ghostscript-gpl-9.15-r1/image//scratch/mmokrejs/gentoo_rap/usr/share/ghostscript/9.15/lib || exit 1 ./base/instcopy -c -m 644 ./contrib/japanese/escp_24.src /scratch/mmokrejs/gentoo_rap/var/tmp/portage/app-text/ghostscript-gpl-9.15-r1/image//scratch/mmokrejs/gentoo_rap/usr/share/ghostscript/9.15/lib || exit 1 for f in ./contrib/uniprint/*.upp; do \ ./base/instcopy -c -m 644 $f /scratch/mmokrejs/gentoo_rap/var/tmp/portage/app-text/ghostscript-gpl-9.15-r1/image//scratch/mmokrejs/gentoo_rap/usr/share/ghostscript/9.15/lib || exit 1; \ done mv: cannot stat '/scratch/mmokrejs/gentoo_rap/var/tmp/portage/app-text/ghostscript-gpl-9.15-r1/image//usr/bin/gsc': No such file or directory ESC[31;01m*ESC[0m ERROR: app-text/ghostscript-gpl-9.15-r1::gentoo failed (install phase): ESC[31;01m*ESC[0m (no error message) ESC[31;01m*ESC[0m ESC[31;01m*ESC[0m Call stack: ESC[31;01m*ESC[0m ebuild.sh, line 115: Called src_install ESC[31;01m*ESC[0m environment, line 3210: Called die ESC[31;01m*ESC[0m The specific snippet of code: ESC[31;01m*ESC[0m mv -f "${D}/usr/bin/gsc" "${D}/usr/bin/gs" || die; ESC[31;01m*ESC[0m ESC[31;01m*ESC[0m If you need support, post the output of `emerge --info '=app-text/ghostscript-gpl-9.15-r1::gentoo'`, ESC[31;01m*ESC[0m the complete build log and the output of `emerge -pqv '=app-text/ghostscript-gpl-9.15-r1::gentoo'`. ESC[31;01m*ESC[0m The complete build log is located at '/scratch/mmokrejs/gentoo_rap/var/tmp/portage/app-text/ghostscript-gpl-9.15-r1/temp/build.log'. ESC[31;01m*ESC[0m The ebuild environment file is located at '/scratch/mmokrejs/gentoo_rap/var/tmp/portage/app-text/ghostscript-gpl-9.15-r1/temp/environment'. ESC[31;01m*ESC[0m Working directory: '/scratch/mmokrejs/gentoo_rap/var/tmp/portage/app-text/ghostscript-gpl-9.15-r1/work/ghostscript-9.15' ESC[31;01m*ESC[0m S: '/scratch/mmokrejs/gentoo_rap/var/tmp/portage/app-text/ghostscript-gpl-9.15-r1/work/ghostscript-9.15' The real path should have been /scratch/mmokrejs/gentoo_rap/var/tmp/portage/app-text/ghostscript-gpl-9.15-r1/image/scratch/mmokrejs/gentoo_rap/usr/bin/gsc
It is fixed in ghostscript-gpl-9.19.