comp.lang.ada
 help / color / mirror / Atom feed
From: Alexis <jose_alexis_paez_thurgood@hotmail.com>
Subject: Gnat cross compiler
Date: Thu, 20 May 2010 07:29:06 -0700 (PDT)
Date: 2010-05-20T07:29:06-07:00	[thread overview]
Message-ID: <4166ab6d-ff7f-4c7c-b8c2-fdf4e371b414@l6g2000vbo.googlegroups.com> (raw)

Hi,

I've spent some time trying to build a gcc Ada cross compiler for i686-
elf target (well, a c,c++,ada compiler). I'm working on Windows with
Cygwin 1.7 and gcc 4.3.4 binaries and sources. I'm following the
procedure on: http://wiki.osdev.org/GCC_Cross-Compiler#Step_1_-_Bootstrap

So far GCC and libgcc have been built fine, but when I try to use i686-
elf-gcc to compile an Ada program I get the following error:

$ i686-elf-gcc -c hello.adb
fatal error, run-time library not installed correctly
cannot locate file system.ads
compilation abandoned

Thinking that this might solve the problem I've tried to build libada
following the same procedure for libgcc (make all-target-libada), only
to get multiple compilation errors such as (extract for a much larger
log):

make -C rts \
                CC="`echo \"/usr/src/build-gcc/./gcc/xgcc -B/usr/src/
build-gcc/.
/gcc/ -B/usr/cross/i686-elf/bin/ -B/usr/cross/i686-elf/lib/ -isystem /
usr/cross/
i686-elf/include -isystem /usr/cross/i686-elf/sys-include\" \
                | sed -e 's,^\./xgcc,../../xgcc,' -e 's,-B\./,-
B../../,'`" \
                INCLUDES="-I. -I.. -I../.. -I/usr/src/gcc-4.3.4/gcc/
ada -I/usr/s
rc/gcc-4.3.4/gcc/ada/../config -I/usr/src/gcc-4.3.4/gcc/ada/../../
include -I/usr
/src/gcc-4.3.4/gcc/ada/.. -I./../.." \
                CFLAGS="-g -O2 -fPIC -fexceptions -DIN_RTS" \
                FORCE_DEBUG_ADAFLAGS="-g" \
                srcdir=/usr/src/gcc-4.3.4/gcc/ada \
                -f ../Makefile adaint.o argv.o cio.o cstreams.o
ctrl_c.o errno.o
 exit.o env.o raise.o sysdep.o aux-io.o init.o initialize.o seh_init.o
cal.o fin
al.o tracebak.o expect.o mkdir.o socket.o targext.o
make[3]: Entering directory `/usr/src/build-gcc/gcc/ada/rts'
/usr/src/build-gcc/./gcc/xgcc -B/usr/src/build-gcc/./gcc/ -B/usr/cross/
i686-elf/
bin/ -B/usr/cross/i686-elf/lib/ -isystem /usr/cross/i686-elf/include -
isystem /u
sr/cross/i686-elf/sys-include -c -DCROSS_DIRECTORY_STRUCTURE -
DIN_GCC   `echo -g
 -O2 -fPIC -fexceptions -DIN_RTS |sed -e 's/-pedantic//g' -e 's/-
Wtraditional//g
'`      -I. -I.. -I../.. -I/usr/src/gcc-4.3.4/gcc/ada -I/usr/src/
gcc-4.3.4/gcc/a
da/../config -I/usr/src/gcc-4.3.4/gcc/ada/../../include -I/usr/src/
gcc-4.3.4/gcc
/ada/.. -I./../.. adaint.c \
          -o adaint.o
In file included from adaint.c:61:
/usr/src/gcc-4.3.4/gcc/ada/../tsystem.h:90:19: error: stdio.h: No such
file or d
irectory
/usr/src/gcc-4.3.4/gcc/ada/../tsystem.h:93:23: error: sys/types.h: No
such file
or directory
/usr/src/gcc-4.3.4/gcc/ada/../tsystem.h:96:19: error: errno.h: No such
file or d
irectory
/usr/src/gcc-4.3.4/gcc/ada/../tsystem.h:103:20: error: string.h: No
such file or
 directory
/usr/src/gcc-4.3.4/gcc/ada/../tsystem.h:104:20: error: stdlib.h: No
such file or
 directory
/usr/src/gcc-4.3.4/gcc/ada/../tsystem.h:105:20: error: unistd.h: No
such file or
 directory
/usr/src/gcc-4.3.4/gcc/ada/../tsystem.h:111:18: error: time.h: No such
file or d
irectory

Can anybody please advise?

Kind regards, Alexis.



             reply	other threads:[~2010-05-20 14:29 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-20 14:29 Alexis [this message]
2010-05-20 15:49 ` Gnat cross compiler Yannick Duchêne (Hibou57)
2010-05-21  7:31   ` Alexis
2010-05-21  9:26     ` Yannick Duchêne (Hibou57)
2010-05-24 15:44       ` Alexis
  -- strict thread matches above, loose matches on Subject: below --
1997-02-12  0:00 T/KP David Karlsson
1997-02-12  0:00 T/KP David Karlsson
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox