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

John Paul Adrian Glaubitz <[email protected]>
Newsgroups gmane.linux.debian.devel.gcc
Message-ID <178625715042.2905029.15865968511024452654.reportbug__47677.2633542836$1786257328$gmane$org@login1.physik.fu-berlin.de>
Source: gcc-13
Version: 13.4.0-11
Severity: normal
X-Debbugs-Cc: [email protected]
User: [email protected]
Usertags: alpha

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

--
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer
`. `'   Physicist
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.