public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* bootstrap for arm-elf cross compiler breaks
@ 2005-05-27  9:46 Leny Thangiah
  2005-05-27 11:00 ` Lukkani Raju
  0 siblings, 1 reply; 5+ messages in thread
From: Leny Thangiah @ 2005-05-27  9:46 UTC (permalink / raw)
  To: gcc-help

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: bootstrap for arm-elf cross compiler breaks
  2005-05-27  9:46 bootstrap for arm-elf cross compiler breaks Leny Thangiah
@ 2005-05-27 11:00 ` Lukkani Raju
  2005-05-27 11:49   ` Leny Thangiah
  0 siblings, 1 reply; 5+ messages in thread
From: Lukkani Raju @ 2005-05-27 11:00 UTC (permalink / raw)
  To: Leny Thangiah; +Cc: gcc-help



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
> 

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: bootstrap for arm-elf cross compiler breaks
  2005-05-27 11:00 ` Lukkani Raju
@ 2005-05-27 11:49   ` Leny Thangiah
  2005-05-30 15:35     ` Lukkani Raju
  0 siblings, 1 reply; 5+ messages in thread
From: Leny Thangiah @ 2005-05-27 11:49 UTC (permalink / raw)
  To: Lukkani Raju; +Cc: gcc-help

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: bootstrap for arm-elf cross compiler breaks
  2005-05-27 11:49   ` Leny Thangiah
@ 2005-05-30 15:35     ` Lukkani Raju
  2005-05-30 15:35       ` Leny Thangiah
  0 siblings, 1 reply; 5+ messages in thread
From: Lukkani Raju @ 2005-05-30 15:35 UTC (permalink / raw)
  To: Leny Thangiah; +Cc: gcc-help



Hi Leny,

Yes, You have to use "--with-float=soft" option.

Regards,
Raju Lukkani.
SANKHYA Technologies Private Limited.
INDIA.

On Fri, 27 May 2005, Leny Thangiah wrote:

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: bootstrap for arm-elf cross compiler breaks
  2005-05-30 15:35     ` Lukkani Raju
@ 2005-05-30 15:35       ` Leny Thangiah
  0 siblings, 0 replies; 5+ messages in thread
From: Leny Thangiah @ 2005-05-30 15:35 UTC (permalink / raw)
  To: Lukkani Raju; +Cc: gcc-help

Hi Raju,
Thanks! It works.

Thanks.
Leny

On 5/30/05, Lukkani Raju <rajul@sankhya.com> wrote:
> 
> 
> Hi Leny,
> 
> Yes, You have to use "--with-float=soft" option.
> 
> Regards,
> Raju Lukkani.
> SANKHYA Technologies Private Limited.
> INDIA.
> 
> On Fri, 27 May 2005, Leny Thangiah wrote:
> 
> > 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
> > > >
> > >
> > >
> >
> 
>

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2005-05-30 15:35 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-05-27  9:46 bootstrap for arm-elf cross compiler breaks Leny Thangiah
2005-05-27 11:00 ` Lukkani Raju
2005-05-27 11:49   ` Leny Thangiah
2005-05-30 15:35     ` Lukkani Raju
2005-05-30 15:35       ` Leny Thangiah

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).