From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,e085b6e4ce0fef39,start X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!postnews.google.com!l6g2000vbo.googlegroups.com!not-for-mail From: Alexis Newsgroups: comp.lang.ada Subject: Gnat cross compiler Date: Thu, 20 May 2010 07:29:06 -0700 (PDT) Organization: http://groups.google.com Message-ID: <4166ab6d-ff7f-4c7c-b8c2-fdf4e371b414@l6g2000vbo.googlegroups.com> NNTP-Posting-Host: 87.216.17.11 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: posting.google.com 1274365747 6486 127.0.0.1 (20 May 2010 14:29:07 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 20 May 2010 14:29:07 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: l6g2000vbo.googlegroups.com; posting-host=87.216.17.11; posting-account=fqT3AgoAAACuynC33fo8vJMqk6Lnw_it User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/532.5 (KHTML, like Gecko) Chrome/4.1.249.1064 Safari/532.5,gzip(gfe) Xref: g2news2.google.com comp.lang.ada:11801 Date: 2010-05-20T07:29:06-07:00 List-Id: 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.