Failed to build on gcc-3.4.5 (mingw special)

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Failed to build on gcc-3.4.5 (mingw special)

Masaki MURANAKA
Hello,

I couldn't build GDB mainline using gcc-3.4.5 (mingw special).
Error message is like this.

i686-pc-mingw32-gcc -c -O2    -I. -I../../src/gdb -I../../src/gdb/
config -DLOCALEDIR="\"/pizza/share/locale\"" -DHAVE_CONFIG_H -I../../
src/gdb/../include/opcode -I../../src/gdb/../readline/.. -I../bfd -
I../../src/gdb/../bfd -I../../src/gdb/../include   -DMI_OUT=1  -Wall -
Wdeclaration-after-statement -Wpointer-arith -Wformat-nonliteral -Wno-
unused -Wno-switch -Werror ../../src/gdb/ser-e7kpc.c
../../src/gdb/ser-e7kpc.c:129: warning: missing braces around  
initializer
../../src/gdb/ser-e7kpc.c:129: warning: (near initialization for `sigs
[4]')
make[2]: *** [ser-e7kpc.o] Error 1


It seems this issue depends on the conpiler version
because I succeeded to build on my linux box installed
gcc-3.3.6.

Patch is follows:
- - - - - - - - - -
2007-03-21  Masaki MURANAKA  <[hidden email]>

ser-e7kpc.c:
         (sigs):  Add missing braces.
- - - - - - - - - -
Index: ser-e7kpc.c
===================================================================
RCS file: /cvs/src/src/gdb/ser-e7kpc.c,v
retrieving revision 1.14
diff -u -p -r1.14 ser-e7kpc.c
--- ser-e7kpc.c 9 Jan 2007 17:58:58 -0000       1.14
+++ ser-e7kpc.c 21 Mar 2007 03:06:44 -0000
@@ -125,7 +125,9 @@ sigs[] =
      0x17, 0xdc000
    }
    ,
-    0
+  {
+    0x00, 0x00000
+  }
};
#define get_ds_base() 0



--
Masaki Muranaka
Monami software


Reply | Threaded
Open this post in threaded view
|

Re: Failed to build on gcc-3.4.5 (mingw special)

Daniel Jacobowitz-2
On Wed, Mar 21, 2007 at 12:08:14PM +0900, Masaki Muranaka wrote:
> ../../src/gdb/ser-e7kpc.c:129: warning: missing braces around initializer
> ../../src/gdb/ser-e7kpc.c:129: warning: (near initialization for `sigs[4]')
> make[2]: *** [ser-e7kpc.o] Error 1

Thanks for reporting this.  Instead of fixing it, I just posted a
patch which will delete ser-e7kpc.c.

--
Daniel Jacobowitz
CodeSourcery