No include path in which to find limits.h: GCC build limits.h (#include_next limits.h)

会有一股神秘感。 提交于 2019-12-23 04:54:32

问题


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

来源:https://stackoverflow.com/questions/41588244/no-include-path-in-which-to-find-limits-h-gcc-build-limits-h-include-next-lim

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!