comp.lang.ada
 help / color / mirror / Atom feed
From: Patrick Noffke <patrick.noffke@gmail.com>
Subject: Re: Emacs Ada mode with RTS
Date: Thu, 18 Jun 2015 06:48:18 -0700 (PDT)
Date: 2015-06-18T06:48:18-07:00	[thread overview]
Message-ID: <3fa6cf9b-c3d7-40a0-bc52-7135a3cd8057@googlegroups.com> (raw)
In-Reply-To: <ly381qhvk9.fsf@pushface.org>

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


  reply	other threads:[~2015-06-18 13:48 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-17 18:12 Emacs Ada mode with RTS Patrick Noffke
2015-06-17 21:30 ` Simon Wright
2015-06-18 13:48   ` Patrick Noffke [this message]
2015-06-18 14:06     ` Simon Wright
2015-06-18 15:09       ` Patrick Noffke
2015-06-18 15:21         ` Patrick Noffke
2015-06-19 13:56       ` Stephen Leake
2015-06-18 15:34 ` Stephen Leake
2015-06-18 18:19   ` Patrick Noffke
2015-06-19 14:01     ` Stephen Leake
2015-06-18 18:39   ` Patrick Noffke
2015-06-18 19:19     ` Simon Wright
2015-06-19 14:12       ` Stephen Leake
2015-06-19 19:19         ` Simon Wright
2015-06-19 14:08     ` Stephen Leake
2015-06-19 14:47       ` Patrick Noffke
2015-06-21  9:48         ` Stephen Leake
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox