From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9097 invoked by alias); 6 Jun 2013 15:03:15 -0000 Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org Received: (qmail 9079 invoked by uid 89); 6 Jun 2013 15:03:14 -0000 X-Spam-SWARE-Status: No, score=-2.9 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE,SPF_PASS autolearn=ham version=3.3.1 Received: from mail-qe0-f50.google.com (HELO mail-qe0-f50.google.com) (209.85.128.50) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Thu, 06 Jun 2013 15:03:13 +0000 Received: by mail-qe0-f50.google.com with SMTP id f6so1976924qej.9 for ; Thu, 06 Jun 2013 08:03:12 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.224.184.196 with SMTP id cl4mr17573061qab.65.1370530992333; Thu, 06 Jun 2013 08:03:12 -0700 (PDT) Received: by 10.49.107.232 with HTTP; Thu, 6 Jun 2013 08:03:12 -0700 (PDT) Date: Thu, 06 Jun 2013 15:03:00 -0000 Message-ID: Subject: Cross-compilation shows>error: no termcap library found, why? From: Francisco Cuesta To: gdb@sourceware.org Content-Type: text/plain; charset=ISO-8859-1 X-SW-Source: 2013-06/txt/msg00011.txt.bz2 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