#1143972 gcc-13: Checking ALIHASH fails, prevents Ada bootstrap on alpha

Package:
src:gcc-13
Source:
src:gcc-13
Submitter:
John Paul Adrian Glaubitz
Date:
2026-09-04 07:39:03 UTC
Severity:
normal
#1143972#5
Date:
2026-08-09 06:32:30 UTC
From:
To:
Hello,

on alpha, the gcc-13 build fails because the gnat compiler in the archive
is broken. When using an older version of gcc-13 with a working gnat version,
the build succeeds but fails when checking ALIHASH:

echo "checking ALIHASH ..."; \
p=gnat-13-alpha-linux-gnu; \
old=$(apt-cache show $p | awk '/^Provides/ {print $2}'); \
new=gnat-13-$(debian/ada/libgnat_alihash | sed 's/.*=//'); \
if [ $old = $new ]; then \
  echo "  -> matching alihash ($old)"; \
else \
  echo "  -> alihash mismatch: $old (installed), $new (built)"; \
  if [ xyes = xyes ]; then \
    exit 1; \
  fi; \
fi
checking ALIHASH ...
/bin/bash: line 5: [: too many arguments
  -> alihash mismatch: gnat-13-119f978a
gnat-13-97e8392b (installed), gnat-13-119f978a (built)
make[1]: *** [debian/rules2:1400: stamps/05-build-stamp] Error 1
make[1]: Leaving directory '/home/glaubitz/gcc-13-new/gcc-13-13.4.0'
make: *** [debian/rules:53: build-arch] Error 2

I have no idea what that hash value exactly means, but the bash syntax error
during the check looks suspicious, so I decided to report a bug.

FWIW, the build fully succeeds when disabling the check. I used this, to build
gcc-13_13.4.0-11 for alpha and then tried a fresh local build where again the
ALIHASH check failed.

Adrian

#1143972#10
Date:
2026-08-10 13:34:28 UTC
From:
To:
that is fixed in the VCS.  I don't plan any updates before the 13.5.
release.

#1143972#15
Date:
2026-09-04 07:38:01 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
gcc-13, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1143972@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Matthias Klose <doko@debian.org> (supplier of updated gcc-13 package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Fri, 04 Sep 2026 09:11:19 +0200
Source: gcc-13
Architecture: source
Version: 13.4.0-12
Distribution: unstable
Urgency: medium
Maintainer: Debian GCC Maintainers <debian-gcc@lists.debian.org>
Changed-By: Matthias Klose <doko@debian.org>
Closes: 1143972
Changes:
 gcc-13 (13.4.0-12) unstable; urgency=medium
 .
   * GCC 13.5.0 release candidate.
   * Update to git 20260904 from the gcc-13 branch.
     - Fix PR target/120645 (Darwin), PR middle-end/127098 (AVR),
       PR tree-optimization/126601, PR tree-optimization/126564,
       PR target/126484 (MIPS), PR c++/116960, PR c++/119303,
       PR target/124629 (AArch64), PR tree-optimization/124627,
       PR tree-optimization/124130, PR tree-optimization/126464,
       PR tree-optimization/126464, PR target/126446, PR target/126446 (x86),
       PR tree-optimization/120201, PR target/125611 (x86),
       PR tree-optimization/125079, PR target/126429 (x86),
       PR tree-optimization/124151, PR target/67459 (SH), PR target/122948 (SH),
       PR target/125972 (S390), PR rtl-optimization/125173,
       PR target/125818 (AArch64), PR ipa/125699, PR tree-optimization/125774,
       PR middle-end/125621, PR tree-optimization/125025,
       PR tree-optimization/124868, PR tree-optimization/124132,
       PR ipa/123416, PR tree-optimization/120987, PR c++/126483, PR c++/126280,
       PR c++/123529, PR c++/98930, PR c++/121822, PR c++/121981, PR c++/118775,
       PR c++/116379, PR c++/125674, PR c++/124850, PR c++/65271,
       PR fortran/125866, PR fortran/126303, PR fortran/97592, PR fortran/125998,
       PR fortran/103367, PR fortran/103367, PR fortran/103367,
       PR fortran/106546, PR fortran/115260, PR preprocessor/125048,
       PR target/127024 (AVR), PR sanitizer/126307, PR libstdc++/120789,
       PR libstdc++/120789, PR libstdc++/127006, PR libstdc++/126849.
   * Fix typo for the alihash check. Closes: #1143972.
Checksums-Sha1:
 8f61015c12fa41f9b2c3f7d83c546b80c982d3dd 38918 gcc-13_13.4.0-12.dsc
 bad0550d88fda5a3e3acf84c2380f4b75c2a7926 727392 gcc-13_13.4.0-12.debian.tar.xz
 522ea87ef3cf200bf4b7ae6a174a8b2f3ba672e9 9916 gcc-13_13.4.0-12_source.buildinfo
Checksums-Sha256:
 72e97c298b350c8dcafaec76183e71175f4aadd524e7c4acd0dc25a5b87c28f8 38918 gcc-13_13.4.0-12.dsc
 d81899d5337ff62fd4232d17947d6a726666ad40b69c7faa910685f084674142 727392 gcc-13_13.4.0-12.debian.tar.xz
 32e3e3ae8f7c1b2870917f4d9643586f55fba56aba03fa779d3c66652fb95ff1 9916 gcc-13_13.4.0-12_source.buildinfo
Files:
 81359a594c6ff7313bc365a3cbb8316e 38918 devel optional gcc-13_13.4.0-12.dsc
 364c801d7c9562a7281f61db100795ef 727392 devel optional gcc-13_13.4.0-12.debian.tar.xz
 c9dfe598a1c403375c37991d520fc7bf 9916 devel optional gcc-13_13.4.0-12_source.buildinfo
-----BEGIN PGP SIGNATURE-----

iQJEBAEBCgAuFiEE1WVxuIqLuvFAv2PWvX6qYHePpvUFAmqab3kQHGRva29AZGVi
aWFuLm9yZwAKCRC9fqpgd4+m9WRDD/4+6zletlF2dRWwwb5el1RqZNudzAhOl0j2
C5Ct6oPE589DteDkmwViz1LS7dEPLeEq2h+8bXEb1hhhNUKQXgEoW3gnAAaHZG/n
KRcE72tXI4pAnwpJtFmI26qO5sSs5Z9HJB7Tjd8Vc+7gDrrc0d1t6x2S6bS2uX86
5D753o7KIx4D00iwNkVKZ5jTfOpMX0iP3k5k0kNlCynC9b3F9ucIHUVcImn3Kg2l
7fx11T6fAIljk14U6u7GYef1k7ZkySgc0wjcG0bx+v7voEEvfGYVF10Nggyh+GHb
oTvPnC3rnOnZeyIQAalXPmxHz4ydVMFs1BxEGtQ1J8biYPEehypc06jtUTOp8o8+
lxMdjVC78ZtYVhsANE/Vv7ewYMapHNP66VgjRV3seO3V4MxcupkC5KDwlxtvFRY1
GfxluW7R4BK5P8vRX1BKkHHu6dXt8m/zIeh8uPw0nNuEyx2IE9Uu6TTlkbQg56LU
JGPW7DtV+m04ViI2bSIxfyNUuxAXAuOQko/zD3cIQ/ELvPZZ6eg3N3jZWLs3ABy4
OkV97dYp6M3cJK9hQ92asvqEG8KKPgNTaSCGDKusLv7VZEfpJV+0eBZDXrY2dTq6
LsoF8e/+K9hu99pVieYp6MmCTrtfQcSsbAq7hF5EtdCxLJqxpDKKP2Z/d047SKUV
HQGJ0rE2Dw==
=a/Lp
-----END PGP SIGNATURE-----