Mingw GDB build fails for M16C target

Mahesh Basavaraj Shavari
2009-04-25T05:35:42Z

Hi,
I am trying to build a Mingw GDB for M16CM32C target using the
following source:
gdb-6.8.50.20090327

During make, I get the following error.
------------------------------------------------------------------------
-----------
mv version.c-tmp version.c
i386-pc-mingw32msvc-gcc -c -DHAVE_CONFIG_H -DPROFILE=1
-DWITH_PROFILE=-1 -DDEFAULT_INLINE=0 -Wall -DTIMER_A
-D__USE_MINGW_FSEEK -I.
-I/home/mahesh/GDB/gdb-6.8/gdb-6.8.50.20080811/sim/m32c -I../common
-I/home/mahesh/GDB/gdb-6.8/gdb-6.8.50.20080811/sim/m32c/../common
-I../../include
-I/home/mahesh/GDB/gdb-6.8/gdb-6.8.50.20080811/sim/m32c/../../include
-I../../bfd
-I/home/mahesh/GDB/gdb-6.8/gdb-6.8.50.20080811/sim/m32c/../../bfd
-I../../opcodes
-I/home/mahesh/GDB/gdb-6.8/gdb-6.8.50.20080811/sim/m32c/../../opcodes
-I../../intl -g -O2 -D__USE_MINGW_ACCESS version.c
i386-pc-mingw32msvc-gcc -c -DHAVE_CONFIG_H -DPROFILE=1
-DWITH_PROFILE=-1 -DDEFAULT_INLINE=0 -Wall -DTIMER_A
-D__USE_MINGW_FSEEK -I.
-I/home/mahesh/GDB/gdb-6.8/gdb-6.8.50.20080811/sim/m32c -I../common
-I/home/mahesh/GDB/gdb-6.8/gdb-6.8.50.20080811/sim/m32c/../common
-I../../include
-I/home/mahesh/GDB/gdb-6.8/gdb-6.8.50.20080811/sim/m32c/../../include
-I../../bfd
-I/home/mahesh/GDB/gdb-6.8/gdb-6.8.50.20080811/sim/m32c/../../bfd
-I../../opcodes
-I/home/mahesh/GDB/gdb-6.8/gdb-6.8.50.20080811/sim/m32c/../../opcodes
-I../../intl -g -O2 -D__USE_MINGW_ACCESS
/home/mahesh/GDB/gdb-6.8/gdb-6.8.50.20080811/sim/m32c/gdb-if.c
/home/mahesh/GDB/gdb-6.8/gdb-6.8.50.20080811/sim/m32c/gdb-if.c: In
function `m32c_signal_to_host':
/home/mahesh/GDB/gdb-6.8/gdb-6.8.50.20080811/sim/m32c/gdb-if.c:541:
error: `SIGTRAP' undeclared (first use in this function)
/home/mahesh/GDB/gdb-6.8/gdb-6.8.50.20080811/sim/m32c/gdb-if.c:541:
error: (Each undeclared identifier is reported only once
/home/mahesh/GDB/gdb-6.8/gdb-6.8.50.20080811/sim/m32c/gdb-if.c:541:
error: for each function it appears in.)
make[3]: *** [gdb-if.o] Error 1
make[3]: Leaving directory
`/home/mahesh/GDB/gdb-6.8/build/m32c-elfbld6.8.50.20080811/sim/m32c'
make[2]: *** [all] Error 1
make[2]: Leaving directory
`/home/mahesh/GDB/gdb-6.8/build/m32c-elfbld6.8.50.20080811/sim'
make[1]: *** [all-sim] Error 2
make[1]: Leaving directory
`/home/mahesh/GDB/gdb-6.8/build/m32c-elfbld6.8.50.20080811'
make: *** [all] Error 2
------------------------------------------------------------------------
-----------

M16C target GNU Linux toolchain was built using the following sources.
Gcc-4.3.3
Binutils-2.19
Newlib-1.16.0

The native mingw toolchain (i386-pc-mingw32msvc-gcc) for i386 was built
using the following source.
Gcc version 3.4.5

Any help would be highly appreciated.
Thanking you in anticipation.

Regards,
Mahesh Shavari.

------------------------------------------------------------------------
-----------