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 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,ab26e93e5cda5b8a X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!news.germany.com!aioe.org!not-for-mail From: John McCabe Newsgroups: comp.lang.ada Subject: Re: GnatBench (from GPL edition) Date: Tue, 29 Apr 2008 10:34:18 +0100 Organization: Aioe.org NNTP Server Message-ID: References: <0c45u3pfughmu7ir3qppv068vpilh22e01@4ax.com> NNTP-Posting-Host: 8xFrDPbGvE3CA8T+awNlRA.user.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org X-Newsreader: Forte Free Agent 2.0/32.652 Xref: g2news1.google.com comp.lang.ada:21110 Date: 2008-04-29T10:34:18+01:00 List-Id: On Thu, 20 Mar 2008 16:35:04 +0000, John McCabe wrote: >I've just installed the GPL version of GNAT, with Gnatbench 2.0.1 into >Eclipse. I created a new Ada project, a "Hello World" one, and set the >toolchain to gnatmake. When I try to build it I get: > >"Could not execute command 'make >GPRPATH="C:\EclipseWorkspace\AdaStartProj\AdaStartProj.gpr" build" > >Does anyone know why that is? > >Why is it not trying to run gnatmake directly? > >Does it make a difference that I'm using Eclipse Europa (3.3.1.1) and >CDT 4.0.2? Dear all, Thought you might want to know where I've got to on this. With a few pointers from a colleague I've managed to get this to work. My colleague has just started playing with Ada and found that, on his system, the make command didn't work because he didn't have make on the system. By taking the gnumake-3.79.1-nt.exe that comes with GNAT and renaming it to make.exe in the GNAT\2007\bin folder he got it to work. Now, if you've been following this thread, you'll know that I was able to get make to work if I went in to the folder where the files were and ran it. Outside that folder it didn't work. It appears that the fact that GNATBench didn't get it to work, and I didn't get it to work outside the source folder masked the real problem! As it turns out, my "make" command was actuall a "make.bat" file containing: @echo off mingw32-make %* and mingw32-make is on the path. The problem though appears to be related to the lack of a "make.exe" on the path. By copying mingw32-make.exe to make.exe in my C:\MinGW\bin folder, Eclipse will happily build the Ada project. So - result - but it's a bit of a nuisance that the GNATBench builder (or is it Eclipse itself?) needs to actually have make.exe to work! Thank to all of you for your suggestion, and to Alan for his pointers. John