From: paawan oza <paawan1982@yahoo.com>
To: gdb@sourceware.org
Subject: gdb cross compilation, error from gdb/tui module.... please help.
Date: Wed, 27 Oct 2010 15:36:00 -0000 [thread overview]
Message-ID: <877394.75835.qm@web112505.mail.gq1.yahoo.com> (raw)
Hi,
I am working on reversible debugging on arm....at the first step there are
couple of hurdles, please help.
-> I have donwload arm tool chain from
http://www.codesourcery.com/sgpp/lite/arm/portal/package3696/public/arm-none-linux-gnueabi/arm-2008q3-72-arm-none-linux-gnueabi-i686-pc-linux-gnu.tar.bz2
-> tried to compile gdb (at the first point it threw 'termcap library not
found')
-> so I cross compiled ncurses-5.5 and kept libraries along with other arm
libraries.
-> and gdb went on with more compilation stuffs and finally it threw following.
arm-none-linux-gnueabi-gcc -g -O2 -I. -I. -I./common -I./config
-DLOCALEDIR="\"/usr/local/share/locale\"" -DHAVE_CONFIG_H -I./../include/opcode
-I./../opcodes/.. -I./../readline/.. -I../bfd -I./../bfd -I./../include
-I../libdecnumber -I./../libdecnumber -I./gnulib -Ignulib -DMI_OUT=1 -DTUI=1
-Wall -Wdeclaration-after-statement -Wpointer-arith -Wformat-nonliteral
-Wno-pointer-sign -Wno-unused -Wunused-value -Wunused-function -Wno-switch
-Wno-char-subscripts -c -o mi-getopt.o -MT mi-getopt.o -MMD -MP -MF
.deps/mi-getopt.Tpo ./mi/mi-getopt.c
arm-none-linux-gnueabi-gcc -g -O2 -I. -I. -I./common -I./config
-DLOCALEDIR="\"/usr/local/share/locale\"" -DHAVE_CONFIG_H -I./../include/opcode
-I./../opcodes/.. -I./../readline/.. -I../bfd -I./../bfd -I./../include
-I../libdecnumber -I./../libdecnumber -I./gnulib -Ignulib -DMI_OUT=1 -DTUI=1
-Wall -Wdeclaration-after-statement -Wpointer-arith -Wformat-nonliteral
-Wno-pointer-sign -Wno-unused -Wunused-value -Wunused-function -Wno-switch
-Wno-char-subscripts -c -o tui-command.o -MT tui-command.o -MMD -MP -MF
.deps/tui-command.Tpo ./tui/tui-command.c
In file included from ./tui/tui-command.c:26:
./tui/tui-data.h:38: error: expected specifier-qualifier-list before 'WINDOW'
In file included from ./tui/tui-command.c:27:
./tui/tui-win.h:40: error: expected '=', ',', ';', 'asm' or '__attribute__'
before 'tui_border_ulcorner'
./tui/tui-win.h:41: error: expected '=', ',', ';', 'asm' or '__attribute__'
before 'tui_border_urcorner'
./tui/tui-win.h:42: error: expected '=', ',', ';', 'asm' or '__attribute__'
before 'tui_border_lrcorner'
./tui/tui-win.h:43: error: expected '=', ',', ';', 'asm' or '__attribute__'
before 'tui_border_llcorner'
./tui/tui-win.h:44: error: expected '=', ',', ';', 'asm' or '__attribute__'
before 'tui_border_vline'
./tui/tui-win.h:45: error: expected '=', ',', ';', 'asm' or '__attribute__'
before 'tui_border_hline'
./tui/tui-command.c: In function 'tui_dispatch_ctrl_char':
./tui/tui-command.c:80: error: 'WINDOW' undeclared (first use in this function)
./tui/tui-command.c:80: error: (Each undeclared identifier is reported only once
./tui/tui-command.c:80: error: for each function it appears in.)
./tui/tui-command.c:80: error: 'w' undeclared (first use in this function)
./tui/tui-command.c:80: error: 'struct tui_gen_win_info' has no member named
'handle'
./tui/tui-command.c:85: warning: implicit declaration of function 'wgetch'
./tui/tui-command.c:86: error: 'ERR' undeclared (first use in this function)
./tui/tui-command.c:93: error: 'KEY_PPAGE' undeclared (first use in this
function)
./tui/tui-command.c:95: error: 'KEY_NPAGE' undeclared (first use in this
function)
./tui/tui-command.c:113: error: 'KEY_DOWN' undeclared (first use in this
function)
./tui/tui-command.c:114: error: 'KEY_SF' undeclared (first use in this function)
./tui/tui-command.c:117: error: 'KEY_UP' undeclared (first use in this function)
./tui/tui-command.c:118: error: 'KEY_SR' undeclared (first use in this function)
./tui/tui-command.c:121: error: 'KEY_RIGHT' undeclared (first use in this
function)
./tui/tui-command.c:124: error: 'KEY_LEFT' undeclared (first use in this
function)
make[2]: *** [tui-command.o] Error 1
make[2]: Leaving directory `/home/oza/mk_patch/gdb/gdb-7.2/gdb'
make[1]: *** [all-gdb] Error 2
make[1]: Leaving directory `/home/oza/mk_patch/gdb/gdb-7.2'
make: *** [all] Error 2
1) does it have something to do with the compaitibility with ncurses library
version ?
folowing is the list of ncurses arm libaries which were copied.
libform.a libform_g.a libmenu.a libmenu_g.a libncurses++.a libncurses.a
libncurses_g.a libpanel.a libpanel_g.a
please help..
Regards,
Oza.
next reply other threads:[~2010-10-27 15:36 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-27 15:36 paawan oza [this message]
2010-10-27 16:14 ` Baurzhan Ismagulov
2010-10-28 4:02 ` gdb cross compilation, error from gdb/tui module.... please help. <readline comilation error after disabling tui> paawan oza
2010-10-28 9:43 ` gdb cross compilation, error from gdb/tui module paawan oza
2010-10-28 10:18 ` Pedro Alves
2010-10-28 11:13 ` paawan oza
2010-10-28 11:27 ` Pedro Alves
2010-10-28 11:57 ` paawan oza
2010-10-28 12:11 ` Pedro Alves
2010-10-28 12:46 ` paawan oza
2010-10-28 13:11 ` Pedro Alves
2010-10-28 14:06 ` paawan oza
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=877394.75835.qm@web112505.mail.gq1.yahoo.com \
--to=paawan1982@yahoo.com \
--cc=gdb@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox