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: 103376,40509554d579e4f5 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!ndsoftware.com!news.newsland.it!aioe.org!not-for-mail From: Cesar Rabak Newsgroups: comp.lang.ada Subject: Re: GNAT on MinGW Date: Thu, 01 Mar 2007 22:36:45 -0200 Organization: Aioe.org NNTP Server Message-ID: 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> NNTP-Posting-Host: JMjuFUb0YksqgoUezu1ljw.user.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org In-Reply-To: User-Agent: Thunderbird 1.5.0.9 (Windows/20061207) Xref: g2news2.google.com comp.lang.ada:9633 Date: 2007-03-01T22:36:45-02:00 List-Id: Vo, Anh (US SSA) escreveu: > -----Original Message----- From: > comp.lang.ada-bounces+anh.vo=baesystems.com@ada-france.org > [mailto:comp.lang.ada-bounces+anh.vo=baesystems.com@ada-france.org] > On Behalf Of Martin Krischik Sent: Wednesday, February 28, 2007 11:05 > PM To: comp.lang.ada@ada-france.org Subject: Re: GNAT on MinGW > > << Michael Bode schrieb: >> Martin Krischik writes: >> >>> I was able to create a gcc-4.1.x on a MinGW/Cygwin combo - >>> However it was GNAT/Pro 6.0.1 being created using GNAT/Pro >>> 6.0.0w. - Not much help for the Open Source Community. >> I thought you were successfull cross compiling a mingw gcc from >> linux? > > No I created a cross compiler for linux. Next step would have been to > use that cross compiler to create a native MinGW compiler. But that > proved difficult. > > I have now tried all sorts of tricks and nothing worked out - there > was always some show stopper down the line. >> > > Danny Smith at mingw.org has been building GNAT for Windows. The > latest version is 3.4.5. The MinGW/GNAT has less tools when compared > to GNAT-GPL. > > Way back I successfully built GNAT using cygwin. The problem was that > the GNAT built did not support tasking run-time because GNAT under > cygwin, used to build the newer GNAT, does not have tasking run-time > support. Therefore, any Ada codes involving task will not run. > > 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 > scratch my hair with error message as shown below. I would be > thankful if any one can tell me what headers it looks for. > > [...] [snipped] > The directory that should contain system headers does not exist: > /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' > make: *** [bootstrap] Error 2 > 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 mapping for /mingw/include to /usr/gnat/mingw32/include (which IIUC is your path to the system include files). HTH