[Emacs-ada-mode] Compiling gnatpath
Simon Wright
simon at pushface.org
Tue Apr 29 12:55:32 PDT 2008
Original message: Stephe wrote (21 Dec 07):
Jerry van Dijk <jdijk at solcon.nl> writes:
> Using GNAT GPL 2007:
I haven't installed this yet.
> C:\emacs\site-lisp\ada-mode>gnumake
> gnumake
> gnatmake -Pgnatpath.gpr
> gcc -c -g -O -gnata -gnatVa -gnatQ -gnaty -gnatwaIe -I- -gnatA C:
\emacs\site-lisp\ada-mode\gnatpath.adb
> gnatpath.adb:32:06: warning: no entities of "Types" are referenced
> gnatpath.adb:86:39: "No_Name" not declared in "Types"
> gnatpath.adb:87:39: "No_Name" not declared in "Types"
> gnatpath.adb:88:39: "No_Name" not declared in "Types"
These statements are labeled with a "WORKAROUND" comment; try just
deleting them.
If that doesn't work, see if there is something similar to set
Error_Msg_Name_* to.
===============================================================
Some news on GNAT-GPL-2007 on Mac OS X (powerbook):
The problem with No_Name is that it's defined in Namet, not Types.
A normal build ended up complaining that there was an inconsistency
vs the system libraries (different exception handling model, I think).
I don't recognise the compiler options in gnatpath.gpr, so ended up
using my standard ones (-g -O2 -gnatqQafoy) -- no change.
I rebuilt using gnatmake -a to recompile the RTS components needed:
now fails to link with undefined symbol __gnat_link_max.
Turns out this is in link.c in gnat_src; compile that and build with
gnatmake -Pgnatpath -a -largs link.o -- success!
--S
More information about the Emacs-ada-mode
mailing list