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=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI autolearn=unavailable autolearn_force=no version=3.4.4 X-Google-Thread: 103376,40509554d579e4f5 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Return-Path: X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: GNAT on MinGW Date: Fri, 2 Mar 2007 09:26:35 -0800 In-Reply-To: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: GNAT on MinGW Thread-Index: AcdcY15/bLK70j1/TlO8/UtPKdKR0QAioh4g References: <1172232426.5367.9.camel@localhost.localdomain> <6ify8xypj6.fsf@hod.lan.m-e-leypold.de> <45e540e5$1@news.post.ch> <45e67b0f$1@news.post.ch> From: "Vo, Anh \(US SSA\)" To: "Cesar Rabak" , X-OriginalArrivalTime: 02 Mar 2007 17:26:35.0930 (UTC) FILETIME=[EDC37FA0:01C75CEF] X-Virus-Scanned: amavisd-new at ada-france.org X-BeenThere: comp.lang.ada@ada-france.org X-Mailman-Version: 2.1.9rc1 Precedence: list List-Id: "Gateway to the comp.lang.ada Usenet newsgroup" List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.ada Message-ID: X-Leafnode-NNTP-Posting-Host: 88.191.17.134 Organization: Guest of ProXad - France NNTP-Posting-Date: 02 Mar 2007 18:30:02 MET NNTP-Posting-Host: 88.191.14.223 X-Trace: 1172856602 news-3.free.fr 31718 88.191.14.223:46934 X-Complaints-To: abuse@proxad.net Path: g2news2.google.com!news3.google.com!news.glorb.com!news.cs.univ-paris8.fr!univ-lyon1.fr!news.in2p3.fr!in2p3.fr!feed.ac-versailles.fr!exabot.com!proxad.net!cleanfeed1-b.proxad.net!nnrp14-2.free.fr!not-for-mail Xref: g2news2.google.com comp.lang.ada:9637 Date: 2007-03-02T18:30:02+01:00 -----Original Message----- From: comp.lang.ada-bounces@ada-france.org [mailto:comp.lang.ada-bounces@ada-france.org] On Behalf Of Cesar Rabak Sent: Thursday, March 01, 2007 4:37 PM To: comp.lang.ada@ada-france.org Subject: Re: GNAT on MinGW << [...] > Way back I successfully built GNAT using cygwin. The problem was that > the GNAT built did not support tasking run-time because GNAT under=20 > cygwin, used to build the newer GNAT, does not have tasking run-time=20 > support. Therefore, any Ada codes involving task will not run. >=20 > Currently, I port MinGW/GNAT to cygwin and build gcc/gnat-4.1.2 using > cygwin. The build hit a snap after going one fourth of the way. I=20 > scratch my hair with error message as shown below. I would be > thankful if any one can tell me what headers it looks for. >=20 > [...] [snipped] > The directory that should contain system headers does not exist:=20 > /mingw/include make[2]: *** [stmp-fixinc] Error 1 make[2]: Leaving > directory `/cygdrive/e/build-4.1.2/gcc' make[1]: *** [stage1_build] > Error 2 make[1]: Leaving directory `/cygdrive/e/build-4.1.2/gcc'=20 > make: *** [bootstrap] Error 2 >=20 It seems it has a hardcode "/mingw/include" path in some config file or some source (probably a header file generated by ./configure). My quick shot for testing the hypotesis would be to add in fstab file a=20 mapping for /mingw/include to /usr/gnat/mingw32/include (which IIUC is=20 your path to the system include files). >> I did similar to your suggestion by copying /mingw/include/ to /cygwin. This fixed got my build go much further, about 2/3 of the way. Again, I encountered two additional showstoppers. I managed to get by, surprised myself, these problems. The latest showstopper, as shown below, is a bit harder. It has some thing to do with adainit.c file. By the way, I am using Window 2000 instead of Window XP. I hope there is no difference between them regarding this problem. [...] make[4]: Entering directory `/cygdrive/e/build-4.1.2/gcc/ada' make -C rts \ CC=3D"`echo \"/cygdrive/e/build-4.1.2/./gcc/xgcc -B/cygdrive/e/bui ld-4.1.2/./gcc/ -B/usr/local/mingw32/bin/ -B/usr/local/mingw32/lib/ -isystem /us r/local/mingw32/include -isystem /usr/local/mingw32/sys-include\" \ | sed -e 's,^\./xgcc,../../xgcc,' -e 's,-B\./,-B../../,'`" \ INCLUDES=3D"-I. -I.. -I../.. -I/cygdrive/e/gcc-4.1.2/gcc/ada -I/cy gdrive/e/gcc-4.1.2/gcc/ada/../config -I/cygdrive/e/gcc-4.1.2/gcc/ada/../../inclu de -I/cygdrive/e/gcc-4.1.2/gcc/ada/.. -I./../.." \ CFLAGS=3D"-g -O2 -fexceptions -DIN_RTS" \ srcdir=3D/cygdrive/e/gcc-4.1.2/gcc/ada \ -f ../Makefile adaint.o argv.o cio.o cstreams.o ctrl_c.o errno.o exit.o raise.o sysdep.o aux-io.o init.o initialize.o seh_init.o cal.o final.o t racebak.o expect.o mkdir.o socket.o raise-gcc.o make[5]: Entering directory `/cygdrive/e/build-4.1.2/gcc/ada/rts' /cygdrive/e/build-4.1.2/./gcc/xgcc -B/cygdrive/e/build-4.1.2/./gcc/ -B/usr/local /mingw32/bin/ -B/usr/local/mingw32/lib/ -isystem /usr/local/mingw32/include -isy stem /usr/local/mingw32/sys-include -c -DIN_GCC `echo -g -O2 -fexceptions -DI N_RTS |sed -e 's/-pedantic//g' -e 's/-Wtraditional//g'` -I. -I.. -I../.. -I /cygdrive/e/gcc-4.1.2/gcc/ada -I/cygdrive/e/gcc-4.1.2/gcc/ada/../config -I/cygdr ive/e/gcc-4.1.2/gcc/ada/../../include -I/cygdrive/e/gcc-4.1.2/gcc/ada/.. -I./../ .. adaint.c \ -o adaint.o xgcc.exe: _spawnvp: No such file or directory make[5]: *** [adaint.o] Error 1 make[5]: Leaving directory `/cygdrive/e/build-4.1.2/gcc/ada/rts' make[4]: *** [gnatlib] Error 2 make[4]: Leaving directory `/cygdrive/e/build-4.1.2/gcc/ada' make[3]: *** [gnatlib-plain] Error 2 make[3]: Leaving directory `/cygdrive/e/build-4.1.2/mingw32/libada' make[2]: *** [all-target-libada] Error 2 make[2]: Leaving directory `/cygdrive/e/build-4.1.2' make[1]: *** [all] Error 2 make[1]: Leaving directory `/cygdrive/e/build-4.1.2' make: *** [bootstrap] Error 2