GCC build problem (#include_next limits.h)
Quando tento
$ make depend -f gcc.mak
um middleware na minha máquina Ubuntu, recebo este
/usr/include/../include/limits.h:125:26: error: no include path in which to search for limits.h
Este é o conteúdo em torno dos limites.h: 125:
/* Get the compiler's limits.h, which defines almost all the ISO constants. We put this #include_next outside the double inclusion check because it should be possible to include this file more than once and still get the definitions from gcc's header. */ #if defined __GNUC__ && !defined _GCC_LIMITS_H_ /* `_GCC_LIMITS_H_' is what GCC's file defines. */ # include_next <limits.h> #endif
Eu tentei configurar
$ export INCLUDE=/usr/lib/gcc/x86_64-linux-gnu/4.3/include-fixed/ $ export C_INCLUDE_PATH=/usr/lib/gcc/x86_64-linux-gnu/4.3/include-fixed/ $ export CPLUS_INCLUDE_PATH=/usr/lib/gcc/x86_64-linux-gnu/4.3/include-fixed/
(onde encontrei outros limites.h no meu sistema). Eu já tenho o libc6-dev instalado, será que o seu limits.h foi substituído por outro pacote? Preciso de outro pacote -dev? Ou é uma variável de ambiente necessária; talvez isso possa ser contornado de alguma outra maneira?