Когда я пытаюсь
$ make depend -f gcc.mak
промежуточное ПО на моей машине Ubuntu, я получаю это
/usr/include/../include/limits.h:125:26: error: no include path in which to search for limits.h
Это содержимое вокруг limits.h: 125:
/* Get the compiler 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 header. */
#if defined __GNUC__ && !defined _GCC_LIMITS_H_
/* `_GCC_LIMITS_H_' is what GCC file defines. */
# include_next <limits.h>
#endif
Я пробовал настройку
$ 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/
(где я нашел еще один limit.h в моей системе). У меня уже установлен libc6-dev, может быть, его limit.h был перезаписан другим пакетом? Нужен ли мне другой пакет -dev? Или требуется переменная среды; возможно, это можно обойти иначе?