help-gnat
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Problem building GNAT (target=sparc-elf)


From: Sudheesh J
Subject: Problem building GNAT (target=sparc-elf)
Date: Tue, 7 Feb 2006 08:10:34 +0530

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]