On 09/15/2014 01:31 PM, Assaf Gordon wrote:
I've encountered a compilation error when compiling gnulib with TCC ( Tiny C
Compiler, http://bellard.org/tcc/ ):
it seems the "#include_next" is not working properly, but "m4/include_next.m4"
does not detect it.
Tested with TCC version 0.9.26 from the standard debian/stable package.
To clarify, the error I've included stems from the gnulib's 'test-base64.c',
but same happens in other C projects which use gnulib's base64.c module, as in:
$ make
<...>
source='lib/base64.c' object='lib/base64.o' libtool=no \
DEPDIR=.deps depmode=tcc /bin/bash ./build-aux/depcomp \
tcc -DLOCALEDIR=\"/usr/local/share/locale\" -DHAVE_CONFIG_H -I. -Ilib
-I./lib -Isrc -I./src -g -c -o lib/base64.o lib/base64.c
In file included from lib/base64.c:48:
In file included from lib/stdlib.h:36:
In file included from ./lib/stdlib.h:36:
In file included from ./lib/stdlib.h:36:
In file included from ./lib/stdlib.h:36:
In file included from ./lib/stdlib.h:36:
In file included from ./lib/stdlib.h:36:
In file included from ./lib/stdlib.h:36:
In file included from ./lib/stdlib.h:36:
In file included from ./lib/stdlib.h:36:
In file included from ./lib/stdlib.h:36:
In file included from ./lib/stdlib.h:36:
In file included from ./lib/stdlib.h:36:
In file included from ./lib/stdlib.h:36:
In file included from ./lib/stdlib.h:36:
In file included from ./lib/stdlib.h:36:
In file included from ./lib/stdlib.h:36:
In file included from ./lib/stdlib.h:36:
In file included from ./lib/stdlib.h:36:
In file included from ./lib/stdlib.h:36:
In file included from ./lib/stdlib.h:36:
In file included from ./lib/stdlib.h:36:
In file included from ./lib/stdlib.h:36:
In file included from ./lib/stdlib.h:36:
In file included from ./lib/stdlib.h:36:
In file included from ./lib/stdlib.h:36:
In file included from ./lib/stdlib.h:36:
In file included from ./lib/stdlib.h:36:
In file included from ./lib/stdlib.h:36:
In file included from ./lib/stdlib.h:36:
In file included from ./lib/stdlib.h:36:
In file included from ./lib/stdlib.h:36:
./lib/stdlib.h:36: error: #include recursion too deep
make[2]: *** [lib/base64.o] Error 1
Thanks,
- Assaf