Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 581612 - sys-devel/autogen fails to build on OS X
Summary: sys-devel/autogen fails to build on OS X
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All OS X
: Normal normal (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-04-30 06:08 UTC by MATSUI Tetsushi
Modified: 2020-12-13 16:06 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (emerge-info.txt,4.35 KB, text/plain)
2016-04-30 06:10 UTC, MATSUI Tetsushi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description MATSUI Tetsushi 2016-04-30 06:08:43 UTC
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
Comment 1 MATSUI Tetsushi 2016-04-30 06:10:00 UTC
Created attachment 432626 [details]
emerge --info
Comment 2 Fabian Groffen gentoo-dev 2016-05-01 12:01:29 UTC
does it give you any more information?
Comment 3 MATSUI Tetsushi 2016-05-01 13:55:35 UTC
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?
Comment 4 MATSUI Tetsushi 2016-05-05 01:57:22 UTC
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".
Comment 5 Fabian Groffen gentoo-dev 2016-05-05 07:16:42 UTC
On my mac (10.11) it is not (your example works with prefix bash).
Comment 6 SpanKY gentoo-dev 2016-05-25 18:58:01 UTC
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.
Comment 7 Fabian Groffen gentoo-dev 2020-12-13 16:06:39 UTC
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.