<div dir="auto">PowerPC failed to build on rtems7 and the next bump should fix it.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">---------- Forwarded message ---------<br>From: <strong class="gmail_sendername" dir="auto">Joel Sherrill</strong> <span dir="auto"><<a href="mailto:joel@rtems.org">joel@rtems.org</a>></span><br>Date: Thu, May 6, 2021, 10:24 AM<br>Subject: Re: PowerPC Disassembler Fails to Compile on CentOS 7<br>To: H.J. Lu <<a href="mailto:hjl.tools@gmail.com">hjl.tools@gmail.com</a>><br>Cc: binutils <<a href="mailto:binutils@sourceware.org">binutils@sourceware.org</a>><br></div><br><br><div dir="auto"><div>Thanks. I guess the next bump in our bleeding edge tools will catch this fix.<br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, May 6, 2021, 10:19 AM H.J. Lu <<a href="mailto:hjl.tools@gmail.com" target="_blank" rel="noreferrer">hjl.tools@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Thu, May 6, 2021 at 8:14 AM Joel Sherrill <<a href="mailto:joel@rtems.org" rel="noreferrer noreferrer" target="_blank">joel@rtems.org</a>> wrote:<br>
><br>
> Hi<br>
><br>
> binutils hash ed29efb which should be near the head appears to be assuming<br>
> that a newer GCC is being used which defaults to something else. The host<br>
> GCC reports:<br>
><br>
> gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-44)<br>
><br>
> And the compilation fails with this:<br>
><br>
> libtool: compile:  gcc -O2 -g -pipe<br>
> -I/home/joel/rtems-cron-7/rtems-source-builder/rtems/build/tmp/sb-1001/7/rtems-powerpc/home/joel/rtems-cron-7/tools/7/include<br>
> -DHAVE_CONFIG_H -I. -I../../sourceware-mirror-binutils-gdb-ed29efb/opcodes<br>
> -I. -I../../sourceware-mirror-binutils-gdb-ed29efb/opcodes -I../bfd<br>
> -I../../sourceware-mirror-binutils-gdb-ed29efb/opcodes/../include<br>
> -I../../sourceware-mirror-binutils-gdb-ed29efb/opcodes/../bfd -W -Wall<br>
> -Wstrict-prototypes -Wmissing-prototypes -Wshadow -g -O2 -MT ppc-opc.lo -MD<br>
> -MP -MF .deps/ppc-opc.Tpo -c<br>
> ../../sourceware-mirror-binutils-gdb-ed29efb/opcodes/ppc-opc.c -o ppc-opc.o<br>
> mv -f .deps/disassemble.Tpo .deps/disassemble.Plo<br>
> ../../sourceware-mirror-binutils-gdb-ed29efb/opcodes/ppc-dis.c: In function<br>
> 'print_insn_powerpc':<br>
> mv -f .deps/dis-buf.Tpo .deps/dis-buf.Plo<br>
> ../../sourceware-mirror-binutils-gdb-ed29efb/opcodes/ppc-dis.c:1071:8:<br>
> error: 'for' loop initial declarations are only allowed in C99 mode<br>
>         for (int i = 0; i < 2; i++)<br>
>         ^<br>
> ../../sourceware-mirror-binutils-gdb-ed29efb/opcodes/ppc-dis.c:1071:8:<br>
> note: use option -std=c99 or -std=gnu99 to compile your code<br>
><br>
> Should the code not declare i in the for loop of the compiler arguments add<br>
> C99?<br>
><br>
> --joel<br>
<br>
Should be fixed by:<br>
<br>
commit a8d6316b67d52eaa1b7b311084ddff71a66f7cc0<br>
Author: Nick Clifton <<a href="mailto:nickc@redhat.com" rel="noreferrer noreferrer" target="_blank">nickc@redhat.com</a>><br>
Date:   Tue May 4 13:40:34 2021 +0100<br>
<br>
    Replace AC_PROG_CC with AC_PROG_CC_C99 in top level configure file.<br>
<br>
    2021-05-04  Nick Clifton  <<a href="mailto:nickc@redhat.com" rel="noreferrer noreferrer" target="_blank">nickc@redhat.com</a>><br>
<br>
            * <a href="http://configure.ac" rel="noreferrer noreferrer noreferrer" target="_blank">configure.ac</a> (AC_PROG_CC): Replace with AC_PROG_CC_C99.<br>
            * configure: Regenerate.<br>
<br>
-- <br>
H.J.<br>
</blockquote></div></div></div>
</div>