From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12154 invoked by alias); 7 Jun 2013 10:20:12 -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 12141 invoked by uid 89); 7 Jun 2013 10:20:11 -0000 X-Spam-SWARE-Status: No, score=-7.8 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED,RCVD_IN_HOSTKARMA_W,RCVD_IN_HOSTKARMA_WL,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.1 Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Fri, 07 Jun 2013 10:19:44 +0000 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r57AJgx1031696 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 7 Jun 2013 06:19:42 -0400 Received: from [127.0.0.1] (ovpn01.gateway.prod.ext.ams2.redhat.com [10.39.146.11]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id r57AJe7q031605; Fri, 7 Jun 2013 06:19:41 -0400 Message-ID: <51B1B3BC.7020105@redhat.com> Date: Fri, 07 Jun 2013 10:20:00 -0000 From: Pedro Alves User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130514 Thunderbird/17.0.6 MIME-Version: 1.0 To: Francisco Cuesta CC: gdb@sourceware.org Subject: Re: Cross-compilation shows>error: no termcap library found, why? References: <51B0B2E1.2030800@redhat.com> In-Reply-To: Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit X-SW-Source: 2013-06/txt/msg00015.txt.bz2 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 definitions) that are used to identify the “actors” in the build process; (...) These three definitions are: host The system that is going to run the software once it is built. Once the software has been built, it will execute on this particular system. build The system where the build process is being executed. For most uses this 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 only exists, or rather has a meaning, when the software being built may interact specifically with a system that differs from the one it's being executed on (our host). This is the case for compilers, debuggers, profilers and analyzers and other tools in general. " So configure GDB with --target=arm-mv5sft-linux-gnueabi, and GDBserver with --host=arm-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