Cross-compilation and LIMITS_H_TEST yields chicken-and-egg problem regarding install dir
Ian Lance Taylor
ian@airs.com
Wed Oct 12 20:51:00 GMT 2005
Hans-Peter Nilsson <hans-peter.nilsson@axis.com> writes:
> After some digging (where you find out that SSIZE_MAX should be available
> after including limits.h), it dawns on you that the limits.h that's used
> is what gcc put together, and that it thought you had no limits.h in libc
> that's used (glibc). Actually, it's the test for such a limits.h that's
> at fault. It looked like:
> if [ -f /usr/local/cris/lib/gcc/cris-axis-linux-gnu/4.1.0/../../../../cris-axis-linux-gnu/sys-include/limits.h ] ; then
>
> but there *is* no /usr/local/cris/lib/gcc/cris-axis-linux-gnu/4.1.0
> *before* that version of gcc is installed, and hence no .. to follow to
> the *existing* /usr/local/cris/cris-axis-linux-gnu/sys-include/limits.h
> and the test fails.
This problem is PR 15082.
Ian
More information about the Gcc-patches
mailing list