Cross-compiler build fails because the size of various constructs cannot be determined by autoconf's standard measures. Attached a suggested patch to fix this by existing code from gcc/gcc/aclocal.m4 Release: GCC 3.1 experimental Environment: Red Hat 7.1, cross-compiling for arm-linux How-To-Repeat: ../configure --target=arm-linux --host=i386-pc-linux-gnu --prefix=/skiff/local --with-cpu=strongarm110
Fix: One possible patch attached; I'm unable to test, because different autoconf/libtool/automake versions break build-scripts. Alternate approach could be to sinclude ../gcc/aclocal.m4 or acinclude.m4, but these would create iffy dependencies. Requires running aclocal & autoconf to re-create dependent files, ofcourse.
Hello, would it be possible for you to check whether this problem is still present in gcc 3.3? While there haven't been many changes in the code itself, we are (I believe) using a newer version of autoconf and automake, which may help the problem. Thanks, Dara
See Dara's question.
This was fixed by the following patch: 2002-01-31 Anthony Green <green@redhat.com> * configure: Rebuilt. * configure.in: Replace CHECK_SIZEOF and endian tests with cross-compiler friendly macros. * aclocal.m4 (AC_COMPILE_CHECK_SIZEOF, AC_C_BIGENDIAN_CROSS): New macros. So it was fixed in 3.3