comp.lang.ada
 help / color / mirror / Atom feed
* Gnat cross compiler
@ 1997-02-12  0:00 T/KP David Karlsson
  0 siblings, 0 replies; 7+ messages in thread
From: T/KP David Karlsson @ 1997-02-12  0:00 UTC (permalink / raw)



I am trying to make a gnat cross compiler port for vxworks. 
The host system is sparc-sun-solaris2.5 and the target 
m68k-wrs-vxworks5.2 . I have already set up a gcc cross compiler
for that configuration, and now I am searching for a way to 
proceed. 

Has anyone done something similar before? Do you have any advice 
to give? 

I have never done anything like this before, so I would 
appreciate any help you can give.

Thanks in advance.

David Karlsson




^ permalink raw reply	[flat|nested] 7+ messages in thread
* Gnat cross compiler
@ 1997-02-12  0:00 T/KP David Karlsson
  0 siblings, 0 replies; 7+ messages in thread
From: T/KP David Karlsson @ 1997-02-12  0:00 UTC (permalink / raw)



I am trying to make a gnat cross compiler port for vxworks. 
The host system is sparc-sun-solaris2.5 and the target 
m68k-wrs-vxworks5.2 . I have already set up a gcc cross compiler
for that configuration, and now I am searching for a way to 
proceed. 

Has anyone done something similar before? Do you have any advice 
to give? 

I have never done anything like this before, so I would 
appreciate any help you can give.

Thanks in advance.

David Karlsson




^ permalink raw reply	[flat|nested] 7+ messages in thread
* Gnat cross compiler
@ 2010-05-20 14:29 Alexis
  2010-05-20 15:49 ` Yannick Duchêne (Hibou57)
  0 siblings, 1 reply; 7+ messages in thread
From: Alexis @ 2010-05-20 14:29 UTC (permalink / 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.



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2010-05-24 15:44 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-02-12  0:00 Gnat cross compiler T/KP David Karlsson
  -- strict thread matches above, loose matches on Subject: below --
1997-02-12  0:00 T/KP David Karlsson
2010-05-20 14:29 Alexis
2010-05-20 15:49 ` 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

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