Alire build error, 2nd try

Hello everyone,

i wanted to ask for help with alire. I dont get any meaningful error messages.

system specs from “alr version”:

APPLICATION
alr version:               2.1.1
libalire version:          2.1.1
source commit:             unknown
source changes:            unknown
compilation date:          2026-11-28 14:27:39
compiled with version:     16.2.1 20260810

CONFIGURATION
home folder:               /home/julius
settings folder:           /home/julius/.config/alire
cache folder:              /home/julius/.local/share/alire
vault folder:              /home/julius/.local/share/alire/releases
build folder:              /home/julius/.local/share/alire/builds
temp folder:               /run/user/1000
force flag:                FALSE
non-interactive flag:      FALSE
community index branch:    stable-1.4.0
compatible index versions: ^1.1 & <=1.4.0
indexes folder:            /home/julius/.config/alire/indexes
indexes metadata:          OK
index #1:                  (community) git+https://github.com/alire-project/alire-index#stable-1.4.0
toolchain folder:          /home/julius/.local/share/alire/toolchains
toolchain assistant:       disabled
tool #1 gnat:              gnat_arm_elf=16.1.0
tool #2 gprbuild:          gprbuild=26.0.1
system package manager:    /usr/bin/pacman
distro detection disabled: FALSE

WORKSPACE
root status:               VALID
root release:              wohnzimmer_lampe=0.1.0-dev
root load error:           none
root folder:               /home/julius/Programmieren/wohnzimmer_lampe
current folder:            /home/julius/Programmieren/wohnzimmer_lampe

SYSTEM
distribution:              ARCH
host-arch:                 X86_64
os:                        LINUX
target:                    NATIVE
toolchain:                 SYSTEM
word-size:                 BITS_64

The build fails without meaningful error message. This is this the output of alr build --development
:

Note: Building wohnzimmer_lampe=0.1.0-dev/wohnzimmer_lampe.gpr...
Compile
   [Ada]          wohnzimmer_lampe.adb
   [Ada]          xoshiro256.adb
   [Ada]          xoshiro128.adb
   [Ada]          s-pack36.adb
   [Ada]          s-atocou.adb
   [Ada]          s-bytswa.ads
   [Ada]          gnat.ads
   [Ada]          s-pack44.adb
   [Ada]          s-widint.ads
   [Ada]          s-vaen16.ads
   [Ada]          s-textio.adb
   [Ada]          s-pack58.adb
   [Ada]          g-io.adb
   [Ada]          a-strsup.adb
   [Ada]          s-gcmain.adb
   [Ada]          s-vade64.ads
   [Ada]          s-imgcha.adb
xoshiro128.adb:28:94: (style) this line is too long: 100 [-gnatyM]
   [Ada]          s-widuns.ads
   [Ada]          s-arit32.adb
   [Ada]          a-tags.adb
   [Ada]          s-valuen.adb
   [Ada]          s-imageu.adb
   [Ada]          s-pack33.adb
   [Ada]          s-exnllf.ads
   [Ada]          s-vallli.ads
   [Ada]          s-pack09.adb
   [Ada]          s-geveop.adb
   [Ada]          s-flocon.adb
   [Ada]          s-vaenu8.ads
   [Ada]          s-imagew.adb
   [Ada]          s-imen32.ads
   [Ada]          a-nubinu.ads
   [Ada]          s-pack25.adb
   [Ada]          s-dourea.adb
   [Ada]          a-strfix.adb
   [Ada]          ada.ads
   [Ada]          s-valint.ads
   [Ada]          s-imgint.ads
   [Ada]          i-cstrin.adb
   [Ada]          s-expuns.ads
   [Ada]          a-numaux.ads
   [Ada]          s-assert.adb
   [Ada]          s-exnint.ads
   [Ada]          s-sssita.adb
   [Ada]          s-expint.ads
   [Ada]          s-valueu.adb
   [Ada]          s-lisisq.adb
   [Ada]          a-nselfu.ads
   [Ada]          s-pack57.adb
   [Ada]          s-exnlfl.ads
   [Ada]          a-strmap.adb
   [Ada]          a-assert.adb
   [Ada]          s-imagei.adb
   [Ada]          s-pack63.adb
   [Ada]          s-exponn.adb
   [Ada]          s-imglfl.ads
   [Ada]          a-chahan.adb
   [Ada]          s-pack50.adb
   [Ada]          s-pack37.adb
   [Ada]          a-numeri.ads
   [Ada]          s-maccod.ads
   [Ada]          s-imfi32.ads
   [Ada]          s-valuti.adb
   [Ada]          s-vector.ads
   [Ada]          s-widlli.ads
   [Ada]          s-bbbopa.ads
   [Ada]          s-pack29.adb
   [Ada]          s-pack31.adb
   [Ada]          g-debuti.adb
   [Ada]          s-stoele.adb
   [Ada]          s-pack34.adb
   [Ada]          s-imde64.ads
   [Ada]          s-pack22.adb
   [Ada]          g-sestin.ads
   [Ada]          s-caun16.adb
   [Ada]          s-imagen.adb
   [Ada]          s-imgllf.ads
   [Ada]          s-powflt.ads
   [Ada]          s-libm.adb
   [Ada]          s-pack23.adb
   [Ada]          a-ngelfu.adb
   [Ada]          s-valuns.ads
   [Ada]          s-arit64.adb
   [Ada]          s-atopri.adb
   [Ada]          s-libdou.adb
   [Ada]          a-textio.adb
   [Ada]          s-fatllf.ads
   [Ada]          s-casi32.adb
   [Ada]          a-nlelfu.ads
   [Ada]          s-pack12.adb
   [Ada]          a-charac.ads
