comp.lang.ada
 help / color / mirror / Atom feed
From: Simon Wright <simon@pushface.org>
Subject: Re: snag in building Ada mode Emacs module on Linux
Date: Thu, 21 May 2015 14:39:00 +0100
Date: 2015-05-21T14:39:00+01:00	[thread overview]
Message-ID: <lysiaqxd6z.fsf@pushface.org> (raw)
In-Reply-To: 85d21um5dn.fsf@stephe-leake.org

Stephen Leake <stephen_leake@stephe-leake.org> writes:

> The module doesn't compile on Linux, because GNAT GPL 2014 doesn't
> provide a (static or dynamic) libgnat for the sjlj runtime that is
> compiled with -fPIC. I need -fPIC on all code in order to include it
> in the dynamic library that is the Emacs module. I need the sjlj
> runtime to support raising exceptions in the module; since Emacs is
> not an Ada main, it uses the sjlj exception method.

What will you do with the exceptions once they propagate out of Ada? Or
is it that exceptions won't work at all, even if caught at the boundary
and converted to a status return/out parameter?

> Is there a similar problem on the Mac?

Yes.

Will it be easy to recompile the runtime with a different exception
method? I don't even know what the switches would be! At least GNAT GPL
2014 comes with an adalib/Makefile.adalib; the FSF GCCs don't (but the
GPL 2014 one might well work with minimal change).

  reply	other threads:[~2015-05-21 13:39 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-21 13:23 snag in building Ada mode Emacs module on Linux Stephen Leake
2015-05-21 13:39 ` Simon Wright [this message]
2015-05-28  4:14   ` 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