This is the mail archive of the crossgcc@sourceware.org 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]

Problem building GCC for Ada (target=sparc-elf)


Hi,
I am now trying to cross compile ada to a Sparc processor.
I have a i686pc as native machine and Fedora 4.0 is installed.
Using gcc 4.0.2
I tried to crosscompile GNAT with target=sparc-elf.
Here is theconfiguration I'm using:



1. binutils-2.16
2. gcc-4.0.2
3. newlib-1.16.0
4. Fedora 4.0 (Linux kernel 2.6..) . In Fedora gnat3.15 is already installed.
So in host ada compilation is through.
When I make all in gcc, the following error is produced:


In file included from/usr/local//lib/gcc/sparc-elf/ 4.0.2/../../../../
sparc-elf/include/dirent.h:6, from adaint.h:34,
 from adaint.c:154:/usr/local//lib/gcc/sparc-elf/4.0.2/../../../../sparc-elf/include/sys/dirent.h:10:2:
error: #error " not supported"


Infile included from adaint.c:154:
adaint.h:71: error: syntax errorbefore "*" token
adaint.c:830: error: syntax error before "*"token
adaint.c:840: error: (Eachundeclared identifier is reported only once


adaint.c:840: error: foreach function it appears in.)
adaint.c:844: error: buffer undeclared(first use in this function)
adaint.c:844: error: dereferencing pointerto incomplete type
make[3]: *** [adaint.o
] Error 1

make[3]: Leavingdirectory `/home/sree/build-gcc/gcc/ada/rts'
make[2]: *** [gnatlib]Error 2
make[2]: Leaving directory`/home/sree/build-gcc/gcc/ada'
make[1]: *** [gnatlib-plain] Error2
make[1]: Leaving directory`/home/sree/build-gcc/sparc-elf/libada'


make: *** [all-target-libada]Error2

Is it some version mismatch or is the dirent.h file taken wrong?


regards,
Sudheesh

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


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