wohnzimmer_lampe.adb:1:01: (style) multiple blank lines [-gnatyu]
wohnzimmer_lampe.adb:3:06: warning: unit "dimmen" is not referenced [-gnatwu]
wohnzimmer_lampe.adb:4:25: warning: use clause for package "GPIO" has no effect [-gnatwu]
wohnzimmer_lampe.adb:5:08: warning: no entities of "RP.ADC" are referenced [-gnatwu]
wohnzimmer_lampe.adb:5:25: warning: use clause for package "ADC" has no effect [-gnatwu]
wohnzimmer_lampe.adb:6:25: warning: use clause for package "DMA" has no effect [-gnatwu]
wohnzimmer_lampe.adb:7:25: warning: use clause for package "RP" has no effect [-gnatwu]
wohnzimmer_lampe.adb:9:08: warning: unit "RP.Timer" is not referenced [-gnatwu]
wohnzimmer_lampe.adb:10:06: warning: no entities of "HAL" are referenced [-gnatwu]
wohnzimmer_lampe.adb:10:25: warning: use clause for package "HAL" has no effect [-gnatwu]
wohnzimmer_lampe.adb:13:03: (style) two spaces required [-gnatyc]
wohnzimmer_lampe.adb:14:03: (style) two spaces required [-gnatyc]
wohnzimmer_lampe.adb:15:06: warning: unit "bewegungsmelder" is not referenced [-gnatwu]
wohnzimmer_lampe.adb:17:06: (style) bad casing of "GNAT" declared at gnat.ads:40 [-gnatyr]
wohnzimmer_lampe.adb:17:10: warning: no entities of "gnat.io" are referenced [-gnatwu]
wohnzimmer_lampe.adb:17:11: (style) bad casing of "IO" declared at g-io.ads:41 [-gnatyr]
wohnzimmer_lampe.adb:19:06: warning: unit "analog_readings" is not referenced [-gnatwu]
wohnzimmer_lampe.adb:24:06: warning: "Ada.Real_Time.Delays" is an internal GNAT unit [-gnatwi]
wohnzimmer_lampe.adb:24:06: warning: use of this unit is non-portable and version-dependent [-gnatwi]
wohnzimmer_lampe.adb:24:19: warning: unit "Ada.Real_Time.Delays" is not referenced [-gnatwu]
wohnzimmer_lampe.adb:25:06: warning: unit "Tcp_Socket" is not referenced [-gnatwu]
wohnzimmer_lampe.adb:28:04: warning: use clause for package "IO" has no effect [-gnatwu]
wohnzimmer_lampe.adb:28:08: (style) bad casing of "GNAT" declared at gnat.ads:40 [-gnatyr]
wohnzimmer_lampe.adb:28:13: (style) bad casing of "IO" declared at g-io.ads:41 [-gnatyr]
wohnzimmer_lampe.adb:35:16: warning: variable "timeout_value" is assigned but never read [-gnatwm]
wohnzimmer_lampe.adb:35:31: warning: variable "letzte_erkannte_bewegung" is assigned but never read [-gnatwm]
wohnzimmer_lampe.adb:35:57: warning: variable "now" is assigned but never read [-gnatwm]
wohnzimmer_lampe.adb:38:04: warning: variable "dunkelheit" is not referenced [-gnatwu]
wohnzimmer_lampe.adb:39:04: warning: variable "strom" is never read and never assigned [-gnatwu]
wohnzimmer_lampe.adb:43:07: warning: "Result" is not modified, could be declared constant [-gnatwk]
wohnzimmer_lampe.adb:45:25: (style) bad capitalization, mixed case required [-gnatya]
wohnzimmer_lampe.adb:48:23: (style) bad capitalization, mixed case required [-gnatya]
wohnzimmer_lampe.adb:54:25: (style) bad capitalization, mixed case required [-gnatya]
wohnzimmer_lampe.adb:65:06: (style) two spaces required [-gnatyc]
wohnzimmer_lampe.adb:66:07: (style) space required [-gnatyc]
wohnzimmer_lampe.adb:69:06: (style) two spaces required [-gnatyc]
wohnzimmer_lampe.adb:70:06: (style) two spaces required [-gnatyc]
wohnzimmer_lampe.adb:71:06: (style) two spaces required [-gnatyc]
wohnzimmer_lampe.adb:77:23: (style) bad casing of "True" declared in Standard [-gnatyn]
wohnzimmer_lampe.adb:78:22: (style) bad casing of "Float" declared in Standard [-gnatyn]
wohnzimmer_lampe.adb:78:28: (style) bad capitalization, mixed case required [-gnatya]
wohnzimmer_lampe.adb:80:07: (style) space required [-gnatyc]
wohnzimmer_lampe.adb:81:06: (style) two spaces required [-gnatyc]
wohnzimmer_lampe.adb:88:10: (style) bad casing of "True" declared in Standard [-gnatyn]
wohnzimmer_lampe.adb:90:09: (style) two spaces required [-gnatyc]
wohnzimmer_lampe.adb:91:10: (style) space required [-gnatyc]
wohnzimmer_lampe.adb:92:80: (style) this line is too long: 90 [-gnatyM]
wohnzimmer_lampe.adb:94:80: (style) this line is too long: 86 [-gnatyM]
wohnzimmer_lampe.adb:95:80: (style) this line is too long: 86 [-gnatyM]
wohnzimmer_lampe.adb:97:80: (style) this line is too long: 80 [-gnatyM]
wohnzimmer_lampe.adb:98:80: (style) this line is too long: 84 [-gnatyM]
wohnzimmer_lampe.adb:100:10: (style) space required [-gnatyc]
wohnzimmer_lampe.adb:122:80: (style) this line is too long: 85 [-gnatyM]
   [Ada]          setup_clocks.adb
   [Ada]          s-imfi64.ads
   [Ada]          s-pack20.adb
   [Ada]          s-valboo.adb
   [Ada]          s-pack11.adb
   [Ada]          s-pack30.adb
   [Ada]          s-expmod.adb
   [Ada]          s-bootro.adb
   [Ada]          machcode.ads
   [Ada]          s-exponu.adb
   [Ada]          s-pack41.adb
   [Ada]          s-vallfl.ads
   [Ada]          s-pack39.adb
   [Ada]          s-imguti.adb
   [Ada]          s-vaen32.ads
   [Ada]          s-widthi.adb
   [Ada]          s-fatgen.adb
   [Ada]          s-exnflt.ads
   [Ada]          s-bbmcpa.ads
   [Ada]          s-pack42.adb
   [Ada]          s-pack05.adb
   [Ada]          s-libc.adb
   [Ada]          s-parame.adb
   [Ada]          s-casuti.adb
   [Ada]          unchdeal.ads
   [Ada]          s-fatlfl.ads
   [Ada]          s-imagef.adb
   [Ada]          unchconv.ads
   [Ada]          s-imaged.adb
   [Ada]          s-casi16.adb
   [Ada]          s-imgboo.adb
   [Ada]          s-pack47.adb
   [Ada]          s-pack27.adb
   [Ada]          a-nllefu.ads
   [Ada]          s-expont.adb
   [Ada]          s-bbpara.ads
   [Ada]          a-unccon.ads
   [Ada]          s-pack28.adb
   [Ada]          s-pack49.adb
   [Ada]          s-casi64.adb
   [Ada]          s-pack53.adb
   [Ada]          s-imen16.ads
   [Ada]          a-chlat1.ads
   [Ada]          s-pack45.adb
   [Ada]          a-strsea.adb
   [Ada]          s-libpre.ads
   [Ada]          s-pack13.adb
   [Ada]          s-bb.ads
   [Ada]          s-imglli.ads
   [Ada]          s-explli.ads
   [Ada]          s-vafi32.ads
   [Ada]          i-cpoint.adb
   [Ada]          s-pack60.adb
   [Ada]          s-pack38.adb
   [Ada]          s-veboop.adb
   [Ada]          s-valuer.adb
   [Ada]          s-fatflt.ads
   [Ada]          i-c.adb
   [Ada]          s-caun64.adb
   [Ada]          a-uncdea.ads
   [Ada]          s-memcom.adb
   [Ada]          s-pack26.adb
   [Ada]          s-pack06.adb
   [Ada]          s-valllu.ads
   [Ada]          s-memory.adb
   [Ada]          s-pack18.adb
   [Ada]          a-nuelfu.ads
   [Ada]          s-aridou.adb
   [Ada]          s-boarop.ads
   [Ada]          s-pack14.adb
   [Ada]          a-except.adb
   [Ada]          s-pack52.adb
   [Ada]          s-pack35.adb
   [Ada]          s-valrea.adb
   [Ada]          s-imguns.ads
   [Ada]          s-bbarat.adb
   [Ada]          s-stache.adb
   [Ada]          s-exponr.adb
   [Ada]          s-pack61.adb
   [Ada]          s-pack51.adb
   [Ada]          a-strbou.adb
   [Ada]          s-vade32.ads
   [Ada]          s-atacco.adb
   [Ada]          s-expllu.ads
   [Ada]          i-cexten.ads
   [Ada]          s-secsta.adb
   [Ada]          s-retsta.ads
   [Ada]          s-valllf.ads
   [Ada]          s-bitops.adb
   [Ada]          s-valcha.adb
   [Ada]          a-stmaco.ads
   [Ada]          s-addope.adb
   [Ada]          s-pack54.adb
   [Ada]          s-pack55.adb
   [Ada]          s-unstyp.ads
   [Ada]          s-valflt.ads
   [Ada]          s-memcop.adb
   [Ada]          s-widllu.ads
   [Ada]          s-macres.adb
   [Ada]          s-exnlli.ads
   [Ada]          s-pack21.adb
   [Ada]          s-cautns.adb
   [Ada]          s-imgllw.ads
   [Ada]          s-pack03.adb
   [Ada]          s-imager.adb
   [Ada]          g-souinf.ads
   [Ada]          s-valued.adb
   [Ada]          s-pack17.adb
   [Ada]          s-imenu8.ads
   [Ada]          s-pack07.adb
   [Ada]          a-elchha.adb
   [Ada]          s-vafi64.ads
   [Ada]          s-pack19.adb
   [Ada]          s-pack59.adb
   [Ada]          s-carsi8.adb
   [Ada]          s-pack62.adb
   [Ada]          s-memmov.adb
   [Ada]          s-pack46.adb
   [Ada]          s-memtyp.ads
   [Ada]          s-powlfl.ads
   [Ada]          s-imgllu.ads
   [Ada]          s-imde32.ads
   [Ada]          a-string.ads
   [Ada]          s-widthu.adb
   [Ada]          s-pack43.adb
   [Ada]          s-valuei.adb
   [Ada]          s-powllf.ads
   [Ada]          s-pack10.adb
   [Ada]          s-carun8.adb
   [Ada]          s-bbrpat.adb
   [Ada]          s-imgflt.ads
   [Ada]          s-caun32.adb
   [Ada]          text_io.ads
   [Ada]          s-valuef.adb
   [Ada]          system.ads
   [Ada]          s-lidosq.adb
   [Ada]          s-semiho.adb
   [Ada]          s-imgwiu.ads
   [Ada]          interfac.ads
   [Ada]          s-memset.adb
   [Ada]          s-pack15.adb
   [Ada]          s-libsin.adb
   [Ada]          light_tasking_rp2040_config.ads
   [Ada]          rp2040_runtime_config.ads
   [Ada]          i-rp2040.ads
   [Ada]          i-rp2040-clocks.ads
   [Ada]          i-rp2040-pll_sys.ads
   [Ada]          i-rp2040-psm.ads
   [Ada]          i-rp2040-resets.ads
   [Ada]          i-rp2040-rosc.ads
   [Ada]          i-rp2040-sio.ads
   [Ada]          i-rp2040-timer.ads
   [Ada]          i-rp2040-watchdog.ads
   [Ada]          i-rp2040-xosc.ads
   [Ada]          a-intnam.ads
   [Ada]          a-synbar.adb
   [Ada]          s-taprop.adb
   [Ada]          s-tposen.adb
   [Ada]          s-bbthqu.adb
   [Ada]          s-bbcppr.adb
