☠ Buildbot (Sourceware): binutils-gdb - failed test (failure) (master)

Alan Modra amodra@gmail.com
Thu Sep 25 13:31:04 GMT 2025


On Thu, Sep 25, 2025 at 01:36:53PM +0100, Nick Alcock via Binutils wrote:
> On 25 Sep 2025, builder@sourceware.org told this:
> 
> > A new failure has been detected on builder binutils-debian-armhf while building binutils-gdb.
> 
> Curious.
> 
> int
> unsigned int
> int [3]
> int [3][5]
> int [3][5][9]
> int [1]
> int [1][2]
> int
> unsigned int
> int [3]
> int [3][5]
> int [3][5][9]
> int [1]
> int [1][2]
> 
> regexp_diff match failure
> regexp "^int \[9\]$"
> line   "int [3]"
> 
> Hm. Looks like a genuine bug, iff this buildbot is using GCC < 14.2.0.
> (How can I tell?)

I see the following with the cross-compilers I have installed.

aarch64-linux-gnu  +FAIL: libctf-lookup/multidim-array
alpha-linux-gnu  +FAIL: libctf-lookup/multidim-array
arm-linux-gnueabi  +FAIL: libctf-lookup/multidim-array
hppa-linux-gnu  +FAIL: libctf-lookup/multidim-array
ia64-linux-gnu  +FAIL: libctf-lookup/multidim-array
m68k-linux-gnu  +FAIL: libctf-lookup/multidim-array
microblaze-linux-gnu  +FAIL: libctf-lookup/multidim-array
mips64-linux-gnuabi64  +FAIL: libctf-lookup/multidim-array
mips-linux-gnu  +FAIL: libctf-lookup/multidim-array
powerpc-linux-gnu  +FAIL: libctf-lookup/multidim-array
riscv64-linux-gnu  +FAIL: libctf-lookup/multidim-array
s390-linux-gnu  +FAIL: libctf-lookup/multidim-array
s390x-linux-gnu  +FAIL: libctf-lookup/multidim-array
sh4-linux-gnu  +FAIL: libctf-lookup/multidim-array
sparc64-linux-gnu  +FAIL: libctf-lookup/multidim-array

Using an older version of gcc should not result in a FAIL.  We are
testing binutils here, not gcc.  

The following works for me, but I'll leave this to you to commit
since I have no idea about which versions of gcc we should be
checking.  The test gets more complicated if bug fixes are backported.

Hmm, can you generate the ctf data from asm?

diff --git a/libctf/testsuite/libctf-lookup/multidim-array-ctf.c b/libctf/testsuite/libctf-lookup/multidim-array-ctf.c
index 05b6ebe4fdd..6876571cf93 100644
--- a/libctf/testsuite/libctf-lookup/multidim-array-ctf.c
+++ b/libctf/testsuite/libctf-lookup/multidim-array-ctf.c
@@ -1,3 +1,9 @@
+#include "ansidecl.h"
+#if GCC_VERSION > 14002
 int a[3][5][9];
 int b[1][2];
-
+#else
+/* Older gcc got it wrong.  */
+int a[9][5][3];
+int b[2][1];
+#endif

-- 
Alan Modra


More information about the Binutils mailing list