Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 01-28-2006, 02:06 AM   #1
LQ Newbie
Registered: Jan 2006
Posts: 21

Rep: Reputation: 15
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
Old 01-30-2006, 05:53 PM   #2
Registered: Aug 2005
Location: Anchorage, Alaska (soon EU, hopefully)
Distribution: Anything NOT SystemD (ie. M$) related.
Posts: 918

Rep: Reputation: 42
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.
Old 01-31-2006, 03:44 AM   #3
LQ Newbie
Registered: Jan 2006
Posts: 21

Original Poster
Rep: Reputation: 15
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.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Error building cross gcc-3.3.2 for i386-mingw32msvc target ugenn Linux - Software 2 10-05-2012 03:33 AM
building gcc slackware jakiel Linux - Newbie 5 01-30-2007 08:19 PM
Error building GCC Lunar_Lamp Linux From Scratch 1 01-18-2006 06:30 AM
building gcc under cygwins Laplace Linux - General 0 11-12-2003 02:40 AM
Building GCC natesch Linux - Newbie 4 05-09-2002 01:38 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:14 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration