From: Patrick Noffke <patrick.noffke@gmail.com>
Subject: Re: Emacs Ada mode with RTS
Date: Thu, 18 Jun 2015 11:39:29 -0700 (PDT)
Date: 2015-06-18T11:39:29-07:00 [thread overview]
Message-ID: <8a492b13-7f08-4597-aa14-5aa8715850f5@googlegroups.com> (raw)
In-Reply-To: <86egl9do8p.fsf@stephe-leake.org>
On Thursday, June 18, 2015 at 10:34:35 AM UTC-5, Stephen Leake wrote:
> Patrick Noffke writes:
>
> Just a guess, but this looks like you are mixing 64 bit and 32 bit
> systems? Are you trying to cross-compile?
>
Yes, I'm cross-compiling for an ARM Cortex-M4 target on a x86_64 host, using a Ravenscar-sfp runtime.
With 5.1.8, the problem is gone. I can "check syntax" and build the project (still using the same custom check_cmd, make_cmd, and comp_cmd that call gprbuild with my config file).
> > Here are some variables from my .adp file:
> >
> > toolchain_dir=/home/pnoffke/projects/proj1/output/toolchain/gnat/bin
> > ada_compiler=${toolchain_dir}/arm-eabi-gnat
> > gpr_file=/home/pnoffke/projects/proj1/proj1.gpr
> > config_file=/home/pnoffke/projects/proj1/obj/proj1.cgpr
> > check_cmd=${toolchain_dir}/gprbuild -u -c -gnatc -p -P${gpr_file}
> > --target=arm-eabi --config=${config_file} ${full_current}
> > make_cmd=PATH=${toolchain_dir}:$PATH ${toolchain_dir}/gprbuild -p
> > --target=arm-eabi -P${gpr_file} --config=${config_file}
> > comp_cmd=${toolchain_dir}/gprbuild -u -c -gnatc -p -P${gpr_file}
> > --target=arm-eabi --config=${config_file} ${full_current}
>
> Some of this may no longer be supported in 5.1.8, but I have not checked
> in detail.
>
It seems to work in 5.1.8. I haven't played with using a Makefile yet. I'll give that a shot. Is there a way to make ada-mode's Check syntax or Build commands dependent on a rule (i.e. generating the config file) in my Makefile?
> If it doesn't work, please report bugs on the ada-mode mailing list (see
> the above web site for subscription info); I'd like to enhance ada-mode
> 5.1.8 to support this sort of thing.
>
> > The .cgpr file was created using gprconfig (I found this was how GPS
> > works for an RTS project).
>
> I guess by "RTS project" you mean one for which you specify an alternate
> run time system via the various --RTS options. ada-mode does not support
> that directly (see above about Makefile :).
>
> I've been messing with that myself recently for Emacs, and have notes
> about what needs to be added. There are several places where --RTS must
> be specified on a command line, not just in a .gpr file. Also, it should
> use the _correct_ system libraries as specified by the RTS setting,
> not the default ones.
Perhaps you can use gprbuild instead of gnatmake? Would that take care of it for you?
Thanks for your help.
Patrick
next prev parent reply other threads:[~2015-06-18 18:39 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
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 [this message]
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