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]

Problems regarding cross compile ada


I am trying to cross compile ada for Sparc processor. I have a i686pc as native machine and Fedora 4.0 is installed. I tried to crosscompile C and Ada with target=sparc-elf.

Here is the configuration I'm using:

1. binutils-2.16
2. gcc-4.0.2
3. newlib-1.14.0
4. Fedora 4.0 (Linux kernel 2.6.11.). In Fedora gnat3.15
is already installed, so in host ada compilation is through.

    I followed Bill Gatliff's building script.I could completely install C
cross compiler. But I couldn't install Ada.

The following errors came:

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 "<dirent.h> not supported"
In file included from adaint.c:154:
adaint.h:71: error: syntax error before ?*? token
adaint.c:830: error: syntax error before ?*? token
adaint.c: In function ?__gnat_readdir?:
adaint.c:840: error: ?dirp? undeclared (first use in this function)
adaint.c:840: error: (Each undeclared identifier is reported only once
adaint.c:840: error: for each function it appears in.)
adaint.c:844: error: ?buffer? undeclared (first use in this function)
adaint.c:844: error: dereferencing pointer to incomplete type
make[3]: *** [adaint.o] Error 1
make[3]: Leaving directory `/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] Error 2
make[1]: Leaving directory `/home/sree/build-gcc/sparc-elf/libada'
make: *** [all-target-libada] Error 2

---------------------------------------------------------------------------
Following are the steps I used for configuring:

PWD is /home/sree,

% export TARGET=sparc-elf
% export PREFIX=/usr/local/$TARGET
% export PATH=$PATH:$PREFIX/bin

Build binutils:-
% tar xjfv binutils-2.16.tar.bz2
% mkdir build-binutils
% cd build-binutils
% ../binutils-2.16/configure --target=$TARGET --prefix=$PREFIX
% make all
% make install

Build bootstrap GCC:-
% tar xjfv gcc-4.0.2.tar.bz2
% mkdir build-gcc
% cd build-gcc
% ../gcc-4.0.2/configure --target=$TARGET --prefix=$PREFIX --without-headers 	--with-gnu-as --with-gnu-ld
% make all-gcc
% make install-gcc

Build newlib:-
% tar xzfv newlib-1.14.0.tar.gz 
% mkdir build-newlib
% cd build-newlib
% ../newlib-1.14.0/configure --target=$TARGET --prefix=$PREFIX
% make all
% make install
 
Build GCC again with newlib:-
% cd build-gcc
% ../gcc-4.0.2/configure --target=$TARGET --prefix=$PREFIX --with-newlib 
  --with-gnu-as --with-gnu-ld
% make all
% make install

-------------------------------------------------------------------------------

So plz help me to sort out this problem and get ada installed
since i can't proceed my work without ada installation.

Thanking u for ur kind attention.


Best regards, 
  
Vidya L. 
l_vidya@vssc.org / srividhyal@india.com
2006-02-11


-- 
India.com free e-mail - www.india.com. 
Check out our value-added Premium features, such as an extra 20MB for mail storage, POP3, e-mail forwarding, and ads-free mailboxes!

------
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]