* GDB on ARM
@ 2014-03-27 5:47 Ashoka K
2014-03-27 7:03 ` Senthil Kumar Selvaraj
2014-03-27 7:11 ` Yao Qi
0 siblings, 2 replies; 5+ messages in thread
From: Ashoka K @ 2014-03-27 5:47 UTC (permalink / raw)
To: gdb
Hi,
I am trying to use Valgrind on ARM target. The Valgrind intrenally
supports GDB. To connect to the Valgrind-GDB (i.e, gdbserver) i need
the GDB (host) also to run on arm target. i.e GDB and GDServer both
built with host=arm-linux-gnueabi.
I downloaded latest GDB7.7 and able to build gdbserver, but during
building GDB with host=arm-linux-gnueabi I got the below error. I
searched all over and found that to install libncurses package. I did
that but it didn't work.
My system:
Build-host: Ubuntu-Lucid (10.04) on Virtual-machine with
arm-linux-gnueabi tool chain
Target: ARM OMAP
checking for library containing gethostbyname... none required
checking for library containing socketpair... none required
checking for library containing zlibVersion... no
checking for library containing dlgetmodinfo... no
checking for iconv... yes
checking for iconv declaration... install-shextern size_t iconv
(iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf,
size_t *outbytesleft);
checking for library containing waddstr... no
configure: WARNING: no enhanced curses library found; disabling TUI
checking for library containing tgetent... no
configure: error: no termcap library found
make[1]: *** [configure-gdb] Error 1
make[1]: Leaving directory
user@ubu::build-gdb $ locate libncurses.a
/usr/lib/libncurses.a
user@ubu::build-gdb $
user@ubu::build-gdb $ locate libtermcap
/usr/lib/libtermcap.a
/usr/lib/libtermcap.so
user@ubu::build-gdb $
user@ubu::build-gdb $ locate tgetent
/usr/share/man/man3/tgetent.3ncurses.gz
Please help.
Regards,
AK.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: GDB on ARM
2014-03-27 5:47 GDB on ARM Ashoka K
@ 2014-03-27 7:03 ` Senthil Kumar Selvaraj
2014-03-27 7:11 ` Yao Qi
1 sibling, 0 replies; 5+ messages in thread
From: Senthil Kumar Selvaraj @ 2014-03-27 7:03 UTC (permalink / raw)
To: Ashoka K; +Cc: gdb
On Thu, Mar 27, 2014 at 11:17:20AM +0530, Ashoka K wrote:
> Hi,
>
> I am trying to use Valgrind on ARM target. The Valgrind intrenally
> supports GDB. To connect to the Valgrind-GDB (i.e, gdbserver) i need
> the GDB (host) also to run on arm target. i.e GDB and GDServer both
> built with host=arm-linux-gnueabi.
>
> I downloaded latest GDB7.7 and able to build gdbserver, but during
> building GDB with host=arm-linux-gnueabi I got the below error. I
> searched all over and found that to install libncurses package. I did
> that but it didn't work.
>
> My system:
> Build-host: Ubuntu-Lucid (10.04) on Virtual-machine with
> arm-linux-gnueabi tool chain
> Target: ARM OMAP
>
> checking for library containing gethostbyname... none required
> checking for library containing socketpair... none required
> checking for library containing zlibVersion... no
> checking for library containing dlgetmodinfo... no
> checking for iconv... yes
> checking for iconv declaration... install-shextern size_t iconv
> (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf,
> size_t *outbytesleft);
> checking for library containing waddstr... no
> configure: WARNING: no enhanced curses library found; disabling TUI
> checking for library containing tgetent... no
> configure: error: no termcap library found
You can check the config.log file to see the exact command line used by
configure to detect the presence of libtermcap.
Regards
Senthil
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: GDB on ARM
2014-03-27 5:47 GDB on ARM Ashoka K
2014-03-27 7:03 ` Senthil Kumar Selvaraj
@ 2014-03-27 7:11 ` Yao Qi
2014-03-27 10:26 ` Richard Earnshaw
[not found] ` <CALJd4cZPNGPb+ROrWAqo1MkZLTmwsJq9-yqT2GbgbxAnJWRKwA@mail.gmail.com>
1 sibling, 2 replies; 5+ messages in thread
From: Yao Qi @ 2014-03-27 7:11 UTC (permalink / raw)
To: Ashoka K; +Cc: gdb
On 03/27/2014 01:47 PM, Ashoka K wrote:
> checking for library containing tgetent... no
> configure: error: no termcap library found
You have to cross compile ncuses for arm at first.
--
Yao (é½å°§)
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: GDB on ARM
2014-03-27 7:11 ` Yao Qi
@ 2014-03-27 10:26 ` Richard Earnshaw
[not found] ` <CALJd4cZPNGPb+ROrWAqo1MkZLTmwsJq9-yqT2GbgbxAnJWRKwA@mail.gmail.com>
1 sibling, 0 replies; 5+ messages in thread
From: Richard Earnshaw @ 2014-03-27 10:26 UTC (permalink / raw)
To: Yao Qi; +Cc: Ashoka K, gdb
On 27/03/14 07:09, Yao Qi wrote:
> On 03/27/2014 01:47 PM, Ashoka K wrote:
>> checking for library containing tgetent... no
>> configure: error: no termcap library found
>
> You have to cross compile ncuses for arm at first.
>
ITYM ncurses
R.
^ permalink raw reply [flat|nested] 5+ messages in thread[parent not found: <CALJd4cZPNGPb+ROrWAqo1MkZLTmwsJq9-yqT2GbgbxAnJWRKwA@mail.gmail.com>]
* Re: GDB on ARM
[not found] ` <CALJd4cZPNGPb+ROrWAqo1MkZLTmwsJq9-yqT2GbgbxAnJWRKwA@mail.gmail.com>
@ 2014-04-02 6:22 ` Yao Qi
0 siblings, 0 replies; 5+ messages in thread
From: Yao Qi @ 2014-04-02 6:22 UTC (permalink / raw)
To: Ashoka K; +Cc: gdb
On 04/02/2014 01:34 PM, Ashoka K wrote:
> I cross compiled ncurses5-dev library by giving install path same as
> the path obtained by printing "arm-none-linux-gnueabi-gcc
> --print-sysroot". But still i get the same error. Also copied the
> compiled libtermcap.a in to the same directory mentioned. Still i get
> the same error. I tried with static library, do i need to build shared
> lib or any thing else has to be done ?
> Also set variable LD (for host) as the path to the lib directory where
> libtermcap.a is copied.
>
> checking for iconv declaration... install-shextern size_t iconv
> (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf,
> size_t *outbytesleft);
> checking for library containing waddstr... no
> configure: WARNING: no enhanced curses library found; disabling TUI
> checking for library containing tgetent... no
> configure: error: no termcap library found
You still need to make sure your installed libncurses can be found
during configure. I build native mips gdb on x86-linux and installed
ncurse to MIPS_NCURSES. I pass the following to configure
CFLAGS="-I$MIPS_NCURSES/include -L$MIPS_NCURSES/lib"
--
Yao (é½å°§)
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2014-04-02 6:22 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-03-27 5:47 GDB on ARM Ashoka K
2014-03-27 7:03 ` Senthil Kumar Selvaraj
2014-03-27 7:11 ` Yao Qi
2014-03-27 10:26 ` Richard Earnshaw
[not found] ` <CALJd4cZPNGPb+ROrWAqo1MkZLTmwsJq9-yqT2GbgbxAnJWRKwA@mail.gmail.com>
2014-04-02 6:22 ` Yao Qi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox