This is the mail archive of the gcc-help@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]

Building gcc as a cross compiler



I'm trying to build gcc on PC running Linux RedHat 6.2 and I want it to
generate ARM code. I looked at the CrossGCC FAQ page and from a build
directory not in any of the source trees, I did the following:

 * ../binutils-2.9.1/configure --prefix=/usr/local/arm --target=arm-coff
 * make all install
 * LD_LIBRARY_PATH=/usr/local/arm/lib:$LD_LIBRARY_PATH
 * PATH=/usr/local/arm/bin:$PATH
 *
../gcc-2.95.2/configure --prefix=/usr/local/arm --target=arm-coff --with-hea
ders=/usr/include
(I had to copy the /usr/src/linux/include/linux and
/usr/src/linux/include/asm directories in /usr/include to avoid errors from
stdlib.h and linux/limits.h files not found)

This produce the following error:

In file included from ../../../gcc-2.95.2/libio/libio.h:30,
                 from ../../../gcc-2.95.2/libio/iolibio.h:1,
                 from ../../../gcc-2.95.2/libio/libioP.h:47,
                 from ../../../gcc-2.95.2/libio/filedoalloc.c:45:
_G_config.h:43: parse error before `_G_sigset_t'
_G_config.h:43: warning: data definition has no type or storage class

I looked at the arm-coff/libio/_G_config.h file (which appears to be
generated sometime during the compilation) and the faulty line is:
typedef __sigset_t _G_sigset_t;

I believe it is a configuration problem since this file is generated ?

Thanks in advance for your help.

Christophe Rippert



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