all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Colton Lewis via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
To: 43742@debbugs.gnu.org
Cc: ada-mode-users@nongnu.org
Subject: bug#43742: Unable to compile ada-mode
Date: Fri, 09 Oct 2020 23:04:37 +0000	[thread overview]
Message-ID: <3075632.N7aMVyhfb1@laptop.coltonlewis.name> (raw)
In-Reply-To: <86blhcoh9w.fsf@stephe-leake.org>

On Thursday, October 8, 2020 10:43:07 AM CDT Stephen Leake wrote:
> 
> > On a tangent, the online Emacs manual
> 
> Where?

First result on google for the string "emacs ada-mode".
First sentence under Installation section.

https://www.gnu.org/software/emacs/manual/html_mono/ada-mode.html#Installation

> >    [Ada]          wisi-ada.adb
> >    [Ada]          wisitoken.adb
> > sal-gen_unbounded_definite_red_black_trees.adb:308:26: access
> > discriminant in return aggregate would be a dangling reference
> 
> That's a new instance of a known bug; see the WORKAROUND note at line
> 321 in that file; delete the '.all' and it magically works.
Deleted ".all" everywhere the compiler complained. More errors.

wisitoken.ads:80:04: instantiation error at sal-gen_definite_doubly_linked_lists.adb:268
wisitoken.ads:80:04: instantiation error at sal-gen_unbounded_definite_queues.ads:88
wisitoken.ads:80:04: access discriminant in return aggregate would be a dangling reference
wisi.ads:497:04: instantiation error at sal-gen_unbounded_definite_red_black_trees.adb:308
wisi.ads:497:04: access discriminant in return aggregate would be a dangling reference

> 
> > clang-10: warning: argument unused during compilation:
> > '-specs=/tmp/GNAT-TEMP-000014.TMP' [-Wunused-command-line-argument]
> 
> This I don't understand

gprbuild grabs the first C compiler it can find on the system. I have
clang installed, so it uses that as the C compiler. Clang doesn't support
a "-spec" argument. 

https://docs.adacore.com/gprbuild-docs/html/gprbuild_ug/companion_tools.html

Might want to add
for Driver ("C") use "gcc";
somewhere.









  reply	other threads:[~2020-10-09 23:04 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-10-01  4:55 bug#43742: Unable to compile ada-mode Colton Lewis via Bug reports for GNU Emacs, the Swiss army knife of text editors
2020-10-01 16:52 ` Lars Ingebrigtsen
2020-10-01 17:29 ` Simon Wright via Bug reports for GNU Emacs, the Swiss army knife of text editors
2020-10-04 23:01 ` Stephen Leake
2020-10-06  6:32   ` Colton Lewis via Bug reports for GNU Emacs, the Swiss army knife of text editors
2020-10-08 15:43     ` Stephen Leake
2020-10-09 23:04       ` Colton Lewis via Bug reports for GNU Emacs, the Swiss army knife of text editors [this message]
2020-10-10  8:44         ` Simon Wright via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-08-23 20:53 ` Stephen Leake
2022-01-28 15:28   ` Lars Ingebrigtsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3075632.N7aMVyhfb1@laptop.coltonlewis.name \
    --to=bug-gnu-emacs@gnu.org \
    --cc=43742@debbugs.gnu.org \
    --cc=ada-mode-users@nongnu.org \
    --cc=colton.w.lewis@protonmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.