RE: FW: Problem building cross compiler gcc-4.0.3 for ARM using CYGWIN in Windows2000

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Andreas,

I copied following folders from newlib-1.14.0 directory into gcc-4.0.3 directory:
1) newlib
2) libgloss

It worked fine and the problem is solved. I  have built gcc-4.0.3(March 10,2006)cross compiler for ARM completely & will compile my project with it.
If anybody requires the build scripts, I will mail it. Please let me know about it.

Thanks all for helping me.

Regards,
Kanwal




-----Original Message-----
From: Andreas Pfeil [mailto:andreas.pfeil@xxxxxxxxxx] 
Sent: Tuesday, May 30, 2006 12:04 PM
To: Kanwal Preet Singh CHANANA
Subject: Re: FW: Problem building cross compiler gcc-4.0.3 for ARM using CYGWIN in Windows2000


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Try to build gcc in one tree, i.e. put the following links from the newlib-xxx directory into the gcc-xxx source dir: newlib libgloss

and then just configure with the --with-newlib, without --with-headers=[...]

This usually allows me to build a cross compiler (for a different target, though).

Andreas

Kanwal Preet Singh CHANANA wrote:
> Hi,
> 
> I am facing problem while building cross compiler gcc-4.0.3 for ARM 
> using CYGWIN in Windows2000.
> 
> I m using following :
> 
> Binutils-2.16
> Newlib1.14.0
> Gcc-4.0.3
> 
> When i build Bootstrap Cross Compiler , i get following error message:
> 
> make[3]: Entering directory `/cygdrive/c/build/build-gcc/gcc'
> /cygdrive/c/build/build-gcc/gcc/xgcc -B/cygdrive/c/build/build-gcc/gcc/ -B/cygdrive/c/build/Build/arm-elf/bin/ -B/cygdrive/c/build/Build/arm-elf/lib/ -isystem /cygdrive/c/build/Build/arm-elf/include -isystem /cygdrive/c/build/Build/arm-elf/sys-include -O2 -DIN_GCC -DCROSS_COMPILE   -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition  -isystem ./include  -I. -I. -I.././gcc-4.0.3/gcc -I.././gcc-4.0.3/gcc/. -I.././gcc-4.0.3/gcc/../include -I.././gcc-4.0.3/gcc/../libcpp/include   -g0 -finhibit-size-directive -fno-inline-functions -fno-exceptions -fno-zero-initialized-in-bss -fno-unit-at-a-time  \
>    -c .././gcc-4.0.3/gcc/crtstuff.c -DCRT_BEGIN \
>   -o crtbegin.o
> In file included from .././gcc-4.0.3/gcc/crtstuff.c:64:
> .././gcc-4.0.3/gcc/tsystem.h:90:19: error: stdio.h: No such file or 
> directory
> .././gcc-4.0.3/gcc/tsystem.h:93:23: error: sys/types.h: No such file or directory
> .././gcc-4.0.3/gcc/tsystem.h:96:19: error: errno.h: No such file or directory
> .././gcc-4.0.3/gcc/tsystem.h:103:20: error: string.h: No such file or directory
> .././gcc-4.0.3/gcc/tsystem.h:104:20: error: stdlib.h: No such file or directory
> .././gcc-4.0.3/gcc/tsystem.h:105:20: error: unistd.h: No such file or directory
> .././gcc-4.0.3/gcc/tsystem.h:111:18: error: time.h: No such file or directory
> make[3]: *** [crtbegin.o] Error 1
> make[3]: Leaving directory `/cygdrive/c/build/build-gcc/gcc'
> make[2]: *** [extra] Error 2
> make[2]: Leaving directory `/cygdrive/c/build/build-gcc/gcc'
> make[1]: *** [stmp-multilib] Error 2
> make[1]: Leaving directory `/cygdrive/c/build/build-gcc/gcc'
> make: *** [all-gcc] Error 2
> 
> 
> My config options is as below:
> 
> $ ./gcc4.0.3/configure --target=$TARGET --prefix=$PREFIX 
> --disable-threads --wi th-newlib 
> -with-headers=../newlib-1.14.0/newlib/libc/include --disable-shared - 
> -enable-languages=c --with-cpu=arm7tdmi 2>&1 |tee configure.log
> 
> Can anyone please help me point out the problem cause & how to solve 
> it?
> 
> Thanks and Regards,
> Kanwal
> 




[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux