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.182.52.199 with SMTP id v7mr14206959obo.36.1434635298474; Thu, 18 Jun 2015 06:48:18 -0700 (PDT) X-Received: by 10.182.33.10 with SMTP id n10mr107155obi.18.1434635298403; Thu, 18 Jun 2015 06:48:18 -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!h15no5011464igd.0!news-out.google.com!7ni2036igs.0!nntp.google.com!h15no3767267igd.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Thu, 18 Jun 2015 06:48:18 -0700 (PDT) In-Reply-To: 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> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <3fa6cf9b-c3d7-40a0-bc52-7135a3cd8057@googlegroups.com> Subject: Re: Emacs Ada mode with RTS From: Patrick Noffke Injection-Date: Thu, 18 Jun 2015 13:48:18 +0000 Content-Type: text/plain; charset=ISO-8859-1 Xref: news.eternal-september.org comp.lang.ada:26370 Date: 2015-06-18T06:48:18-07:00 List-Id: On Wednesday, June 17, 2015 at 4:30:32 PM UTC-5, Simon Wright wrote: > Patrick Noffke writes: > > > check_cmd=${toolchain_dir}/gprbuild -u -c -gnatc -p -P${gpr_file} > > --target=arm-eabi --config=${config_file} ${full_current} > > It may have nothing to do with your problem, but when I was getting a > segfault with -gnatc I was told not to use -gnatc in the runtime[1]! So > now I have it set to compile the file instead of doing a check: > > gprbuild -c -u -f -p -P${gpr_file} ${full_current} > Thanks, Simon. Removing -gnatc does not help. Here is the output from within Emacs when doing the Check file command: /home/pnoffke/projects/proj1/output/toolchain/gnat/bin/gprbuild -f -u -c -p -P/home/pnoffke/projects/proj1/proj1.gpr --target=arm-eabi --config=/home/pnoffke/projects/proj1/obj/proj1.cgpr /home/pnoffke/projects/proj1/src/proj1.adb warning: --RTS is taken into account only in auto-configuration arm-eabi-gcc -c -g -gnatwa.X -gnatQ -gnat12 -gnatyO proj1.adb s-osinte.ads:591:07: size for "Address" too small, minimum allowed is 64 gprbuild: *** compilation phase failed When I run the same command from a terminal, it succeeds: /home/pnoffke/projects/proj1/output/toolchain/gnat/bin/gprbuild -f -u -c -p -P/home/pnoffke/projects/proj1/proj1.gpr --target=arm-eabi --config=/home/pnoffke/projects/proj1/obj/proj1.cgpr /home/pnoffke/projects/proj1/src/proj1.adb warning: --RTS is taken into account only in auto-configuration arm-eabi-gcc -c -g -gnatwa.X -gnatQ -gnat12 -gnatyO proj1.adb 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. Regards, Patrick