This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: compilation error


Ananda Vardhan wrote:
I am trying to compile gcc-3.3 (which includes DFA scheduler) for ARM.
After completing binutils, got headers from linux. When i m compiling
gcc i got the following error.


/home/research/nandu/Tools/build/gcc/gcc/xgcc
-B/home/research/nandu/Tools/build/gcc/gcc/
-B/home/research/nandu/Tools/prefix//arm-linux/bin/
-B/home/research/nandu/Tools/prefix//arm-linux/lib/ -isystem
/home/research/nandu/Tools/prefix//arm-linux/include -O2 -DIN_GCC
-DCROSS_COMPILE   -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes -isystem ./include  -I. -I. -I../../../gcc-3.3/gcc
-I../../../gcc-3.3/gcc/. -I../../../gcc-3.3/gcc/config
-I../../../gcc-3.3/gcc/../include  -g0 -finhibit-size-directive
-fno-inline-functions -fno-exceptions -fno-zero-initialized-in-bss  \
-c ../../../gcc-3.3/gcc/crtstuff.c -DCRT_BEGIN  -o crtbegin.o

In file included from ../../../gcc-3.3/gcc/crtstuff.c:62:
../../../gcc-3.3/gcc/tsystem.h:72:19: stdio.h: No such file or directory

You didn't mention whether you're targeting newlib or glibc, or show how you configured gcc, so I'll guess you intend to use glibc.

Sadly, to compile gcc-3.3 to work with glibc, you need the glibc
headers -- even when compiling the bootstrap gcc.  In other words,
you need bootstrap glibc headers to build the bootstrap gcc.

Have a look at http://www.kegel.com/crosstool/current/crosstool.sh
It shows how to do it.
In fact, have a look at all of http://www.kegel.com/crosstool/
It even makes it "easy" to run the gcc and glibc regression tests remotely.
- Dan

--
Dan Kegel
http://www.kegel.com
http://counter.li.org/cgi-bin/runscript/display-person.cgi?user=78045


------ Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/ Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]