Cross-compiler for arm-elf hosting on Solaris

Jan Van Belle Jan.Van_Belle@alcatel.be
Tue Dec 18 01:43:00 GMT 2001


crossgcc@lists.thewrittenword.com wrote:
> 
> I'm trying to build a cross-compiler for arm-elf hosted on
> Solaris/SPARC with GCC 3.0.x. Has anyone else done this? I've looked
> at various FAQs and mailing list archives but all seem targeted at
> 2.95.x.
> 
> Building binutils as part of the GCC build process is easy and I can
> get as, ld, ranlib, and ar built but GCC seems to want ARM-specific
> headers (--without-headers is equivalent to --with-headers=no which
> tries to install the headers in the directory 'no'):
>   $ ../configure --with-gnu-as --with-gnu-ld --with-newlib \
>   --target=arm-elf --enable-languages="c,c++"
>   ...
>   gmake[2]: Entering directory `/opt/build/gcc-3.0.2/objdir/gcc'
>   stage1/xgcc -Bstage1/ -B/opt/TWWfsw/gcc302-arm/arm-elf/bin/ -c
>   -DCROSS_COMPILE -DIN_GCC  -DSVR4  -g -O2 -W -Wall -Wwrite-strings
>   -Wstrict-prototypes -Wmissing-prototypes -Wtraditional -pedantic
>   -Wno-long-long  -DHAVE_CONFIG_H -DGENERATOR_FILE    -I. -I.
>   -I../../gcc -I../../gcc/. -I../../gcc/config -I../../gcc/../include
>   ../../gcc/gengenrtl.c
>   In file included from ../../gcc/gengenrtl.c:23:
>   ../../gcc/system.h:50:19: stdio.h: No such file or directory
>   In file included from ../../gcc/gengenrtl.c:23:
>   ../../gcc/system.h:92:23: sys/types.h: No such file or directory
>   ../../gcc/system.h:94:19: errno.h: No such file or directory
>   ../../gcc/system.h:101:21: string.h: No such file or directory
>   ../../gcc/system.h:102:22: strings.h: No such file or directory
>   ../../gcc/system.h:114:21: stdlib.h: No such file or directory
>   ../../gcc/system.h:123:21: unistd.h: No such file or directory
>   ../../gcc/system.h:127:24: sys/param.h: No such file or directory
>   In file included from ../../gcc/gengenrtl.c:23:
>   ...
> 
> --
> albert chin (china@thewrittenword.com)
> 
> ------
> Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
> Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com


1) build the binutils
2) build arm-elf-gcc for C language only --> --enable-languages=c
3) build newlib
4) build arm-elf-gcc for C and C++ --> --enable-languages=c,c++

Regards,

   Jan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Jan.Van_Belle.vcf
Type: text/x-vcard
Size: 297 bytes
Desc: Card for Jan Van Belle
URL: <http://sourceware.org/pipermail/crossgcc/attachments/20011218/51dd8374/attachment.vcf>
-------------- next part --------------
------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com


More information about the crossgcc mailing list