This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


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: Cross-compiler for arm-elf hosting on Solaris


On Tue, Dec 18, 2001 at 08:00:26AM +0100, Jan Van Belle wrote:
> 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:
> >   ...
> 
> 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++

I am doing steps 1 and 2 at once (has worked for us before for
non-cross builds on Solaris 2.5.1, 2.6, and HP-UX). I reran the build
with --enable-languages=c with the same error.

-- 
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


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