s-bbthre.ads:286:80: (style) this line is too long: 81 [-gnatyM]
s-bbthre.ads:287:80: (style) this line is too long: 81 [-gnatyM]
s-bbthre.ads:311:08: (style) bad column [-gnaty0]
s-bbthqu.ads:59:80: (style) this line is too long: 80 [-gnatyM]
s-bbthqu.ads:61:80: (style) this line is too long: 80 [-gnatyM]
s-bbthqu.ads:62:80: (style) this line is too long: 80 [-gnatyM]
s-bbthqu.ads:142:08: (style) bad column [-gnaty0]
s-bbthqu.ads:162:08: (style) bad column [-gnaty0]
s-bbthqu.ads:244:80: (style) this line is too long: 80 [-gnatyM]
s-bbthqu.ads:282:08: (style) bad column [-gnaty0]
s-bbcppr.adb:526:13: (style) space required [-gnatyc]
s-bbthre.ads:286:80: (style) this line is too long: 81 [-gnatyM]
s-bbthre.ads:287:80: (style) this line is too long: 81 [-gnatyM]
s-bbthre.ads:311:08: (style) bad column [-gnaty0]
s-bbthqu.ads:59:80: (style) this line is too long: 80 [-gnatyM]
s-bbthqu.ads:61:80: (style) this line is too long: 80 [-gnatyM]
s-bbthqu.ads:62:80: (style) this line is too long: 80 [-gnatyM]
s-bbthqu.ads:142:08: (style) bad column [-gnaty0]
s-bbthqu.ads:162:08: (style) bad column [-gnaty0]
s-bbthqu.ads:244:80: (style) this line is too long: 80 [-gnatyM]
s-bbthqu.ads:282:08: (style) bad column [-gnaty0]
s-bbthre.ads:286:80: (style) this line is too long: 81 [-gnatyM]
s-bbthre.ads:287:80: (style) this line is too long: 81 [-gnatyM]
s-bbthre.ads:311:08: (style) bad column [-gnaty0]
s-bbthqu.ads:59:80: (style) this line is too long: 80 [-gnatyM]
s-bbthqu.ads:61:80: (style) this line is too long: 80 [-gnatyM]
s-bbthqu.ads:62:80: (style) this line is too long: 80 [-gnatyM]
s-bbthqu.ads:142:08: (style) bad column [-gnaty0]
s-bbthqu.ads:162:08: (style) bad column [-gnaty0]
s-bbthqu.ads:244:80: (style) this line is too long: 80 [-gnatyM]
s-bbthqu.ads:282:08: (style) bad column [-gnaty0]
s-bbthqu.ads:59:80: (style) this line is too long: 80 [-gnatyM]
s-bbthqu.ads:61:80: (style) this line is too long: 80 [-gnatyM]
s-bbthqu.ads:62:80: (style) this line is too long: 80 [-gnatyM]
s-bbthqu.ads:142:08: (style) bad column [-gnaty0]
s-bbthqu.ads:162:08: (style) bad column [-gnaty0]
s-bbthqu.ads:244:80: (style) this line is too long: 80 [-gnatyM]
s-bbthqu.ads:282:08: (style) bad column [-gnaty0]
s-bbthre.ads:286:80: (style) this line is too long: 81 [-gnatyM]
s-bbthre.ads:287:80: (style) this line is too long: 81 [-gnatyM]
s-bbthre.ads:311:08: (style) bad column [-gnaty0]
s-bbthre.ads:286:80: (style) this line is too long: 81 [-gnatyM]
s-bbthre.ads:287:80: (style) this line is too long: 81 [-gnatyM]
s-bbthre.ads:311:08: (style) bad column [-gnaty0]
s-bbthqu.ads:59:80: (style) this line is too long: 80 [-gnatyM]
s-bbthqu.ads:61:80: (style) this line is too long: 80 [-gnatyM]
s-bbthqu.ads:62:80: (style) this line is too long: 80 [-gnatyM]
s-bbthqu.ads:142:08: (style) bad column [-gnaty0]
s-bbthqu.ads:162:08: (style) bad column [-gnaty0]
s-bbthqu.ads:244:80: (style) this line is too long: 80 [-gnatyM]
s-bbthqu.ads:282:08: (style) bad column [-gnaty0]

   compilation of s-bbcppr.adb failed
   compilation of s-bbthqu.adb failed
   compilation of s-tposen.adb failed
   compilation of s-taprop.adb failed
   compilation of a-intnam.ads failed

