Bug 5490 - libffi cross-compile build fails due to AC_CHECK_SIZE's
Summary: libffi cross-compile build fails due to AC_CHECK_SIZE's
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: other (show other bugs)
Version: 3.1
: P3 normal
Target Milestone: 3.3
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-01-25 06:56 UTC by jsantala
Modified: 2005-07-23 22:49 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments
cross-gcc31-diff.patch (2.09 KB, text/plain)
2003-05-21 15:17 UTC, jsantala
Details

Note You need to log in before you can comment on or make changes to this bug.
Description jsantala 2002-01-25 06:56:03 UTC
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
Comment 1 jsantala 2002-01-25 06:56:03 UTC
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.
Comment 2 Dara Hazeghi 2003-05-26 20:37:33 UTC
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
Comment 3 Andrew Pinski 2003-05-26 20:42:31 UTC
See Dara's question.
Comment 4 Andrew Pinski 2003-06-27 01:10:56 UTC
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