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

Sergio Durigan Junior sergiodj@redhat.com
Wed Aug 29 20:42:00 GMT 2018


On Wednesday, August 29 2018, I wrote:

> On Wednesday, August 29 2018, gdb-buildbot wrote:
>
>> Unfortunately it seems that there is a breakage on GDB.
>>
>> Commit title: 'Update gnulib to current upstream master'
>> Revision: 7a6dbc2fdb2323c35e981f93236f323e9d7c0b24
>
> I'm investigating this.

Hello, David,

After my last commit, which updated GDB's local copy of gnulib, I'm
seeing a breakage on the RHEL 7.1 s390x builder (see the rest of the
quoted message).  Unfortunately I don't have easy access to a similar
machine, so I would like to know if:

1) You could help me with investigating this a bit more, or

2) You could grant me temporary access to the machine so I can
investigate the problem.

I would like to know a few things:

a) Why is GCC apparently not using the C99 mode when compiling gnulib.
This is causing the "‘for’ loop initial declarations are only allowed in
C99 mode" error.

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.

Thanks in advance,

>> You can find more details below:
>>
>> +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
>>
>> Buildslave:
>> 	rhel-7_1-s390x-1
>>
>> Full Build URL:
>> 	<http://gdb-build.sergiodj.net/builders/RHEL-s390x-m64/builds/8193>
>>
>> Commit(s) tested:
>> 	7a6dbc2fdb2323c35e981f93236f323e9d7c0b24
>>
>> Author(s) (in the same order as the commits):
>> 	Sergio Durigan Junior <sergiodj@redhat.com>
>>
>> Subject:
>> 	Update gnulib to current upstream master
>>
>> Testsuite log (gdb.sum and gdb.log) URL(s):
>> 	<http://gdb-build.sergiodj.net/results/RHEL-s390x-m64/7a/7a6dbc2fdb2323c35e981f93236f323e9d7c0b24/>
>>
>> *** Failed to compiled GDB.  ***
>> ============================
>>
>> +++ The full log is too big to be posted here.
>> +++ These are the last 100 lines of it.
>>
>> make[6]: Entering directory `/home/dje/rhel-7_1-s390x-1/rhel-s390x/build/gdb/build-gnulib/import'
>>   GEN      alloca.h
>>   GEN      dirent.h
>>   GEN      glob.h
>>   GEN      fcntl.h
>>   GEN      inttypes.h
>>   GEN      limits.h
>>   GEN      math.h
>>   GEN      signal.h
>>   GEN      stdint.h
>>   GEN      stdio.h
>>   GEN      stdlib.h
>>   GEN      string.h
>>   GEN      sys/stat.h
>>   GEN      sys/time.h
>>   GEN      time.h
>>   GEN      sys/types.h
>>   GEN      unistd.h
>>   GEN      wchar.h
>>   GEN      wctype.h
>> make  all-recursive
>> make[7]: Entering directory `/home/dje/rhel-7_1-s390x-1/rhel-s390x/build/gdb/build-gnulib/import'
>> make[8]: Entering directory `/home/dje/rhel-7_1-s390x-1/rhel-s390x/build/gdb/build-gnulib/import'
>>   CC       cloexec.o
>>   CC       dirname-lgpl.o
>>   CC       basename-lgpl.o
>>   CC       stripslash.o
>>   CC       exitfail.o
>>   CC       fd-hook.o
>>   CC       fd-safer-flag.o
>>   CC       dup-safer-flag.o
>>   CC       filenamecat-lgpl.o
>>   CC       getprogname.o
>>   CC       hard-locale.o
>>   CC       malloca.o
>>   CC       localcharset.o
>>   CC       math.o
>>   CC       openat-die.o
>>   CC       save-cwd.o
>>   CC       stat-time.o
>>   CC       strnlen1.o
>>   CC       tempname.o
>>   CC       unistd.o
>>   CC       dup-safer.o
>>   CC       fd-safer.o
>>   CC       pipe-safer.o
>>   CC       wctype-h.o
>>   CC       chdir-long.o
>>   CC       fcntl.o
>>   CC       glob.o
>>   CC       glob_pattern_p.o
>>   CC       globfree.o
>>   CC       localtime-buffer.o
>>   CC       mbrtowc.o
>>   CC       openat-proc.o
>>   CC       malloc/scratch_buffer_grow.o
>> In file included from ../../../../binutils-gdb/gdb/gnulib/import/scratch_buffer.h:9:0,
>>                  from ../../../../binutils-gdb/gdb/gnulib/import/glob.c:87:
>> ../../../../binutils-gdb/gdb/gnulib/import/malloc/scratch_buffer.h:69:3: error: unknown type name max_align_t
>>    max_align_t __space[(1023 + sizeof (max_align_t)) / sizeof (max_align_t)];
>>    ^
>> ../../../../binutils-gdb/gdb/gnulib/import/malloc/scratch_buffer.h:69:39: error: max_align_t undeclared here (not in a function)
>>    max_align_t __space[(1023 + sizeof (max_align_t)) / sizeof (max_align_t)];
>>                                        ^
>> ../../../../binutils-gdb/gdb/gnulib/import/glob.c: In function glob_in_dir:
>> ../../../../binutils-gdb/gdb/gnulib/import/glob.c:1413:15: error: for loop initial declarations are only allowed in C99 mode
>>                for (size_t i = 0; i < cur; ++i)
>>                ^
>> ../../../../binutils-gdb/gdb/gnulib/import/glob.c:1413:15: note: use option -std=c99 or -std=gnu99 to compile your code
>> ../../../../binutils-gdb/gdb/gnulib/import/glob.c:1438:15: error: for loop initial declarations are only allowed in C99 mode
>>                for (size_t i = 0; i < cur; ++i)
>>                ^
>> make[8]: *** [glob.o] Error 1
>> make[8]: *** Waiting for unfinished jobs....
>> In file included from ../../../../binutils-gdb/gdb/gnulib/import/scratch_buffer.h:9:0,
>>                  from ../../../../binutils-gdb/gdb/gnulib/import/malloc/scratch_buffer_grow.c:23:
>> ../../../../binutils-gdb/gdb/gnulib/import/malloc/scratch_buffer.h:69:3: error: unknown type name max_align_t
>>    max_align_t __space[(1023 + sizeof (max_align_t)) / sizeof (max_align_t)];
>>    ^
>> ../../../../binutils-gdb/gdb/gnulib/import/malloc/scratch_buffer.h:69:39: error: max_align_t undeclared here (not in a function)
>>    max_align_t __space[(1023 + sizeof (max_align_t)) / sizeof (max_align_t)];
>>                                        ^
>> make[8]: *** [malloc/scratch_buffer_grow.o] Error 1
>> make[8]: Leaving directory `/home/dje/rhel-7_1-s390x-1/rhel-s390x/build/gdb/build-gnulib/import'
>> make[7]: *** [all-recursive] Error 1
>> make[6]: make[7]: Leaving directory `/home/dje/rhel-7_1-s390x-1/rhel-s390x/build/gdb/build-gnulib/import'
>> *** [all] Error 2
>> make[6]: Leaving directory `/home/dje/rhel-7_1-s390x-1/rhel-s390x/build/gdb/build-gnulib/import'
>> make[5]: *** [subdir_do] Error 1
>> make[5]: Leaving directory `/home/dje/rhel-7_1-s390x-1/rhel-s390x/build/gdb/build-gnulib'
>> make[4]: *** [all] Error 2
>> make[4]: Leaving directory `/home/dje/rhel-7_1-s390x-1/rhel-s390x/build/gdb/build-gnulib'
>> make[3]: *** [subdir_do] Error 1
>> make[3]: Leaving directory `/home/dje/rhel-7_1-s390x-1/rhel-s390x/build/gdb'
>> make[2]: *** [all-lib] Error 2
>> make[2]: Leaving directory `/home/dje/rhel-7_1-s390x-1/rhel-s390x/build/gdb'
>> make[1]: *** [all-gdb] Error 2
>> make[1]: Leaving directory `/home/dje/rhel-7_1-s390x-1/rhel-s390x/build'
>> make: *** [all] Error 2
>> ============================
>
> -- 
> Sergio
> GPG key ID: 237A 54B1 0287 28BF 00EF  31F4 D0EB 7628 65FC 5E36
> Please send encrypted e-mail if possible
> http://sergiodj.net/

-- 
Sergio
GPG key ID: 237A 54B1 0287 28BF 00EF  31F4 D0EB 7628 65FC 5E36
Please send encrypted e-mail if possible
http://sergiodj.net/



More information about the Gdb-patches mailing list