From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13960 invoked by alias); 23 Jan 2013 13:40:05 -0000 Received: (qmail 13856 invoked by uid 22791); 23 Jan 2013 13:40:00 -0000 X-SWARE-Spam-Status: No, hits=-7.7 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,KHOP_THREADED,RCVD_IN_DNSWL_HI,RCVD_IN_HOSTKARMA_W,RP_MATCHES_RCVD,SPF_HELO_PASS X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 23 Jan 2013 13:39:51 +0000 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r0NDdmWQ021587 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 23 Jan 2013 08:39:48 -0500 Received: from [127.0.0.1] (ovpn01.gateway.prod.ext.ams2.redhat.com [10.39.146.11]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id r0NDdkKA032289; Wed, 23 Jan 2013 08:39:47 -0500 Message-ID: <50FFE822.5010309@redhat.com> Date: Wed, 23 Jan 2013 13:40:00 -0000 From: Pedro Alves User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130110 Thunderbird/17.0.2 MIME-Version: 1.0 To: Robert CC: gdb@sourceware.org Subject: Re: Building gdb for Android using Android-ndk References: <50FFAD68.2050901@mailueberfall.de> In-Reply-To: <50FFAD68.2050901@mailueberfall.de> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit 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 X-SW-Source: 2013-01/txt/msg00073.txt.bz2 On 01/23/2013 09:29 AM, Robert wrote: > I am trying to build gdb for Android using the "standalone-toolchain" > created by the Android-NDK (make-standalone-toolchain.sh). > > My configure call is as follows: > > ./configure --target=arm-linux-androideabi --host=arm-linux-androideabi > > I tried different gdb versions - unfortunately earlier or later I ran > into an error I could not solve. You're building a gdb that runs on Android? Or you want a GDBserver that runs on Android, but debug from your x86_64 Ubuntu host? If the latter, drop the --host part when building GDB, as you want GDB that runs on x86_64. You'll then need to build GDBserver as a separate step, for an Android host, so you'll use the --host setting then. See: http://www.sourceware.org/autobook/autobook/autobook_259.html > > For example gdb 7.5 has only some minor problems where libraries like > libsim.a, libbfd.a and other required additional processing using > ranlib. I fixed this by manually executing ranlib on the specified > libraries and then restarted the make process. > > But in the end the build process stops with the following error: > > make[5]: Leaving directory `/tmp/gdb-7.5/gdb/gdbserver' > gcc -c -g -O2 -I. -I. -I./../common -I./../regformats So is "gcc" itself a native compiler running on Android? If not, then you should be seeing arm-linux-androideabi-gcc or some such here. > -I./../../include -I./../gnulib/import -Ibuild-gnulib-gdbserver/import > -Wall -Wdeclaration-after-statement -Wpointer-arith -Wformat-nonliteral > -Wno-char-subscripts -Werror linux-arm-low.c -- Pedro Alves