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]
Other format: [Raw text]

Re: bootstrap for arm-elf cross compiler breaks


Hi Raju,
Thanks for the help. Before trying this, I just want to know if I have
to use the soft-float option or not. 'Cause, my target doesn't have a
FPU.

Thanks,
Leny

On 5/27/05, Lukkani Raju <rajul@sankhya.com> wrote:
> 
> 
> Hi Leny,
> 
> Please follow the below instructions to build bootstrap compiler.
> 
> 1) Configure gcc with the following options (without shared)
> 
>        --host=${host}
>        --target=${target}
>        --prefix=${installdir}
>        --enable-cross
>        --with-gxx-include-dir=${builddir}/{target}/include/g++-v3
>        --disable-shared
>        --enable-languages=c
>        --disable-threads
>        --enable-__cxa_atexit
>        --disable-multilib
> 
>        Build gcc using "make all install"
> 
> 
> 2. Configure glibc with following options
> 
>        --host=${target}
>        --target=${target}
>        --prefix=${installdir}
>        --enable-add-ons
>        --without-cvs
>        --disable-sanity-checks
>        --disable-shared
>        --enable-threads=posix
>        --enable-static-nss
>        --without-fp
> 
>        Build glibc with "make install".
> 
> 
> 3. Configure cross gcc (with shared)
> 
>        --host=${host}
>        --target=${target}
>        --prefix=${installdir}
>        --enable-cross
>        --with-gxx-include-dir=${builddir}/{target}/include/g++-v3
>        --enable-shared
>        --enable-languages=c,c++
>        --disable-threads
>        --enable-__cxa_atexit
>        --disable-multilib
> 
>        Build with "make install"
> 
> 
> Regards,
> Raju Lukkani.
> SANKHYA Technologies Private Limited.
> INDIA
> 
> On Fri, 27 May 2005, Leny Thangiah wrote:
> 
> > Hi dudes,
> > I 'm trying to install the gcc cross compiler for arm target on my
> > windows 2000 PC using the cygwin. I 'm forced to use gcc 3.2.3 to
> > maintain the compatibility. I followed these steps.
> >
> > 1. Source files were extracted to the d:/src folder
> > 2. mkdir d:/obj
> > 3. cd obj
> > 4. ../src/configure --prefix=/cygdrive/d/gcc/obj --target=arm-elf
> > -enable-languages=c++
> > --with-as=/cygdrive/c/gnu-arm/arm-elf/bin/arm-elf-as.exe.
> > 5. make bootstrap
> >
> > The make bootstrap fails with the following error.
> >
> > make CC="stage1/xgcc.exe -Bstage1/ -B/cygdrive/d/gcc/obj/arm-elf/bin/" \
> >          STAGE_PREFIX=stage1/ \
> >          CFLAGS="-g -O2" LDFLAGS="" WARN_CFLAGS="\$(GCC_WARN_CFLAGS)" STRICT_WAR
> > N="-Wtraditional -pedantic -Wno-long-long" libdir=/cygdrive/d/gcc/obj/lib LANGUA
> > GES="c gcov.exe c++" MAKEOVERRIDES= OUTPUT_OPTION="-o \$@"
> > make[2]: Entering directory `/cygdrive/d/gcc/obj/gcc'
> > stage1/xgcc.exe -Bstage1/ -B/cygdrive/d/gcc/obj/arm-elf/bin/ -c -DIN_GCC -DCROSS
> > _COMPILE   -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototy
> > pes -Wtraditional -pedantic -Wno-long-long  -DHAVE_CONFIG_H -DGENERATOR_FILE
> > -I. -I. -I../../src/gcc -I../../src/gcc/. -I../../src/gcc/config -I../../src/gcc
> > /../include ../../src/gcc/gengenrtl.c -o gengenrtl.o
> > In file included from ../../src/gcc/gengenrtl.c:23:
> > ../../src/gcc/system.h:50:19: stdio.h: No such file or directory
> > ../../src/gcc/system.h:112:23: sys/types.h: No such file or directory
> > ../../src/gcc/system.h:114:19: errno.h: No such file or directory
> > ../../src/gcc/system.h:121:21: string.h: No such file or directory
> >
> > Any help from you will be grateful for me, since I 'm stuck with this
> > for the past 3 days.
> >
> > Thanks.
> > Leny
> >
> 
>


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