Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* Re: Mingw GDB build fails for M16C target
@ 2009-08-05 12:59 Mahesh Basavaraj Shavari
  2009-08-14  4:24 ` DJ Delorie
  0 siblings, 1 reply; 6+ messages in thread
From: Mahesh Basavaraj Shavari @ 2009-08-05 12:59 UTC (permalink / raw)
  To: gdb; +Cc: kevinb

Hi,

I have now built the MinGW gdb successfully but without simulator;
using option '--disable-sim'.

There is still following issue with simulator building:

>/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)

Any help would be highly appreciated.
Thank you.

Best regards,
Mahesh Shavari


^ permalink raw reply	[flat|nested] 6+ messages in thread
* Re: Mingw GDB build fails for M16C target
@ 2009-04-29  8:40 Mahesh Basavaraj Shavari
  0 siblings, 0 replies; 6+ messages in thread
From: Mahesh Basavaraj Shavari @ 2009-04-29  8:40 UTC (permalink / raw)
  To: gdb; +Cc: kevinb

> 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.


^ permalink raw reply	[flat|nested] 6+ messages in thread
* Mingw GDB build fails for M16C target
@ 2009-04-25 13:57 Mahesh Basavaraj Shavari
  2009-04-29  6:13 ` Kevin Buettner
  0 siblings, 1 reply; 6+ messages in thread
From: Mahesh Basavaraj Shavari @ 2009-04-25 13:57 UTC (permalink / raw)
  To: gdb

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.
 
------------------------------------------------------------------------
-----------


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2009-08-20 13:10 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-08-05 12:59 Mingw GDB build fails for M16C target Mahesh Basavaraj Shavari
2009-08-14  4:24 ` DJ Delorie
2009-08-20 14:32   ` Issue in MinGW GDB execution for M32C target Mahesh Basavaraj Shavari
  -- strict thread matches above, loose matches on Subject: below --
2009-04-29  8:40 Mingw GDB build fails for M16C target Mahesh Basavaraj Shavari
2009-04-25 13:57 Mahesh Basavaraj Shavari
2009-04-29  6:13 ` Kevin Buettner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox