ada-mode-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Unable to compile ada-mode


From: Stephen Leake
Subject: Re: Unable to compile ada-mode
Date: Sat, 10 Oct 2020 16:27:09 -0700
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (windows-nt)

Colton Lewis <colton.w.lewis@protonmail.com> writes:

> 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".

Sigh. That's wrong; the second result is correct.

> 
> First sentence under Installation section.
>
> https://www.gnu.org/software/emacs/manual/html_mono/ada-mode.html#Installation

That doesn't say what version it is for! It is for the obsolete core
ada-mode, which is not in emacs 27, so this page should be deleted. I'll
have to find out who to bug ...

>
>> >    [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

same bug, in sal-gen_definite_doubly_linked_lists.adb

> wisitoken.ads:80:04: instantiation error at
> sal-gen_unbounded_definite_queues.ads:88 

instantiation of sal-gen_definite_doubly_linked_lists.adb

> wisitoken.ads:80:04: access discriminant in return aggregate would be
> a dangling reference 

duplicate report 

> wisi.ads:497:04: instantiation error at
> sal-gen_unbounded_definite_red_black_trees.adb:308 

same bug, in sal-gen_unbounded_definite_red_black_trees.adb

> wisi.ads:497:04: access discriminant in return aggregate would be a
> dangling reference

duplicate report

>> > 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. 

Ah.

> I have clang installed, so it uses that as the C compiler. Clang
> doesn't support a "-spec" argument.

I gather gcc is not in user/bin, bug clang is? 

>
>
> https://docs.adacore.com/gprbuild-docs/html/gprbuild_ug/companion_tools.html
>
> Might want to add
> for Driver ("C") use "gcc";
> somewhere.

That seems reasonable. Does it fix this issue for you?


-- 
-- Stephe



reply via email to

[Prev in Thread] Current Thread [Next in Thread]