-   Linux - Software (
-   -   error in Building gcc-4.0.2 (

newcomer4 01-28-2006 01:06 AM

error in Building gcc-4.0.2
Currently I am building GNU toolchain in linux for i386 host and target system.
Packages selected are :

For the initial setup, I have built kernel headers and binutils successfully. When I try to build bootstrap compiler , I get error.

Cofiguration command:
$../gcc-4.0.2/configure --target=$TARGET \
--prefix=${PREFIX} --without-headers --with-newlib \

No error in configuration.

To build compiler:
$make all-gcc

Here the error comes.

HEADERS="ansidecl.h" DEFINES="" \
/bin/sh ../../gcc-4.0.2/gcc/ tconfig.h
/home/sowmya/embedded-linux/example/build-tools/build-boot-gcc/gcc/xgcc -B/home/sowmya/embedded-linux/example/build-tools/build-boot-gcc/gcc/ -B/home/sowmya/embedded-linux/example/tools/i386-linux/bin/ -B/home/sowmya/embedded-linux/example/tools/i386-linux/lib/ -isystem /home/sowmya/embedded-linux/example/tools/i386-linux/include -isystem /home/sowmya/embedded-linux/example/tools/i386-linux/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.2/gcc -I../../gcc-4.0.2/gcc/. -I../../gcc-4.0.2/gcc/../include -I../../gcc-4.0.2/gcc/../libcpp/include -g0 -finhibit-size-directive -fno-inline-functions -fno-exceptions -fno-zero-initialized-in-bss -fno-unit-at-a-time -fno-omit-frame-pointer \
-c ../../gcc-4.0.2/gcc/crtstuff.c -DCRT_BEGIN \
-o crtbegin.o
In file included from ../../gcc-4.0.2/gcc/crtstuff.c:64:
../../gcc-4.0.2/gcc/tsystem.h:90:19: error: stdio.h: No such file or directory
../../gcc-4.0.2/gcc/tsystem.h:93:23: error: sys/types.h: No such file or directory
../../gcc-4.0.2/gcc/tsystem.h:96:19: error: errno.h: No such file or directory
../../gcc-4.0.2/gcc/tsystem.h:103:20: error: string.h: No such file or directory
../../gcc-4.0.2/gcc/tsystem.h:104:20: error: stdlib.h: No such file or directory
../../gcc-4.0.2/gcc/tsystem.h:105:20: error: unistd.h: No such file or directory
../../gcc-4.0.2/gcc/tsystem.h:111:18: error: time.h: No such file or directory
make[1]: *** [crtbegin.o] Error 1
make[1]: Leaving directory `/home/sowmya/embedded-linux/example/build-tools/build-boot-gcc/gcc'
make: *** [all-gcc] Error 2

I am very much confused.....Plz help me out

halvy 01-30-2006 04:53 PM

are you SURE you have all the required programs installed??

that is usually the issue.. but not always (i know).

in that case you may need to compile the 'required' programs FIRST to see what is lacking in them.

newcomer4 01-31-2006 02:44 AM

I am having fedora core 3 linux on my host system.
I am trying to build a linux tool chain for a i386 target machine on the host system.
My build options are :
linux kernel : linux-

Initially I am trying to create a temporary setup for the toolchain.
I have successfully created kernel headers,binutils.
Now when I try to build bootstrap gcc, I am getting the above errors.
Even if I setup glibc before gcc, I am not able to rectify gcc installation failure.
Should I change configuration options?
Has anyone worked with above mentioned toolchain versions?..If so plz guide me.

All times are GMT -5. The time now is 04:54 AM.