This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Help with Gcc-3.0.3 cross-compile


"Shureih, Tariq" <tariq.shureih@intel.com> writes:

> I am using the following configure line:
> ./../gcc-3.0.3/gcc/libgcc2.h:101: no data type for mode `TI'

GCC 3.0.x does not support cross-compilation from 32-bit hosts to 64-bit
hosts.  This problem has been fixed for gcc 3.1.

The recommended solution for building such a cross with gcc 3.0.x is to
manually set HOST_WIDE_INT to long long.  One way to do this is to put
#define HOST_BITS_PER_WIDE_INT 64
#define HOST_WIDE_INT long long
in the file gcc/config/i386/xm-i386.h.  This will make an x86 to IA-64 cross
compiler work.  Doing this may break other compiler builds, so you should only
do this in a source tree being used for the x86 to IA-64 cross.

This is incidentally the same solution used by gcc-3.1, except that this
is done automatically at configure time in gcc-3.1.

Jim


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]