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.66.66.66 with SMTP id d2mr8705515pat.5.1434564773415; Wed, 17 Jun 2015 11:12:53 -0700 (PDT) X-Received: by 10.182.39.136 with SMTP id p8mr75668obk.8.1434564773347; Wed, 17 Jun 2015 11:12:53 -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!h15no3551877igd.0!news-out.google.com!kd3ni9348igb.0!nntp.google.com!h15no3551875igd.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Wed, 17 Jun 2015 11:12:53 -0700 (PDT) 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 User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <888a3bd7-6ce8-4458-8725-8330680f48de@googlegroups.com> Subject: Emacs Ada mode with RTS From: Patrick Noffke Injection-Date: Wed, 17 Jun 2015 18:12:53 +0000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Xref: news.eternal-september.org comp.lang.ada:26363 Date: 2015-06-17T11:12:53-07:00 List-Id: I'm trying to use Emacs Ada mode with a .gpr project file that works with G= PS and uses a Ravenscar runtime. When I compile with GPS or from my own Ma= kefile, I have no problems, but when I compile a file from Emacs using Ada = mode's Compile file command, I get an error: s-osinte.ads:591:07: size for "Address" too small, minimum allowed is 64 This is when it's compiling the "main" file. It appears that from Ada mode, the system adainclude directory is getting u= sed. I wrote the .adp project file by hand, using Simon's suggestion from = here: http://sourceforge.net/p/stm32f4-gnat-rts/discussion/general/thread/0ccef57= 0/ But when I edit the project file with the Ada mode GUI (using Ada mode's Pr= oject -> Edit command), it shows /usr/lib/gcc/x86_64-redhat-linux/4.9.2/ada= include listed under Source directories. /usr/lib/gcc/x86_64-redhat-linux/= 4.9.2/adalib is also listed under Object directories. These directories do= not exist in my .adp file. gprbuild (and the resulting call to gcc) appear to be called as I expect fr= om within Ada mode, but something must be set up as an environment variable= that I'm not seeing in the compilation output window. Here are some variables from my .adp file: toolchain_dir=3D/home/pnoffke/projects/proj1/output/toolchain/gnat/bin ada_compiler=3D${toolchain_dir}/arm-eabi-gnat gpr_file=3D/home/pnoffke/projects/proj1/proj1.gpr config_file=3D/home/pnoffke/projects/proj1/obj/proj1.cgpr check_cmd=3D${toolchain_dir}/gprbuild -u -c -gnatc -p -P${gpr_file} --targe= t=3Darm-eabi --config=3D${config_file} ${full_current} make_cmd=3DPATH=3D${toolchain_dir}:$PATH ${toolchain_dir}/gprbuild -p --tar= get=3Darm-eabi -P${gpr_file} --config=3D${config_file} comp_cmd=3D${toolchain_dir}/gprbuild -u -c -gnatc -p -P${gpr_file} --target= =3Darm-eabi --config=3D${config_file} ${full_current} The .cgpr file was created using gprconfig (I found this was how GPS works = for an RTS project). Is there a way to have Ada mode not bring in the system directories? Thanks, Patrick