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=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.68.211.230 with SMTP id nf6mr14236903pbc.10.1434640870045; Thu, 18 Jun 2015 08:21:10 -0700 (PDT) X-Received: by 10.140.27.140 with SMTP id 12mr224231qgx.30.1434640869992; Thu, 18 Jun 2015 08:21:09 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!feeder.eternal-september.org!news.glorb.com!h15no5051736igd.0!news-out.google.com!k20ni2535qgd.0!nntp.google.com!z60no1939828qgd.1!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Thu, 18 Jun 2015 08:21:09 -0700 (PDT) In-Reply-To: <2503d366-a531-4531-bdbd-41f260d5886f@googlegroups.com> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=74.203.194.21; posting-account=bXcJoAoAAAAWI5APBG37o4XwnD4kTuQQ NNTP-Posting-Host: 74.203.194.21 References: <888a3bd7-6ce8-4458-8725-8330680f48de@googlegroups.com> <3fa6cf9b-c3d7-40a0-bc52-7135a3cd8057@googlegroups.com> <2503d366-a531-4531-bdbd-41f260d5886f@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: Emacs Ada mode with RTS From: Patrick Noffke Injection-Date: Thu, 18 Jun 2015 15:21:09 +0000 Content-Type: text/plain; charset=ISO-8859-1 Xref: news.eternal-september.org comp.lang.ada:26373 Date: 2015-06-18T08:21:09-07:00 List-Id: On Thursday, June 18, 2015 at 10:09:53 AM UTC-5, Patrick Noffke wrote: > On Thursday, June 18, 2015 at 9:06:13 AM UTC-5, Simon Wright wrote: > > Patrick Noffke writes: > > > > > It's the exact same command, so there must be some environment > > > variable that Ada mode is setting, or maybe some command is run prior > > > whose output isn't shown. > > > > Annoyingly, gprbuild doesn't report all the options it passes to the > > compiler. I found that "-cargs -v" helped. You could probably get the > > same effect by adding "-v" to the options in package Compiler in the > > GPR. > > Both command line and Emacs Ada mode call gnat1 with the same options, aside from a different tmp file. The command line then goes on to call as, but not Ada mode since gnat1 fails with the error I gave earlier. Interestingly, if I run the "Check file" command from Ada mode, I get the error. But then if I use the Emacs compile command (Tools -> Compile), using the same compile command that Check file used, the compilation succeeds.