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.
Created attachment 394202 [details, diff] work around inclusion loop
Problem solved itself: bison-3.0.4 is released and in the tree.