bug-bison
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: {Spam?} Fix clang compile warnings / gcc breakage with include_next


From: Akim Demaille
Subject: Re: {Spam?} Fix clang compile warnings / gcc breakage with include_next
Date: Sat, 17 Jan 2015 09:49:14 +0100

> Le 16 janv. 2015 à 17:57, Michael Weiser <address@hidden> a écrit :
> 
> Hi,
> 
> compiling bison 3.0.3 with gcc-4.0.1 (Apple Inc. build 5493) (latest
> available on Mac OS X 10.5) fails with the following error:
> 
>  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
> 
> The cause is usage of #include_next in conjunction with #include
> "math.h" (as opposed to #include <math.h>) and adding the lib
> subdirectory to the search path via -Ilib. If either -Ilib is changed to
> -I./lib or #include "math.h" to #include <math.h> the problem does away.
> So this certainly seems to be some sort of bug in gcc.

Hi Michael,

This is actually already scheduled for 3.0.4, which
will be release RSN.  I'm just waiting for the original
poster's complete name.

https://lists.gnu.org/archive/html/bison-patches/2015-01/msg00022.html


reply via email to

[Prev in Thread] Current Thread [Next in Thread]