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,2e577f4772a2a915 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!feeder.news-service.com!85.214.198.2.MISMATCH!eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: GPRbuild compatibility Date: Mon, 02 Aug 2010 18:04:33 +0100 Organization: A noiseless patient Spider Message-ID: References: <82eiehtobg.fsf@stephe-leake.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Date: Mon, 2 Aug 2010 17:04:34 +0000 (UTC) Injection-Info: mx01.eternal-september.org; posting-host="KCXegvZb5vh43D+f3BR6Ew"; logging-data="21697"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+ELG+U4nQpwnvt2/DKP6wN3E3nqcK+VFg=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (darwin) Cancel-Lock: sha1:HXaXP3AypxcJaCfYUVZjP9OEqPM= sha1:7ksvBQNzy/jPQXRGyiYNwFlGoyQ= Xref: g2news1.google.com comp.lang.ada:12807 Date: 2010-08-02T18:04:33+01:00 List-Id: I've remembered how I did it now. gprbuild needs the 'gcc' that it finds in the path to match the target that it was built with, or you have to tell it the target. The 'gcc' part means that systems where the GNAT compiler is called 'gnatgcc' will have trouble. Perhaps a symlink $ ln -s /usr/bin/gnatgcc ~/bin/gcc The 'target' part is more tricky. In my case, having fixed up the PATH I said $ gprbuild -v and near the top I saw using project file test_extensions.gpr gprconfig --batch -o /Users/simon/gnat-math-extn/test/.build/auto.cgpr --target=x86_64-apple-darwin10.2.0 --config=ada,, Error: no matching compiler found for --config=ada,,,, (note the bit about --target=) but when I say $ gcc -v it says a lot of stuff, in the middle of which is Target: x86_64-apple-darwin10 which meant I was able to get gprbuild to recognise this as the compiler to use by $ gprbuild --target=x86_64-apple-darwin10 Of course it's much easier to build gprbuild with the compiler you intend to use [if you can ;-( ] or, if there is one,to find a way of fixing this permanently in the gprbuild configuration system. (in your case, it'd be --target=x86_64-pc-linux-gnu).