This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: Breakage on builder RHEL-s390x-m64, revision 7a6dbc2fdb2323c35e981f93236f323e9d7c0b24
- From: Jonah Graham <jonah at kichwacoders dot com>
- To: Tom Tromey <tom at tromey dot com>
- Cc: sergiodj at redhat dot com, gdb-patches at sourceware dot org, dje dot gcc at gmail dot com
- Date: Mon, 3 Sep 2018 11:04:10 +0100
- Subject: Re: Breakage on builder RHEL-s390x-m64, revision 7a6dbc2fdb2323c35e981f93236f323e9d7c0b24
- References: <7a6dbc2fdb2323c35e981f93236f323e9d7c0b24-master-breakage@gdb-build> <E1fv3NX-0006MH-Tf@kwanyin.sergiodj.net> <87tvndm8je.fsf@redhat.com> <87a7p4lx9u.fsf@redhat.com> <87bm9kx3ht.fsf@tromey.com> <8736uwlura.fsf@redhat.com> <8736uwwucm.fsf@tromey.com> <87pny0k10s.fsf@redhat.com> <878t4mrssl.fsf@tromey.com>
> 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'