Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

Killing is wrong. -- Losira, "That Which Survives", stardate unknown


devel / comp.lang.ada / Re: Emacs ada-mode installation on Debias bullseye

SubjectAuthor
* Emacs ada-mode installation on Debias bullseyeR R
`* Re: Emacs ada-mode installation on Debias bullseyeSimon Wright
 +- Re: Emacs ada-mode installation on Debias bullseyeStephen Leake
 `* Re: Emacs ada-mode installation on Debias bullseyeR R
  +- Re: Emacs ada-mode installation on Debias bullseyeR R
  `- Re: Emacs ada-mode installation on Debias bullseyeStephen Leake

1
Emacs ada-mode installation on Debias bullseye

<4ce850c3-9088-4916-b2b0-dc49bc100b6cn@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=5811&group=comp.lang.ada#5811

  copy link   Newsgroups: comp.lang.ada
X-Received: by 2002:a05:6214:54b:: with SMTP id ci11mr5729677qvb.24.1630797435481;
Sat, 04 Sep 2021 16:17:15 -0700 (PDT)
X-Received: by 2002:a5b:142:: with SMTP id c2mr7360432ybp.425.1630797435339;
Sat, 04 Sep 2021 16:17:15 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.ada
Date: Sat, 4 Sep 2021 16:17:15 -0700 (PDT)
Injection-Info: google-groups.googlegroups.com; posting-host=2003:ee:6706:6500:95de:955a:f7a8:bf95;
posting-account=mOyWBQoAAAD7S-NBmMUOr9hRClcL0vqR
NNTP-Posting-Host: 2003:ee:6706:6500:95de:955a:f7a8:bf95
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <4ce850c3-9088-4916-b2b0-dc49bc100b6cn@googlegroups.com>
Subject: Emacs ada-mode installation on Debias bullseye
From: rrr.eee...@gmail.com (R R)
Injection-Date: Sat, 04 Sep 2021 23:17:15 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 17
 by: R R - Sat, 4 Sep 2021 23:17 UTC

I recently upgraded my Debian machine to bullseye. By then Emacs' ada-mode stopped working as it couldn't find some dynamic library. So I reinstalled ada-mode 7.1.8 and now I have to compile the wisi parser. First I had to install libgnatcoll19-dev. But I still get the error messages:

ada_mode_wisi_parse.gpr:22:06: imported project file "gnatcoll_sqlite" not found
ada_mode_wisi_parse.gpr:23:06: imported project file "gnatcoll_xref" not found

So I tried to install libgnatcoll-sqlite20-dev, but that doesn't exist and libgnatcoll-sqlite20 doesn't provide a gpr file. I tried to comment out gnatcoll_sqlite and gnatcoll_xref in ada_mode_wisi_parse.gpr.gp to no avail.

Any hints how to get the ada-mode working again?

regards
Rolf

Re: Emacs ada-mode installation on Debias bullseye

<lyo897jqi4.fsf@pushface.org>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=5817&group=comp.lang.ada#5817

  copy link   Newsgroups: comp.lang.ada
Path: i2pn2.org!i2pn.org!aioe.org!RKN7TKnHC01q0gdg6EhkbQ.user.46.165.242.75.POSTED!not-for-mail
From: sim...@pushface.org (Simon Wright)
Newsgroups: comp.lang.ada
Subject: Re: Emacs ada-mode installation on Debias bullseye
Date: Sun, 05 Sep 2021 10:55:31 +0100
Organization: Aioe.org NNTP Server
Message-ID: <lyo897jqi4.fsf@pushface.org>
References: <4ce850c3-9088-4916-b2b0-dc49bc100b6cn@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain
Injection-Info: gioia.aioe.org; logging-data="17445"; posting-host="RKN7TKnHC01q0gdg6EhkbQ.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (darwin)
X-Notice: Filtered by postfilter v. 0.9.2
Cancel-Lock: sha1:AdwfOb695jLakagBAEtFeaUrUZ4=
 by: Simon Wright - Sun, 5 Sep 2021 09:55 UTC

R R <rrr.eee.27@gmail.com> writes:

> I recently upgraded my Debian machine to bullseye. By then Emacs'
> ada-mode stopped working as it couldn't find some dynamic library. So
> I reinstalled ada-mode 7.1.8 and now I have to compile the wisi
> parser. First I had to install libgnatcoll19-dev. But I still get the
> error messages:
>
> ada_mode_wisi_parse.gpr:22:06: imported project file "gnatcoll_sqlite" not found
> ada_mode_wisi_parse.gpr:23:06: imported project file "gnatcoll_xref" not found
>
> So I tried to install libgnatcoll-sqlite20-dev, but that doesn't exist
> and libgnatcoll-sqlite20 doesn't provide a gpr file.

I don't know about the Debian system, but wouldn't the numbers have to
match (i.e., 19 vs 20)?

If you can't find the prebuilt -dev package, try building from source as
suggested here:
https://www.nongnu.org/ada-mode/ada-mode.html#Building-GNATCOLL-2019 -
probably best to install in a private location, not over the
system. Also, when you get to the Github repo, the v21.0.0 package may
have compilation issues depending on your compiler: there are very few
changes between that version and the latest commit.

> I tried to
> comment out gnatcoll_sqlite and gnatcoll_xref in
> ada_mode_wisi_parse.gpr.gp to no avail.

Since the wisi parser relies on the facilities provided by these two
packages, that is *guaranteed* not to work!

Re: Emacs ada-mode installation on Debias bullseye

<86fsuisx5i.fsf@stephe-leake.org>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=5827&group=comp.lang.ada#5827

  copy link   Newsgroups: comp.lang.ada
Path: i2pn2.org!i2pn.org!aioe.org!9CzwYWWlKVx8RMZd/VcwFg.user.46.165.242.75.POSTED!not-for-mail
From: stephen_...@stephe-leake.org (Stephen Leake)
Newsgroups: comp.lang.ada
Subject: Re: Emacs ada-mode installation on Debias bullseye
Date: Sun, 05 Sep 2021 11:19:21 -0700
Organization: Aioe.org NNTP Server
Message-ID: <86fsuisx5i.fsf@stephe-leake.org>
References: <4ce850c3-9088-4916-b2b0-dc49bc100b6cn@googlegroups.com>
<lyo897jqi4.fsf@pushface.org>
Mime-Version: 1.0
Content-Type: text/plain
Injection-Info: gioia.aioe.org; logging-data="39180"; posting-host="9CzwYWWlKVx8RMZd/VcwFg.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (windows-nt)
Cancel-Lock: sha1:gLEqvisYrlBZ1wIjrADcd1QkdW8=
X-Notice: Filtered by postfilter v. 0.9.2
 by: Stephen Leake - Sun, 5 Sep 2021 18:19 UTC

Simon Wright <simon@pushface.org> writes:

>> I tried to
>> comment out gnatcoll_sqlite and gnatcoll_xref in
>> ada_mode_wisi_parse.gpr.gp to no avail.
>
> Since the wisi parser relies on the facilities provided by these two
> packages, that is *guaranteed* not to work!

It's only gpr_query that relies on those libraries. gpr_query provides
the cross reference backend. So technically, you could comment out
gpr_query in ada_mode_wisi_parse.gpr.gp, and only build the parser. A
lot of ada-mode would still work.

--
-- Stephe

Re: Emacs ada-mode installation on Debias bullseye

<92e8b506-350f-46db-96cc-83251b595088n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=5828&group=comp.lang.ada#5828

  copy link   Newsgroups: comp.lang.ada
X-Received: by 2002:ac8:5b8d:: with SMTP id a13mr7953098qta.130.1630866742605;
Sun, 05 Sep 2021 11:32:22 -0700 (PDT)
X-Received: by 2002:a05:6902:1201:: with SMTP id s1mr10931051ybu.432.1630866742433;
Sun, 05 Sep 2021 11:32:22 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.ada
Date: Sun, 5 Sep 2021 11:32:22 -0700 (PDT)
In-Reply-To: <lyo897jqi4.fsf@pushface.org>
Injection-Info: google-groups.googlegroups.com; posting-host=2003:ee:6706:6500:897:ac99:4c75:87e;
posting-account=mOyWBQoAAAD7S-NBmMUOr9hRClcL0vqR
NNTP-Posting-Host: 2003:ee:6706:6500:897:ac99:4c75:87e
References: <4ce850c3-9088-4916-b2b0-dc49bc100b6cn@googlegroups.com> <lyo897jqi4.fsf@pushface.org>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <92e8b506-350f-46db-96cc-83251b595088n@googlegroups.com>
Subject: Re: Emacs ada-mode installation on Debias bullseye
From: rrr.eee...@gmail.com (R R)
Injection-Date: Sun, 05 Sep 2021 18:32:22 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 53
 by: R R - Sun, 5 Sep 2021 18:32 UTC

On Sunday, September 5, 2021 at 11:55:35 AM UTC+2, Simon Wright wrote:
> R R writes:
>
> > I recently upgraded my Debian machine to bullseye. By then Emacs'
> > ada-mode stopped working as it couldn't find some dynamic library. So
> > I reinstalled ada-mode 7.1.8 and now I have to compile the wisi
> > parser. First I had to install libgnatcoll19-dev. But I still get the
> > error messages:
> >
> > ada_mode_wisi_parse.gpr:22:06: imported project file "gnatcoll_sqlite" not found
> > ada_mode_wisi_parse.gpr:23:06: imported project file "gnatcoll_xref" not found
> >
> > So I tried to install libgnatcoll-sqlite20-dev, but that doesn't exist
> > and libgnatcoll-sqlite20 doesn't provide a gpr file.
> I don't know about the Debian system, but wouldn't the numbers have to
> match (i.e., 19 vs 20)?

No, I don't think they have to match.

> If you can't find the prebuilt -dev package, try building from source as
> suggested here:
> https://www.nongnu.org/ada-mode/ada-mode.html#Building-GNATCOLL-2019 -
> probably best to install in a private location, not over the
> system. Also, when you get to the Github repo, the v21.0.0 package may
> have compilation issues depending on your compiler: there are very few
> changes between that version and the latest commit.

thanks for the hint to compile it myself. After reading Stephe's page I installed libgnatcoll-xref20-dev which provides both necessary gpr files. The problem with gnatcoll is solved. If you don't use gnatcoll on a regular basis it is not obvious which packages exist and what they provide.

After successful installation of gnatcoll the compilation then fails at
gen_emacs_wisi_lr_parse.ads:37:53: missing ";"

That line reads:

with WisiToken.Parse.LR.Parser;
with WisiToken.Syntax_Trees;
with Wisi;
generic
type Parse_Data_Type is new Wisi.Parse_Data_Type with private; --line 37, char pos 53 is right before the keyword 'with'.

The system compiler FSF gnat 10.2.1 doesn't like a generic parameter of a tagged type with a private part. Is that a new syntax?

Rolf

Re: Emacs ada-mode installation on Debias bullseye

<aac69e0c-5043-4c8b-9b02-7314e5a406bfn@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=5831&group=comp.lang.ada#5831

  copy link   Newsgroups: comp.lang.ada
X-Received: by 2002:a05:620a:11ab:: with SMTP id c11mr8324369qkk.169.1630875498218;
Sun, 05 Sep 2021 13:58:18 -0700 (PDT)
X-Received: by 2002:a25:d497:: with SMTP id m145mr5785741ybf.389.1630875497996;
Sun, 05 Sep 2021 13:58:17 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.ada
Date: Sun, 5 Sep 2021 13:58:17 -0700 (PDT)
In-Reply-To: <92e8b506-350f-46db-96cc-83251b595088n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2003:ee:6706:6500:897:ac99:4c75:87e;
posting-account=mOyWBQoAAAD7S-NBmMUOr9hRClcL0vqR
NNTP-Posting-Host: 2003:ee:6706:6500:897:ac99:4c75:87e
References: <4ce850c3-9088-4916-b2b0-dc49bc100b6cn@googlegroups.com>
<lyo897jqi4.fsf@pushface.org> <92e8b506-350f-46db-96cc-83251b595088n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <aac69e0c-5043-4c8b-9b02-7314e5a406bfn@googlegroups.com>
Subject: Re: Emacs ada-mode installation on Debias bullseye
From: rrr.eee...@gmail.com (R R)
Injection-Date: Sun, 05 Sep 2021 20:58:18 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 16
 by: R R - Sun, 5 Sep 2021 20:58 UTC

On Sunday, September 5, 2021 at 8:32:23 PM UTC+2, R R wrote:

> The system compiler FSF gnat 10.2.1 doesn't like a generic parameter of a tagged type with a private part. Is that a new syntax?

OK, I remember having seen that before, it was in the emacs ada-mode mailing list:
>> gen_run_wisi_lr_parse.ads:27:65: generic private child packages not
>> permitted
>
>This is a known bug in FSF gnat, triggered by the compiler option
>-gnat2020.
>
>The only workaround is to use Community GNAT 2019 or 2020 (from
>https://www.adacore.com/download), or possibly an earlier FSF version.

Seems very weird to me that I have to install the community edition in a Debian system...

Rolf

Re: Emacs ada-mode installation on Debias bullseye

<86eea1r61y.fsf@stephe-leake.org>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=5840&group=comp.lang.ada#5840

  copy link   Newsgroups: comp.lang.ada
Path: i2pn2.org!i2pn.org!aioe.org!9CzwYWWlKVx8RMZd/VcwFg.user.46.165.242.75.POSTED!not-for-mail
From: stephen_...@stephe-leake.org (Stephen Leake)
Newsgroups: comp.lang.ada
Subject: Re: Emacs ada-mode installation on Debias bullseye
Date: Mon, 06 Sep 2021 10:02:17 -0700
Organization: Aioe.org NNTP Server
Message-ID: <86eea1r61y.fsf@stephe-leake.org>
References: <4ce850c3-9088-4916-b2b0-dc49bc100b6cn@googlegroups.com>
<lyo897jqi4.fsf@pushface.org>
<92e8b506-350f-46db-96cc-83251b595088n@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain
Injection-Info: gioia.aioe.org; logging-data="26572"; posting-host="9CzwYWWlKVx8RMZd/VcwFg.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (windows-nt)
X-Notice: Filtered by postfilter v. 0.9.2
Cancel-Lock: sha1:0S5+vzI83MDJ36nNWvByG4lPzyQ=
 by: Stephen Leake - Mon, 6 Sep 2021 17:02 UTC

R R <rrr.eee.27@gmail.com> writes:

> On Sunday, September 5, 2021 at 11:55:35 AM UTC+2, Simon Wright wrote:
>> R R writes:
>>
>> > I recently upgraded my Debian machine to bullseye. By then Emacs'
>> > ada-mode stopped working as it couldn't find some dynamic library. So
>> > I reinstalled ada-mode 7.1.8 and now I have to compile the wisi
>> > parser. First I had to install libgnatcoll19-dev. But I still get the
>> > error messages:
>> >
>> > ada_mode_wisi_parse.gpr:22:06: imported project file "gnatcoll_sqlite" not found
>> > ada_mode_wisi_parse.gpr:23:06: imported project file "gnatcoll_xref" not found
>> >
>> > So I tried to install libgnatcoll-sqlite20-dev, but that doesn't exist
>> > and libgnatcoll-sqlite20 doesn't provide a gpr file.
>> I don't know about the Debian system, but wouldn't the numbers have to
>> match (i.e., 19 vs 20)?
>
> No, I don't think they have to match.

What evidence do you have for this?

In general, all GNAT code must come from the same compiler version; they
are free to change lots of internal stuff between versions. You might
get lucky mixing versions, but why waste time with stuff that probably
won't work?

> After successful installation of gnatcoll the compilation then fails at
> gen_emacs_wisi_lr_parse.ads:37:53: missing ";"
>
> That line reads:
>
> with WisiToken.Parse.LR.Parser;
> with WisiToken.Syntax_Trees;
> with Wisi;
> generic
> type Parse_Data_Type is new Wisi.Parse_Data_Type with private; --line 37, char pos 53 is right before the keyword 'with'.
>
> The system compiler FSF gnat 10.2.1 doesn't like a generic parameter of a tagged type with a private part. Is that a new syntax?

not new, just broken in FSF gnat 10.2.1 with -gnat2020

--
-- Stephe

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor