From: Francisco Cuesta <ndarkness@gmail.com>
To: gdb@sourceware.org
Subject: Cross-compilation shows>error: no termcap library found, why?
Date: Thu, 06 Jun 2013 15:03:00 -0000 [thread overview]
Message-ID: <CANMvdA9D1tEWrqUZ1DHTQ=Nq5ERk+78N4Y=E652QQHqaoOTw3g@mail.gmail.com> (raw)
I'm experiencing a frustrating error trying to cross-compile gdbserver
for arm. I've downloaded and crosscompiled termcap with this command
export CC="/bin/arm-mv5sft-linux-gnueabi-gcc"
export CXX="/bin/arm-mv5sft-linux-gnueabi-g++"
export AR="/bin/arm-mv5sft-linux-gnueabi-ar"
CONFOPTS+="--target=arm-linux --host=arm-linux
--build=i686-pc-linux-gnu --prefix=/usr --exec-prefix=/usr
--enable-static"
./configure ${CONFOPTS}
make &&
make DESTDIR=~/gdb-7.6/toInst install
Being such crosscompilation successful since I wasn't prompted any
error, I got the libtermcap.a which is arm, as you can see below, and
located on ~/termcap/
:$ file *.o
termcap.o: ELF 32-bit LSB relocatable, ARM, version 1 (SYSV), not stripped
tparam.o: ELF 32-bit LSB relocatable, ARM, version 1 (SYSV), not stripped
version.o: ELF 32-bit LSB relocatable, ARM, version 1 (SYSV), not strippe
However, if I try to do the same for cross-compiling gdbserver for
arm, with the same options and calling the cross compiled lib
export CC="/bin/arm-mv5sft-linux-gnueabi-gcc"
export CXX="/bin/arm-mv5sft-linux-gnueabi-g++"
export AR="/bin/arm-mv5sft-linux-gnueabi-ar"
CONFOPTS+="--target=arm-linux --host=arm-linux
--build=i686-pc-linux-gnu --prefix=/usr --exec-prefix=/usr
--sysconfdir=/etc --enable-static
--with-termcap=~/termcap/libtermcap.a"
./configure ${CONFOPTS} $@
make &&
make DESTDIR=~/gdb-7.6/toInst install
I get this
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 `~/gdb-7.6'
make: *** [all] Error 2
I have found several sites on the internet suggesting installing the
library libncurses5-dev, but have I already installed!
$ sudo apt-get install libncurses5-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
libncurses5-dev is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 67 not upgraded.
SO, I don't know what can I do to crosscompile gdbserver, please help!
Thanks in advance!!
regards
next reply other threads:[~2013-06-06 15:03 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-06 15:03 Francisco Cuesta [this message]
2013-06-06 16:03 ` Pedro Alves
2013-06-07 6:00 ` Francisco Cuesta
2013-06-07 9:52 ` Francisco Cuesta
2013-06-07 10:20 ` Pedro Alves
2013-06-07 14:30 ` Francisco Cuesta
2013-06-11 9:03 ` Pedro Alves
2013-06-11 15:43 ` cross building gdb/gdbserver howto in the wiki (Re: Cross-compilation shows>error: no termcap library found, why?) Pedro Alves
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='CANMvdA9D1tEWrqUZ1DHTQ=Nq5ERk+78N4Y=E652QQHqaoOTw3g@mail.gmail.com' \
--to=ndarkness@gmail.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