app-text/ghostscript-gpl-9.15-r1 fails to build. # emerge -pqv '=app-text/ghostscript-gpl-9.15-r1::gentoo' [ebuild R ] app-text/ghostscript-gpl-9.15-r1 USE="X cups djvu -dbus -gtk -idn -static-libs (-bindist%)" LINGUAS="-de -ja -ko -zh_CN -zh_TW" Reproducible: Always Steps to Reproduce: 1. emerge '=app-text/ghostscript-gpl-9.15-r1::gentoo' --ask n Actual Results: Build failure: cp: cannot create regular file ‘/var/tmp/portage/app-text/ghostscript-gpl-9.15-r1/image//usr/share/ghostscript/9.15/#inst.11767#’: No such file or directory contrib/contrib.mak:1091: recipe for target 'extra-upp-install' failed (see attached build.log) Expected Results: Installation should succeed (emerge --info is too long for this section, submitting as attachment instead)
Created attachment 399104 [details] Mostly-complete build log Full build log is 1.8M, I removed many lines of successful compilation.
Created attachment 399106 [details] `emerge --info '=app-text/ghostscript-gpl-9.15-r1::gentoo''
I think I just hit this or a closely related issue. Its probably parallel make issue during the install phase. You got: ./base/instcopy -c -m 644 $f /var/tmp/portage/app-text/ghostscript-gpl-9.15-r1/image//usr/share/ghostscript/9.15/lib || exit 1; \ done cp: cannot create regular file ‘/var/tmp/portage/app-text/ghostscript-gpl-9.15-r1/image//usr/share/ghostscript/9.15/#inst.11767#’: No such file or directory contrib/contrib.mak:1091: recipe for target 'extra-upp-install' failed make: *** [extra-upp-install] Error 1 make: *** Waiting for unfinished jobs.... On one system I got: ./obj/aux/echogs -e .dev -w- -l-obj ./obj/pdf -include ./obj/psbase ./obj/dps2lib rm: cannot remove '/var/tmp/portage/app-text/ghostscript-gpl-9.15-r1/image//usr/share/ghostscript/9.15/lib': Is a directory rm: cannot remove '/var/tmp/portage/app-text/ghostscript-gpl-9.15-r1/image//usr/share/ghostscript/9.15/lib': Is a directory contrib/contrib.mak:1091: recipe for target 'extra-upp-install' failed make: *** [extra-upp-install] Error 1 make: *** Waiting for unfinished jobs.... ./obj/aux/echogs -e .dev -a- ./obj/dps -ps gs_dps contrib/contrib.mak:950: recipe for target 'extra-dmprt-install' failed make: *** [extra-dmprt-install] Error 1 On another I got ./base/instcopy -c -m 644 ./contrib/japanese/dmp_site.ps /var/tmp/portage/app-text/ghostscript-gpl-9.15-r1/image// usr/share/ghostscript/9.15/lib || exit 1 contrib/contrib.mak:1091: recipe for target 'extra-upp-install' failed make: *** [extra-upp-install] Error 1make: *** Waiting for unfinished jobs.... All of these happened with aggressive parallelization. I'm testing now to see if some -j1's will "fix" the issue --- fix in quotes because the correct fix wold be to fix the build system, but at least we'll know what direction to head in.
(In reply to Anthony Basile from comment #3) > I think I just hit this or a closely related issue. Its probably parallel > make issue during the install phase. I've pretty much confirmed that this is a parallel `make install` issue. I can hit it repeatedly under heavy loads with high -jX values and it goes away with the following patch which I'll inline just so it can be easily read. If its okay with the printing team, I'll commit it without revbump. It does suck that we have to do -j1 but ghostscript's build system is crazy. --- ghostscript-gpl-9.15-r1.ebuild.orig 2015-07-15 17:01:04.000000000 -0400 +++ ghostscript-gpl-9.15-r1.ebuild 2015-07-24 10:27:26.266260904 -0400 @@ -184,7 +184,7 @@ } src_install() { - emake DESTDIR="${D}" install-so install + emake -j1 DESTDIR="${D}" install-so install if use djvu ; then dobin gsdjvu @@ -195,7 +195,7 @@ mv -f "${D}/usr/bin/gsc" "${D}/usr/bin/gs" || die cd "${S}/ijs" - emake DESTDIR="${D}" install + emake -j1 DESTDIR="${D}" install # rename the original cidfmap to cidfmap.GS mv "${D}/usr/share/ghostscript/${PVM}/Resource/Init/cidfmap"{,.GS} || die
As this is only install phase and not compile phase, I think we can live with -j1 there. :)
(In reply to Manuel Rüger from comment #5) > As this is only install phase and not compile phase, I think we can live > with -j1 there. :) Okay I committed this without a rev bump. @S. Gilles. Please test to make sure this fixes your issue and reopen if you're still getting the problem.
This seems to install fine for me, so I won't reopen.