LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 01-28-2006, 01:06 AM   #1
newcomer4
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 :
binutils-2.14
gcc-4.0.2
glibc-2.3.6

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 \
--enable-languages=c

No error in configuration.

To build compiler:
$make all-gcc

Here the error comes.
............
............
.............
.........
......
.........
.......
......

TARGET_CPU_DEFAULT="" \
HEADERS="ansidecl.h" DEFINES="" \
/bin/sh ../../gcc-4.0.2/gcc/mkconfig.sh 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, 04:53 PM   #2
halvy
Member
 
Registered: Aug 2005
Location: Boston Massachussets, USA
Distribution: Anything NOT SystemD (ie. M$) related.
Posts: 917

Rep: Reputation: 41
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, 02:44 AM   #3
newcomer4
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-2.6.15.1
binutils-2.14
gcc-4.0.2
glibc-2.3.6

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.
 
  


Reply


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 02:33 AM
building gcc slackware jakiel Linux - Newbie 5 01-30-2007 07:19 PM
Error building GCC Lunar_Lamp Linux From Scratch 1 01-18-2006 05:30 AM
building gcc under cygwins Laplace Linux - General 0 11-12-2003 01:40 AM
Building GCC natesch Linux - Newbie 4 05-09-2002 12:38 AM


All times are GMT -5. The time now is 04:57 PM.

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