>>> Install sgml-common-0.6.3-r5 into /var/tmp/portage/app-text/sgml-common-0.6.3-r5/image/ category app-text make -j8 DESTDIR=/var/tmp/portage/app-text/sgml-common-0.6.3-r5/image/ install Making install in bin make[1]: Entering directory `/var/tmp/portage/app-text/sgml-common-0.6.3-r5/work/sgml-common-0.6.3/bin' make[2]: Entering directory `/var/tmp/portage/app-text/sgml-common-0.6.3-r5/work/sgml-common-0.6.3/bin' make[2]: Nothing to be done for `install-data-am'. @MKDIR_P@ '/var/tmp/portage/app-text/sgml-common-0.6.3-r5/image//usr/bin' /bin/sh: line 3: @MKDIR_P@: command not found make[2]: *** [install-binSCRIPTS] Error 1 make[2]: Leaving directory `/var/tmp/portage/app-text/sgml-common-0.6.3-r5/work/sgml-common-0.6.3/bin' make[1]: *** [install-am] Error 2 make[1]: Leaving directory `/var/tmp/portage/app-text/sgml-common-0.6.3-r5/work/sgml-common-0.6.3/bin' make: *** [install-recursive] Error 1 emake failed
MAKEOPTS=-j1 emerge -1 sgml-common Finishes without error
That error doesn't seem to have anything to do with a race condition. Please provide a full log.
Same error for me during an "emerge -e @system" with gcc-4.7.1. retrying emerging it alone works for me : emerge -1 sgml-common => OK
Created attachment 319862 [details] build log
Can someone attach a copy of work/sgml-common-0.6.3/bin/Makefile from a failed install? Also please provide emerge --info.
Created attachment 323040 [details] work/sgml-common-0.6.3/bin/Makefile
Created attachment 323042 [details] emerge --info
This is very strange... the following check is missing from the configure output. checking for a thread-safe mkdir -p... /bin/mkdir -p This means that configure doesn't substitute @MKDIR_P@ in Makefile.in.
I am experiencing exactly the same error whilst using gcc 4.7.1
http://www.flameeyes.eu/autotools-mythbuster/forwardporting/automake.html has the solution.
(In reply to comment #10) I still can't reproduce the problem; no sense in hacking up the build system if I can't isolate the issue.
I fixed this by repackaging the tarball with newer autotools.