sys-devel/autogen-5.18.4 (and 5.17.4 too) fails to build on OS X 10.9. Reproducible: Always Steps to Reproduce: 1. emerge =sys-devel/autogen-5.18.4 Actual Results: >>> Compiling source in /Users/tetsushi/Gentoo/var/tmp/portage/sys-devel/autogen-5.18.4/work/autogen-5.18.4 ... make SHELL=/Users/tetsushi/Gentoo/bin/bash -j2 /Users/tetsushi/Gentoo/bin/bash config/mk-shdefs config/shdefs Makefile:963: recipe for target 'config/shdefs' failed make: *** [config/shdefs] Killed: 9
Created attachment 432626 [details] emerge --info
does it give you any more information?
By executing "/Users/tetsushi/Gentoo/bin/bash config/mk-shdefs config/shdefs" alone, I found that the line 53 exec 3> shdef-temp.in || die cannot create output is the point of failure. The message I got was "Killed: 9". Does this help?
It seems that the file descriptor 3 is a "guarded resource". Just typing in "exec 3> xxx" on bash command line kills the bash, and its crash report says: Exception Type: EXC_GUARD Exception Codes: 0x4000000200000003, 0x00007fff95953c48 The first exception code tells something like "duplication of protected descriptor 3 is attempted." This only happens on prefix; /bin/bash command line accepts "exec 3> xxx".
On my mac (10.11) it is not (your example works with prefix bash).
i'm guessing fd 3 is being used/leaked from elsewhere. in general, it's bad for scripts to assume any particular fd number. bash provides a way to dynamically allocate one, but it's not portable :/. it probably should just pick a random higher # fd and hope that works better. maybe like 9.
There's multiple errors here also regarding time* structs, so unless we need this package for something, I'm not going to invest in this for now.