gprbuild: *** compilation phase failed
ERROR: Command ["gprbuild", "-s", "-j0", "-p", "-P", "/home/julius/Programmieren/wohnzimmer_lampe/wohnzimmer_lampe.gpr"] exited with code 4
ERROR: Compilation failed.

Output with flags “-d -vv”, (to much text to post it here):

Thank you for helping.

Hi!

Are you sure that the way you have added the runtime target is correct? Because when you compile the runtime you get a ton of style warnings (which get treated as errors).

Could you upload your wohnzimmer_lampe.gpr and alire.toml please?

See Alire - Light_tasking_rp2040 and https://pico-doc.synack.me/#create_a_new_project on how to add a custom runtime.

with kind regards,
Ada Orbit (she/her)

Hi, strangely it complied before. Now not anymore.

wohnzimmer_lampe.gpr

with "config/wohnzimmer_lampe_config.gpr";
with "pico_bsp.gpr";

with "runtime_build.gpr";
with "ravenscar_build.gpr";



project Wohnzimmer_Lampe is

   for Source_Dirs use ("src/", "config/"); -- "alire/cache/pins/rp2040_hal/src/interrupts/hal"
   for Object_Dir use "obj/" & Wohnzimmer_Lampe_Config.Build_Profile;
   for Create_Missing_Dirs use "True";
   for Exec_Dir use "bin";
   for Main use ("wohnzimmer_lampe.adb");

   package Compiler is
      for Default_Switches ("Ada") use Wohnzimmer_Lampe_Config.Ada_Compiler_Switches;
   end Compiler;

   package Binder is
      for Switches ("Ada") use ("-Es", "-D512", "-b"); --  Symbolic traceback
   end Binder;

   package Install is
      for Artifacts (".") use ("share");
   end Install;

   --for Target use "arm-eabi";
   --for Runtime ("Ada") use "light-cortex-m0p";

   for Target use Runtime_Build'Target;
   for Runtime ("Ada") use Runtime_Build'Runtime ("Ada");
   package Linker is
      for Switches ("Ada") use Runtime_Build.Linker_Switches & ("-Wl,--gc-sections,--print-memory-usage");
   end Linker;
   

