[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [SPAM UNSURE] gnatfind is missing from GCC v11 and newer
From: |
Left Right |
Subject: |
Re: [SPAM UNSURE] gnatfind is missing from GCC v11 and newer |
Date: |
Wed, 25 Oct 2023 18:19:47 +0200 |
Hi.
When trying to run build.sh in gpr_query I ran into a problem with the line:
I altered it like this to overcome the problem:
./build.sh: line 15: cd: too many arguments
if type alr; then
# alr can be installed from https://alire.ada.dev/
echo "building gpr_query via Alire; compiler:"
alr toolchain
alr get emacs_gpr_query~1.0.1
cd $(find . -type d -name 'emacs_gpr_query_*') ; alr build --release
to my understanding, the problem was that it was finding another file
in this directory that also starts with emacs_gpr_query_, namely:
emacs_gpr_query_config_devel.gpr or
emacs_gpr_query_config_release.gpr. This behavior may be contingent on
what /bin/sh is on any given system.
I'm not sure however if $() is supported in sh. Maybe it would have to
be `` instead.
In my case it's:
❯ /bin/sh --version
GNU bash, version 5.1.16(1)-release (x86_64-pc-linux-gnu)
Copyright (C) 2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
On Mon, Oct 23, 2023 at 6:04 PM Stephen Leake
<stephen_leake@stephe-leake.org> wrote:
>
> Left Right <olegsivokon@gmail.com> writes:
>
> > I discovered that gnatfind command used by gnat-xref-common-cmd from
> > gnat-compiler package (which seems to be part of Ada mode) is missing
> > from the newer versions of GCC.
>
> gnatfind is replaced by gpr_query; that's a separate ELPA package, not
> required by ada-mode. It also has Ada code that must be compiled.
>
> --
> -- Stephe
- gnatfind is missing from GCC v11 and newer, Left Right, 2023/10/21
- Re: [SPAM UNSURE] gnatfind is missing from GCC v11 and newer, Stephen Leake, 2023/10/23
- Re: [SPAM UNSURE] gnatfind is missing from GCC v11 and newer,
Left Right <=
- Re: [SPAM UNSURE] gnatfind is missing from GCC v11 and newer, Left Right, 2023/10/25
- Re: [SPAM UNSURE] gnatfind is missing from GCC v11 and newer, Simon Wright, 2023/10/25
- Re: [SPAM UNSURE] gnatfind is missing from GCC v11 and newer, Left Right, 2023/10/25
- Re: [SPAM UNSURE] gnatfind is missing from GCC v11 and newer, Simon Wright, 2023/10/25
- Re: [SPAM UNSURE] gnatfind is missing from GCC v11 and newer, Simon Wright, 2023/10/27
- Re: [SPAM UNSURE] gnatfind is missing from GCC v11 and newer, Stephen Leake, 2023/10/27
- Re: [SPAM UNSURE] gnatfind is missing from GCC v11 and newer, Stephen Leake, 2023/10/27