public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* FW: Problem building cross compiler gcc-4.0.3 for ARM using CYGWIN in Windows2000
@ 2006-05-30  6:07 Kanwal Preet Singh CHANANA
  2006-05-30  7:07 ` Kai Ruottu
  0 siblings, 1 reply; 5+ messages in thread
From: Kanwal Preet Singh CHANANA @ 2006-05-30  6:07 UTC (permalink / raw)
  To: gcc-help


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

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

* Re: FW: Problem building cross compiler gcc-4.0.3 for ARM using CYGWIN  in Windows2000
  2006-05-30  6:07 FW: Problem building cross compiler gcc-4.0.3 for ARM using CYGWIN in Windows2000 Kanwal Preet Singh CHANANA
@ 2006-05-30  7:07 ` Kai Ruottu
  2006-05-30  7:17   ` Kanwal Preet Singh CHANANA
  0 siblings, 1 reply; 5+ messages in thread
From: Kai Ruottu @ 2006-05-30  7:07 UTC (permalink / raw)
  To: Kanwal Preet Singh CHANANA; +Cc: gcc-help

Kanwal Preet Singh CHANANA wrote :

 > /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
>
> My config options is as below:
> $ ./gcc4.0.3/configure --target=$TARGET --prefix=$PREFIX


 Are these values in sync with what your LOG told?
That $TARGET="arm-elf" and $PREFIX="/cygdrive/c/build/Build" ?

 Those '-isystem' options should take care that the target
headers will be found in the '$PREFIX/$TARGET/*include'.

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

* RE: FW: Problem building cross compiler gcc-4.0.3 for ARM using CYGWIN in Windows2000
  2006-05-30  7:07 ` Kai Ruottu
@ 2006-05-30  7:17   ` Kanwal Preet Singh CHANANA
  2006-05-30  8:18     ` Kai Ruottu
  0 siblings, 1 reply; 5+ messages in thread
From: Kanwal Preet Singh CHANANA @ 2006-05-30  7:17 UTC (permalink / raw)
  To: 'Kai Ruottu'; +Cc: gcc-help

Hi,

Following are the paths of the build directories:

Root: 	/cygdrive/c/build
Binutils: 	/cygdrive/c/build/build-binutils/binutils-2.16
Gcc: 		/cygdrive/c/build/build-gcc/gcc-4.0.3
Newlib:	/cygdrive/c/build/build-newlib/newlib-1.14.0

$TARGET=arm-elf
$PREFIX="/cygdrive/c/build/Build"

I havent used -isystem option.Kindly suggest to solve this problem.

Regards,
Kanwal



-----Original Message-----
From: Kai Ruottu [mailto:karuottu@mbnet.fi] 
Sent: Tuesday, May 30, 2006 12:43 PM
To: Kanwal Preet Singh CHANANA
Cc: gcc-help@gcc.gnu.org
Subject: Re: FW: Problem building cross compiler gcc-4.0.3 for ARM using CYGWIN in Windows2000


Kanwal Preet Singh CHANANA wrote :

 > /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
>
> My config options is as below:
> $ ./gcc4.0.3/configure --target=$TARGET --prefix=$PREFIX


 Are these values in sync with what your LOG told?
That $TARGET="arm-elf" and $PREFIX="/cygdrive/c/build/Build" ?

 Those '-isystem' options should take care that the target headers will be found in the '$PREFIX/$TARGET/*include'.


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

* Re: FW: Problem building cross compiler gcc-4.0.3 for ARM using CYGWIN  in Windows2000
  2006-05-30  7:17   ` Kanwal Preet Singh CHANANA
@ 2006-05-30  8:18     ` Kai Ruottu
  0 siblings, 0 replies; 5+ messages in thread
From: Kai Ruottu @ 2006-05-30  8:18 UTC (permalink / raw)
  To: Kanwal Preet Singh CHANANA; +Cc: gcc-help

Kanwal Preet Singh CHANANA kirjoitti:
> Hi,
>
> Following are the paths of the build directories:
>
> Root: 	/cygdrive/c/build
> Binutils: 	/cygdrive/c/build/build-binutils/binutils-2.16
> Gcc: 		/cygdrive/c/build/build-gcc/gcc-4.0.3
> Newlib:	/cygdrive/c/build/build-newlib/newlib-1.14.0
>
> $TARGET=arm-elf
> $PREFIX="/cygdrive/c/build/Build"
>
> I havent used -isystem option.Kindly suggest to solve this problem.
>   
 The new GCC (its 'xgcc') uses these '-isystem' options for
getting the target headers.  So if the headers are now in
the '$PREFIX/$TARGET/sys-include', which installation the
'--with-headers=' config option should have done, then they
SHOULD be found. Otherwise your new GCC is badly broken!

  The built-in search paths for headers cannot be seen directly
with the 'xgcc', one must use the 'cpp' for that. So the command:

     cpp -v

given in your '$build/gcc' directory should tell where your new
GCC would search its headers WITHOUT the given '-isystem'
options...  If you try it, you will see that the search happens via
relative paths and if something is missing from these paths, the
headers etc. target stuff will not be found...  Then creating the
'$PREFIX/lib/gcc/$TARGET/$GCC_VERSION' helps, with your
values the '/cygdrive/c/build/Build/lib/gcc/arm-elf/4.0.3'  can be
in every built-in search path and just creating it enable these
being working.... But as told, those '-isystem' options on the
'xgcc' command line should have worked !  Creating the given
directory is one workaround but your GCC remains broken if
those '-isystem' options don't work with it...


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

* RE: FW: Problem building cross compiler gcc-4.0.3 for ARM using CYGWIN in Windows2000
       [not found] <447BE74E.9000102@anu.edu.au>
@ 2006-05-31  9:43 ` Kanwal Preet Singh CHANANA
  0 siblings, 0 replies; 5+ messages in thread
From: Kanwal Preet Singh CHANANA @ 2006-05-31  9:43 UTC (permalink / raw)
  To: 'Andreas Pfeil'; +Cc: gcc-help

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@anu.edu.au] 
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
> 


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

end of thread, other threads:[~2006-05-31  3:50 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-05-30  6:07 FW: Problem building cross compiler gcc-4.0.3 for ARM using CYGWIN in Windows2000 Kanwal Preet Singh CHANANA
2006-05-30  7:07 ` Kai Ruottu
2006-05-30  7:17   ` Kanwal Preet Singh CHANANA
2006-05-30  8:18     ` Kai Ruottu
     [not found] <447BE74E.9000102@anu.edu.au>
2006-05-31  9:43 ` Kanwal Preet Singh CHANANA

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