end Wohnzimmer_Lampe;

alire.toml:

name = "wohnzimmer_lampe"
description = "lampe"
version = "0.1.0-dev"

authors = ["julius"]
maintainers = ["julius <julius@julius-obk.de>"]
maintainers-logins = ["julius-obk"]
licenses = "GPL-3.0-or-later"
website = ""
tags = []

executables = ["wohnzimmer_lampe"]

[[depends-on]]
xoshiro = "^2.0.0"

[[depends-on]]
pico_bsp = "^2.2.0"

[[depends-on]]
sdpcm = "~0.1.0-dev"

[[pins]]
sdpcm = { path='../sdpcm' }

[[depends-on]]
picowi = "~0.1.0-dev"

[[pins]]
picowi = { path='../sdpcm/picowi' }

[[depends-on]]
enet_picowi = "~0.1.0-dev"

[[pins]]
enet_picowi = { path='../sdpcm/enet_picowi' }

[[depends-on]]
light_tasking_rp2040 = ">15.3.0"

[configuration.values]
light_tasking_rp2040.Max_CPUs = 2
enet.Default_Random = "null"
rp2040_hal.Use_Startup = false
rp2040_hal.Interrupts = "bb_runtimes"
light_tasking_rp2040.board = "rpi_pico"
light_tasking_rp2040.Interrupt_Stack_Size = 2048

