From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31377 invoked by alias); 23 Jan 2013 14:54:58 -0000 Received: (qmail 31363 invoked by uid 22791); 23 Jan 2013 14:54:57 -0000 X-SWARE-Spam-Status: No, hits=-2.9 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED,RCVD_IN_DNSWL_NONE,RCVD_IN_HOSTKARMA_NO X-Spam-Check-By: sourceware.org Received: from mout.gmx.net (HELO mout.gmx.net) (212.227.17.21) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 23 Jan 2013 14:54:25 +0000 Received: from mailout-de.gmx.net ([10.1.76.27]) by mrigmx.server.lan (mrigmx002) with ESMTP (Nemesis) id 0Llskg-1TOgts0Dx2-00ZT1L for ; Wed, 23 Jan 2013 15:54:24 +0100 Received: (qmail invoked by alias); 23 Jan 2013 14:54:23 -0000 Received: from sito2_100.sit.fraunhofer.de (EHLO [141.12.89.24]) [141.12.67.100] by mail.gmx.net (mp027) with SMTP; 23 Jan 2013 15:54:23 +0100 Message-ID: <50FFF99E.6010800@mailueberfall.de> Date: Wed, 23 Jan 2013 14:54:00 -0000 From: Robert User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130107 Thunderbird/17.0.2 MIME-Version: 1.0 To: Pedro Alves CC: gdb@sourceware.org Subject: Re: Building gdb for Android using Android-ndk References: <50FFAD68.2050901@mailueberfall.de> <50FFE822.5010309@redhat.com> In-Reply-To: <50FFE822.5010309@redhat.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes 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/msg00074.txt.bz2 Hi Pedro, thanks for your reply. > 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? I am trying to build a standalone version of gdb that runs directly on the device. It is coincidence that the error just occurs in the gdbserver subproject. I am not aware of the internal dependencies of gdb - may be one can simply disable the gdbserver subproject? > 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. You are right, this little strange detail did not catch my attention. Looks like the configuration was not done correctly. Therefore I deleted everything and started from scratch. Now the build process looks correct, but stops much earlier with an error I have seen several times before: arm-linux-androideabi-gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I./../include -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic ./getpagesize.c -o getpagesize.o ./getpagesize.c:64:1: error: redefinition of 'getpagesize' /opt/android-standalone-toolchain/bin/../sysroot/usr/include/unistd.h:162:23: note: previous definition of 'getpagesize' was here I checked the log and noticed that the system checks that executed the first time when I execute "make" contains several lines with "checking for getpagesize... no". I uploaded the complete make log here: http://pastebin.com/v3etd3Sa Robert