This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Failed to build on gcc-3.4.5 (mingw special)


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  <monaka@monami-software.com>

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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]