From: Simon Wright <simon@pushface.org>
Subject: Re: ANN: GCC 4.9.0 (2014) for Max OS X Mavericks
Date: Mon, 02 Jun 2014 19:02:09 +0100
Date: 2014-06-02T19:02:09+01:00 [thread overview]
Message-ID: <lywqczw5pa.fsf@pushface.org> (raw)
In-Reply-To: 851tv7gsyj.fsf@stephe-leake.org
Stephen Leake <stephen_leake@stephe-leake.org> writes:
> Simon Wright <simon@pushface.org> writes:
>
>> Simon Wright <simon@pushface.org> writes:
>>
>> The first release (gcc-4.9.0-x86_64-apple-darwin13-2014.tar.bz2)
>> contained an error: 'gnat list' didn't recognise library
>> projects. This meant that Emacs ada-mode couldn't be used for library
>> projects.
>
> Another fix for Emacs Ada mode would be to compile gnatinspect or
> gpr-query, and use those; they provide better cross reference support,
> including C++. But if 'gnat list' doesn't work, you probably would not
> be able to compile anything, any way.
What happened was that "gnat <legal-command>", as built with the
compiler, crashed with a SIGSEGV (it exits by raising an exception -
perhaps other tools don't do this, since I saw no evidence of them
failing).
I rebuilt it using the libgnat_util that I'd previously built. This
build, which was the first upload, failed to recognise that the
in-compiler build copies gcc/ada/mlib-tgt-specific-darwin.adb from the
source tree to gcc/ada/tools/mlib-tgt-specific.adb in the build tree,
with the result that libgnat_util contained the default
mlib-tgt-specific.adb from the source tree, which says
-- By default, libraries are not supported at all
I found this out when using ada-mode for a new project: on attempting to
set the project file, I got
GPR_PROJECT_PATH=nil
gnat list -Pscripted_testing.gpr -v
scripted_testing.gpr:2:17: object directory "src/.build" not found
scripted_testing.gpr:4:25: warning: libraries are not supported on this platform
gnat: "scripted_testing.gpr" processing failed
and I interpreted the "libraries are not supported on this platform" as
the reason for failure. It turns out that it is indeed only a warning:
the error is actually the missing object directory.
Anyway, the fix to "gnat" was to rebuild libgnat_util correctly, then
rebuild "gnat" (and the other tools that depend on libgnat_util - I
think only GNATColl is actually affected).
The reason I didn't notice immediately is that I rarely use the "gnat"
versions of commands explicitly; and, having made the fix, I delayed
uploading it because no one was complaining.
I see gnatinspect, but not gpr_query - is that one of yours? (Google was
no help).
Isn't gnatpath the proper replacement for gnat list? The customization
buffer says it's available on the Ada mode web site, but I don't see it.
next prev parent reply other threads:[~2014-06-02 18:02 UTC|newest]
Thread overview: 33+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-24 17:00 ANN: GCC 4.9.0 (2014) for Max OS X Mavericks Simon Wright
2014-05-31 19:35 ` Simon Wright
2014-05-31 22:29 ` Bill Findlay
2014-05-31 22:44 ` Pascal Obry
2014-05-31 23:31 ` Bill Findlay
2014-06-01 2:34 ` Dan'l Miller
2014-06-01 9:06 ` Simon Wright
2014-06-01 13:56 ` Bill Findlay
2014-10-11 22:42 ` marioeroy
2014-10-12 9:05 ` Simon Wright
2014-10-12 15:38 ` Mario Roy
2014-10-12 18:35 ` Simon Wright
2014-10-14 16:41 ` Simon Wright
2014-10-14 21:31 ` Mario Roy
2014-10-14 22:21 ` David Botton
2014-10-14 22:54 ` Luke A. Guest
2014-10-14 23:27 ` David Botton
2014-10-15 9:42 ` Simon Wright
2014-10-15 13:05 ` David Botton
2014-10-15 13:41 ` Simon Wright
2014-10-15 14:28 ` Björn Lundin
2014-10-15 13:43 ` Björn Lundin
2014-10-15 14:02 ` Simon Wright
2014-10-15 13:55 ` ANN: " Simon Wright
2014-10-15 15:33 ` David Botton
2014-10-17 15:29 ` Simon Wright
2014-06-02 16:46 ` Stephen Leake
2014-06-02 18:02 ` Simon Wright [this message]
2014-06-04 0:15 ` Luke A. Guest
2014-06-06 7:48 ` Simon Wright
2014-06-06 14:37 ` Lucretia
2014-06-06 14:42 ` Simon Wright
2014-10-15 5:39 ` ANN: " Mario Roy
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox