Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 536886 - sys-devel/bison-3.0.2 fails to compile with gcc-4.0.1
Summary: sys-devel/bison-3.0.2 fails to compile with gcc-4.0.1
Status: RESOLVED FIXED
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: 2015-01-17 19:42 UTC by Michael Weiser
Modified: 2015-02-15 01:07 UTC (History)
0 users

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


Attachments
work around inclusion loop (bison-3.0.2-gcc401-include_next.patch,545 bytes, patch)
2015-01-17 19:43 UTC, Michael Weiser
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.