This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: Mingw GDB build fails for M16C target
- From: Mahesh Basavaraj Shavari <Mahesh dot Shavari at kpitcummins dot com>
- To: <gdb at sourceware dot org>
- Cc: <kevinb at redhat dot com>
- Date: Wed, 29 Apr 2009 13:23:27 +0530
- Subject: Re: Mingw GDB build fails for M16C target
> Mahesh,
> Please try the patch below and let me know if it works for you.
Hi Kevin,
Thanks for you help.
The provided patch solves the issues mentioned earlier, but gives the
following new errors.
------------------------------------------------------------------------
--------------------------
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.20090327/sim/m32c -I../common
-I/home/mahesh/GDB/gdb-6.8/gdb-6.8.50.20090327/sim/m32c/../common
-I../../include
-I/home/mahesh/GDB/gdb-6.8/gdb-6.8.50.20090327/sim/m32c/../../include
-I../../bfd
-I/home/mahesh/GDB/gdb-6.8/gdb-6.8.50.20090327/sim/m32c/../../bfd
-I../../opcodes
-I/home/mahesh/GDB/gdb-6.8/gdb-6.8.50.20090327/sim/m32c/../../opcodes
-I../../intl -g -O2 -D__USE_MINGW_ACCESS
/home/mahesh/GDB/gdb-6.8/gdb-6.8.50.20090327/sim/m32c/mem.c
/home/mahesh/GDB/gdb-6.8/gdb-6.8.50.20090327/sim/m32c/mem.c:29:24:
sys/select.h: No such file or directory
/home/mahesh/GDB/gdb-6.8/gdb-6.8.50.20090327/sim/m32c/mem.c:30:21:
termios.h: No such file or directory
/home/mahesh/GDB/gdb-6.8/gdb-6.8.50.20090327/sim/m32c/mem.c: In function
`stdin_ready':
/home/mahesh/GDB/gdb-6.8/gdb-6.8.50.20090327/sim/m32c/mem.c:383: error:
`fd_set' undeclared (first use in this function)
/home/mahesh/GDB/gdb-6.8/gdb-6.8.50.20090327/sim/m32c/mem.c:383: error:
(Each undeclared identifier is reported only once
/home/mahesh/GDB/gdb-6.8/gdb-6.8.50.20090327/sim/m32c/mem.c:383: error:
for each function it appears in.)
/home/mahesh/GDB/gdb-6.8/gdb-6.8.50.20090327/sim/m32c/mem.c:383: error:
syntax error before "ifd"
/home/mahesh/GDB/gdb-6.8/gdb-6.8.50.20090327/sim/m32c/mem.c:389:
warning: implicit declaration of function `FD_ZERO'
/home/mahesh/GDB/gdb-6.8/gdb-6.8.50.20090327/sim/m32c/mem.c:389: error:
`ifd' undeclared (first use in this function)
/home/mahesh/GDB/gdb-6.8/gdb-6.8.50.20090327/sim/m32c/mem.c:390:
warning: implicit declaration of function `FD_SET'
/home/mahesh/GDB/gdb-6.8/gdb-6.8.50.20090327/sim/m32c/mem.c:391:
warning: implicit declaration of function `select'
/home/mahesh/GDB/gdb-6.8/gdb-6.8.50.20090327/sim/m32c/mem.c: In function
`m32c_sim_restore_console':
/home/mahesh/GDB/gdb-6.8/gdb-6.8.50.20090327/sim/m32c/mem.c:399:
warning: implicit declaration of function `tcsetattr'
/home/mahesh/GDB/gdb-6.8/gdb-6.8.50.20090327/sim/m32c/mem.c:399: error:
`TCSANOW' undeclared (first use in this function)
/home/mahesh/GDB/gdb-6.8/gdb-6.8.50.20090327/sim/m32c/mem.c: In function
`mem_get_byte':
/home/mahesh/GDB/gdb-6.8/gdb-6.8.50.20090327/sim/m32c/mem.c:416: error:
storage size of 'attr' isn't known
/home/mahesh/GDB/gdb-6.8/gdb-6.8.50.20090327/sim/m32c/mem.c:417:
warning: implicit declaration of function `tcgetattr'
/home/mahesh/GDB/gdb-6.8/gdb-6.8.50.20090327/sim/m32c/mem.c:420: error:
`ICANON' undeclared (first use in this function)
/home/mahesh/GDB/gdb-6.8/gdb-6.8.50.20090327/sim/m32c/mem.c:420: error:
`ECHO' undeclared (first use in this function)
/home/mahesh/GDB/gdb-6.8/gdb-6.8.50.20090327/sim/m32c/mem.c:420: error:
`ECHOE' undeclared (first use in this function)
/home/mahesh/GDB/gdb-6.8/gdb-6.8.50.20090327/sim/m32c/mem.c:421: error:
`TCSANOW' undeclared (first use in this function)
/home/mahesh/GDB/gdb-6.8/gdb-6.8.50.20090327/sim/m32c/mem.c:416:
warning: unused variable `attr'
/home/mahesh/GDB/gdb-6.8/gdb-6.8.50.20090327/sim/m32c/mem.c: At top
level:
/home/mahesh/GDB/gdb-6.8/gdb-6.8.50.20090327/sim/m32c/mem.c:378: error:
storage size of `oattr' isn't known
make[3]: *** [mem.o] Error 1
make[3]: Leaving directory
`/home/mahesh/GDB/gdb-6.8/build/m32c-elfbld6.8.50.20090327/sim/m32c'
make[2]: *** [all] Error 1
make[2]: Leaving directory
`/home/mahesh/GDB/gdb-6.8/build/m32c-elfbld6.8.50.20090327/sim'
make[1]: *** [all-sim] Error 2
make[1]: Leaving directory
`/home/mahesh/GDB/gdb-6.8/build/m32c-elfbld6.8.50.20090327'
make: *** [all] Error 2
------------------------------------------------------------------------
-------------------
Thanking you in anticipation.
Regards,
Mahesh Shavari.