Re: Breakage on builder RHEL-s390x-m64, revision 7a6dbc2fdb2323c35e981f93236f323e9d7c0b24

Jonah Graham
2018-09-03T10:04:55Z

> b) Is there a "stddef.h" file in the build dir? Does it declare
> "max_align_t"? This is causing the "unknown type name ‘max_align_t’"
> error.

Our daily build (for Eclipse CDT testing) of GDB's master has started
failing because of this issue too:
https://ci.eclipse.org/cdt/job/debug-tests-master-gdb-master/1666/console

The issue seems to be assuming max_align_t is available, but it is not
available unless compiling with c11 mode (or similar). As we are using
4.8.5 the default is still gnu90.

From our build:

00:03:54.417 gcc -DHAVE_CONFIG_H -I. -I../../../../gdb/gnulib/import
-I.. -g -O2 -MT malloc/scratch_buffer_grow.o -MD -MP -MF
$depbase.Tpo -c -o malloc/scratch_buffer_grow.o
../../../../gdb/gnulib/import/malloc/scratch_buffer_grow.c &&\
00:03:54.417 mv -f $depbase.Tpo $depbase.Po
00:03:54.440 In file included from
../../../../gdb/gnulib/import/scratch_buffer.h:9:0,
00:03:54.440 from
../../../../gdb/gnulib/import/malloc/scratch_buffer_grow.c:23:
00:03:54.440 ../../../../gdb/gnulib/import/malloc/scratch_buffer.h:69:3:
error: unknown type name ‘max_align_t’
00:03:54.440 max_align_t __space[(1023 + sizeof (max_align_t)) /
sizeof (max_align_t)];
00:03:54.440 ^
00:03:54.440 ../../../../gdb/gnulib/import/malloc/scratch_buffer.h:69:39:
error: ‘max_align_t’ undeclared here (not in a function)
00:03:54.440 max_align_t __space[(1023 + sizeof (max_align_t)) /
sizeof (max_align_t)];
00:03:54.440 ^
00:03:54.441 Makefile:1836: recipe for target
'malloc/scratch_buffer_grow.o' failed
00:03:54.441 make[8]: *** [malloc/scratch_buffer_grow.o] Error 1
00:03:54.441 make[8]: Leaving directory
'/jobs/genie.cdt/debug-tests-master-gdb-master/workspace/bin-utils/build/gdb/build-gnulib/import'