[[depends-on]]
rp2040_hal = ">2.6.0"

The good news is that the light_tasking_rp2040 runtime is correctly configured in wohnzimmer_lampe.gpr and your alire.toml.

The strange thing is that the style warnings for runtime files don’t make sense for the light_tasking_rp2040 runtime. For example, there’s this warning about a line being too long:

s-bbthre.ads:287:80: (style) this line is too long: 81 [-gnatyM]

But line 287 is not 81 characters long; it’s much shorter. This is line 287 of s-bbthre.ads for runtime version you’re using (version 16.0.0 according to the Alire log):

   --  tasking operation. The operations to perform are:

It’s feels like there’s another runtime being built that’s clashing with the light_tasking_rp2040 runtime that you are trying to use. I can’t see any dependencies on any other runtime crates, but perhaps one of your dependent GPR files is trying to select another runtime.

Could you try the following:

  1. Try a clean build: do alr clean followed by alr build --development
  2. Check that your pinned dependencies (e.g. sdpcm, picowi, and enet_picowi) do not set any runtime in their GPR files. That is, the only GPR file that should have a line like for Runtime ("Ada") use ... is yiour top-level wohnzimmer_lampe.gpr.

Also run alr with --tree to get a dependency list of all crates! Maybe there is a crate that pulls a different runtime

