Note "//" in path in output below: >>> Test phase [not enabled]: sys-devel/flex-2.5.4a-r6 >>> Install flex-2.5.4a-r6 into /tmp/portage/flex-2.5.4a-r6/image/ category sys-devel /bin/sh ./mkinstalldirs \ /tmp/portage/flex-2.5.4a-r6/image//usr/bin /tmp/portage/flex-2.5.4a-r6/image//usr/lib /tmp/portage/flex-2.5.4a-r6/image//usr/include /tmp/portage/flex-2.5.4a-r6/image//usr/share/man/man1 rm -f /tmp/portage/flex-2.5.4a-r6/image//usr/share/man/man1/flexdoc.1 mkdir /tmp/portage/flex-2.5.4a-r6/image//usr mkdir /tmp/portage/flex-2.5.4a-r6/image//usr/bin /bin/install -c -m 644 ./flex.1 /tmp/portage/flex-2.5.4a-r6/image//usr/share/man/man1/flex.1 mkdir /tmp/portage/flex-2.5.4a-r6/image//usr/lib /bin/install: cannot create regular file `/tmp/portage/flex-2.5.4a-r6/image//usr/share/man/man1/flex.1': No such file or directory make: *** [install.man] Error 1 make: *** Waiting for unfinished jobs.... Reproducible: Always Steps to Reproduce: 1. emerge =sys-devel/flex-2.5.4a-r6 2. 3. Actual Results: >>> Test phase [not enabled]: sys-devel/flex-2.5.4a-r6 >>> Install flex-2.5.4a-r6 into /tmp/portage/flex-2.5.4a-r6/image/ category sys-devel /bin/sh ./mkinstalldirs \ /tmp/portage/flex-2.5.4a-r6/image//usr/bin /tmp/portage/flex-2.5.4a-r6/image//usr/lib /tmp/portage/flex-2.5.4a-r6/image//usr/include /tmp/portage/flex-2.5.4a-r6/image//usr/share/man/man1 rm -f /tmp/portage/flex-2.5.4a-r6/image//usr/share/man/man1/flexdoc.1 mkdir /tmp/portage/flex-2.5.4a-r6/image//usr mkdir /tmp/portage/flex-2.5.4a-r6/image//usr/bin /bin/install -c -m 644 ./flex.1 /tmp/portage/flex-2.5.4a-r6/image//usr/share/man/man1/flex.1 mkdir /tmp/portage/flex-2.5.4a-r6/image//usr/lib /bin/install: cannot create regular file `/tmp/portage/flex-2.5.4a-r6/image//usr/share/man/man1/flex.1': No such file or directory make: *** [install.man] Error 1 make: *** Waiting for unfinished jobs.... Expected Results: Flex installation
// is fine it looks like you somehow have parallel build enabled ... maybe you exported MAKEFLAGS instead of MAKEOPTS ?
(In reply to comment #1) > // is fine > > it looks like you somehow have parallel build enabled ... maybe you exported > MAKEFLAGS instead of MAKEOPTS ? That was it, I unset MAKEFLAGS and the package built just fine. However, I've always had both MAKEFLAGS and MAKEOPTS set since I initially did a stage 1 build on the system in question, the first in my profile and the second in make.conf, the value is '-j 3 -l 5.0' ( dual processors ). Why did this work with the 2.5.4a-r5 version of flex?
that's the nature of race conditions dont use MAKEFLAGS, you'll break packages which have workarounds for non-parallel friendly builds