From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17415 invoked by alias); 7 Jun 2013 14:30:49 -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 17348 invoked by uid 89); 7 Jun 2013 14:30:49 -0000 X-Spam-SWARE-Status: No, score=-3.7 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE,SPF_PASS,TW_DB autolearn=ham version=3.3.1 Received: from mail-qe0-f47.google.com (HELO mail-qe0-f47.google.com) (209.85.128.47) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Fri, 07 Jun 2013 14:30:47 +0000 Received: by mail-qe0-f47.google.com with SMTP id 1so2754519qec.20 for ; Fri, 07 Jun 2013 07:30:46 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.224.77.71 with SMTP id f7mr3202608qak.49.1370615446063; Fri, 07 Jun 2013 07:30:46 -0700 (PDT) Received: by 10.49.107.232 with HTTP; Fri, 7 Jun 2013 07:30:46 -0700 (PDT) In-Reply-To: <51B1B3BC.7020105@redhat.com> References: <51B0B2E1.2030800@redhat.com> <51B1B3BC.7020105@redhat.com> Date: Fri, 07 Jun 2013 14:30:00 -0000 Message-ID: Subject: Re: Cross-compilation shows>error: no termcap library found, why? From: Francisco Cuesta To: Pedro Alves Cc: gdb@sourceware.org Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable X-SW-Source: 2013-06/txt/msg00016.txt.bz2 Hi Pedro, I don't understand, I have the gdb server running in the target, this is all arm archietecture. On the other hand I have my pc, which is x86 architecture, but for debugging in eclipse I have to point to the dbg client (on the pc) which is going to connect to the dbg server on the target. SO, both gdb client and gdbserver have to be compiled in arm, that is correct or I missunderstand something? Thanks in advance, Ps: what's more, I have done what you suggested and if I did that on top level directory of gdb I get the error related to termcap... I guess in that directory is where I need to crosscompile the gdb client, though. 2013/6/7 Pedro Alves : > On 06/07/2013 10:52 AM, Francisco Cuesta wrote: >> But now I have another doubt, if I want to crooscompile the gdb >> "client" which is going to connect to the gdbserver, how can I do it? >> Then, I will have to crosscompile the whole gdb suite right? > > Assuming gdb will run on your host non-ARM machine, no. > > Here's the chapter everyone building cross tools should read (do > click the right arrow): > > http://www.sourceware.org/autobook/autobook/autobook_258.html > > And also, simplified from: > > http://www.flameeyes.eu/autotools-mythbuster/autoconf/canonical.html > > " > When using autoconf, there are three system definitions (or machine defi= nitions) > that are used to identify the =93actors=94 in the build process; (...) T= hese three definitions are: > > host > > The system that is going to run the software once it is built. Once t= he software > has been built, it will execute on this particular system. > > build > > The system where the build process is being executed. For most uses t= his > would be the same as the host system, but in case of cross-compilation > the two obviously differ. > > target > > The system against which the software being built will run on. This o= nly exists, or rather > has a meaning, when the software being built may interact specificall= y with a > system that differs from the one it's being executed on (our host). T= his is the case > for compilers, debuggers, profilers and analyzers and other tools in = general. > " > > So configure GDB with --target=3Darm-mv5sft-linux-gnueabi, > and GDBserver with --host=3Darm-mv5sft-linux-gnueabi. > >> >> regards! >> >> 2013/6/6 Pedro Alves : >>> It sounds like you're running the top level's configure >>> instead of gdbserver's. If you just want to build >>> gdbserver, run the configure in gdb/gdbserver/. >>> >>> -- >>> Pedro Alves >>> > > > -- > Pedro Alves