This is the output of “alr with --tree”

julius@toybox ~/Programmieren/wohnzimmer_lampe $ alr with --tree 
wohnzimmer_lampe=0.1.0-dev
├── enet_picowi=0.1.0-dev (~0.1.0-dev)
│   ├── enet=1.1.0 (^1.1)
│   ├── light_tasking_rp2040=16.0.0 (*)
│   │   └── gnat_arm_elf=16.1.0 (^16)
│   └── picowi=0.1.0-dev (~0.1.0-dev)
│       ├── pico_bsp=2.2.0 (^2.2.0)
│       │   └── rp2040_hal=2.7.1 (^2)
│       │       ├── atomic=1.1.0 (^1)
│       │       ├── cortex_m=1.1.0 (^1)
│       │       │   ├── gnat_arm_elf=16.1.0 (>=12)
│       │       │   └── hal=1.0.0 (~0.3 | ^1.0.0)
│       │       ├── gnat_arm_elf=16.1.0 (>=14 & /=15.1.2)
│       │       ├── hal=1.0.0 (^1)
│       │       └── usb_embedded=1.0.1 (^1)
│       │           ├── bbqueue=1.0.0 (^1.0.0)
│       │           │   ├── atomic=1.1.0 (^1.0.0)
│       │           │   └── gnat=16.1.0 (gnat_arm_elf) (>=10)
│       │           └── hal=1.0.0 (^1.0.0)
│       ├── rp2040_hal=2.7.1 (^2.6.0)
│       │   └── ...
│       └── sdpcm=0.1.0-dev (*)
├── light_tasking_rp2040=16.0.0 (>15.3.0)
│   └── ...
├── pico_bsp=2.2.0 (^2.2.0)
│   └── ...
├── picowi=0.1.0-dev (~0.1.0-dev)
│   └── ...
├── rp2040_hal=2.7.1 (>2.6.0)
│   └── ...
├── sdpcm=0.1.0-dev (~0.1.0-dev)
└── xoshiro=2.0.0 (^2.0.0)

But thx to damaki’s remark about the style warning i think i found the problem.

I did call earlier “alr exec gnatformat” , i did just check the alire folder with the sources of the runtime. It seems gnatformat also changed these. I deleted the whole folder, alr pulled it again and now the build output shows the errors and warnings of my code.

Thank you @damaki and @AdaOrbit !

Ahh, that makes sense. I guess gnatformat had formatted the sources of all projects in the dependency solution. Using the --no-subprojects switch with gnatformat should stop it from doing that.

Glad you were able to solve the problem!