I wanted to try a fresh installation of Emacs ada-mode, to see if there are still rough points, and I’ve reproduced this problem (using a clean user account under Ubuntu 22.04).
tester@mgr:~/.emacs.d/elpa/ada-mode-8.1.0$ ./build.sh
alr is /home/tester/.local/bin/alr
building ada-mode executables via Alire
Clonando en '/home/tester/.config/alire/indexes/community/repo'...
remote: Enumerating objects: 9854, done.
remote: Counting objects: 100% (2281/2281), done.
remote: Compressing objects: 100% (589/589), done.
remote: Total 9854 (delta 1829), reused 1897 (delta 1650), pack-reused 7573
Recibiendo objetos: 100% (9854/9854), 1.74 MiB | 1.51 MiB/s, listo.
Resolviendo deltas: 100% (5535/5535), listo.
ⓘ Deploying emacs_ada_mode=8.1.0...
Clonando en '/home/tester/.emacs.d/elpa/ada-mode-8.1.0/alr-lbku.tmp'...
remote: Counting objects: 48758, done.
remote: Compressing objects: 100% (10336/10336), done.
remote: Total 48758 (delta 38298), reused 48758 (delta 38298)
Recibiendo objetos: 100% (48758/48758), 240.39 MiB | 2.27 MiB/s, listo.
Resolviendo deltas: 100% (38298/38298), listo.
warning: remoto HEAD refiere a un ref inexistente, no se puede hacer checkout.
ⓘ Deploying stephes_ada_library=3.7.3...
Clonando en '/home/tester/.local/share/alire/releases/alr-vglx.tmp'...
remote: Counting objects: 48758, done.
remote: Compressing objects: 100% (10336/10336), done.
remote: Total 48758 (delta 38298), reused 48758 (delta 38298)
Recibiendo objetos: 100% (48758/48758), 240.39 MiB | 2.08 MiB/s, listo.
Resolviendo deltas: 100% (38298/38298), listo.
warning: remoto HEAD refiere a un ref inexistente, no se puede hacer checkout.
ⓘ Deploying xmlada=22.0.0...
-=O=- # # # #
ⓘ Deploying libgpr=22.0.0...
-=O#- # # #
ⓘ Deploying gnatcoll=22.0.0...
-=#=- # # #
ⓘ Deploying wisitoken=4.2.1...
Clonando en '/home/tester/.local/share/alire/releases/alr-nlwr.tmp'...
remote: Counting objects: 48758, done.
remote: Compressing objects: 100% (10336/10336), done.
remote: Total 48758 (delta 38298), reused 48758 (delta 38298)
Recibiendo objetos: 100% (48758/48758), 240.39 MiB | 2.44 MiB/s, listo.
Resolviendo deltas: 100% (38298/38298), listo.
warning: remoto HEAD refiere a un ref inexistente, no se puede hacer checkout.
ⓘ Deploying emacs_wisi=4.3.2...
Clonando en '/home/tester/.local/share/alire/releases/alr-sdkz.tmp'...
remote: Counting objects: 48758, done.
remote: Compressing objects: 100% (10336/10336), done.
remote: Total 48758 (delta 38298), reused 48758 (delta 38298)
Recibiendo objetos: 100% (48758/48758), 240.39 MiB | 2.73 MiB/s, listo.
Resolviendo deltas: 100% (38298/38298), listo.
warning: remoto HEAD refiere a un ref inexistente, no se puede hacer checkout.
emacs_ada_mode=8.1.0 successfully retrieved.
Dependencies were solved as follows:
+ emacs_wisi 4.3.2 (new)
+📦 gnat 12.3.0 (new,gnat_external,executable in path)
+ gnatcoll 22.0.0 (new,indirect)
+ libgpr 22.0.0 (new,indirect)
+📦 re2c 3.0.0 (new,system package)
+ stephes_ada_library 3.7.3 (new)
+ wisitoken 4.2.1 (new)
+ xmlada 22.0.0 (new,indirect)
ⓘ Alire has selected automatically this toolchain:
gprbuild=22.0.1
gnat_native=13.2.1
You can select a different toolchain at any time with `alr toolchain --select`
Download will start now:
Press Enter to continue or Ctrl-C to abort
ⓘ Deploying gprbuild=22.0.1...
################################################################################################## 100,0%
ⓘ gprbuild=22.0.1 installed successfully.
ⓘ Deploying gnat_native=13.2.1...
################################################################################################## 100,0%
ⓘ gnat_native=13.2.1 installed successfully.
ⓘ Running post-fetch actions for xmlada=22.0.0...
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking whether gnat can build shared libs... no
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... yes
configure: creating ./config.status
config.status: creating xmlada_shared.gpr
config.status: creating Makefile
config.status: creating tests/dom/default.gpr
ⓘ Building wisitoken=4.2.1/build/wisitoken_alire.gpr (1/2)...
gnatcoll.gpr:254:07: warning: value "windows" is not used as label
gprconfig: can't find a native toolchain for language 'ada'
gprconfig: can't find a native toolchain for language 'ada'
Setup
[mkdir] object directory for project XmlAda_Sax
[mkdir] library directory for project XmlAda_Sax
[mkdir] object directory for project XmlAda_Schema
[mkdir] object directory for project GPR
[mkdir] library directory for project GPR
[mkdir] object directory for project GnatColl
[mkdir] library directory for project GnatColl
[mkdir] object directory for project Stephes_Ada_Library
[mkdir] exec directory for project Stephes_Ada_Library
[mkdir] object directory for project Wisitoken_Alire
[mkdir] library directory for project Wisitoken_Alire
xmlada_unicode.gpr:26:09: warning: there are no sources of language "C" in this project
xmlada_sax.gpr:28:09: warning: there are no sources of language "C" in this project
xmlada_input.gpr:27:09: warning: there are no sources of language "C" in this project
xmlada_dom.gpr:28:09: warning: there are no sources of language "C" in this project
xmlada_schema.gpr:29:09: warning: there are no sources of language "C" in this project
stephes_ada_library.gpr:21:09: warning: there are no sources of language "C" in this project
gpr.gpr:21:17: no compiler for language "Ada", cannot compile "gpr-nmsc.ads"
gprbuild: *** compilation phase failed
error: Command ["gprbuild", "-s", "-j0", "-p", "-P", "/home/tester/.local/share/alire/builds/wisitoken_4.2.1_dc778486/df017e61466065dc300f4a800276b91f9e60761ca70ebabeff76ebc55fb9d345/build/wisitoken_alire.gpr"] exited with code 4
error: Compilation failed.
Steps:
- Install alr v2.0
- In emacs 27.1, install the ada-mode package and follow instructions, that is:
cd ~/.emacs.d/elpa/ada-mode-8.1.0
./build.sh
Installed packages in my case are:
ii gnat-12 12.3.0-1ubuntu1~22.04 amd64 GNU Ada compiler
ii gprbuild 2021.0.0.0778b109-5 amd64 multi-language extensible build tool
But gprbuild on its own is able to compile a simple program.