Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 536886

Summary: sys-devel/bison-3.0.2 fails to compile with gcc-4.0.1
Product: Gentoo/Alt Reporter: Michael Weiser <michael>
Component: Prefix SupportAssignee: Gentoo Prefix <prefix>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: OS X   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: work around inclusion loop

Description Michael Weiser 2015-01-17 19:42:54 UTC
During bootstrap on OS X 10.5, when the system's gcc-4.0.1 is still in use, bison-3.0.2 fails to compile:

  CC       lib/math.o
In file included from lib/math.h:27,
                 from lib/math.h:27,
[about a 100 repeats]
                 from lib/math.c:3:
lib/math.h:27:23: error: #include nested too deeply
make[2]: *** [lib/math.o] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

This was discussed upstream and is scheduled for fix in 3.0.4:

https://lists.gnu.org/archive/html/bug-bison/2015-01/msg00027.html
https://lists.gnu.org/archive/html/bison-patches/2015-01/msg00001.html

The attached patch adds an equivalent workaround to the 3.0.2 ebuild.
Comment 1 Michael Weiser 2015-01-17 19:43:21 UTC
Created attachment 394202 [details, diff]
work around inclusion loop
Comment 2 Michael Weiser 2015-02-15 01:07:30 UTC
Problem solved itself: bison-3.0.4 is released and in the tree.