No include path in which to find limits.h: GCC bui

2019-06-08 15:12发布

问题:

I am building GCC for a foreign architecture on Ububtu trusty. I am on an i686 and building for i386. I am having the same problem as GCC build problem (#include_next limits.h).

From the discussion in the link I posted this comment struck me as being the best explanation however I am not sure what the poster means by (the toolsets copy)....I suspect he means I need some other tarballs apart from the gcc tarball. I believe I have libc6-dev-x32 and libc6-x32:i386 but these could be something wrong with their installation or something else might be needed?

Can anyone clarify what he means by the toolsets copy?

Consider using #include_next (gcc extension) in order to force gcc to look at the next found limits.h in the include path (which should be the toolset's copy).


Additional Information:

Am I missing part of glibc? I have the packages previously mentioned.

The configure statement is: ./configure --prefix=/testing/gcc2953 --enable-languages=c --target=i486-pc-linux-gnulibc1 --without-headers

The error message is:

In file included from include/syslimits.h:7,
                 from include/limits.h:11,
                 from ./libgcc2.c:1105:
/src/gcc-2.95.3/gcc/include/limits.h:117: No include path in which to find limits.h

make[ 1]: *** [ libgcc2.a] Error 1

make[ 1]: Leaving directory `/src/gcc-2.95.3/gcc'

make: *** [ all-gcc] Error 2